#include <iostream>
#include <cmath>
#include <cstdlib>
#include <cstdio>
#include <cuda.h>
#include <ctime>

using namespace std;

__device__ int hashing_d (int element, int a, int b, int c, int p, int n){
	return (unsigned int)(a * element + b) % p % n;
}


int hashing (int element, int a, int b, int c, int p, int n){
	return (unsigned int)(a * element + b) % p % n;
}

__global__ void add_two(int p, int n, int N, int t, int* hash_table, int* hash_table2, int* hash_elements, int* func_table, int* a, int* b, int* c){
	int i = threadIdx.x + blockDim.x * blockIdx.x;
	int func1 = 0;
	int func2 = 1;
	int func3 = 2;
	int hash_element = hash_elements[i];
	unsigned int loca1 = hashing_d(hash_element, a[func1], b[func1], c[func1], p, n);
	unsigned int loca2 = hashing_d(hash_element, a[func2], b[func2], c[func2], p, n);
	unsigned int loca3 = hashing_d(hash_element, a[func3], b[func3], c[func3], p, n);
	atomicAdd(&hash_table2[(unsigned int)loca1], 1);
	atomicAdd(&hash_table2[(unsigned int)loca2], 1);
	atomicAdd(&hash_table2[(unsigned int)loca3], 1);
}

__global__ void fix_location(int p, int n, int N, int t, int* hash_table, int* hash_table2, int* hash_elements, int* func_table, int* a, int* b, int* c){
	int i = threadIdx.x + blockDim.x * blockIdx.x;
	int func1 = 0;
	int func2 = 1;
	int func3 = 2;
	int hash_element = hash_elements[i];
	unsigned int loca1 = hashing_d(hash_element, a[func1], b[func1], c[func1], p, n);
	unsigned int loca2 = hashing_d(hash_element, a[func2], b[func2], c[func2], p, n);
	unsigned int loca3 = hashing_d(hash_element, a[func3], b[func3], c[func3], p, n);
	if (hash_table2[(unsigned int)loca1] == 1){
		func_table[i] = 0;
	}
	if (hash_table2[(unsigned int)loca2] == 1){
		func_table[i] = 1;
	}
	if (hash_table2[(unsigned int)loca3] == 1){
		func_table[i] = 2;
	}
}

__global__ void check(int p, int n, int N, int t, int* hash_table, int* hash_elements, int* func_table, int* a, int* b, int* c, int max_count, int *indicator){
	int i = threadIdx.x + blockDim.x * blockIdx.x;
	int curr_func = func_table[i];
	int hash_element = hash_elements[i];
	unsigned int loca = hashing_d(hash_element, a[curr_func], b[curr_func], c[curr_func], p, n);
	if (hash_table[(unsigned int)loca] != hash_element){
		*indicator = -1;
	}
}

__global__ void insert(int p, int n, int N, int t, int* hash_table, int* hash_elements, int* func_table, int* a, int* b, int* c, int max_count){
	int i = threadIdx.x + blockDim.x * blockIdx.x;
	if (i < N){
		int curr_func = func_table[i];
		int hash_element = hash_elements[i];
		unsigned int loca = hashing_d(hash_element, a[curr_func], b[curr_func], c[curr_func], p, n);

		//hash_table[(unsigned int)loca] = hash_element;
		if (hash_table[(unsigned int)loca] != hash_element){
			func_table[i] = (curr_func + 1) % t;
			curr_func = (curr_func + 1) % t;
			loca = hashing_d(hash_element, a[curr_func], b[curr_func], c[curr_func], p, n);
			hash_table[(unsigned int)loca] = hash_element;
		}
	/*for (int j = 0; j < max_count; j++){
		if (hash_table[(unsigned int)loca] != hash_element){
			func_table[i] = (curr_func + 1) % t;
			curr_func = (curr_func + 1) % t;
			loca = ((unsigned int)(a[curr_func] * hash_element + b[curr_func]) % p % n);
			hash_table[(unsigned int)loca] = hash_element;
		}
		__syncthreads();
	}*/

	}

}




__global__ void find(int p, int n, int N, int t, int* hash_table, int* find_elements, int* a, int* b, int* c, int* find_result){
	int i = threadIdx.x + blockDim.x * blockIdx.x;
	int find = 0;
	for (int j = 0; j < t; j++){
		if (hash_table[hashing_d(find_elements[i], a[j], b[j], c[j], p, n)] == find_elements[i]){
			find = 1;
		}
	}
	find_result[i] = find;
}



__global__ void delete_ele(int p, int n, int N, int t, int* hash_table, int* fun_index_table,int* delete_elements, int* a, int* b, int* c, int* find_result){
	int i = threadIdx.x + blockDim.x * blockIdx.x;
	for (int j = 0; j < t; j++){
		if (hash_table[hashing_d(delete_elements[i], a[j], b[j], c[j], p, n)] == delete_elements[i]){
			hash_table[hashing_d(delete_elements[i], a[j], b[j], c[j], p, n)] = 0;
			fun_index_table[hashing_d(delete_elements[i], a[j], b[j], c[j], p, n)] = t;
		}
	}
}

void random_hash_fun(int t, int* a, int* b, int* c){
	for (int i = 0; i < t; i++){
		a[i] = rand();
		b[i] = rand();
		c[i] = rand();
	}
	return;
}

void random_hash_elements(int N, int* hash_elements){
	for (int i = 0; i < N; i++){
		hash_elements[i] = rand() % (1 << 27);
	}
	return;
}

void initialize(int n, int N, int* hash_table, int* hash_table2, int* func_table, int* hash_value, int* hash_elements, int a, int b, int c, int p ){
	for (int i = 0; i < n; i++){
		hash_table[i] = 0;
		hash_table2[i] = 0;
	}
	for (int i = 0; i < N; i++){
		int loca = hashing(hash_elements[i], a, b, c, p, n);
		hash_value[i] = loca;
		func_table[i] = 0;
	}
}



void generating_find_element(int N, int* find_elements, int* hash_element, float partial){
	for (int i = 0; i < (int) (N * partial); i++){
		find_elements[i] = hash_element[i];
	}

	for (int i = (int) (N * partial); i < N; i++){
		find_elements[i] = rand() % (1 << 27);
	}
}

void quicksort(int * hash_value, int* hash_elements, int low, int high)
{
    if(low >= high){
        return;
    }
    int first = low;
    int last = high;
    int key = hash_value[first];
    int key1 = hash_elements[first];
    while(first < last){
        while(first < last && hash_value[last] >= key){
        	--last;
        }

        hash_value[first] = hash_value[last];
        hash_elements[first] = hash_elements[last];
 
        while(first < last && hash_value[first] <= key){
            ++first;
        }
        hash_value[last] = hash_value[first]; 
        hash_elements[last] = hash_elements[first];    
    }
    hash_value[first] = key;
    hash_elements[first] = key1;
    quicksort(hash_value, hash_elements, low, first-1);
    quicksort(hash_value, hash_elements, first+1, high);
}


double once(int p, int n, int t, int N, int max_count, int trail, float partial, int thread_per_block){
	cout << "Trail: " << trail << endl;
	int* hash_table;
	int* hash_table2;
	int* hash_elements;
	int* func_table;
	int* a;
	int* b;
	int* c;
	int* find_result; 
	int* find_elements; 
	int* indicator;
	int count = 0;
	int* hash_value = new int [N];

	cudaMallocManaged(&hash_table, n * sizeof(int));
	cudaMallocManaged(&hash_table2, n * sizeof(int));
	cudaMallocManaged(&hash_elements, N * sizeof(int));
	cudaMallocManaged(&func_table, N * sizeof(int));
	cudaMallocManaged(&a, t * sizeof(int));
	cudaMallocManaged(&b, t * sizeof(int));
	cudaMallocManaged(&c, t * sizeof(int));
	cudaMallocManaged(&find_elements, N * sizeof(int));
	cudaMallocManaged(&find_result, N * sizeof(int));
	cudaMallocManaged(&indicator, sizeof(int));

	*indicator = 0;


	random_hash_fun(t, a, b, c);
	random_hash_elements(N, hash_elements);
	initialize(n, N, hash_table, hash_table2, func_table, hash_value, hash_elements, a[0], b[0], c[0], p);


	quicksort(hash_value, hash_elements, 0, N - 1);

	add_two<<< ceil(N / thread_per_block), thread_per_block>>>(p, n, N, t, hash_table, hash_table2, hash_elements, func_table, a, b, c);
	cudaDeviceSynchronize();
	fix_location<<< ceil(N / thread_per_block), thread_per_block>>>(p, n, N, t, hash_table, hash_table2, hash_elements, func_table, a, b, c);
	cudaDeviceSynchronize();


	for (count = 0; count < max_count; count ++){
		*indicator = 0;
		insert<<< ceil(N / thread_per_block), thread_per_block>>>(p, n, N, t, hash_table, hash_elements, func_table, a, b, c, max_count);
		cudaDeviceSynchronize();
		check<<< ceil(N / thread_per_block), thread_per_block>>>(p, n, N, t, hash_table, hash_elements, func_table, a, b, c, max_count, indicator);
		cudaDeviceSynchronize();
		if (*indicator == 0){
			break;
		}
	}

	check<<< ceil(N / thread_per_block), thread_per_block>>>(p, n, N, t, hash_table, hash_elements, func_table, a, b, c, max_count, indicator);
	cudaDeviceSynchronize();

	int count1 = 0;
	while (*indicator == -1 && count1 < 1000){
		random_hash_fun(t, a, b, c);
		add_two<<< ceil(N / thread_per_block), thread_per_block>>>(p, n, N, t, hash_table, hash_table2, hash_elements, func_table, a, b, c);
		cudaDeviceSynchronize();
		fix_location<<< ceil(N / thread_per_block), thread_per_block>>>(p, n, N, t, hash_table, hash_table2, hash_elements, func_table, a, b, c);
		cudaDeviceSynchronize();

		for (count = 0; count < max_count; count ++){
			*indicator = 0;
			insert<<< ceil(N / thread_per_block), thread_per_block>>>(p, n, N, t, hash_table, hash_elements, func_table, a, b, c, max_count);
			cudaDeviceSynchronize();
			check<<< ceil(N / thread_per_block), thread_per_block>>>(p, n, N, t, hash_table, hash_elements, func_table, a, b, c, max_count, indicator);
			cudaDeviceSynchronize();
			if (*indicator == 0){
				break;
			}
		}
		check<<< ceil(N / thread_per_block), thread_per_block>>>(p, n, N, t, hash_table, hash_elements, func_table, a, b, c, max_count, indicator);
		cudaDeviceSynchronize();
		count1 ++;
	}

	generating_find_element(N, find_elements, hash_elements, partial);

	clock_t start = clock();
	find<<< ceil(N / thread_per_block), thread_per_block>>>(p, n, N, t, hash_table, find_elements, a, b, c, find_result);
	
	cudaDeviceSynchronize();

	double duration = (clock() - start) / (double) CLOCKS_PER_SEC;


	cout << "Time:" << duration << endl;
	cudaMemcpy(hash_table, hash_table, n * sizeof(int), cudaMemcpyDeviceToHost);
	cudaMemcpy(hash_elements, hash_elements, N * sizeof(int), cudaMemcpyDeviceToHost);
	cudaMemcpy(find_result, find_result, N * sizeof(int), cudaMemcpyDeviceToHost);

	int val_count = 0;

	val_count = 0;
	for (int i = 0 ; i < N; i++){
		if(find_result[i] == 1){
			val_count ++;
		}
	}

	cout << "Difference between insertion and find result: " << N - val_count << endl;


	cudaFree(hash_table);
	cudaFree(hash_elements);
	cudaFree(find_result);
	cudaFree(a);
	cudaFree(b);
	cudaFree(c);
	cudaFree(hash_table2);
	cudaFree(func_table);
	cudaFree(indicator);
	return duration;
}

int main(void){
	int p = 99984923;
	int count_bit;
	float relative;
	float partial;
	int n;
	int c;
	cout << "Data Bit: " ;
	cin >> count_bit;
	cout << "Find partial: ";
	cin >> partial;
	cout << "Hash table size (0 for 2^25): ";
	cin >> relative; 
	cout << "Evict Chain Constant: ";
	cin >> c;
	int N = (1<<count_bit); 

	if (relative == 0){
		n = 1 << 25;
	}else{
		n = relative * N;
	}

	int t = 3;
	int max_count = (int) c * log(n);
	int thread_per_block;
	if (count_bit >= 18){
		thread_per_block = 1024;
	}else{
		thread_per_block = 64;
	}
	double Time = 0;

	Time += once(p, n, t, N, max_count, 1, partial, thread_per_block);
	Time += once(p, n, t, N, max_count, 2, partial, thread_per_block);
	Time += once(p, n, t, N, max_count, 3, partial, thread_per_block);
	Time += once(p, n, t, N, max_count, 4, partial, thread_per_block);
	Time += once(p, n, t, N, max_count, 5, partial, thread_per_block);

	Time = Time / 5;
	cout << "Average Time: " << Time << endl; 
	cout << "Million of insertion per second: " << (N / Time) / 1000000 << endl;
	return 0;
}

	.file	"tmpxft_0025d783_00000000-6_cuckoo.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3646:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE3646:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.type	_Z17cudaMallocManagedIiE9cudaErrorPPT_mj.constprop.0.isra.0, @function
_Z17cudaMallocManagedIiE9cudaErrorPPT_mj.constprop.0.isra.0:
.LFB4316:
	.cfi_startproc
	movl	$1, %edx
	jmp	cudaMallocManaged@PLT
	.cfi_endproc
.LFE4316:
	.size	_Z17cudaMallocManagedIiE9cudaErrorPPT_mj.constprop.0.isra.0, .-_Z17cudaMallocManagedIiE9cudaErrorPPT_mj.constprop.0.isra.0
	.align 2
	.type	_ZNSolsEPFRSoS_E.isra.0, @function
_ZNSolsEPFRSoS_E.isra.0:
.LFB4317:
	.cfi_startproc
	jmp	*%rsi
	.cfi_endproc
.LFE4317:
	.size	_ZNSolsEPFRSoS_E.isra.0, .-_ZNSolsEPFRSoS_E.isra.0
	.globl	_Z9hashing_diiiiii
	.type	_Z9hashing_diiiiii, @function
_Z9hashing_diiiiii:
.LFB3635:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE3635:
	.size	_Z9hashing_diiiiii, .-_Z9hashing_diiiiii
	.globl	_Z7hashingiiiiii
	.type	_Z7hashingiiiiii, @function
_Z7hashingiiiiii:
.LFB3636:
	.cfi_startproc
	endbr64
	imull	%edi, %esi
	leal	(%rsi,%rdx), %eax
	xorl	%edx, %edx
	divl	%r8d
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%r9d
	movl	%edx, %eax
	ret
	.cfi_endproc
.LFE3636:
	.size	_Z7hashingiiiiii, .-_Z7hashingiiiiii
	.globl	_Z15random_hash_funiPiS_S_
	.type	_Z15random_hash_funiPiS_S_, @function
_Z15random_hash_funiPiS_S_:
.LFB3637:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movq	%rcx, %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%rdx, %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movl	%edi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	xorl	%ebx, %ebx
.L8:
	cmpl	%ebx, %ebp
	jle	.L12
	call	rand@PLT
	movl	%eax, (%r12,%rbx,4)
	call	rand@PLT
	movl	%eax, 0(%r13,%rbx,4)
	call	rand@PLT
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	jmp	.L8
.L12:
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3637:
	.size	_Z15random_hash_funiPiS_S_, .-_Z15random_hash_funiPiS_S_
	.globl	_Z20random_hash_elementsiPi
	.type	_Z20random_hash_elementsiPi, @function
_Z20random_hash_elementsiPi:
.LFB3638:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$134217728, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movl	%edi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	pushq	%rdx
	.cfi_def_cfa_offset 48
.L14:
	cmpl	%ebx, %ebp
	jle	.L17
	call	rand@PLT
	cltd
	idivl	%r13d
	movl	%edx, (%r12,%rbx,4)
	incq	%rbx
	jmp	.L14
.L17:
	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
.LFE3638:
	.size	_Z20random_hash_elementsiPi, .-_Z20random_hash_elementsiPi
	.globl	_Z10initializeiiPiS_S_S_S_iiii
	.type	_Z10initializeiiPiS_S_S_S_iiii, @function
_Z10initializeiiPiS_S_S_S_iiii:
.LFB3639:
	.cfi_startproc
	endbr64
	movq	8(%rsp), %r10
	movl	16(%rsp), %r11d
	xorl	%eax, %eax
.L19:
	cmpl	%eax, %edi
	jle	.L23
	movl	$0, (%rdx,%rax,4)
	movl	$0, (%rcx,%rax,4)
	incq	%rax
	jmp	.L19
.L23:
	xorl	%ecx, %ecx
.L21:
	cmpl	%ecx, %esi
	jle	.L24
	movl	(%r10,%rcx,4), %eax
	xorl	%edx, %edx
	imull	%r11d, %eax
	addl	24(%rsp), %eax
	divl	40(%rsp)
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%edi
	xorl	%eax, %eax
	movl	%edx, (%r9,%rcx,4)
	movl	%eax, (%r8,%rcx,4)
	incq	%rcx
	jmp	.L21
.L24:
	ret
	.cfi_endproc
.LFE3639:
	.size	_Z10initializeiiPiS_S_S_S_iiii, .-_Z10initializeiiPiS_S_S_S_iiii
	.globl	_Z23generating_find_elementiPiS_f
	.type	_Z23generating_find_elementiPiS_f, @function
_Z23generating_find_elementiPiS_f:
.LFB3640:
	.cfi_startproc
	endbr64
	movaps	%xmm0, %xmm1
	cvtsi2ssl	%edi, %xmm0
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%eax, %eax
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movl	%edi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mulss	%xmm1, %xmm0
	pushq	%rcx
	.cfi_def_cfa_offset 48
	cvttss2sil	%xmm0, %ebx
.L26:
	cmpl	%eax, %ebx
	jle	.L31
	movl	(%rdx,%rax,4), %ecx
	movl	%ecx, (%r12,%rax,4)
	incq	%rax
	jmp	.L26
.L31:
	movslq	%ebx, %rbx
	movl	$134217728, %r13d
.L28:
	cmpl	%ebx, %ebp
	jle	.L32
	call	rand@PLT
	cltd
	idivl	%r13d
	movl	%edx, (%r12,%rbx,4)
	incq	%rbx
	jmp	.L28
.L32:
	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
.LFE3640:
	.size	_Z23generating_find_elementiPiS_f, .-_Z23generating_find_elementiPiS_f
	.globl	_Z9quicksortPiS_ii
	.type	_Z9quicksortPiS_ii, @function
_Z9quicksortPiS_ii:
.LFB3641:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	%ecx, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	pushq	%r8
	.cfi_def_cfa_offset 48
.L41:
	cmpl	%r13d, %edx
	jge	.L44
	movslq	%edx, %rax
	movl	%r13d, %ecx
	movl	%edx, %edi
	movl	0(%rbp,%rax,4), %esi
	movl	(%r12,%rax,4), %r10d
.L35:
	movslq	%ecx, %rax
.L37:
	movl	0(%rbp,%rax,4), %r8d
	cmpl	%eax, %edi
	jge	.L36
	leaq	-1(%rax), %rcx
	cmpl	%r8d, %esi
	jg	.L36
	movq	%rcx, %rax
	jmp	.L37
.L36:
	movslq	%edi, %rbx
	movl	%eax, %ecx
	salq	$2, %rax
	movl	%r8d, 0(%rbp,%rbx,4)
	leaq	(%r12,%rax), %r8
	movl	(%r8), %edi
	movl	%edi, (%r12,%rbx,4)
.L39:
	movl	0(%rbp,%rbx,4), %r9d
	cmpl	%ebx, %ecx
	jle	.L38
	leaq	1(%rbx), %rdi
	cmpl	%r9d, %esi
	jl	.L38
	movq	%rdi, %rbx
	jmp	.L39
.L38:
	movl	%r9d, 0(%rbp,%rax)
	movl	(%r12,%rbx,4), %eax
	movl	%ebx, %edi
	movl	%eax, (%r8)
	cmpl	%ecx, %ebx
	jl	.L35
	movslq	%ebx, %rax
	leal	-1(%rbx), %ecx
	movq	%rbp, %rdi
	movl	%esi, 0(%rbp,%rax,4)
	movq	%r12, %rsi
	movl	%r10d, (%r12,%rax,4)
	call	_Z9quicksortPiS_ii
	leal	1(%rbx), %edx
	jmp	.L41
.L44:
	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
.LFE3641:
	.size	_Z9quicksortPiS_ii, .-_Z9quicksortPiS_ii
	.globl	_Z42__device_stub__Z7add_twoiiiiPiS_S_S_S_S_S_iiiiPiS_S_S_S_S_S_
	.type	_Z42__device_stub__Z7add_twoiiiiPiS_S_S_S_S_S_iiiiPiS_S_S_S_S_S_, @function
_Z42__device_stub__Z7add_twoiiiiPiS_S_S_S_S_S_iiiiPiS_S_S_S_S_S_:
.LFB3668:
	.cfi_startproc
	endbr64
	subq	$248, %rsp
	.cfi_def_cfa_offset 256
	movq	256(%rsp), %rax
	movl	%edi, 76(%rsp)
	leaq	96(%rsp), %rdi
	movl	%esi, 72(%rsp)
	leaq	108(%rsp), %rsi
	movq	%rax, 40(%rsp)
	movq	264(%rsp), %rax
	movl	%edx, 68(%rsp)
	leaq	80(%rsp), %rdx
	movq	%rax, 32(%rsp)
	movq	272(%rsp), %rax
	movl	%ecx, 64(%rsp)
	leaq	88(%rsp), %rcx
	movq	%rax, 24(%rsp)
	movq	280(%rsp), %rax
	movq	%r8, 56(%rsp)
	movq	%rax, 16(%rsp)
	movq	288(%rsp), %rax
	movq	%r9, 48(%rsp)
	movq	%rax, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	76(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	68(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 208(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 216(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 224(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 96(%rsp)
	movl	$1, 104(%rsp)
	movq	%rax, 108(%rsp)
	movl	$1, 116(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L46
	pushq	88(%rsp)
	.cfi_def_cfa_offset 264
	leaq	_Z7add_twoiiiiPiS_S_S_S_S_S_(%rip), %rdi
	pushq	88(%rsp)
	.cfi_def_cfa_offset 272
	movq	124(%rsp), %rcx
	movl	132(%rsp), %r8d
	movq	112(%rsp), %rsi
	movl	120(%rsp), %edx
	leaq	160(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 264
	popq	%rdx
	.cfi_def_cfa_offset 256
.L46:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	je	.L48
	call	__stack_chk_fail@PLT
.L48:
	addq	$248, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3668:
	.size	_Z42__device_stub__Z7add_twoiiiiPiS_S_S_S_S_S_iiiiPiS_S_S_S_S_S_, .-_Z42__device_stub__Z7add_twoiiiiPiS_S_S_S_S_S_iiiiPiS_S_S_S_S_S_
	.globl	_Z7add_twoiiiiPiS_S_S_S_S_S_
	.type	_Z7add_twoiiiiPiS_S_S_S_S_S_, @function
_Z7add_twoiiiiPiS_S_S_S_S_S_:
.LFB3669:
	.cfi_startproc
	endbr64
	jmp	_Z42__device_stub__Z7add_twoiiiiPiS_S_S_S_S_S_iiiiPiS_S_S_S_S_S_
	.cfi_endproc
.LFE3669:
	.size	_Z7add_twoiiiiPiS_S_S_S_S_S_, .-_Z7add_twoiiiiPiS_S_S_S_S_S_
	.globl	_Z48__device_stub__Z12fix_locationiiiiPiS_S_S_S_S_S_iiiiPiS_S_S_S_S_S_
	.type	_Z48__device_stub__Z12fix_locationiiiiPiS_S_S_S_S_S_iiiiPiS_S_S_S_S_S_, @function
_Z48__device_stub__Z12fix_locationiiiiPiS_S_S_S_S_S_iiiiPiS_S_S_S_S_S_:
.LFB3670:
	.cfi_startproc
	endbr64
	subq	$248, %rsp
	.cfi_def_cfa_offset 256
	movq	256(%rsp), %rax
	movl	%edi, 76(%rsp)
	leaq	96(%rsp), %rdi
	movl	%esi, 72(%rsp)
	leaq	108(%rsp), %rsi
	movq	%rax, 40(%rsp)
	movq	264(%rsp), %rax
	movl	%edx, 68(%rsp)
	leaq	80(%rsp), %rdx
	movq	%rax, 32(%rsp)
	movq	272(%rsp), %rax
	movl	%ecx, 64(%rsp)
	leaq	88(%rsp), %rcx
	movq	%rax, 24(%rsp)
	movq	280(%rsp), %rax
	movq	%r8, 56(%rsp)
	movq	%rax, 16(%rsp)
	movq	288(%rsp), %rax
	movq	%r9, 48(%rsp)
	movq	%rax, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	76(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	68(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 208(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 216(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 224(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 96(%rsp)
	movl	$1, 104(%rsp)
	movq	%rax, 108(%rsp)
	movl	$1, 116(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L51
	pushq	88(%rsp)
	.cfi_def_cfa_offset 264
	leaq	_Z12fix_locationiiiiPiS_S_S_S_S_S_(%rip), %rdi
	pushq	88(%rsp)
	.cfi_def_cfa_offset 272
	movq	124(%rsp), %rcx
	movl	132(%rsp), %r8d
	movq	112(%rsp), %rsi
	movl	120(%rsp), %edx
	leaq	160(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 264
	popq	%rdx
	.cfi_def_cfa_offset 256
.L51:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	je	.L53
	call	__stack_chk_fail@PLT
.L53:
	addq	$248, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3670:
	.size	_Z48__device_stub__Z12fix_locationiiiiPiS_S_S_S_S_S_iiiiPiS_S_S_S_S_S_, .-_Z48__device_stub__Z12fix_locationiiiiPiS_S_S_S_S_S_iiiiPiS_S_S_S_S_S_
	.globl	_Z12fix_locationiiiiPiS_S_S_S_S_S_
	.type	_Z12fix_locationiiiiPiS_S_S_S_S_S_, @function
_Z12fix_locationiiiiPiS_S_S_S_S_S_:
.LFB3671:
	.cfi_startproc
	endbr64
	jmp	_Z48__device_stub__Z12fix_locationiiiiPiS_S_S_S_S_S_iiiiPiS_S_S_S_S_S_
	.cfi_endproc
.LFE3671:
	.size	_Z12fix_locationiiiiPiS_S_S_S_S_S_, .-_Z12fix_locationiiiiPiS_S_S_S_S_S_
	.globl	_Z41__device_stub__Z5checkiiiiPiS_S_S_S_S_iS_iiiiPiS_S_S_S_S_iS_
	.type	_Z41__device_stub__Z5checkiiiiPiS_S_S_S_S_iS_iiiiPiS_S_S_S_S_iS_, @function
_Z41__device_stub__Z5checkiiiiPiS_S_S_S_S_iS_iiiiPiS_S_S_S_S_iS_:
.LFB3672:
	.cfi_startproc
	endbr64
	subq	$264, %rsp
	.cfi_def_cfa_offset 272
	movq	272(%rsp), %rax
	movl	%edi, 76(%rsp)
	leaq	104(%rsp), %rdi
	movl	%esi, 72(%rsp)
	leaq	116(%rsp), %rsi
	movq	%rax, 40(%rsp)
	movq	280(%rsp), %rax
	movl	%edx, 68(%rsp)
	leaq	88(%rsp), %rdx
	movq	%rax, 32(%rsp)
	movq	288(%rsp), %rax
	movl	%ecx, 64(%rsp)
	leaq	96(%rsp), %rcx
	movq	%rax, 24(%rsp)
	movq	296(%rsp), %rax
	movq	%r8, 56(%rsp)
	movq	%rax, 16(%rsp)
	movq	312(%rsp), %rax
	movq	%r9, 48(%rsp)
	movq	%rax, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 248(%rsp)
	xorl	%eax, %eax
	leaq	76(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	68(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 208(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 216(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 224(%rsp)
	leaq	304(%rsp), %rax
	movq	%rax, 232(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 240(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 104(%rsp)
	movl	$1, 112(%rsp)
	movq	%rax, 116(%rsp)
	movl	$1, 124(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L56
	pushq	96(%rsp)
	.cfi_def_cfa_offset 280
	leaq	_Z5checkiiiiPiS_S_S_S_S_iS_(%rip), %rdi
	pushq	96(%rsp)
	.cfi_def_cfa_offset 288
	movq	132(%rsp), %rcx
	movl	140(%rsp), %r8d
	movq	120(%rsp), %rsi
	movl	128(%rsp), %edx
	leaq	168(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 280
	popq	%rdx
	.cfi_def_cfa_offset 272
.L56:
	movq	248(%rsp), %rax
	subq	%fs:40, %rax
	je	.L58
	call	__stack_chk_fail@PLT
.L58:
	addq	$264, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3672:
	.size	_Z41__device_stub__Z5checkiiiiPiS_S_S_S_S_iS_iiiiPiS_S_S_S_S_iS_, .-_Z41__device_stub__Z5checkiiiiPiS_S_S_S_S_iS_iiiiPiS_S_S_S_S_iS_
	.globl	_Z5checkiiiiPiS_S_S_S_S_iS_
	.type	_Z5checkiiiiPiS_S_S_S_S_iS_, @function
_Z5checkiiiiPiS_S_S_S_S_iS_:
.LFB3673:
	.cfi_startproc
	endbr64
	jmp	_Z41__device_stub__Z5checkiiiiPiS_S_S_S_S_iS_iiiiPiS_S_S_S_S_iS_
	.cfi_endproc
.LFE3673:
	.size	_Z5checkiiiiPiS_S_S_S_S_iS_, .-_Z5checkiiiiPiS_S_S_S_S_iS_
	.globl	_Z40__device_stub__Z6insertiiiiPiS_S_S_S_S_iiiiiPiS_S_S_S_S_i
	.type	_Z40__device_stub__Z6insertiiiiPiS_S_S_S_S_iiiiiPiS_S_S_S_S_i, @function
_Z40__device_stub__Z6insertiiiiPiS_S_S_S_S_iiiiiPiS_S_S_S_S_i:
.LFB3674:
	.cfi_startproc
	endbr64
	subq	$232, %rsp
	.cfi_def_cfa_offset 240
	movq	240(%rsp), %rax
	movl	%edi, 60(%rsp)
	leaq	80(%rsp), %rdi
	movl	%esi, 56(%rsp)
	leaq	92(%rsp), %rsi
	movq	%rax, 24(%rsp)
	movq	248(%rsp), %rax
	movl	%edx, 52(%rsp)
	leaq	64(%rsp), %rdx
	movq	%rax, 16(%rsp)
	movq	256(%rsp), %rax
	movl	%ecx, 48(%rsp)
	leaq	72(%rsp), %rcx
	movq	%rax, 8(%rsp)
	movq	264(%rsp), %rax
	movq	%r8, 40(%rsp)
	movq	%r9, 32(%rsp)
	movq	%rax, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	60(%rsp), %rax
	movl	$1, 88(%rsp)
	movq	%rax, 128(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	52(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 192(%rsp)
	movq	%rsp, %rax
	movq	%rax, 200(%rsp)
	leaq	272(%rsp), %rax
	movq	%rax, 208(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 80(%rsp)
	movq	%rax, 92(%rsp)
	movl	$1, 100(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L61
	pushq	72(%rsp)
	.cfi_def_cfa_offset 248
	leaq	_Z6insertiiiiPiS_S_S_S_S_i(%rip), %rdi
	pushq	72(%rsp)
	.cfi_def_cfa_offset 256
	movq	108(%rsp), %rcx
	movl	116(%rsp), %r8d
	movq	96(%rsp), %rsi
	movl	104(%rsp), %edx
	leaq	144(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 248
	popq	%rdx
	.cfi_def_cfa_offset 240
.L61:
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	je	.L63
	call	__stack_chk_fail@PLT
.L63:
	addq	$232, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3674:
	.size	_Z40__device_stub__Z6insertiiiiPiS_S_S_S_S_iiiiiPiS_S_S_S_S_i, .-_Z40__device_stub__Z6insertiiiiPiS_S_S_S_S_iiiiiPiS_S_S_S_S_i
	.globl	_Z6insertiiiiPiS_S_S_S_S_i
	.type	_Z6insertiiiiPiS_S_S_S_S_i, @function
_Z6insertiiiiPiS_S_S_S_S_i:
.LFB3675:
	.cfi_startproc
	endbr64
	jmp	_Z40__device_stub__Z6insertiiiiPiS_S_S_S_S_iiiiiPiS_S_S_S_S_i
	.cfi_endproc
.LFE3675:
	.size	_Z6insertiiiiPiS_S_S_S_S_i, .-_Z6insertiiiiPiS_S_S_S_S_i
	.globl	_Z37__device_stub__Z4findiiiiPiS_S_S_S_S_iiiiPiS_S_S_S_S_
	.type	_Z37__device_stub__Z4findiiiiPiS_S_S_S_S_iiiiPiS_S_S_S_S_, @function
_Z37__device_stub__Z4findiiiiPiS_S_S_S_S_iiiiPiS_S_S_S_S_:
.LFB3676:
	.cfi_startproc
	endbr64
	subq	$232, %rsp
	.cfi_def_cfa_offset 240
	movq	240(%rsp), %rax
	movl	%edi, 60(%rsp)
	leaq	88(%rsp), %rdi
	movl	%esi, 56(%rsp)
	leaq	100(%rsp), %rsi
	movq	%rax, 24(%rsp)
	movq	248(%rsp), %rax
	movl	%edx, 52(%rsp)
	leaq	72(%rsp), %rdx
	movq	%rax, 16(%rsp)
	movq	256(%rsp), %rax
	movl	%ecx, 48(%rsp)
	leaq	80(%rsp), %rcx
	movq	%rax, 8(%rsp)
	movq	264(%rsp), %rax
	movq	%r8, 40(%rsp)
	movq	%r9, 32(%rsp)
	movq	%rax, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	60(%rsp), %rax
	movl	$1, 96(%rsp)
	movq	%rax, 136(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	52(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 200(%rsp)
	movq	%rsp, %rax
	movq	%rax, 208(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 88(%rsp)
	movq	%rax, 100(%rsp)
	movl	$1, 108(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L66
	pushq	80(%rsp)
	.cfi_def_cfa_offset 248
	leaq	_Z4findiiiiPiS_S_S_S_S_(%rip), %rdi
	pushq	80(%rsp)
	.cfi_def_cfa_offset 256
	movq	116(%rsp), %rcx
	movl	124(%rsp), %r8d
	movq	104(%rsp), %rsi
	movl	112(%rsp), %edx
	leaq	152(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 248
	popq	%rdx
	.cfi_def_cfa_offset 240
.L66:
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	je	.L68
	call	__stack_chk_fail@PLT
.L68:
	addq	$232, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3676:
	.size	_Z37__device_stub__Z4findiiiiPiS_S_S_S_S_iiiiPiS_S_S_S_S_, .-_Z37__device_stub__Z4findiiiiPiS_S_S_S_S_iiiiPiS_S_S_S_S_
	.globl	_Z4findiiiiPiS_S_S_S_S_
	.type	_Z4findiiiiPiS_S_S_S_S_, @function
_Z4findiiiiPiS_S_S_S_S_:
.LFB3677:
	.cfi_startproc
	endbr64
	jmp	_Z37__device_stub__Z4findiiiiPiS_S_S_S_S_iiiiPiS_S_S_S_S_
	.cfi_endproc
.LFE3677:
	.size	_Z4findiiiiPiS_S_S_S_S_, .-_Z4findiiiiPiS_S_S_S_S_
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Trail: "
.LC2:
	.string	"Time:"
.LC3:
	.string	"Difference between insertion and find result: "
	.text
	.globl	_Z4onceiiiiiifi
	.type	_Z4onceiiiiiifi, @function
_Z4onceiiiiiifi:
.LFB3642:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%ecx, %r15d
	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
	movl	%r8d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%r9d, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$168, %rsp
	.cfi_def_cfa_offset 224
	movl	%edx, 12(%rsp)
	movl	224(%rsp), %ebx
	movl	%edi, 20(%rsp)
	leaq	_ZSt4cout(%rip), %rdi
	movl	%esi, 16(%rsp)
	leaq	.LC0(%rip), %rsi
	movss	%xmm0, 44(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebp, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movslq	%r15d, %rax
	movabsq	$2305843009213693950, %rdx
	cmpq	%rax, %rdx
	jb	.L72
	salq	$2, %rax
	movq	%rax, %rdi
	movq	%rax, 24(%rsp)
	call	_Znam@PLT
	leaq	48(%rsp), %rdi
	movq	%rax, %r13
	movslq	16(%rsp), %rax
	salq	$2, %rax
	movq	%rax, %rsi
	movq	%rax, 32(%rsp)
	call	_Z17cudaMallocManagedIiE9cudaErrorPPT_mj.constprop.0.isra.0
	movq	32(%rsp), %rsi
	leaq	56(%rsp), %rdi
	call	_Z17cudaMallocManagedIiE9cudaErrorPPT_mj.constprop.0.isra.0
	movq	24(%rsp), %rsi
	leaq	64(%rsp), %rdi
	call	_Z17cudaMallocManagedIiE9cudaErrorPPT_mj.constprop.0.isra.0
	movq	24(%rsp), %rsi
	leaq	72(%rsp), %rdi
	call	_Z17cudaMallocManagedIiE9cudaErrorPPT_mj.constprop.0.isra.0
	movslq	12(%rsp), %rbp
	leaq	80(%rsp), %rdi
	salq	$2, %rbp
	movq	%rbp, %rsi
	call	_Z17cudaMallocManagedIiE9cudaErrorPPT_mj.constprop.0.isra.0
	leaq	88(%rsp), %rdi
	movq	%rbp, %rsi
	call	_Z17cudaMallocManagedIiE9cudaErrorPPT_mj.constprop.0.isra.0
	leaq	96(%rsp), %rdi
	movq	%rbp, %rsi
	xorl	%ebp, %ebp
	call	_Z17cudaMallocManagedIiE9cudaErrorPPT_mj.constprop.0.isra.0
	movq	24(%rsp), %rsi
	leaq	112(%rsp), %rdi
	call	_Z17cudaMallocManagedIiE9cudaErrorPPT_mj.constprop.0.isra.0
	movq	24(%rsp), %rsi
	leaq	104(%rsp), %rdi
	call	_Z17cudaMallocManagedIiE9cudaErrorPPT_mj.constprop.0.isra.0
	leaq	120(%rsp), %rdi
	movl	$4, %esi
	call	_Z17cudaMallocManagedIiE9cudaErrorPPT_mj.constprop.0.isra.0
	movq	120(%rsp), %rax
	movq	96(%rsp), %rcx
	movq	88(%rsp), %rdx
	movq	80(%rsp), %rsi
	movl	%ebp, (%rax)
	movl	12(%rsp), %edi
	call	_Z15random_hash_funiPiS_S_
	movq	64(%rsp), %rsi
	movl	%r15d, %edi
	call	_Z20random_hash_elementsiPi
	movq	64(%rsp), %rbp
	pushq	%r14
	.cfi_def_cfa_offset 232
	movq	%r13, %r9
	movl	28(%rsp), %eax
	movl	%r15d, %esi
	pushq	%rax
	.cfi_def_cfa_offset 240
	movq	112(%rsp), %rax
	movl	(%rax), %eax
	pushq	%rax
	.cfi_def_cfa_offset 248
	movq	112(%rsp), %rax
	movl	(%rax), %eax
	pushq	%rax
	.cfi_def_cfa_offset 256
	movq	112(%rsp), %rax
	movl	(%rax), %eax
	pushq	%rax
	.cfi_def_cfa_offset 264
	pushq	%rbp
	.cfi_def_cfa_offset 272
	movq	120(%rsp), %r8
	movq	104(%rsp), %rcx
	movq	96(%rsp), %rdx
	movl	64(%rsp), %edi
	call	_Z10initializeiiPiS_S_S_S_iiii
	addq	$48, %rsp
	.cfi_def_cfa_offset 224
	xorl	%edx, %edx
	movq	%rbp, %rsi
	leal	-1(%r15), %ecx
	movq	%r13, %rdi
	call	_Z9quicksortPiS_ii
	movl	%r15d, %eax
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	cltd
	movl	%ebx, 140(%rsp)
	movabsq	$4294967297, %rcx
	idivl	%ebx
	movq	%rcx, 132(%rsp)
	movl	136(%rsp), %esi
	movq	%rcx, 144(%rsp)
	movl	148(%rsp), %ecx
	movq	140(%rsp), %rdx
	movl	%eax, 128(%rsp)
	movq	128(%rsp), %rdi
	movl	%eax, %ebp
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L73
	pushq	%r11
	.cfi_def_cfa_offset 232
	movl	%r15d, %edx
	pushq	104(%rsp)
	.cfi_def_cfa_offset 240
	pushq	104(%rsp)
	.cfi_def_cfa_offset 248
	pushq	104(%rsp)
	.cfi_def_cfa_offset 256
	pushq	104(%rsp)
	.cfi_def_cfa_offset 264
	pushq	104(%rsp)
	.cfi_def_cfa_offset 272
	movq	104(%rsp), %r9
	movq	96(%rsp), %r8
	movl	60(%rsp), %ecx
	movl	64(%rsp), %esi
	movl	68(%rsp), %edi
	call	_Z42__device_stub__Z7add_twoiiiiPiS_S_S_S_S_S_iiiiPiS_S_S_S_S_S_
	addq	$48, %rsp
	.cfi_def_cfa_offset 224
	jmp	.L73
.L72:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L111
	call	__cxa_throw_bad_array_new_length@PLT
.L73:
	call	cudaDeviceSynchronize@PLT
	movl	%ebx, 140(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movabsq	$4294967297, %rax
	movl	%ebp, 128(%rsp)
	movq	%rax, 144(%rsp)
	movl	148(%rsp), %ecx
	movq	%rax, 132(%rsp)
	movq	140(%rsp), %rdx
	movq	128(%rsp), %rdi
	movl	136(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L76
	pushq	%r10
	.cfi_def_cfa_offset 232
	movl	%r15d, %edx
	pushq	104(%rsp)
	.cfi_def_cfa_offset 240
	pushq	104(%rsp)
	.cfi_def_cfa_offset 248
	pushq	104(%rsp)
	.cfi_def_cfa_offset 256
	pushq	104(%rsp)
	.cfi_def_cfa_offset 264
	pushq	104(%rsp)
	.cfi_def_cfa_offset 272
	movq	104(%rsp), %r9
	movq	96(%rsp), %r8
	movl	60(%rsp), %ecx
	movl	64(%rsp), %esi
	movl	68(%rsp), %edi
	call	_Z48__device_stub__Z12fix_locationiiiiPiS_S_S_S_S_S_iiiiPiS_S_S_S_S_S_
	addq	$48, %rsp
	.cfi_def_cfa_offset 224
.L76:
	call	cudaDeviceSynchronize@PLT
	xorl	%r14d, %r14d
	movabsq	$4294967297, %r13
.L77:
	cmpl	%r12d, %r14d
	jge	.L84
	movq	120(%rsp), %rax
	xorl	%r9d, %r9d
	movq	%r13, 144(%rsp)
	xorl	%r8d, %r8d
	movq	%r13, 132(%rsp)
	movl	148(%rsp), %ecx
	movl	%r9d, (%rax)
	movl	136(%rsp), %esi
	xorl	%r9d, %r9d
	movl	%ebx, 140(%rsp)
	movq	140(%rsp), %rdx
	movl	%ebp, 128(%rsp)
	movq	128(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L78
	pushq	%r8
	.cfi_def_cfa_offset 232
	movl	%r15d, %edx
	pushq	%r12
	.cfi_def_cfa_offset 240
	pushq	112(%rsp)
	.cfi_def_cfa_offset 248
	pushq	112(%rsp)
	.cfi_def_cfa_offset 256
	pushq	112(%rsp)
	.cfi_def_cfa_offset 264
	pushq	112(%rsp)
	.cfi_def_cfa_offset 272
	movq	112(%rsp), %r9
	movq	96(%rsp), %r8
	movl	60(%rsp), %ecx
	movl	64(%rsp), %esi
	movl	68(%rsp), %edi
	call	_Z40__device_stub__Z6insertiiiiPiS_S_S_S_S_iiiiiPiS_S_S_S_S_i
	addq	$48, %rsp
	.cfi_def_cfa_offset 224
.L78:
	call	cudaDeviceSynchronize@PLT
	movq	%r13, 144(%rsp)
	xorl	%r9d, %r9d
	movl	148(%rsp), %ecx
	movq	%r13, 132(%rsp)
	movl	136(%rsp), %esi
	xorl	%r8d, %r8d
	movl	%ebx, 140(%rsp)
	movq	140(%rsp), %rdx
	movl	%ebp, 128(%rsp)
	movq	128(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L79
	pushq	120(%rsp)
	.cfi_def_cfa_offset 232
	movl	%r15d, %edx
	pushq	%r12
	.cfi_def_cfa_offset 240
	pushq	112(%rsp)
	.cfi_def_cfa_offset 248
	pushq	112(%rsp)
	.cfi_def_cfa_offset 256
	pushq	112(%rsp)
	.cfi_def_cfa_offset 264
	pushq	112(%rsp)
	.cfi_def_cfa_offset 272
	movq	112(%rsp), %r9
	movq	96(%rsp), %r8
	movl	60(%rsp), %ecx
	movl	64(%rsp), %esi
	movl	68(%rsp), %edi
	call	_Z41__device_stub__Z5checkiiiiPiS_S_S_S_S_iS_iiiiPiS_S_S_S_S_iS_
	addq	$48, %rsp
	.cfi_def_cfa_offset 224
.L79:
	call	cudaDeviceSynchronize@PLT
	movq	120(%rsp), %rax
	cmpl	$0, (%rax)
	jne	.L80
.L84:
	movabsq	$4294967297, %rax
	movl	%ebx, 140(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rax, 144(%rsp)
	movl	148(%rsp), %ecx
	movq	%rax, 132(%rsp)
	movq	140(%rsp), %rdx
	movl	%ebp, 128(%rsp)
	movl	136(%rsp), %esi
	movq	128(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L81
	pushq	120(%rsp)
	.cfi_def_cfa_offset 232
	movl	%r15d, %edx
	pushq	%r12
	.cfi_def_cfa_offset 240
	pushq	112(%rsp)
	.cfi_def_cfa_offset 248
	pushq	112(%rsp)
	.cfi_def_cfa_offset 256
	pushq	112(%rsp)
	.cfi_def_cfa_offset 264
	pushq	112(%rsp)
	.cfi_def_cfa_offset 272
	movq	112(%rsp), %r9
	movq	96(%rsp), %r8
	movl	60(%rsp), %ecx
	movl	64(%rsp), %esi
	movl	68(%rsp), %edi
	call	_Z41__device_stub__Z5checkiiiiPiS_S_S_S_S_iS_iiiiPiS_S_S_S_S_iS_
	addq	$48, %rsp
	.cfi_def_cfa_offset 224
	jmp	.L81
.L80:
	incl	%r14d
	jmp	.L77
.L81:
	call	cudaDeviceSynchronize@PLT
	xorl	%r14d, %r14d
	movabsq	$4294967297, %r13
.L85:
	movq	120(%rsp), %rax
	cmpl	$-1, (%rax)
	jne	.L103
	cmpl	$1000, %r14d
	je	.L103
	movq	96(%rsp), %rcx
	movq	88(%rsp), %rdx
	movq	80(%rsp), %rsi
	movl	12(%rsp), %edi
	call	_Z15random_hash_funiPiS_S_
	movq	%r13, 144(%rsp)
	xorl	%r9d, %r9d
	movl	148(%rsp), %ecx
	movq	%r13, 132(%rsp)
	movl	136(%rsp), %esi
	xorl	%r8d, %r8d
	movl	%ebx, 140(%rsp)
	movq	140(%rsp), %rdx
	movl	%ebp, 128(%rsp)
	movq	128(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L86
	pushq	%rdi
	.cfi_def_cfa_offset 232
	movl	%r15d, %edx
	pushq	104(%rsp)
	.cfi_def_cfa_offset 240
	pushq	104(%rsp)
	.cfi_def_cfa_offset 248
	pushq	104(%rsp)
	.cfi_def_cfa_offset 256
	pushq	104(%rsp)
	.cfi_def_cfa_offset 264
	pushq	104(%rsp)
	.cfi_def_cfa_offset 272
	movq	104(%rsp), %r9
	movq	96(%rsp), %r8
	movl	60(%rsp), %ecx
	movl	64(%rsp), %esi
	movl	68(%rsp), %edi
	call	_Z42__device_stub__Z7add_twoiiiiPiS_S_S_S_S_S_iiiiPiS_S_S_S_S_S_
	addq	$48, %rsp
	.cfi_def_cfa_offset 224
.L86:
	call	cudaDeviceSynchronize@PLT
	movq	%r13, 144(%rsp)
	xorl	%r9d, %r9d
	movl	148(%rsp), %ecx
	movq	%r13, 132(%rsp)
	movl	136(%rsp), %esi
	xorl	%r8d, %r8d
	movl	%ebx, 140(%rsp)
	movq	140(%rsp), %rdx
	movl	%ebp, 128(%rsp)
	movq	128(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L87
	pushq	%rsi
	.cfi_def_cfa_offset 232
	movl	%r15d, %edx
	pushq	104(%rsp)
	.cfi_def_cfa_offset 240
	pushq	104(%rsp)
	.cfi_def_cfa_offset 248
	pushq	104(%rsp)
	.cfi_def_cfa_offset 256
	pushq	104(%rsp)
	.cfi_def_cfa_offset 264
	pushq	104(%rsp)
	.cfi_def_cfa_offset 272
	movq	104(%rsp), %r9
	movq	96(%rsp), %r8
	movl	60(%rsp), %ecx
	movl	64(%rsp), %esi
	movl	68(%rsp), %edi
	call	_Z48__device_stub__Z12fix_locationiiiiPiS_S_S_S_S_S_iiiiPiS_S_S_S_S_S_
	addq	$48, %rsp
	.cfi_def_cfa_offset 224
.L87:
	call	cudaDeviceSynchronize@PLT
	xorl	%ecx, %ecx
	movl	%ecx, 40(%rsp)
.L88:
	cmpl	%r12d, 40(%rsp)
	jge	.L95
	xorl	%edx, %edx
	movq	%r13, 144(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	120(%rsp), %rax
	movq	%r13, 132(%rsp)
	movl	%ebx, 140(%rsp)
	movl	148(%rsp), %ecx
	movl	%edx, (%rax)
	movl	136(%rsp), %esi
	movl	%ebp, 128(%rsp)
	movq	140(%rsp), %rdx
	movq	128(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L89
	pushq	%rax
	.cfi_def_cfa_offset 232
	movl	%r15d, %edx
	pushq	%r12
	.cfi_def_cfa_offset 240
	pushq	112(%rsp)
	.cfi_def_cfa_offset 248
	pushq	112(%rsp)
	.cfi_def_cfa_offset 256
	pushq	112(%rsp)
	.cfi_def_cfa_offset 264
	pushq	112(%rsp)
	.cfi_def_cfa_offset 272
	movq	112(%rsp), %r9
	movq	96(%rsp), %r8
	movl	60(%rsp), %ecx
	movl	64(%rsp), %esi
	movl	68(%rsp), %edi
	call	_Z40__device_stub__Z6insertiiiiPiS_S_S_S_S_iiiiiPiS_S_S_S_S_i
	addq	$48, %rsp
	.cfi_def_cfa_offset 224
.L89:
	call	cudaDeviceSynchronize@PLT
	movq	%r13, 144(%rsp)
	xorl	%r9d, %r9d
	movl	148(%rsp), %ecx
	movq	%r13, 132(%rsp)
	movl	136(%rsp), %esi
	xorl	%r8d, %r8d
	movl	%ebx, 140(%rsp)
	movq	140(%rsp), %rdx
	movl	%ebp, 128(%rsp)
	movq	128(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L90
	pushq	120(%rsp)
	.cfi_def_cfa_offset 232
	movl	%r15d, %edx
	pushq	%r12
	.cfi_def_cfa_offset 240
	pushq	112(%rsp)
	.cfi_def_cfa_offset 248
	pushq	112(%rsp)
	.cfi_def_cfa_offset 256
	pushq	112(%rsp)
	.cfi_def_cfa_offset 264
	pushq	112(%rsp)
	.cfi_def_cfa_offset 272
	movq	112(%rsp), %r9
	movq	96(%rsp), %r8
	movl	60(%rsp), %ecx
	movl	64(%rsp), %esi
	movl	68(%rsp), %edi
	call	_Z41__device_stub__Z5checkiiiiPiS_S_S_S_S_iS_iiiiPiS_S_S_S_S_iS_
	addq	$48, %rsp
	.cfi_def_cfa_offset 224
.L90:
	call	cudaDeviceSynchronize@PLT
	movq	120(%rsp), %rax
	cmpl	$0, (%rax)
	jne	.L91
.L95:
	movq	%r13, 144(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	148(%rsp), %ecx
	movq	%r13, 132(%rsp)
	movl	136(%rsp), %esi
	movl	%ebx, 140(%rsp)
	movq	140(%rsp), %rdx
	movl	%ebp, 128(%rsp)
	movq	128(%rsp), %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L92
	pushq	120(%rsp)
	.cfi_def_cfa_offset 232
	movl	%r15d, %edx
	pushq	%r12
	.cfi_def_cfa_offset 240
	pushq	112(%rsp)
	.cfi_def_cfa_offset 248
	pushq	112(%rsp)
	.cfi_def_cfa_offset 256
	pushq	112(%rsp)
	.cfi_def_cfa_offset 264
	pushq	112(%rsp)
	.cfi_def_cfa_offset 272
	movq	112(%rsp), %r9
	movq	96(%rsp), %r8
	movl	60(%rsp), %ecx
	movl	64(%rsp), %esi
	movl	68(%rsp), %edi
	call	_Z41__device_stub__Z5checkiiiiPiS_S_S_S_S_iS_iiiiPiS_S_S_S_S_iS_
	addq	$48, %rsp
	.cfi_def_cfa_offset 224
	jmp	.L92
.L91:
	incl	40(%rsp)
	jmp	.L88
.L92:
	call	cudaDeviceSynchronize@PLT
	incl	%r14d
	jmp	.L85
.L103:
	movq	64(%rsp), %rdx
	movq	112(%rsp), %rsi
	movl	%r15d, %edi
	movss	44(%rsp), %xmm0
	call	_Z23generating_find_elementiPiS_f
	call	clock@PLT
	movl	%ebx, 140(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rax, %r12
	movl	%ebp, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 144(%rsp)
	movl	148(%rsp), %ecx
	movq	%rax, 132(%rsp)
	movq	140(%rsp), %rdx
	movq	128(%rsp), %rdi
	movl	136(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L98
	pushq	104(%rsp)
	.cfi_def_cfa_offset 232
	movl	%r15d, %edx
	pushq	104(%rsp)
	.cfi_def_cfa_offset 240
	pushq	104(%rsp)
	.cfi_def_cfa_offset 248
	pushq	104(%rsp)
	.cfi_def_cfa_offset 256
	movq	144(%rsp), %r9
	movq	80(%rsp), %r8
	movl	44(%rsp), %ecx
	movl	48(%rsp), %esi
	movl	52(%rsp), %edi
	call	_Z37__device_stub__Z4findiiiiPiS_S_S_S_S_iiiiPiS_S_S_S_S_
	addq	$32, %rsp
	.cfi_def_cfa_offset 224
.L98:
	call	cudaDeviceSynchronize@PLT
	leaq	_ZSt4cout(%rip), %rbp
	call	clock@PLT
	leaq	.LC2(%rip), %rsi
	movq	%rbp, %rdi
	subq	%r12, %rax
	xorl	%r12d, %r12d
	cvtsi2sdq	%rax, %xmm0
	divsd	.LC1(%rip), %xmm0
	movq	%xmm0, %rbx
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rbx, %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	48(%rsp), %rdi
	movq	32(%rsp), %rdx
	movl	$2, %ecx
	movq	%rdi, %rsi
	call	cudaMemcpy@PLT
	movq	64(%rsp), %rdi
	movq	24(%rsp), %rdx
	movl	$2, %ecx
	movq	%rdi, %rsi
	call	cudaMemcpy@PLT
	movq	104(%rsp), %rdi
	movq	24(%rsp), %rdx
	movl	$2, %ecx
	movq	%rdi, %rsi
	call	cudaMemcpy@PLT
	movq	104(%rsp), %rdx
	xorl	%eax, %eax
.L99:
	cmpl	%eax, %r15d
	jle	.L112
	cmpl	$1, (%rdx,%rax,4)
	jne	.L100
	incl	%r12d
.L100:
	incq	%rax
	jmp	.L99
.L112:
	leaq	.LC3(%rip), %rsi
	movq	%rbp, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%r15d, %esi
	subl	%r12d, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	48(%rsp), %rdi
	call	cudaFree@PLT
	movq	64(%rsp), %rdi
	call	cudaFree@PLT
	movq	104(%rsp), %rdi
	call	cudaFree@PLT
	movq	80(%rsp), %rdi
	call	cudaFree@PLT
	movq	88(%rsp), %rdi
	call	cudaFree@PLT
	movq	96(%rsp), %rdi
	call	cudaFree@PLT
	movq	56(%rsp), %rdi
	call	cudaFree@PLT
	movq	72(%rsp), %rdi
	call	cudaFree@PLT
	movq	120(%rsp), %rdi
	call	cudaFree@PLT
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L102
.L111:
	call	__stack_chk_fail@PLT
.L102:
	addq	$168, %rsp
	.cfi_def_cfa_offset 56
	movq	%rbx, %xmm0
	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
.LFE3642:
	.size	_Z4onceiiiiiifi, .-_Z4onceiiiiiifi
	.section	.rodata.str1.1
.LC4:
	.string	"Data Bit: "
.LC5:
	.string	"Find partial: "
.LC6:
	.string	"Hash table size (0 for 2^25): "
.LC7:
	.string	"Evict Chain Constant: "
.LC11:
	.string	"Average Time: "
.LC12:
	.string	"Million of insertion per second: "
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB3643:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC4(%rip), %rsi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	_ZSt4cout(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	_ZSt3cin(%rip), %rbx
	subq	$48, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rbx, %rdi
	leaq	24(%rsp), %rsi
	call	_ZNSirsERi@PLT
	leaq	.LC5(%rip), %rsi
	movq	%r13, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rbx, %rdi
	leaq	32(%rsp), %rsi
	call	_ZNSi10_M_extractIfEERSiRT_@PLT
	leaq	.LC6(%rip), %rsi
	movq	%r13, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rbx, %rdi
	leaq	28(%rsp), %rsi
	call	_ZNSi10_M_extractIfEERSiRT_@PLT
	leaq	.LC7(%rip), %rsi
	movq	%r13, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rbx, %rdi
	leaq	36(%rsp), %rsi
	movl	$1, %ebx
	call	_ZNSirsERi@PLT
	movl	24(%rsp), %r12d
	movss	28(%rsp), %xmm1
	xorps	%xmm0, %xmm0
	movl	%r12d, %ecx
	sall	%cl, %ebx
	ucomiss	%xmm0, %xmm1
	jp	.L120
	movl	$33554432, %ebp
	je	.L114
.L120:
	cvtsi2ssl	%ebx, %xmm0
	mulss	%xmm1, %xmm0
	cvttss2sil	%xmm0, %ebp
.L114:
	cvtsi2sdl	36(%rsp), %xmm2
	cvtsi2sdl	%ebp, %xmm0
	movsd	%xmm2, 8(%rsp)
	call	log@PLT
	mulsd	8(%rsp), %xmm0
	movl	%ebx, %ecx
	movl	%ebp, %esi
	cmpl	$18, %r12d
	movl	$1024, %eax
	movl	$64, %r12d
	movl	$1, %r9d
	cmovge	%eax, %r12d
	pushq	%rax
	.cfi_def_cfa_offset 104
	movl	$3, %edx
	movl	$99984923, %edi
	pushq	%r12
	.cfi_def_cfa_offset 112
	cvttsd2sil	%xmm0, %r14d
	movss	48(%rsp), %xmm0
	movl	%r14d, %r8d
	call	_Z4onceiiiiiifi
	movl	$2, %r9d
	movl	%r14d, %r8d
	movl	%ebx, %ecx
	movaps	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
	movl	$3, %edx
	movl	%ebp, %esi
	addsd	%xmm0, %xmm1
	movss	48(%rsp), %xmm0
	movl	$99984923, %edi
	movl	%r12d, (%rsp)
	movsd	%xmm1, 24(%rsp)
	call	_Z4onceiiiiiifi
	addsd	24(%rsp), %xmm0
	movl	%r14d, %r8d
	movl	%ebx, %ecx
	movl	$3, %edx
	movl	%ebp, %esi
	movl	$99984923, %edi
	movl	%r12d, (%rsp)
	movl	$3, %r9d
	movsd	%xmm0, 24(%rsp)
	movss	48(%rsp), %xmm0
	call	_Z4onceiiiiiifi
	addsd	24(%rsp), %xmm0
	movl	%r14d, %r8d
	movl	%ebx, %ecx
	movl	$3, %edx
	movl	%ebp, %esi
	movl	$99984923, %edi
	movl	%r12d, (%rsp)
	movl	$4, %r9d
	movsd	%xmm0, 24(%rsp)
	movss	48(%rsp), %xmm0
	call	_Z4onceiiiiiifi
	addsd	24(%rsp), %xmm0
	movl	%r14d, %r8d
	movl	%ebx, %ecx
	movl	$3, %edx
	movl	%ebp, %esi
	movl	$99984923, %edi
	movl	%r12d, (%rsp)
	movl	$5, %r9d
	movsd	%xmm0, 24(%rsp)
	movss	48(%rsp), %xmm0
	call	_Z4onceiiiiiifi
	leaq	.LC11(%rip), %rsi
	movq	%r13, %rdi
	addsd	24(%rsp), %xmm0
	divsd	.LC10(%rip), %xmm0
	movsd	%xmm0, 24(%rsp)
	popq	%rdx
	.cfi_def_cfa_offset 104
	popq	%rcx
	.cfi_def_cfa_offset 96
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	8(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC12(%rip), %rsi
	movq	%r13, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	cvtsi2sdl	%ebx, %xmm0
	divsd	8(%rsp), %xmm0
	divsd	.LC1(%rip), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	je	.L117
	call	__stack_chk_fail@PLT
.L117:
	addq	$48, %rsp
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3643:
	.size	main, .-main
	.text
	.globl	_Z46__device_stub__Z10delete_eleiiiiPiS_S_S_S_S_S_iiiiPiS_S_S_S_S_S_
	.type	_Z46__device_stub__Z10delete_eleiiiiPiS_S_S_S_S_S_iiiiPiS_S_S_S_S_S_, @function
_Z46__device_stub__Z10delete_eleiiiiPiS_S_S_S_S_S_iiiiPiS_S_S_S_S_S_:
.LFB3678:
	.cfi_startproc
	endbr64
	subq	$248, %rsp
	.cfi_def_cfa_offset 256
	movq	256(%rsp), %rax
	movl	%edi, 76(%rsp)
	leaq	96(%rsp), %rdi
	movl	%esi, 72(%rsp)
	leaq	108(%rsp), %rsi
	movq	%rax, 40(%rsp)
	movq	264(%rsp), %rax
	movl	%edx, 68(%rsp)
	leaq	80(%rsp), %rdx
	movq	%rax, 32(%rsp)
	movq	272(%rsp), %rax
	movl	%ecx, 64(%rsp)
	leaq	88(%rsp), %rcx
	movq	%rax, 24(%rsp)
	movq	280(%rsp), %rax
	movq	%r8, 56(%rsp)
	movq	%rax, 16(%rsp)
	movq	288(%rsp), %rax
	movq	%r9, 48(%rsp)
	movq	%rax, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	76(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	68(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 208(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 216(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 224(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 96(%rsp)
	movl	$1, 104(%rsp)
	movq	%rax, 108(%rsp)
	movl	$1, 116(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L122
	pushq	88(%rsp)
	.cfi_def_cfa_offset 264
	leaq	_Z10delete_eleiiiiPiS_S_S_S_S_S_(%rip), %rdi
	pushq	88(%rsp)
	.cfi_def_cfa_offset 272
	movq	124(%rsp), %rcx
	movl	132(%rsp), %r8d
	movq	112(%rsp), %rsi
	movl	120(%rsp), %edx
	leaq	160(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 264
	popq	%rdx
	.cfi_def_cfa_offset 256
.L122:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	je	.L124
	call	__stack_chk_fail@PLT
.L124:
	addq	$248, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3678:
	.size	_Z46__device_stub__Z10delete_eleiiiiPiS_S_S_S_S_S_iiiiPiS_S_S_S_S_S_, .-_Z46__device_stub__Z10delete_eleiiiiPiS_S_S_S_S_S_iiiiPiS_S_S_S_S_S_
	.globl	_Z10delete_eleiiiiPiS_S_S_S_S_S_
	.type	_Z10delete_eleiiiiPiS_S_S_S_S_S_, @function
_Z10delete_eleiiiiPiS_S_S_S_S_S_:
.LFB3679:
	.cfi_startproc
	endbr64
	jmp	_Z46__device_stub__Z10delete_eleiiiiPiS_S_S_S_S_S_iiiiPiS_S_S_S_S_S_
	.cfi_endproc
.LFE3679:
	.size	_Z10delete_eleiiiiPiS_S_S_S_S_S_, .-_Z10delete_eleiiiiPiS_S_S_S_S_S_
	.section	.rodata.str1.1
.LC13:
	.string	"_Z10delete_eleiiiiPiS_S_S_S_S_S_"
.LC14:
	.string	"_Z4findiiiiPiS_S_S_S_S_"
.LC15:
	.string	"_Z6insertiiiiPiS_S_S_S_S_i"
.LC16:
	.string	"_Z5checkiiiiPiS_S_S_S_S_iS_"
.LC17:
	.string	"_Z12fix_locationiiiiPiS_S_S_S_S_S_"
.LC18:
	.string	"_Z7add_twoiiiiPiS_S_S_S_S_S_"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB3681:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC13(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z10delete_eleiiiiPiS_S_S_S_S_S_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC14(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z4findiiiiPiS_S_S_S_S_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC15(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z6insertiiiiPiS_S_S_S_S_i(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC16(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z5checkiiiiPiS_S_S_S_S_iS_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC17(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z12fix_locationiiiiPiS_S_S_S_S_S_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC18(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z7add_twoiiiiPiS_S_S_S_S_S_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE3681:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1093567616
	.align 8
.LC10:
	.long	0
	.long	1075052544
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <iostream>
#include <cmath>
#include <cstdlib>
#include <cstdio>
#include <hip/hip_runtime.h>
#include <ctime>

using namespace std;

__device__ int hashing_d (int element, int a, int b, int c, int p, int n){
	return (unsigned int)(a * element + b) % p % n;
}


int hashing (int element, int a, int b, int c, int p, int n){
	return (unsigned int)(a * element + b) % p % n;
}

__global__ void add_two(int p, int n, int N, int t, int* hash_table, int* hash_table2, int* hash_elements, int* func_table, int* a, int* b, int* c){
	int i = threadIdx.x + blockDim.x * blockIdx.x;
	int func1 = 0;
	int func2 = 1;
	int func3 = 2;
	int hash_element = hash_elements[i];
	unsigned int loca1 = hashing_d(hash_element, a[func1], b[func1], c[func1], p, n);
	unsigned int loca2 = hashing_d(hash_element, a[func2], b[func2], c[func2], p, n);
	unsigned int loca3 = hashing_d(hash_element, a[func3], b[func3], c[func3], p, n);
	atomicAdd(&hash_table2[(unsigned int)loca1], 1);
	atomicAdd(&hash_table2[(unsigned int)loca2], 1);
	atomicAdd(&hash_table2[(unsigned int)loca3], 1);
}

__global__ void fix_location(int p, int n, int N, int t, int* hash_table, int* hash_table2, int* hash_elements, int* func_table, int* a, int* b, int* c){
	int i = threadIdx.x + blockDim.x * blockIdx.x;
	int func1 = 0;
	int func2 = 1;
	int func3 = 2;
	int hash_element = hash_elements[i];
	unsigned int loca1 = hashing_d(hash_element, a[func1], b[func1], c[func1], p, n);
	unsigned int loca2 = hashing_d(hash_element, a[func2], b[func2], c[func2], p, n);
	unsigned int loca3 = hashing_d(hash_element, a[func3], b[func3], c[func3], p, n);
	if (hash_table2[(unsigned int)loca1] == 1){
		func_table[i] = 0;
	}
	if (hash_table2[(unsigned int)loca2] == 1){
		func_table[i] = 1;
	}
	if (hash_table2[(unsigned int)loca3] == 1){
		func_table[i] = 2;
	}
}

__global__ void check(int p, int n, int N, int t, int* hash_table, int* hash_elements, int* func_table, int* a, int* b, int* c, int max_count, int *indicator){
	int i = threadIdx.x + blockDim.x * blockIdx.x;
	int curr_func = func_table[i];
	int hash_element = hash_elements[i];
	unsigned int loca = hashing_d(hash_element, a[curr_func], b[curr_func], c[curr_func], p, n);
	if (hash_table[(unsigned int)loca] != hash_element){
		*indicator = -1;
	}
}

__global__ void insert(int p, int n, int N, int t, int* hash_table, int* hash_elements, int* func_table, int* a, int* b, int* c, int max_count){
	int i = threadIdx.x + blockDim.x * blockIdx.x;
	if (i < N){
		int curr_func = func_table[i];
		int hash_element = hash_elements[i];
		unsigned int loca = hashing_d(hash_element, a[curr_func], b[curr_func], c[curr_func], p, n);

		//hash_table[(unsigned int)loca] = hash_element;
		if (hash_table[(unsigned int)loca] != hash_element){
			func_table[i] = (curr_func + 1) % t;
			curr_func = (curr_func + 1) % t;
			loca = hashing_d(hash_element, a[curr_func], b[curr_func], c[curr_func], p, n);
			hash_table[(unsigned int)loca] = hash_element;
		}
	/*for (int j = 0; j < max_count; j++){
		if (hash_table[(unsigned int)loca] != hash_element){
			func_table[i] = (curr_func + 1) % t;
			curr_func = (curr_func + 1) % t;
			loca = ((unsigned int)(a[curr_func] * hash_element + b[curr_func]) % p % n);
			hash_table[(unsigned int)loca] = hash_element;
		}
		__syncthreads();
	}*/

	}

}




__global__ void find(int p, int n, int N, int t, int* hash_table, int* find_elements, int* a, int* b, int* c, int* find_result){
	int i = threadIdx.x + blockDim.x * blockIdx.x;
	int find = 0;
	for (int j = 0; j < t; j++){
		if (hash_table[hashing_d(find_elements[i], a[j], b[j], c[j], p, n)] == find_elements[i]){
			find = 1;
		}
	}
	find_result[i] = find;
}



__global__ void delete_ele(int p, int n, int N, int t, int* hash_table, int* fun_index_table,int* delete_elements, int* a, int* b, int* c, int* find_result){
	int i = threadIdx.x + blockDim.x * blockIdx.x;
	for (int j = 0; j < t; j++){
		if (hash_table[hashing_d(delete_elements[i], a[j], b[j], c[j], p, n)] == delete_elements[i]){
			hash_table[hashing_d(delete_elements[i], a[j], b[j], c[j], p, n)] = 0;
			fun_index_table[hashing_d(delete_elements[i], a[j], b[j], c[j], p, n)] = t;
		}
	}
}

void random_hash_fun(int t, int* a, int* b, int* c){
	for (int i = 0; i < t; i++){
		a[i] = rand();
		b[i] = rand();
		c[i] = rand();
	}
	return;
}

void random_hash_elements(int N, int* hash_elements){
	for (int i = 0; i < N; i++){
		hash_elements[i] = rand() % (1 << 27);
	}
	return;
}

void initialize(int n, int N, int* hash_table, int* hash_table2, int* func_table, int* hash_value, int* hash_elements, int a, int b, int c, int p ){
	for (int i = 0; i < n; i++){
		hash_table[i] = 0;
		hash_table2[i] = 0;
	}
	for (int i = 0; i < N; i++){
		int loca = hashing(hash_elements[i], a, b, c, p, n);
		hash_value[i] = loca;
		func_table[i] = 0;
	}
}



void generating_find_element(int N, int* find_elements, int* hash_element, float partial){
	for (int i = 0; i < (int) (N * partial); i++){
		find_elements[i] = hash_element[i];
	}

	for (int i = (int) (N * partial); i < N; i++){
		find_elements[i] = rand() % (1 << 27);
	}
}

void quicksort(int * hash_value, int* hash_elements, int low, int high)
{
    if(low >= high){
        return;
    }
    int first = low;
    int last = high;
    int key = hash_value[first];
    int key1 = hash_elements[first];
    while(first < last){
        while(first < last && hash_value[last] >= key){
        	--last;
        }

        hash_value[first] = hash_value[last];
        hash_elements[first] = hash_elements[last];
 
        while(first < last && hash_value[first] <= key){
            ++first;
        }
        hash_value[last] = hash_value[first]; 
        hash_elements[last] = hash_elements[first];    
    }
    hash_value[first] = key;
    hash_elements[first] = key1;
    quicksort(hash_value, hash_elements, low, first-1);
    quicksort(hash_value, hash_elements, first+1, high);
}


double once(int p, int n, int t, int N, int max_count, int trail, float partial, int thread_per_block){
	cout << "Trail: " << trail << endl;
	int* hash_table;
	int* hash_table2;
	int* hash_elements;
	int* func_table;
	int* a;
	int* b;
	int* c;
	int* find_result; 
	int* find_elements; 
	int* indicator;
	int count = 0;
	int* hash_value = new int [N];

	hipMallocManaged(&hash_table, n * sizeof(int));
	hipMallocManaged(&hash_table2, n * sizeof(int));
	hipMallocManaged(&hash_elements, N * sizeof(int));
	hipMallocManaged(&func_table, N * sizeof(int));
	hipMallocManaged(&a, t * sizeof(int));
	hipMallocManaged(&b, t * sizeof(int));
	hipMallocManaged(&c, t * sizeof(int));
	hipMallocManaged(&find_elements, N * sizeof(int));
	hipMallocManaged(&find_result, N * sizeof(int));
	hipMallocManaged(&indicator, sizeof(int));

	*indicator = 0;


	random_hash_fun(t, a, b, c);
	random_hash_elements(N, hash_elements);
	initialize(n, N, hash_table, hash_table2, func_table, hash_value, hash_elements, a[0], b[0], c[0], p);


	quicksort(hash_value, hash_elements, 0, N - 1);

	add_two<<< ceil(N / thread_per_block), thread_per_block>>>(p, n, N, t, hash_table, hash_table2, hash_elements, func_table, a, b, c);
	hipDeviceSynchronize();
	fix_location<<< ceil(N / thread_per_block), thread_per_block>>>(p, n, N, t, hash_table, hash_table2, hash_elements, func_table, a, b, c);
	hipDeviceSynchronize();


	for (count = 0; count < max_count; count ++){
		*indicator = 0;
		insert<<< ceil(N / thread_per_block), thread_per_block>>>(p, n, N, t, hash_table, hash_elements, func_table, a, b, c, max_count);
		hipDeviceSynchronize();
		check<<< ceil(N / thread_per_block), thread_per_block>>>(p, n, N, t, hash_table, hash_elements, func_table, a, b, c, max_count, indicator);
		hipDeviceSynchronize();
		if (*indicator == 0){
			break;
		}
	}

	check<<< ceil(N / thread_per_block), thread_per_block>>>(p, n, N, t, hash_table, hash_elements, func_table, a, b, c, max_count, indicator);
	hipDeviceSynchronize();

	int count1 = 0;
	while (*indicator == -1 && count1 < 1000){
		random_hash_fun(t, a, b, c);
		add_two<<< ceil(N / thread_per_block), thread_per_block>>>(p, n, N, t, hash_table, hash_table2, hash_elements, func_table, a, b, c);
		hipDeviceSynchronize();
		fix_location<<< ceil(N / thread_per_block), thread_per_block>>>(p, n, N, t, hash_table, hash_table2, hash_elements, func_table, a, b, c);
		hipDeviceSynchronize();

		for (count = 0; count < max_count; count ++){
			*indicator = 0;
			insert<<< ceil(N / thread_per_block), thread_per_block>>>(p, n, N, t, hash_table, hash_elements, func_table, a, b, c, max_count);
			hipDeviceSynchronize();
			check<<< ceil(N / thread_per_block), thread_per_block>>>(p, n, N, t, hash_table, hash_elements, func_table, a, b, c, max_count, indicator);
			hipDeviceSynchronize();
			if (*indicator == 0){
				break;
			}
		}
		check<<< ceil(N / thread_per_block), thread_per_block>>>(p, n, N, t, hash_table, hash_elements, func_table, a, b, c, max_count, indicator);
		hipDeviceSynchronize();
		count1 ++;
	}

	generating_find_element(N, find_elements, hash_elements, partial);

	clock_t start = clock();
	find<<< ceil(N / thread_per_block), thread_per_block>>>(p, n, N, t, hash_table, find_elements, a, b, c, find_result);
	
	hipDeviceSynchronize();

	double duration = (clock() - start) / (double) CLOCKS_PER_SEC;


	cout << "Time:" << duration << endl;
	hipMemcpy(hash_table, hash_table, n * sizeof(int), hipMemcpyDeviceToHost);
	hipMemcpy(hash_elements, hash_elements, N * sizeof(int), hipMemcpyDeviceToHost);
	hipMemcpy(find_result, find_result, N * sizeof(int), hipMemcpyDeviceToHost);

	int val_count = 0;

	val_count = 0;
	for (int i = 0 ; i < N; i++){
		if(find_result[i] == 1){
			val_count ++;
		}
	}

	cout << "Difference between insertion and find result: " << N - val_count << endl;


	hipFree(hash_table);
	hipFree(hash_elements);
	hipFree(find_result);
	hipFree(a);
	hipFree(b);
	hipFree(c);
	hipFree(hash_table2);
	hipFree(func_table);
	hipFree(indicator);
	return duration;
}

int main(void){
	int p = 99984923;
	int count_bit;
	float relative;
	float partial;
	int n;
	int c;
	cout << "Data Bit: " ;
	cin >> count_bit;
	cout << "Find partial: ";
	cin >> partial;
	cout << "Hash table size (0 for 2^25): ";
	cin >> relative; 
	cout << "Evict Chain Constant: ";
	cin >> c;
	int N = (1<<count_bit); 

	if (relative == 0){
		n = 1 << 25;
	}else{
		n = relative * N;
	}

	int t = 3;
	int max_count = (int) c * log(n);
	int thread_per_block;
	if (count_bit >= 18){
		thread_per_block = 1024;
	}else{
		thread_per_block = 64;
	}
	double Time = 0;

	Time += once(p, n, t, N, max_count, 1, partial, thread_per_block);
	Time += once(p, n, t, N, max_count, 2, partial, thread_per_block);
	Time += once(p, n, t, N, max_count, 3, partial, thread_per_block);
	Time += once(p, n, t, N, max_count, 4, partial, thread_per_block);
	Time += once(p, n, t, N, max_count, 5, partial, thread_per_block);

	Time = Time / 5;
	cout << "Average Time: " << Time << endl; 
	cout << "Million of insertion per second: " << (N / Time) / 1000000 << endl;
	return 0;
}

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

                                        # End of file scope inline assembly
	.globl	_Z7hashingiiiiii                # -- Begin function _Z7hashingiiiiii
	.type	_Z7hashingiiiiii,@function
_Z7hashingiiiiii:                       # @_Z7hashingiiiiii
	.cfi_startproc
# %bb.0:
                                        # kill: def $edx killed $edx def $rdx
                                        # kill: def $edi killed $edi def $rdi
	imull	%esi, %edi
	leal	(%rdi,%rdx), %eax
	xorl	%edx, %edx
	divl	%r8d
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%r9d
	movl	%edx, %eax
	retq
.Lfunc_end0:
	.size	_Z7hashingiiiiii, .Lfunc_end0-_Z7hashingiiiiii
	.cfi_endproc
                                        # -- End function
	.globl	_Z22__device_stub__add_twoiiiiPiS_S_S_S_S_S_ # -- Begin function _Z22__device_stub__add_twoiiiiPiS_S_S_S_S_S_
	.type	_Z22__device_stub__add_twoiiiiPiS_S_S_S_S_S_,@function
_Z22__device_stub__add_twoiiiiPiS_S_S_S_S_S_: # @_Z22__device_stub__add_twoiiiiPiS_S_S_S_S_S_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$176, %rsp
	.cfi_def_cfa_offset 224
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	8(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	4(%rsp), %rsi
	movl	%edx, (%rsi)
	movq	%rsp, %rdx
	movl	%ecx, (%rdx)
	leaq	40(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	32(%rsp), %r8
	movq	%r9, (%r8)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	224(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	232(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	240(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	248(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	256(%rsp), %rax
	movq	%rax, 80(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z7add_twoiiiiPiS_S_S_S_S_S_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$192, %rsp
	.cfi_adjust_cfa_offset -192
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z22__device_stub__add_twoiiiiPiS_S_S_S_S_S_, .Lfunc_end1-_Z22__device_stub__add_twoiiiiPiS_S_S_S_S_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z27__device_stub__fix_locationiiiiPiS_S_S_S_S_S_ # -- Begin function _Z27__device_stub__fix_locationiiiiPiS_S_S_S_S_S_
	.type	_Z27__device_stub__fix_locationiiiiPiS_S_S_S_S_S_,@function
_Z27__device_stub__fix_locationiiiiPiS_S_S_S_S_S_: # @_Z27__device_stub__fix_locationiiiiPiS_S_S_S_S_S_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$176, %rsp
	.cfi_def_cfa_offset 224
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	8(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	4(%rsp), %rsi
	movl	%edx, (%rsi)
	movq	%rsp, %rdx
	movl	%ecx, (%rdx)
	leaq	40(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	32(%rsp), %r8
	movq	%r9, (%r8)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	224(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	232(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	240(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	248(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	256(%rsp), %rax
	movq	%rax, 80(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z12fix_locationiiiiPiS_S_S_S_S_S_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$192, %rsp
	.cfi_adjust_cfa_offset -192
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_Z27__device_stub__fix_locationiiiiPiS_S_S_S_S_S_, .Lfunc_end2-_Z27__device_stub__fix_locationiiiiPiS_S_S_S_S_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z20__device_stub__checkiiiiPiS_S_S_S_S_iS_ # -- Begin function _Z20__device_stub__checkiiiiPiS_S_S_S_S_iS_
	.type	_Z20__device_stub__checkiiiiPiS_S_S_S_S_iS_,@function
_Z20__device_stub__checkiiiiPiS_S_S_S_S_iS_: # @_Z20__device_stub__checkiiiiPiS_S_S_S_S_iS_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$176, %rsp
	.cfi_def_cfa_offset 224
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	8(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	4(%rsp), %rsi
	movl	%edx, (%rsi)
	movq	%rsp, %rdx
	movl	%ecx, (%rdx)
	leaq	40(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	32(%rsp), %r8
	movq	%r9, (%r8)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	224(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	232(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	240(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	248(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	256(%rsp), %rax
	movq	%rax, 80(%rbx)
	leaq	264(%rsp), %rax
	movq	%rax, 88(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z5checkiiiiPiS_S_S_S_S_iS_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$192, %rsp
	.cfi_adjust_cfa_offset -192
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	_Z20__device_stub__checkiiiiPiS_S_S_S_S_iS_, .Lfunc_end3-_Z20__device_stub__checkiiiiPiS_S_S_S_S_iS_
	.cfi_endproc
                                        # -- End function
	.globl	_Z21__device_stub__insertiiiiPiS_S_S_S_S_i # -- Begin function _Z21__device_stub__insertiiiiPiS_S_S_S_S_i
	.type	_Z21__device_stub__insertiiiiPiS_S_S_S_S_i,@function
_Z21__device_stub__insertiiiiPiS_S_S_S_S_i: # @_Z21__device_stub__insertiiiiPiS_S_S_S_S_i
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$176, %rsp
	.cfi_def_cfa_offset 224
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	8(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	4(%rsp), %rsi
	movl	%edx, (%rsi)
	movq	%rsp, %rdx
	movl	%ecx, (%rdx)
	leaq	40(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	32(%rsp), %r8
	movq	%r9, (%r8)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	224(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	232(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	240(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	248(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	256(%rsp), %rax
	movq	%rax, 80(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z6insertiiiiPiS_S_S_S_S_i, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$192, %rsp
	.cfi_adjust_cfa_offset -192
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end4:
	.size	_Z21__device_stub__insertiiiiPiS_S_S_S_S_i, .Lfunc_end4-_Z21__device_stub__insertiiiiPiS_S_S_S_S_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z19__device_stub__findiiiiPiS_S_S_S_S_ # -- Begin function _Z19__device_stub__findiiiiPiS_S_S_S_S_
	.type	_Z19__device_stub__findiiiiPiS_S_S_S_S_,@function
_Z19__device_stub__findiiiiPiS_S_S_S_S_: # @_Z19__device_stub__findiiiiPiS_S_S_S_S_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$160, %rsp
	.cfi_def_cfa_offset 208
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	8(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	4(%rsp), %rsi
	movl	%edx, (%rsi)
	movq	%rsp, %rdx
	movl	%ecx, (%rdx)
	leaq	40(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	32(%rsp), %r8
	movq	%r9, (%r8)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	208(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	216(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	224(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	232(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z4findiiiiPiS_S_S_S_S_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$176, %rsp
	.cfi_adjust_cfa_offset -176
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end5:
	.size	_Z19__device_stub__findiiiiPiS_S_S_S_S_, .Lfunc_end5-_Z19__device_stub__findiiiiPiS_S_S_S_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z25__device_stub__delete_eleiiiiPiS_S_S_S_S_S_ # -- Begin function _Z25__device_stub__delete_eleiiiiPiS_S_S_S_S_S_
	.type	_Z25__device_stub__delete_eleiiiiPiS_S_S_S_S_S_,@function
_Z25__device_stub__delete_eleiiiiPiS_S_S_S_S_S_: # @_Z25__device_stub__delete_eleiiiiPiS_S_S_S_S_S_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$176, %rsp
	.cfi_def_cfa_offset 224
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	8(%rsp), %rdi
	movl	%esi, (%rdi)
	leaq	4(%rsp), %rsi
	movl	%edx, (%rsi)
	movq	%rsp, %rdx
	movl	%ecx, (%rdx)
	leaq	40(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	32(%rsp), %r8
	movq	%r9, (%r8)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	224(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	232(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	240(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	248(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	256(%rsp), %rax
	movq	%rax, 80(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z10delete_eleiiiiPiS_S_S_S_S_S_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$192, %rsp
	.cfi_adjust_cfa_offset -192
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end6:
	.size	_Z25__device_stub__delete_eleiiiiPiS_S_S_S_S_S_, .Lfunc_end6-_Z25__device_stub__delete_eleiiiiPiS_S_S_S_S_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z15random_hash_funiPiS_S_      # -- Begin function _Z15random_hash_funiPiS_S_
	.type	_Z15random_hash_funiPiS_S_,@function
_Z15random_hash_funiPiS_S_:             # @_Z15random_hash_funiPiS_S_
	.cfi_startproc
# %bb.0:
	testl	%edi, %edi
	jle	.LBB7_4
# %bb.1:                                # %.lr.ph.preheader
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %r12d
	xorl	%r13d, %r13d
.LBB7_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	callq	rand
	movl	%eax, (%r15,%r13,4)
	callq	rand
	movl	%eax, (%r14,%r13,4)
	callq	rand
	movl	%eax, (%rbx,%r13,4)
	incq	%r13
	cmpq	%r13, %r12
	jne	.LBB7_2
# %bb.3:
	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
	.cfi_restore %rbx
	.cfi_restore %r12
	.cfi_restore %r13
	.cfi_restore %r14
	.cfi_restore %r15
.LBB7_4:                                # %._crit_edge
	retq
.Lfunc_end7:
	.size	_Z15random_hash_funiPiS_S_, .Lfunc_end7-_Z15random_hash_funiPiS_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z20random_hash_elementsiPi     # -- Begin function _Z20random_hash_elementsiPi
	.type	_Z20random_hash_elementsiPi,@function
_Z20random_hash_elementsiPi:            # @_Z20random_hash_elementsiPi
	.cfi_startproc
# %bb.0:
	testl	%edi, %edi
	jle	.LBB8_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, %rbx
	movl	%edi, %r14d
	xorl	%r15d, %r15d
.LBB8_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	callq	rand
                                        # kill: def $eax killed $eax def $rax
	leal	134217727(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	andl	$-134217728, %ecx               # imm = 0xF8000000
	subl	%ecx, %eax
	movl	%eax, (%rbx,%r15,4)
	incq	%r15
	cmpq	%r15, %r14
	jne	.LBB8_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
.LBB8_4:                                # %._crit_edge
	retq
.Lfunc_end8:
	.size	_Z20random_hash_elementsiPi, .Lfunc_end8-_Z20random_hash_elementsiPi
	.cfi_endproc
                                        # -- End function
	.globl	_Z10initializeiiPiS_S_S_S_iiii  # -- Begin function _Z10initializeiiPiS_S_S_S_iiii
	.type	_Z10initializeiiPiS_S_S_S_iiii,@function
_Z10initializeiiPiS_S_S_S_iiii:         # @_Z10initializeiiPiS_S_S_S_iiii
	.cfi_startproc
# %bb.0:
	testl	%edi, %edi
	jle	.LBB9_3
# %bb.1:                                # %.lr.ph.preheader
	movl	%edi, %eax
	xorl	%r10d, %r10d
	xorl	%r11d, %r11d
.LBB9_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	%r10d, (%rdx,%r11,4)
	movl	%r10d, (%rcx,%r11,4)
	incq	%r11
	cmpq	%r11, %rax
	jne	.LBB9_2
.LBB9_3:                                # %.preheader
	testl	%esi, %esi
	jle	.LBB9_7
# %bb.4:                                # %.lr.ph25.preheader
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movl	56(%rsp), %ecx
	movl	40(%rsp), %r10d
	movl	32(%rsp), %r11d
	movq	24(%rsp), %rbx
	movl	%esi, %esi
	xorl	%r14d, %r14d
.LBB9_5:                                # %.lr.ph25
                                        # =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r14,4), %eax
	imull	%r11d, %eax
	addl	%r10d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%edi
	movl	%edx, (%r9,%r14,4)
	movl	$0, (%r8,%r14,4)
	incq	%r14
	cmpq	%r14, %rsi
	jne	.LBB9_5
# %bb.6:
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	.cfi_restore %r14
.LBB9_7:                                # %._crit_edge
	retq
.Lfunc_end9:
	.size	_Z10initializeiiPiS_S_S_S_iiii, .Lfunc_end9-_Z10initializeiiPiS_S_S_S_iiii
	.cfi_endproc
                                        # -- End function
	.globl	_Z23generating_find_elementiPiS_f # -- Begin function _Z23generating_find_elementiPiS_f
	.type	_Z23generating_find_elementiPiS_f,@function
_Z23generating_find_elementiPiS_f:      # @_Z23generating_find_elementiPiS_f
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movl	%edi, %ebx
	cvtsi2ss	%edi, %xmm1
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %eax
	testl	%eax, %eax
	jle	.LBB10_3
# %bb.1:                                # %.lr.ph.preheader
	movl	%eax, %ecx
	xorl	%edi, %edi
.LBB10_2:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rdi,4), %r8d
	movl	%r8d, (%rsi,%rdi,4)
	incq	%rdi
	cmpq	%rdi, %rcx
	jne	.LBB10_2
.LBB10_3:                               # %.preheader
	subl	%eax, %ebx
	jle	.LBB10_6
# %bb.4:                                # %.lr.ph18.preheader
	cltq
	leaq	(%rsi,%rax,4), %r14
	xorl	%r15d, %r15d
.LBB10_5:                               # %.lr.ph18
                                        # =>This Inner Loop Header: Depth=1
	callq	rand
                                        # kill: def $eax killed $eax def $rax
	leal	134217727(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	andl	$-134217728, %ecx               # imm = 0xF8000000
	subl	%ecx, %eax
	movl	%eax, (%r14,%r15,4)
	incq	%r15
	cmpl	%r15d, %ebx
	jne	.LBB10_5
.LBB10_6:                               # %._crit_edge
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end10:
	.size	_Z23generating_find_elementiPiS_f, .Lfunc_end10-_Z23generating_find_elementiPiS_f
	.cfi_endproc
                                        # -- End function
	.globl	_Z9quicksortPiS_ii              # -- Begin function _Z9quicksortPiS_ii
	.type	_Z9quicksortPiS_ii,@function
_Z9quicksortPiS_ii:                     # @_Z9quicksortPiS_ii
	.cfi_startproc
# %bb.0:
	cmpl	%ecx, %edx
	jge	.LBB11_16
# %bb.1:                                # %.lr.ph70.preheader
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movl	%ecx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movabsq	$4294967296, %r12               # imm = 0x100000000
.LBB11_2:                               # %.lr.ph70
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB11_3 Depth 2
                                        #       Child Loop BB11_4 Depth 3
                                        #       Child Loop BB11_9 Depth 3
	movslq	%edx, %rcx
	movl	(%r15,%rcx,4), %eax
	movl	(%r14,%rcx,4), %ecx
	movl	%edx, %r13d
	movl	%ebx, %esi
.LBB11_3:                               # %.preheader
                                        #   Parent Loop BB11_2 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB11_4 Depth 3
                                        #       Child Loop BB11_9 Depth 3
	movslq	%esi, %r8
	movslq	%r13d, %rdi
	leal	-1(%r8), %esi
	cmpl	%esi, %edi
	cmovll	%edi, %esi
.LBB11_4:                               #   Parent Loop BB11_2 Depth=1
                                        #     Parent Loop BB11_3 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	cmpl	%eax, (%r15,%r8,4)
	jl	.LBB11_5
# %bb.6:                                #   in Loop: Header=BB11_4 Depth=3
	decq	%r8
	cmpq	%rdi, %r8
	jg	.LBB11_4
	jmp	.LBB11_7
.LBB11_5:                               #   in Loop: Header=BB11_3 Depth=2
	movl	%r8d, %esi
.LBB11_7:                               # %.critedge
                                        #   in Loop: Header=BB11_3 Depth=2
	movslq	%esi, %r8
	movl	(%r15,%r8,4), %r9d
	movl	%r9d, (%r15,%rdi,4)
	movl	(%r14,%r8,4), %r9d
	movl	%r9d, (%r14,%rdi,4)
	cmpl	%r8d, %edi
	jge	.LBB11_11
# %bb.8:                                # %.lr.ph.preheader
                                        #   in Loop: Header=BB11_3 Depth=2
	movq	%rdi, %r9
	shlq	$32, %r9
	leaq	(%r15,%rdi,4), %r10
	movq	%r8, %r11
	subq	%rdi, %r11
	xorl	%edi, %edi
.LBB11_9:                               # %.lr.ph
                                        #   Parent Loop BB11_2 Depth=1
                                        #     Parent Loop BB11_3 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	cmpl	%eax, (%r10,%rdi,4)
	jg	.LBB11_10
# %bb.12:                               #   in Loop: Header=BB11_9 Depth=3
	addq	%r12, %r9
	incq	%rdi
	cmpq	%rdi, %r11
	jne	.LBB11_9
	jmp	.LBB11_13
.LBB11_10:                              # %.lr.ph..critedge2.loopexit_crit_edge
                                        #   in Loop: Header=BB11_3 Depth=2
	addl	%edi, %r13d
	sarq	$32, %r9
	movq	%r9, %rdi
.LBB11_11:                              # %.critedge2
                                        #   in Loop: Header=BB11_3 Depth=2
	movl	(%r15,%rdi,4), %r9d
	movl	%r9d, (%r15,%r8,4)
	movl	(%r14,%rdi,4), %r9d
	movl	%r9d, (%r14,%r8,4)
	cmpl	%r8d, %r13d
	jl	.LBB11_3
	jmp	.LBB11_14
.LBB11_13:                              #   in Loop: Header=BB11_2 Depth=1
	movq	%r8, %rdi
	movl	%esi, %r13d
.LBB11_14:                              # %tailrecurse
                                        #   in Loop: Header=BB11_2 Depth=1
	movl	%eax, (%r15,%rdi,4)
	movl	%ecx, (%r14,%rdi,4)
	leal	-1(%r13), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_Z9quicksortPiS_ii
	incl	%r13d
	movl	%r13d, %edx
	cmpl	%ebx, %r13d
	jl	.LBB11_2
# %bb.15:
	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
	.cfi_restore %rbx
	.cfi_restore %r12
	.cfi_restore %r13
	.cfi_restore %r14
	.cfi_restore %r15
.LBB11_16:                              # %tailrecurse._crit_edge
	retq
.Lfunc_end11:
	.size	_Z9quicksortPiS_ii, .Lfunc_end11-_Z9quicksortPiS_ii
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z4onceiiiiiifi
.LCPI12_0:
	.quad	0x412e848000000000              # double 1.0E+6
	.text
	.globl	_Z4onceiiiiiifi
	.type	_Z4onceiiiiiifi,@function
_Z4onceiiiiiifi:                        # @_Z4onceiiiiiifi
	.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	$152, %rsp
	.cfi_def_cfa_offset 208
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movss	%xmm0, 116(%rsp)                # 4-byte Spill
	movl	%r9d, %ebx
	movl	%r8d, %r15d
	movl	%ecx, %r12d
	movq	%r12, 128(%rsp)                 # 8-byte Spill
	movl	%edx, %ebp
	movl	%esi, %r14d
	movl	%edi, 12(%rsp)                  # 4-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str, %esi
	movl	$7, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movl	%ebx, %esi
	callq	_ZNSolsEi
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movslq	%r12d, %rax
	movq	%rax, 88(%rsp)                  # 8-byte Spill
	leaq	(,%rax,4), %r13
	testl	%eax, %eax
	movq	$-1, %rdi
	cmovnsq	%r13, %rdi
	callq	_Znam
	movq	%rax, %rbx
	movl	%r14d, 16(%rsp)                 # 4-byte Spill
	movslq	%r14d, %r14
	shlq	$2, %r14
	leaq	56(%rsp), %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	hipMallocManaged
	leaq	80(%rsp), %rdi
	movq	%r14, 136(%rsp)                 # 8-byte Spill
	movq	%r14, %rsi
	movl	$1, %edx
	callq	hipMallocManaged
	leaq	40(%rsp), %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	hipMallocManaged
	leaq	64(%rsp), %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	hipMallocManaged
	movl	%ebp, %r12d
	movslq	%ebp, %rbp
	leaq	(,%rbp,4), %r14
	leaq	32(%rsp), %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	hipMallocManaged
	leaq	24(%rsp), %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	hipMallocManaged
	leaq	48(%rsp), %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	hipMallocManaged
	leaq	120(%rsp), %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	hipMallocManaged
	leaq	96(%rsp), %rdi
	movq	%r13, 144(%rsp)                 # 8-byte Spill
	movq	%r13, %rsi
	movl	$1, %edx
	callq	hipMallocManaged
	leaq	72(%rsp), %r14
	movl	$4, %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	hipMallocManaged
	movq	(%r14), %rax
	movl	$0, (%rax)
	leaq	32(%rsp), %rax
	movq	(%rax), %rsi
	leaq	24(%rsp), %rax
	movq	(%rax), %rdx
	leaq	48(%rsp), %rax
	movq	(%rax), %rcx
	movl	%ebp, %edi
	callq	_Z15random_hash_funiPiS_S_
	leaq	40(%rsp), %rax
	movq	(%rax), %r14
	movq	128(%rsp), %rax                 # 8-byte Reload
	movq	%rax, %r13
	movl	%eax, %eax
	movq	%rax, 104(%rsp)                 # 8-byte Spill
	cmpl	$0, 88(%rsp)                    # 4-byte Folded Reload
	jle	.LBB12_4
# %bb.1:                                # %.lr.ph.preheader.i
	xorl	%ebp, %ebp
.LBB12_2:                               # %.lr.ph.i
                                        # =>This Inner Loop Header: Depth=1
	callq	rand
                                        # kill: def $eax killed $eax def $rax
	leal	134217727(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	andl	$-134217728, %ecx               # imm = 0xF8000000
	subl	%ecx, %eax
	movl	%eax, (%r14,%rbp,4)
	incq	%rbp
	cmpq	%rbp, 104(%rsp)                 # 8-byte Folded Reload
	jne	.LBB12_2
# %bb.3:                                # %_Z20random_hash_elementsiPi.exit.loopexit
	movq	40(%rsp), %r14
.LBB12_4:                               # %_Z20random_hash_elementsiPi.exit
	movq	64(%rsp), %rcx
	movq	32(%rsp), %rax
	movl	(%rax), %esi
	movq	24(%rsp), %rax
	movl	(%rax), %edi
	movl	16(%rsp), %r11d                 # 4-byte Reload
	testl	%r11d, %r11d
	jle	.LBB12_7
# %bb.5:                                # %.lr.ph.preheader.i184
	movq	56(%rsp), %rax
	movq	80(%rsp), %rdx
	movl	%r11d, %r8d
	xorl	%r9d, %r9d
	xorl	%r10d, %r10d
.LBB12_6:                               # %.lr.ph.i186
                                        # =>This Inner Loop Header: Depth=1
	movl	%r9d, (%rax,%r10,4)
	movl	%r9d, (%rdx,%r10,4)
	incq	%r10
	cmpq	%r10, %r8
	jne	.LBB12_6
.LBB12_7:                               # %.preheader.i
	testl	%r13d, %r13d
	movl	12(%rsp), %r9d                  # 4-byte Reload
	movq	104(%rsp), %r10                 # 8-byte Reload
	jle	.LBB12_10
# %bb.8:                                # %.lr.ph25.preheader.i
	xorl	%r8d, %r8d
.LBB12_9:                               # %.lr.ph25.i
                                        # =>This Inner Loop Header: Depth=1
	movl	(%r14,%r8,4), %eax
	imull	%esi, %eax
	addl	%edi, %eax
	xorl	%edx, %edx
	divl	%r9d
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%r11d
	movl	%edx, (%rbx,%r8,4)
	movl	$0, (%rcx,%r8,4)
	incq	%r8
	cmpq	%r8, %r10
	jne	.LBB12_9
.LBB12_10:                              # %_Z10initializeiiPiS_S_S_S_iiii.exit
	movq	%r13, %rbp
	leal	-1(%r13), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_Z9quicksortPiS_ii
	movl	%ebp, %eax
	cltd
	movl	208(%rsp), %ecx
	idivl	%ecx
	movl	%eax, %r14d
	btsq	$32, %r14
	movl	%ecx, %ebx
	btsq	$32, %rbx
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB12_12
# %bb.11:
	movq	56(%rsp), %r8
	movq	80(%rsp), %r9
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	movl	20(%rsp), %edi                  # 4-byte Reload
	movl	24(%rsp), %esi                  # 4-byte Reload
	movl	%ebp, %edx
	movl	%r12d, %ecx
	pushq	56(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	40(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	56(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	96(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	80(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	_Z22__device_stub__add_twoiiiiPiS_S_S_S_S_S_
	addq	$48, %rsp
	.cfi_adjust_cfa_offset -48
.LBB12_12:
	callq	hipDeviceSynchronize
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB12_14
# %bb.13:
	movq	56(%rsp), %r8
	movq	80(%rsp), %r9
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	movl	20(%rsp), %edi                  # 4-byte Reload
	movl	24(%rsp), %esi                  # 4-byte Reload
	movl	%ebp, %edx
	movl	%r12d, %ecx
	pushq	56(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	40(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	56(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	96(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	80(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	_Z27__device_stub__fix_locationiiiiPiS_S_S_S_S_S_
	addq	$48, %rsp
	.cfi_adjust_cfa_offset -48
.LBB12_14:
	callq	hipDeviceSynchronize
	testl	%r15d, %r15d
	jle	.LBB12_22
# %bb.15:                               # %.lr.ph.preheader
	movl	$1, %ebp
	movq	72(%rsp), %rax
.LBB12_16:                              # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	$0, (%rax)
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB12_18
# %bb.17:                               #   in Loop: Header=BB12_16 Depth=1
	movq	56(%rsp), %r8
	movq	40(%rsp), %r9
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	movl	20(%rsp), %edi                  # 4-byte Reload
	movl	24(%rsp), %esi                  # 4-byte Reload
	movl	%r13d, %edx
	movl	%r12d, %ecx
	pushq	%r15
	.cfi_adjust_cfa_offset 8
	pushq	64(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	48(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	64(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	104(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	_Z21__device_stub__insertiiiiPiS_S_S_S_S_i
	addq	$48, %rsp
	.cfi_adjust_cfa_offset -48
.LBB12_18:                              #   in Loop: Header=BB12_16 Depth=1
	callq	hipDeviceSynchronize
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB12_20
# %bb.19:                               #   in Loop: Header=BB12_16 Depth=1
	movq	56(%rsp), %r8
	movq	40(%rsp), %r9
	movl	12(%rsp), %edi                  # 4-byte Reload
	movl	16(%rsp), %esi                  # 4-byte Reload
	movl	%r13d, %edx
	movl	%r12d, %ecx
	pushq	72(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	%r15
	.cfi_adjust_cfa_offset 8
	pushq	64(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	48(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	64(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	104(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	_Z20__device_stub__checkiiiiPiS_S_S_S_S_iS_
	addq	$48, %rsp
	.cfi_adjust_cfa_offset -48
.LBB12_20:                              #   in Loop: Header=BB12_16 Depth=1
	callq	hipDeviceSynchronize
	movq	72(%rsp), %rax
	cmpl	$0, (%rax)
	je	.LBB12_22
# %bb.21:                               #   in Loop: Header=BB12_16 Depth=1
	leal	1(%rbp), %ecx
	cmpl	%ebp, %r15d
	movl	%ecx, %ebp
	jne	.LBB12_16
.LBB12_22:                              # %._crit_edge
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	movq	%r13, %rbp
	jne	.LBB12_24
# %bb.23:
	movq	56(%rsp), %r8
	movq	40(%rsp), %r9
	movl	12(%rsp), %edi                  # 4-byte Reload
	movl	16(%rsp), %esi                  # 4-byte Reload
	movl	%ebp, %edx
	movl	%r12d, %ecx
	pushq	72(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	%r15
	.cfi_adjust_cfa_offset 8
	pushq	64(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	48(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	64(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	104(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	_Z20__device_stub__checkiiiiPiS_S_S_S_S_iS_
	addq	$48, %rsp
	.cfi_adjust_cfa_offset -48
.LBB12_24:
	callq	hipDeviceSynchronize
	movq	72(%rsp), %rax
	cmpl	$-1, (%rax)
	jne	.LBB12_42
# %bb.25:                               # %.lr.ph262.preheader
	xorl	%eax, %eax
	movq	%rax, 88(%rsp)                  # 8-byte Spill
.LBB12_26:                              # %.lr.ph262
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB12_32 Depth 2
	movq	32(%rsp), %rsi
	movq	24(%rsp), %rdx
	movq	48(%rsp), %rcx
	movl	%r12d, %edi
	callq	_Z15random_hash_funiPiS_S_
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB12_28
# %bb.27:                               #   in Loop: Header=BB12_26 Depth=1
	movq	56(%rsp), %r8
	movq	80(%rsp), %r9
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	movl	20(%rsp), %edi                  # 4-byte Reload
	movl	24(%rsp), %esi                  # 4-byte Reload
	movl	%ebp, %edx
	movl	%r12d, %ecx
	pushq	56(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	40(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	56(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	96(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	80(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	_Z22__device_stub__add_twoiiiiPiS_S_S_S_S_S_
	addq	$48, %rsp
	.cfi_adjust_cfa_offset -48
.LBB12_28:                              #   in Loop: Header=BB12_26 Depth=1
	callq	hipDeviceSynchronize
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB12_30
# %bb.29:                               #   in Loop: Header=BB12_26 Depth=1
	movq	56(%rsp), %r8
	movq	80(%rsp), %r9
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	movl	20(%rsp), %edi                  # 4-byte Reload
	movl	24(%rsp), %esi                  # 4-byte Reload
	movl	%ebp, %edx
	movl	%r12d, %ecx
	pushq	56(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	40(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	56(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	96(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	80(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	_Z27__device_stub__fix_locationiiiiPiS_S_S_S_S_S_
	addq	$48, %rsp
	.cfi_adjust_cfa_offset -48
.LBB12_30:                              #   in Loop: Header=BB12_26 Depth=1
	callq	hipDeviceSynchronize
	testl	%r15d, %r15d
	jle	.LBB12_38
# %bb.31:                               # %.lr.ph257.preheader
                                        #   in Loop: Header=BB12_26 Depth=1
	movl	$1, %ebp
	movq	72(%rsp), %rax
.LBB12_32:                              # %.lr.ph257
                                        #   Parent Loop BB12_26 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	$0, (%rax)
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB12_34
# %bb.33:                               #   in Loop: Header=BB12_32 Depth=2
	movq	56(%rsp), %r8
	movq	40(%rsp), %r9
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	movl	20(%rsp), %edi                  # 4-byte Reload
	movl	24(%rsp), %esi                  # 4-byte Reload
	movl	%r13d, %edx
	movl	%r12d, %ecx
	pushq	%r15
	.cfi_adjust_cfa_offset 8
	pushq	64(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	48(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	64(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	104(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	_Z21__device_stub__insertiiiiPiS_S_S_S_S_i
	addq	$48, %rsp
	.cfi_adjust_cfa_offset -48
.LBB12_34:                              #   in Loop: Header=BB12_32 Depth=2
	callq	hipDeviceSynchronize
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB12_36
# %bb.35:                               #   in Loop: Header=BB12_32 Depth=2
	movq	56(%rsp), %r8
	movq	40(%rsp), %r9
	movl	12(%rsp), %edi                  # 4-byte Reload
	movl	16(%rsp), %esi                  # 4-byte Reload
	movl	%r13d, %edx
	movl	%r12d, %ecx
	pushq	72(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	%r15
	.cfi_adjust_cfa_offset 8
	pushq	64(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	48(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	64(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	104(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	_Z20__device_stub__checkiiiiPiS_S_S_S_S_iS_
	addq	$48, %rsp
	.cfi_adjust_cfa_offset -48
.LBB12_36:                              #   in Loop: Header=BB12_32 Depth=2
	callq	hipDeviceSynchronize
	movq	72(%rsp), %rax
	cmpl	$0, (%rax)
	je	.LBB12_38
# %bb.37:                               #   in Loop: Header=BB12_32 Depth=2
	leal	1(%rbp), %ecx
	cmpl	%r15d, %ebp
	movl	%ecx, %ebp
	jl	.LBB12_32
.LBB12_38:                              # %._crit_edge258
                                        #   in Loop: Header=BB12_26 Depth=1
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	movq	%r13, %rbp
	jne	.LBB12_40
# %bb.39:                               #   in Loop: Header=BB12_26 Depth=1
	movq	56(%rsp), %r8
	movq	40(%rsp), %r9
	movl	12(%rsp), %edi                  # 4-byte Reload
	movl	16(%rsp), %esi                  # 4-byte Reload
	movl	%ebp, %edx
	movl	%r12d, %ecx
	pushq	72(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	%r15
	.cfi_adjust_cfa_offset 8
	pushq	64(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	48(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	64(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	104(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	_Z20__device_stub__checkiiiiPiS_S_S_S_S_iS_
	addq	$48, %rsp
	.cfi_adjust_cfa_offset -48
.LBB12_40:                              #   in Loop: Header=BB12_26 Depth=1
	callq	hipDeviceSynchronize
	movq	72(%rsp), %rax
	cmpl	$-1, (%rax)
	jne	.LBB12_42
# %bb.41:                               #   in Loop: Header=BB12_26 Depth=1
	movq	88(%rsp), %rcx                  # 8-byte Reload
	leal	1(%rcx), %eax
	cmpl	$999, %ecx                      # imm = 0x3E7
                                        # kill: def $eax killed $eax def $rax
	movq	%rax, 88(%rsp)                  # 8-byte Spill
	jb	.LBB12_26
.LBB12_42:                              # %._crit_edge263
	movq	120(%rsp), %rsi
	movq	40(%rsp), %rdx
	movl	%ebp, %edi
	movss	116(%rsp), %xmm0                # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	callq	_Z23generating_find_elementiPiS_f
	callq	clock
	movq	%rax, %r13
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB12_44
# %bb.43:
	movq	56(%rsp), %r8
	movq	120(%rsp), %r9
	movl	12(%rsp), %edi                  # 4-byte Reload
	movl	16(%rsp), %esi                  # 4-byte Reload
	movl	%ebp, %edx
	movl	%r12d, %ecx
	pushq	96(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	56(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	40(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	56(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	_Z19__device_stub__findiiiiPiS_S_S_S_S_
	addq	$32, %rsp
	.cfi_adjust_cfa_offset -32
.LBB12_44:
	callq	hipDeviceSynchronize
	callq	clock
	subq	%r13, %rax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	divsd	.LCPI12_0(%rip), %xmm0
	movsd	%xmm0, 16(%rsp)                 # 8-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str.1, %esi
	movl	$5, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	16(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	56(%rsp), %rdi
	movq	%rdi, %rsi
	movq	136(%rsp), %rdx                 # 8-byte Reload
	movl	$2, %ecx
	callq	hipMemcpy
	movq	40(%rsp), %rdi
	movq	%rdi, %rsi
	movq	144(%rsp), %rbx                 # 8-byte Reload
	movq	%rbx, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movq	96(%rsp), %rdi
	movq	%rdi, %rsi
	movq	%rbx, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	testl	%ebp, %ebp
	movq	104(%rsp), %rsi                 # 8-byte Reload
	jle	.LBB12_47
# %bb.45:                               # %.lr.ph267
	movq	96(%rsp), %rax
	xorl	%ecx, %ecx
	xorl	%r15d, %r15d
.LBB12_46:                              # =>This Inner Loop Header: Depth=1
	xorl	%edx, %edx
	cmpl	$1, (%rax,%rcx,4)
	sete	%dl
	addl	%edx, %r15d
	incq	%rcx
	cmpq	%rcx, %rsi
	jne	.LBB12_46
.LBB12_47:                              # %._crit_edge268
	movl	$_ZSt4cout, %edi
	movl	$.L.str.2, %esi
	movl	$46, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	subl	%r15d, %ebp
	movl	$_ZSt4cout, %edi
	movl	%ebp, %esi
	callq	_ZNSolsEi
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	56(%rsp), %rdi
	callq	hipFree
	movq	40(%rsp), %rdi
	callq	hipFree
	movq	96(%rsp), %rdi
	callq	hipFree
	movq	32(%rsp), %rdi
	callq	hipFree
	movq	24(%rsp), %rdi
	callq	hipFree
	movq	48(%rsp), %rdi
	callq	hipFree
	movq	80(%rsp), %rdi
	callq	hipFree
	movq	64(%rsp), %rdi
	callq	hipFree
	movq	72(%rsp), %rdi
	callq	hipFree
	movsd	16(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	addq	$152, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end12:
	.size	_Z4onceiiiiiifi, .Lfunc_end12-_Z4onceiiiiiifi
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI13_0:
	.quad	0x4014000000000000              # double 5
.LCPI13_1:
	.quad	0x412e848000000000              # double 1.0E+6
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	.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	$_ZSt4cout, %edi
	movl	$.L.str.3, %esi
	movl	$10, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	leaq	36(%rsp), %r15
	movl	$_ZSt3cin, %edi
	movq	%r15, %rsi
	callq	_ZNSirsERi
	movl	$_ZSt4cout, %edi
	movl	$.L.str.4, %esi
	movl	$14, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	leaq	28(%rsp), %r14
	movl	$_ZSt3cin, %edi
	movq	%r14, %rsi
	callq	_ZNSi10_M_extractIfEERSiRT_
	movl	$_ZSt4cout, %edi
	movl	$.L.str.5, %esi
	movl	$30, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	leaq	32(%rsp), %r12
	movl	$_ZSt3cin, %edi
	movq	%r12, %rsi
	callq	_ZNSi10_M_extractIfEERSiRT_
	movl	$_ZSt4cout, %edi
	movl	$.L.str.6, %esi
	movl	$22, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	leaq	24(%rsp), %r13
	movl	$_ZSt3cin, %edi
	movq	%r13, %rsi
	callq	_ZNSirsERi
	movb	(%r15), %cl
	movl	$1, %ebx
	shll	%cl, %ebx
	movss	(%r12), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	ucomiss	%xmm0, %xmm1
	xorps	%xmm1, %xmm1
	cvtsi2ss	%ebx, %xmm1
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %eax
	movl	$33554432, %ebp                 # imm = 0x2000000
	cmovnel	%eax, %ebp
	cmovpl	%eax, %ebp
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ebp, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sdl	(%r13), %xmm1
	movsd	%xmm1, 16(%rsp)                 # 8-byte Spill
	callq	log
	cmpl	$18, (%r15)
	movl	$1024, %eax                     # imm = 0x400
	movl	$64, %r12d
	cmovgel	%eax, %r12d
	mulsd	16(%rsp), %xmm0                 # 8-byte Folded Reload
	cvttsd2si	%xmm0, %r15d
	movss	(%r14), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movl	%r12d, (%rsp)
	movl	$99984923, %edi                 # imm = 0x5F5A61B
	movl	%ebp, %esi
	movl	$3, %edx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	movl	$1, %r9d
	callq	_Z4onceiiiiiifi
	xorpd	%xmm1, %xmm1
	addsd	%xmm0, %xmm1
	movsd	%xmm1, 16(%rsp)                 # 8-byte Spill
	movss	(%r14), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movl	%r12d, (%rsp)
	movl	$99984923, %edi                 # imm = 0x5F5A61B
	movl	%ebp, %esi
	movl	$3, %edx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	movl	$2, %r9d
	callq	_Z4onceiiiiiifi
	addsd	16(%rsp), %xmm0                 # 8-byte Folded Reload
	movsd	%xmm0, 16(%rsp)                 # 8-byte Spill
	movss	(%r14), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movl	%r12d, (%rsp)
	movl	$99984923, %edi                 # imm = 0x5F5A61B
	movl	%ebp, %esi
	movl	$3, %edx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	movl	$3, %r9d
	callq	_Z4onceiiiiiifi
	addsd	16(%rsp), %xmm0                 # 8-byte Folded Reload
	movsd	%xmm0, 16(%rsp)                 # 8-byte Spill
	movss	(%r14), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movl	%r12d, (%rsp)
	movl	$99984923, %edi                 # imm = 0x5F5A61B
	movl	%ebp, %esi
	movl	$3, %edx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	movl	$4, %r9d
	callq	_Z4onceiiiiiifi
	addsd	16(%rsp), %xmm0                 # 8-byte Folded Reload
	movsd	%xmm0, 16(%rsp)                 # 8-byte Spill
	movss	(%r14), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movl	%r12d, (%rsp)
	movl	$99984923, %edi                 # imm = 0x5F5A61B
	movl	%ebp, %esi
	movl	$3, %edx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	movl	$5, %r9d
	callq	_Z4onceiiiiiifi
	addsd	16(%rsp), %xmm0                 # 8-byte Folded Reload
	divsd	.LCPI13_0(%rip), %xmm0
	movsd	%xmm0, 16(%rsp)                 # 8-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str.7, %esi
	movl	$14, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	16(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.8, %esi
	movl	$33, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ebx, %xmm0
	divsd	16(%rsp), %xmm0                 # 8-byte Folded Reload
	divsd	.LCPI13_1(%rip), %xmm0
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	xorl	%eax, %eax
	addq	$40, %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_end13:
	.size	main, .Lfunc_end13-main
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB14_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB14_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z7add_twoiiiiPiS_S_S_S_S_S_, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z12fix_locationiiiiPiS_S_S_S_S_S_, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z5checkiiiiPiS_S_S_S_S_iS_, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z6insertiiiiPiS_S_S_S_S_i, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z4findiiiiPiS_S_S_S_S_, %esi
	movl	$.L__unnamed_5, %edx
	movl	$.L__unnamed_5, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z10delete_eleiiiiPiS_S_S_S_S_S_, %esi
	movl	$.L__unnamed_6, %edx
	movl	$.L__unnamed_6, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end14:
	.size	__hip_module_ctor, .Lfunc_end14-__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	.LBB15_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
.LBB15_2:
	retq
.Lfunc_end15:
	.size	__hip_module_dtor, .Lfunc_end15-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z7add_twoiiiiPiS_S_S_S_S_S_,@object # @_Z7add_twoiiiiPiS_S_S_S_S_S_
	.section	.rodata,"a",@progbits
	.globl	_Z7add_twoiiiiPiS_S_S_S_S_S_
	.p2align	3, 0x0
_Z7add_twoiiiiPiS_S_S_S_S_S_:
	.quad	_Z22__device_stub__add_twoiiiiPiS_S_S_S_S_S_
	.size	_Z7add_twoiiiiPiS_S_S_S_S_S_, 8

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

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

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

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

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

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

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"Time:"
	.size	.L.str.1, 6

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"Difference between insertion and find result: "
	.size	.L.str.2, 47

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"Data Bit: "
	.size	.L.str.3, 11

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"Find partial: "
	.size	.L.str.4, 15

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"Hash table size (0 for 2^25): "
	.size	.L.str.5, 31

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"Evict Chain Constant: "
	.size	.L.str.6, 23

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"Average Time: "
	.size	.L.str.7, 15

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"Million of insertion per second: "
	.size	.L.str.8, 34

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z7add_twoiiiiPiS_S_S_S_S_S_"
	.size	.L__unnamed_1, 29

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z12fix_locationiiiiPiS_S_S_S_S_S_"
	.size	.L__unnamed_2, 35

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z5checkiiiiPiS_S_S_S_S_iS_"
	.size	.L__unnamed_3, 28

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"_Z6insertiiiiPiS_S_S_S_S_i"
	.size	.L__unnamed_4, 27

	.type	.L__unnamed_5,@object           # @4
.L__unnamed_5:
	.asciz	"_Z4findiiiiPiS_S_S_S_S_"
	.size	.L__unnamed_5, 24

	.type	.L__unnamed_6,@object           # @5
.L__unnamed_6:
	.asciz	"_Z10delete_eleiiiiPiS_S_S_S_S_S_"
	.size	.L__unnamed_6, 33

	.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 _Z22__device_stub__add_twoiiiiPiS_S_S_S_S_S_
	.addrsig_sym _Z27__device_stub__fix_locationiiiiPiS_S_S_S_S_S_
	.addrsig_sym _Z20__device_stub__checkiiiiPiS_S_S_S_S_iS_
	.addrsig_sym _Z21__device_stub__insertiiiiPiS_S_S_S_S_i
	.addrsig_sym _Z19__device_stub__findiiiiPiS_S_S_S_S_
	.addrsig_sym _Z25__device_stub__delete_eleiiiiPiS_S_S_S_S_S_
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Z7add_twoiiiiPiS_S_S_S_S_S_
	.addrsig_sym _Z12fix_locationiiiiPiS_S_S_S_S_S_
	.addrsig_sym _Z5checkiiiiPiS_S_S_S_S_iS_
	.addrsig_sym _Z6insertiiiiPiS_S_S_S_S_i
	.addrsig_sym _Z4findiiiiPiS_S_S_S_S_
	.addrsig_sym _Z10delete_eleiiiiPiS_S_S_S_S_S_
	.addrsig_sym _ZSt4cout
	.addrsig_sym _ZSt3cin
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z7add_twoiiiiPiS_S_S_S_S_S_ ; -- Begin function _Z7add_twoiiiiPiS_S_S_S_S_S_
	.globl	_Z7add_twoiiiiPiS_S_S_S_S_S_
	.p2align	8
	.type	_Z7add_twoiiiiPiS_S_S_S_S_S_,@function
_Z7add_twoiiiiPiS_S_S_S_S_S_:           ; @_Z7add_twoiiiiPiS_S_S_S_S_S_
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x54
	s_load_b128 s[4:7], s[0:1], 0x18
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	v_add_co_u32 v0, vcc_lo, s6, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s7, v1, vcc_lo
	global_load_b32 v4, v[0:1], off
	s_clause 0x1
	s_load_b64 s[2:3], s[0:1], 0x0
	s_load_b128 s[8:11], s[0:1], 0x30
	s_waitcnt lgkmcnt(0)
	v_cvt_f32_u32_e32 v0, s2
	v_cvt_f32_u32_e32 v2, s3
	s_load_b64 s[0:1], s[10:11], 0x0
	s_load_b64 s[6:7], s[8:9], 0x0
	s_sub_i32 s12, 0, s2
	v_rcp_iflag_f32_e32 v0, v0
	v_rcp_iflag_f32_e32 v5, v2
	s_load_b32 s9, s[8:9], 0x8
	s_load_b32 s8, s[10:11], 0x8
	s_waitcnt_depctr 0xfff
	v_dual_mul_f32 v0, 0x4f7ffffe, v0 :: v_dual_mul_f32 v5, 0x4f7ffffe, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cvt_u32_f32_e32 v0, v0
	v_cvt_u32_f32_e32 v5, v5
	s_waitcnt lgkmcnt(0)
	s_mov_b32 s10, s1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v1, s12, v0
	v_mul_hi_u32 v1, v0, v1
	s_delay_alu instid0(VALU_DEP_1)
	v_add_nc_u32_e32 v6, v0, v1
	s_waitcnt vmcnt(0)
	v_mad_u64_u32 v[0:1], null, s6, v4, s[0:1]
	v_mad_u64_u32 v[1:2], null, s7, v4, s[10:11]
	v_mad_u64_u32 v[2:3], null, s9, v4, s[8:9]
	s_sub_i32 s0, 0, s3
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_lo_u32 v7, s0, v5
	v_mul_hi_u32 v3, v0, v6
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_hi_u32 v4, v1, v6
	v_mul_hi_u32 v6, v2, v6
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_lo_u32 v3, v3, s2
	v_mul_lo_u32 v4, v4, s2
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_lo_u32 v6, v6, s2
	v_sub_nc_u32_e32 v0, v0, v3
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_sub_nc_u32_e32 v1, v1, v4
	v_mul_hi_u32 v4, v5, v7
	v_sub_nc_u32_e32 v2, v2, v6
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_subrev_nc_u32_e32 v3, s2, v0
	v_cmp_le_u32_e32 vcc_lo, s2, v0
	v_subrev_nc_u32_e32 v6, s2, v1
	v_subrev_nc_u32_e32 v7, s2, v2
	v_add_nc_u32_e32 v4, v5, v4
	v_cndmask_b32_e32 v0, v0, v3, vcc_lo
	v_cmp_le_u32_e32 vcc_lo, s2, v1
	v_cndmask_b32_e32 v1, v1, v6, vcc_lo
	v_cmp_le_u32_e32 vcc_lo, s2, v2
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_subrev_nc_u32_e32 v3, s2, v0
	v_subrev_nc_u32_e32 v5, s2, v1
	v_cndmask_b32_e32 v2, v2, v7, vcc_lo
	v_cmp_le_u32_e32 vcc_lo, s2, v0
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v0, v0, v3, vcc_lo
	v_cmp_le_u32_e32 vcc_lo, s2, v1
	v_mul_hi_u32 v3, v0, v4
	v_cndmask_b32_e32 v1, v1, v5, vcc_lo
	v_subrev_nc_u32_e32 v6, s2, v2
	v_cmp_le_u32_e32 vcc_lo, s2, v2
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_hi_u32 v5, v1, v4
	v_mul_lo_u32 v3, v3, s3
	v_mul_lo_u32 v5, v5, s3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_nc_u32_e32 v0, v0, v3
	v_sub_nc_u32_e32 v3, v1, v5
	v_dual_mov_b32 v1, 0 :: v_dual_cndmask_b32 v2, v2, v6
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cmp_le_u32_e32 vcc_lo, s3, v0
	v_subrev_nc_u32_e32 v5, s3, v3
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v4, v2, v4
	v_mul_lo_u32 v4, v4, s3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_sub_nc_u32_e32 v2, v2, v4
	v_subrev_nc_u32_e32 v4, s3, v0
	v_subrev_nc_u32_e32 v6, s3, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_3)
	v_cndmask_b32_e32 v0, v0, v4, vcc_lo
	v_cmp_le_u32_e32 vcc_lo, s3, v3
	v_dual_cndmask_b32 v4, v3, v5 :: v_dual_mov_b32 v5, v1
	v_cmp_le_u32_e32 vcc_lo, s3, v2
	v_mov_b32_e32 v3, v1
	v_subrev_nc_u32_e32 v7, s3, v4
	v_cndmask_b32_e32 v6, v2, v6, vcc_lo
	v_subrev_nc_u32_e32 v2, s3, v0
	v_cmp_le_u32_e32 vcc_lo, s3, v0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_subrev_nc_u32_e32 v8, s3, v6
	v_cndmask_b32_e32 v0, v0, v2, vcc_lo
	v_cmp_le_u32_e32 vcc_lo, s3, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[0:1], 2, v[0:1]
	v_cndmask_b32_e32 v2, v4, v7, vcc_lo
	v_cmp_le_u32_e32 vcc_lo, s3, v6
	v_lshlrev_b64 v[2:3], 2, v[2:3]
	v_cndmask_b32_e32 v4, v6, v8, vcc_lo
	v_add_co_u32 v0, vcc_lo, s4, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s5, v1, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_lshlrev_b64 v[4:5], 2, v[4:5]
	v_add_co_u32 v2, vcc_lo, s4, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v3, vcc_lo
	v_mov_b32_e32 v6, 1
	v_add_co_u32 v4, vcc_lo, s4, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v5, vcc_lo
	s_clause 0x2
	global_atomic_add_u32 v[0:1], v6, off
	global_atomic_add_u32 v[2:3], v6, off
	global_atomic_add_u32 v[4:5], v6, off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z7add_twoiiiiPiS_S_S_S_S_S_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 328
		.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 9
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z7add_twoiiiiPiS_S_S_S_S_S_, .Lfunc_end0-_Z7add_twoiiiiPiS_S_S_S_S_S_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 724
; NumSgprs: 18
; NumVgprs: 9
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 9
; Occupancy: 16
; WaveLimiterHint : 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
	.protected	_Z12fix_locationiiiiPiS_S_S_S_S_S_ ; -- Begin function _Z12fix_locationiiiiPiS_S_S_S_S_S_
	.globl	_Z12fix_locationiiiiPiS_S_S_S_S_S_
	.p2align	8
	.type	_Z12fix_locationiiiiPiS_S_S_S_S_S_,@function
_Z12fix_locationiiiiPiS_S_S_S_S_S_:     ; @_Z12fix_locationiiiiPiS_S_S_S_S_S_
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x54
	s_load_b256 s[4:11], s[0:1], 0x18
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	v_add_co_u32 v2, vcc_lo, s6, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v1, vcc_lo
	global_load_b32 v4, v[2:3], off
	s_clause 0x1
	s_load_b64 s[2:3], s[0:1], 0x0
	s_load_b64 s[14:15], s[0:1], 0x38
	s_waitcnt lgkmcnt(0)
	s_load_b64 s[12:13], s[14:15], 0x0
	s_load_b64 s[6:7], s[10:11], 0x0
	v_cvt_f32_u32_e32 v2, s2
	s_sub_i32 s0, 0, s2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_iflag_f32_e32 v2, v2
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v2, 0x4f7ffffe, v2
	v_cvt_u32_f32_e32 v5, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v2, s0, v5
	s_load_b32 s1, s[10:11], 0x8
	s_load_b32 s0, s[14:15], 0x8
	v_mul_hi_u32 v6, v5, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v5, v5, v6
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_mad_u64_u32 v[2:3], null, s6, v4, s[12:13]
	v_cvt_f32_u32_e32 v3, s3
	s_sub_i32 s6, 0, s3
	v_rcp_iflag_f32_e32 v3, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v6, v2, v5
	v_mul_lo_u32 v6, v6, s2
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v3, 0x4f7ffffe, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cvt_u32_f32_e32 v3, v3
	v_sub_nc_u32_e32 v2, v2, v6
	v_mul_lo_u32 v6, s6, v3
	s_mov_b32 s6, exec_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v7, s2, v2
	v_cmp_le_u32_e32 vcc_lo, s2, v2
	v_cndmask_b32_e32 v2, v2, v7, vcc_lo
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_hi_u32 v6, v3, v6
	v_subrev_nc_u32_e32 v7, s2, v2
	v_cmp_le_u32_e32 vcc_lo, s2, v2
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_nc_u32_e32 v6, v3, v6
	v_cndmask_b32_e32 v2, v2, v7, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v3, v2, v6
	v_mul_lo_u32 v3, v3, s3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v2, v2, v3
	v_subrev_nc_u32_e32 v3, s3, v2
	v_cmp_le_u32_e32 vcc_lo, s3, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v2, v2, v3 :: v_dual_mov_b32 v3, 0
	v_subrev_nc_u32_e32 v7, s3, v2
	v_cmp_le_u32_e32 vcc_lo, s3, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v2, v2, v7, vcc_lo
	v_lshlrev_b64 v[7:8], 2, v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v7, vcc_lo, s4, v7
	v_add_co_ci_u32_e32 v8, vcc_lo, s5, v8, vcc_lo
	global_load_b32 v2, v[7:8], off
	s_waitcnt vmcnt(0)
	v_cmpx_eq_u32_e32 1, v2
	s_cbranch_execz .LBB1_2
; %bb.1:
	v_add_co_u32 v7, vcc_lo, s8, v0
	v_add_co_ci_u32_e32 v8, vcc_lo, s9, v1, vcc_lo
	global_store_b32 v[7:8], v3, off
.LBB1_2:
	s_or_b32 exec_lo, exec_lo, s6
	s_mov_b32 s6, s13
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[7:8], null, s7, v4, s[6:7]
	s_mov_b32 s6, exec_lo
	v_mul_hi_u32 v2, v7, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v2, v2, s2
	v_sub_nc_u32_e32 v2, v7, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v7, s2, v2
	v_cmp_le_u32_e32 vcc_lo, s2, v2
	v_cndmask_b32_e32 v2, v2, v7, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v7, s2, v2
	v_cmp_le_u32_e32 vcc_lo, s2, v2
	v_cndmask_b32_e32 v2, v2, v7, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v7, v2, v6
	v_mul_lo_u32 v7, v7, s3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v2, v2, v7
	v_subrev_nc_u32_e32 v7, s3, v2
	v_cmp_le_u32_e32 vcc_lo, s3, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v2, v2, v7, vcc_lo
	v_subrev_nc_u32_e32 v7, s3, v2
	v_cmp_le_u32_e32 vcc_lo, s3, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v2, v2, v7, vcc_lo
	v_lshlrev_b64 v[7:8], 2, v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v7, vcc_lo, s4, v7
	v_add_co_ci_u32_e32 v8, vcc_lo, s5, v8, vcc_lo
	global_load_b32 v2, v[7:8], off
	s_waitcnt vmcnt(0)
	v_cmpx_eq_u32_e32 1, v2
	s_cbranch_execz .LBB1_4
; %bb.3:
	v_add_co_u32 v7, vcc_lo, s8, v0
	v_add_co_ci_u32_e32 v8, vcc_lo, s9, v1, vcc_lo
	v_mov_b32_e32 v2, 1
	global_store_b32 v[7:8], v2, off
.LBB1_4:
	s_or_b32 exec_lo, exec_lo, s6
	v_mad_u64_u32 v[7:8], null, s1, v4, s[0:1]
	s_mov_b32 s0, exec_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v2, v7, v5
	v_mul_lo_u32 v2, v2, s2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v2, v7, v2
	v_subrev_nc_u32_e32 v4, s2, v2
	v_cmp_le_u32_e32 vcc_lo, s2, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v2, v2, v4, vcc_lo
	v_subrev_nc_u32_e32 v4, s2, v2
	v_cmp_le_u32_e32 vcc_lo, s2, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v2, v2, v4, vcc_lo
	v_mul_hi_u32 v4, v2, v6
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v4, v4, s3
	v_sub_nc_u32_e32 v2, v2, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v4, s3, v2
	v_cmp_le_u32_e32 vcc_lo, s3, v2
	v_cndmask_b32_e32 v2, v2, v4, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v4, s3, v2
	v_cmp_le_u32_e32 vcc_lo, s3, v2
	v_cndmask_b32_e32 v2, v2, v4, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[2:3], 2, v[2:3]
	v_add_co_u32 v2, vcc_lo, s4, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v3, vcc_lo
	global_load_b32 v2, v[2:3], off
	s_waitcnt vmcnt(0)
	v_cmpx_eq_u32_e32 1, v2
	s_cbranch_execz .LBB1_6
; %bb.5:
	v_add_co_u32 v0, vcc_lo, s8, v0
	v_mov_b32_e32 v2, 2
	v_add_co_ci_u32_e32 v1, vcc_lo, s9, v1, vcc_lo
	global_store_b32 v[0:1], v2, off
.LBB1_6:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z12fix_locationiiiiPiS_S_S_S_S_S_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 328
		.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 9
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end1:
	.size	_Z12fix_locationiiiiPiS_S_S_S_S_S_, .Lfunc_end1-_Z12fix_locationiiiiPiS_S_S_S_S_S_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 880
; NumSgprs: 18
; NumVgprs: 9
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 9
; Occupancy: 16
; WaveLimiterHint : 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
	.protected	_Z5checkiiiiPiS_S_S_S_S_iS_ ; -- Begin function _Z5checkiiiiPiS_S_S_S_S_iS_
	.globl	_Z5checkiiiiPiS_S_S_S_S_iS_
	.p2align	8
	.type	_Z5checkiiiiPiS_S_S_S_S_iS_,@function
_Z5checkiiiiPiS_S_S_S_S_iS_:            ; @_Z5checkiiiiPiS_S_S_S_S_iS_
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x5c
	s_load_b256 s[4:11], s[0:1], 0x10
	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_load_b64 s[2:3], s[0:1], 0x30
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	v_add_co_u32 v2, vcc_lo, s8, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s9, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s7, v1, vcc_lo
	global_load_b32 v2, v[2:3], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v3, 31, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[2:3], 2, v[2:3]
	v_add_co_u32 v4, vcc_lo, s10, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v5, vcc_lo, s11, v3, vcc_lo
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s2, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s3, v3, vcc_lo
	global_load_b32 v6, v[0:1], off
	global_load_b32 v4, v[4:5], off
	global_load_b32 v0, v[2:3], off
	s_load_b64 s[2:3], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	v_cvt_f32_u32_e32 v1, s2
	s_sub_i32 s6, 0, s2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_iflag_f32_e32 v1, v1
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v1, 0x4f7ffffe, v1
	v_cvt_u32_f32_e32 v3, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v1, s6, v3
	s_sub_i32 s6, 0, s3
	v_mul_hi_u32 v5, v3, v1
	s_waitcnt vmcnt(0)
	v_mad_u64_u32 v[1:2], null, v4, v6, v[0:1]
	v_cvt_f32_u32_e32 v0, s3
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v2, v3, v5
	v_rcp_iflag_f32_e32 v0, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v2, v1, v2
	v_mul_lo_u32 v2, v2, s2
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v0, 0x4f7ffffe, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cvt_u32_f32_e32 v0, v0
	v_sub_nc_u32_e32 v1, v1, v2
	v_mul_lo_u32 v2, s6, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v3, s2, v1
	v_cmp_le_u32_e32 vcc_lo, s2, v1
	v_cndmask_b32_e32 v1, v1, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_hi_u32 v2, v0, v2
	v_subrev_nc_u32_e32 v3, s2, v1
	v_cmp_le_u32_e32 vcc_lo, s2, v1
	s_mov_b32 s2, exec_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v1, v1, v3 :: v_dual_add_nc_u32 v0, v0, v2
	v_mul_hi_u32 v0, v1, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v0, v0, s3
	v_sub_nc_u32_e32 v0, v1, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v1, s3, v0
	v_cmp_le_u32_e32 vcc_lo, s3, v0
	v_dual_cndmask_b32 v0, v0, v1 :: v_dual_mov_b32 v1, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v2, s3, v0
	v_cmp_le_u32_e32 vcc_lo, s3, v0
	v_cndmask_b32_e32 v0, v0, v2, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[2:3], 2, v[0:1]
	v_add_co_u32 v2, vcc_lo, s4, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v3, vcc_lo
	global_load_b32 v0, v[2:3], off
	s_waitcnt vmcnt(0)
	v_cmpx_ne_u32_e64 v0, v6
	s_cbranch_execz .LBB2_2
; %bb.1:
	s_load_b64 s[0:1], s[0:1], 0x48
	v_mov_b32_e32 v0, -1
	s_waitcnt lgkmcnt(0)
	global_store_b32 v1, v0, s[0:1]
.LBB2_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z5checkiiiiPiS_S_S_S_S_iS_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 336
		.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 7
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end2:
	.size	_Z5checkiiiiPiS_S_S_S_S_iS_, .Lfunc_end2-_Z5checkiiiiPiS_S_S_S_S_iS_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 528
; NumSgprs: 18
; NumVgprs: 7
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 7
; 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
	.protected	_Z6insertiiiiPiS_S_S_S_S_i ; -- Begin function _Z6insertiiiiPiS_S_S_S_S_i
	.globl	_Z6insertiiiiPiS_S_S_S_S_i
	.p2align	8
	.type	_Z6insertiiiiPiS_S_S_S_S_i,@function
_Z6insertiiiiPiS_S_S_S_S_i:             ; @_Z6insertiiiiPiS_S_S_S_S_i
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x54
	s_load_b128 s[16:19], 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 s18, v1
	s_cbranch_execz .LBB3_3
; %bb.1:
	s_load_b256 s[4:11], s[0:1], 0x10
	v_ashrrev_i32_e32 v2, 31, v1
	s_load_b64 s[0:1], s[0:1], 0x30
	s_sub_i32 s2, 0, s16
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[4:5], 2, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v0, vcc_lo, s8, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v1, vcc_lo, s9, v5, vcc_lo
	global_load_b32 v2, v[0:1], off
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[6:7], 2, v[2:3]
	v_add_co_u32 v3, vcc_lo, s6, v4
	v_add_co_ci_u32_e32 v4, vcc_lo, s7, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v8, vcc_lo, s10, v6
	v_add_co_ci_u32_e32 v9, vcc_lo, s11, v7, vcc_lo
	v_add_co_u32 v6, vcc_lo, s0, v6
	v_add_co_ci_u32_e32 v7, vcc_lo, s1, v7, vcc_lo
	global_load_b32 v5, v[3:4], off
	global_load_b32 v4, v[8:9], off
	global_load_b32 v3, v[6:7], off
	v_cvt_f32_u32_e32 v6, s16
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_iflag_f32_e32 v6, v6
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v6, 0x4f7ffffe, v6
	v_cvt_u32_f32_e32 v6, v6
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v7, s2, v6
	s_sub_i32 s2, 0, s17
	v_mul_hi_u32 v9, v6, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v6, v6, v9
	s_waitcnt vmcnt(0)
	v_mad_u64_u32 v[7:8], null, v4, v5, v[3:4]
	v_cvt_f32_u32_e32 v3, s17
	v_rcp_iflag_f32_e32 v3, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v4, v7, v6
	v_mul_lo_u32 v4, v4, s16
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v3, 0x4f7ffffe, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cvt_u32_f32_e32 v3, v3
	v_sub_nc_u32_e32 v4, v7, v4
	v_mul_lo_u32 v7, s2, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_subrev_nc_u32_e32 v8, s16, v4
	v_cmp_le_u32_e32 vcc_lo, s16, v4
	v_mul_hi_u32 v7, v3, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v4, v4, v8 :: v_dual_add_nc_u32 v7, v3, v7
	v_subrev_nc_u32_e32 v8, s16, v4
	v_cmp_le_u32_e32 vcc_lo, s16, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v3, v4, v8, vcc_lo
	v_mul_hi_u32 v4, v3, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v4, v4, s17
	v_sub_nc_u32_e32 v3, v3, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v4, s17, v3
	v_cmp_le_u32_e32 vcc_lo, s17, v3
	v_dual_cndmask_b32 v3, v3, v4 :: v_dual_mov_b32 v4, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v8, s17, v3
	v_cmp_le_u32_e32 vcc_lo, s17, v3
	v_cndmask_b32_e32 v3, v3, v8, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[8:9], 2, v[3:4]
	v_add_co_u32 v8, vcc_lo, s4, v8
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v9, vcc_lo, s5, v9, vcc_lo
	global_load_b32 v3, v[8:9], off
	s_waitcnt vmcnt(0)
	v_cmp_ne_u32_e32 vcc_lo, v3, v5
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB3_3
; %bb.2:
	s_ashr_i32 s2, s19, 31
	v_add_nc_u32_e32 v2, 1, v2
	s_add_i32 s3, s19, s2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_xor_b32 s2, s3, s2
	v_cvt_f32_u32_e32 v3, s2
	s_sub_i32 s3, 0, s2
	v_ashrrev_i32_e32 v9, 31, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_iflag_f32_e32 v3, v3
	v_add_nc_u32_e32 v2, v2, v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_xor_b32_e32 v2, v2, v9
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v3, 0x4f7ffffe, v3
	v_cvt_u32_f32_e32 v3, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v8, s3, v3
	v_mul_hi_u32 v8, v3, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v3, v3, v8
	v_mul_hi_u32 v3, v2, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v3, v3, s2
	v_sub_nc_u32_e32 v2, v2, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v3, s2, v2
	v_cmp_le_u32_e32 vcc_lo, s2, v2
	v_cndmask_b32_e32 v2, v2, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v3, s2, v2
	v_cmp_le_u32_e32 vcc_lo, s2, v2
	v_cndmask_b32_e32 v2, v2, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_xor_b32_e32 v2, v2, v9
	v_sub_nc_u32_e32 v2, v2, v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	global_store_b32 v[0:1], v2, off
	v_lshlrev_b64 v[8:9], 2, v[2:3]
	v_add_co_u32 v10, vcc_lo, s10, v8
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v11, vcc_lo, s11, v9, vcc_lo
	v_add_co_u32 v8, vcc_lo, s0, v8
	v_add_co_ci_u32_e32 v9, vcc_lo, s1, v9, vcc_lo
	global_load_b32 v3, v[10:11], off
	global_load_b32 v0, v[8:9], off
	s_waitcnt vmcnt(0)
	v_mad_u64_u32 v[1:2], null, v3, v5, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v0, v1, v6
	v_mul_lo_u32 v0, v0, s16
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v0, v1, v0
	v_subrev_nc_u32_e32 v1, s16, v0
	v_cmp_le_u32_e32 vcc_lo, s16, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v0, v0, v1, vcc_lo
	v_subrev_nc_u32_e32 v1, s16, v0
	v_cmp_le_u32_e32 vcc_lo, s16, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v0, v0, v1, vcc_lo
	v_mul_hi_u32 v1, v0, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v1, v1, s17
	v_sub_nc_u32_e32 v0, v0, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v1, s17, v0
	v_cmp_le_u32_e32 vcc_lo, s17, v0
	v_cndmask_b32_e32 v0, v0, v1, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v1, s17, v0
	v_cmp_le_u32_e32 vcc_lo, s17, v0
	v_cndmask_b32_e32 v3, v0, v1, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[3:4]
	v_add_co_u32 v0, vcc_lo, s4, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s5, v1, vcc_lo
	global_store_b32 v[0:1], v5, off
.LBB3_3:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z6insertiiiiPiS_S_S_S_S_i
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 328
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 12
		.amdhsa_next_free_sgpr 20
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end3:
	.size	_Z6insertiiiiPiS_S_S_S_S_i, .Lfunc_end3-_Z6insertiiiiPiS_S_S_S_S_i
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 904
; NumSgprs: 22
; NumVgprs: 12
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 22
; NumVGPRsForWavesPerEU: 12
; 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
	.protected	_Z4findiiiiPiS_S_S_S_S_ ; -- Begin function _Z4findiiiiPiS_S_S_S_S_
	.globl	_Z4findiiiiPiS_S_S_S_S_
	.p2align	8
	.type	_Z4findiiiiPiS_S_S_S_S_,@function
_Z4findiiiiPiS_S_S_S_S_:                ; @_Z4findiiiiPiS_S_S_S_S_
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x4c
	s_load_b32 s12, s[0:1], 0xc
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_cmp_lt_i32 s12, 1
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v2, 31, v1
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	s_cbranch_scc1 .LBB4_3
; %bb.1:                                ; %.lr.ph
	s_clause 0x1
	s_load_b256 s[4:11], s[0:1], 0x10
	s_load_b64 s[2:3], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v1, vcc_lo
	v_cvt_f32_u32_e32 v4, s3
	s_sub_i32 s6, 0, s2
	s_sub_i32 s7, 0, s3
	global_load_b32 v2, v[2:3], off
	v_cvt_f32_u32_e32 v3, s2
	v_rcp_iflag_f32_e32 v4, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_iflag_f32_e32 v3, v3
	s_waitcnt_depctr 0xfff
	v_dual_mul_f32 v4, 0x4f7ffffe, v4 :: v_dual_mul_f32 v3, 0x4f7ffffe, v3
	v_cvt_u32_f32_e32 v5, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cvt_u32_f32_e32 v3, v3
	v_mul_lo_u32 v6, s7, v5
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v4, s6, v3
	v_mul_hi_u32 v6, v5, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_hi_u32 v4, v3, v4
	v_add_nc_u32_e32 v5, v5, v6
	s_delay_alu instid0(VALU_DEP_2)
	v_dual_mov_b32 v3, 0 :: v_dual_add_nc_u32 v4, v3, v4
.LBB4_2:                                ; =>This Inner Loop Header: Depth=1
	s_load_b32 s7, s[8:9], 0x0
	s_load_b32 s6, s[10:11], 0x0
	s_add_i32 s12, s12, -1
	s_add_u32 s8, s8, 4
	s_addc_u32 s9, s9, 0
	s_add_u32 s10, s10, 4
	s_addc_u32 s11, s11, 0
	s_cmp_eq_u32 s12, 0
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_mad_u64_u32 v[6:7], null, s7, v2, s[6:7]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v7, v6, v4
	v_mul_lo_u32 v7, v7, s2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v6, v6, v7
	v_subrev_nc_u32_e32 v7, s2, v6
	v_cmp_le_u32_e32 vcc_lo, s2, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v6, v6, v7, vcc_lo
	v_subrev_nc_u32_e32 v7, s2, v6
	v_cmp_le_u32_e32 vcc_lo, s2, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v6, v6, v7, vcc_lo
	v_mul_hi_u32 v7, v6, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v7, v7, s3
	v_sub_nc_u32_e32 v6, v6, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v7, s3, v6
	v_cmp_le_u32_e32 vcc_lo, s3, v6
	v_cndmask_b32_e32 v6, v6, v7, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v7, s3, v6
	v_cmp_le_u32_e32 vcc_lo, s3, v6
	v_cndmask_b32_e32 v6, v6, v7, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v7, 31, v6
	v_lshlrev_b64 v[6:7], 2, v[6:7]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v6, vcc_lo, s4, v6
	v_add_co_ci_u32_e32 v7, vcc_lo, s5, v7, vcc_lo
	global_load_b32 v6, v[6:7], off
	s_waitcnt vmcnt(0)
	v_cmp_ne_u32_e32 vcc_lo, v6, v2
	v_cndmask_b32_e32 v3, 1, v3, vcc_lo
	s_cbranch_scc0 .LBB4_2
	s_branch .LBB4_4
.LBB4_3:
	v_mov_b32_e32 v3, 0
.LBB4_4:                                ; %Flow51
	s_load_b64 s[0:1], s[0:1], 0x38
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, s0, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	global_store_b32 v[0:1], v3, off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z4findiiiiPiS_S_S_S_S_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 320
		.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 8
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end4:
	.size	_Z4findiiiiPiS_S_S_S_S_, .Lfunc_end4-_Z4findiiiiPiS_S_S_S_S_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 500
; NumSgprs: 18
; NumVgprs: 8
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 8
; 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
	.protected	_Z10delete_eleiiiiPiS_S_S_S_S_S_ ; -- Begin function _Z10delete_eleiiiiPiS_S_S_S_S_S_
	.globl	_Z10delete_eleiiiiPiS_S_S_S_S_S_
	.p2align	8
	.type	_Z10delete_eleiiiiPiS_S_S_S_S_S_,@function
_Z10delete_eleiiiiPiS_S_S_S_S_S_:       ; @_Z10delete_eleiiiiPiS_S_S_S_S_S_
; %bb.0:
	s_load_b32 s12, s[0:1], 0xc
	s_waitcnt lgkmcnt(0)
	s_cmp_lt_i32 s12, 1
	s_cbranch_scc1 .LBB5_5
; %bb.1:                                ; %.lr.ph
	s_clause 0x3
	s_load_b64 s[2:3], s[0:1], 0x0
	s_load_b32 s13, s[0:1], 0x54
	s_load_b256 s[4:11], s[0:1], 0x10
	s_load_b64 s[0:1], s[0:1], 0x30
	s_waitcnt lgkmcnt(0)
	v_cvt_f32_u32_e32 v1, s2
	v_cvt_f32_u32_e32 v2, s3
	s_and_b32 s13, s13, 0xffff
	s_sub_i32 s14, 0, s3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_iflag_f32_e32 v1, v1
	v_rcp_iflag_f32_e32 v2, v2
	s_waitcnt_depctr 0xfff
	v_dual_mul_f32 v3, 0x4f7ffffe, v1 :: v_dual_mul_f32 v4, 0x4f7ffffe, v2
	v_mad_u64_u32 v[1:2], null, s15, s13, v[0:1]
	s_sub_i32 s13, 0, s2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cvt_u32_f32_e32 v3, v3
	v_cvt_u32_f32_e32 v5, v4
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v2, 31, v1
	v_mul_lo_u32 v4, s13, v3
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_lo_u32 v6, s14, v5
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_hi_u32 v2, v3, v4
	v_mul_hi_u32 v6, v5, v6
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v0, vcc_lo, s8, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s9, v1, vcc_lo
	s_mov_b32 s8, s12
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_nc_u32_e32 v4, v3, v2
	v_dual_mov_b32 v6, 0 :: v_dual_add_nc_u32 v5, v5, v6
.LBB5_2:                                ; =>This Inner Loop Header: Depth=1
	global_load_b32 v9, v[0:1], off
	s_clause 0x1
	global_load_b32 v3, v6, s[10:11]
	global_load_b32 v2, v6, s[0:1]
	s_mov_b32 s9, exec_lo
	s_waitcnt vmcnt(0)
	v_mad_u64_u32 v[7:8], null, v3, v9, v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v2, v7, v4
	v_mul_lo_u32 v2, v2, s2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_nc_u32_e32 v2, v7, v2
	v_subrev_nc_u32_e32 v3, s2, v2
	v_cmp_le_u32_e32 vcc_lo, s2, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v2, v2, v3, vcc_lo
	v_subrev_nc_u32_e32 v3, s2, v2
	v_cmp_le_u32_e32 vcc_lo, s2, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v2, v2, v3, vcc_lo
	v_mul_hi_u32 v3, v2, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v3, v3, s3
	v_sub_nc_u32_e32 v2, v2, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v3, s3, v2
	v_cmp_le_u32_e32 vcc_lo, s3, v2
	v_cndmask_b32_e32 v2, v2, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v3, s3, v2
	v_cmp_le_u32_e32 vcc_lo, s3, v2
	v_cndmask_b32_e32 v2, v2, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[2:3], 2, v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s4, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v3, vcc_lo
	global_load_b32 v7, v[2:3], off
	s_waitcnt vmcnt(0)
	v_cmpx_eq_u32_e64 v7, v9
	s_cbranch_execz .LBB5_4
; %bb.3:                                ;   in Loop: Header=BB5_2 Depth=1
	global_store_b32 v[2:3], v6, off
	global_load_b32 v3, v[0:1], off
	s_clause 0x1
	global_load_b32 v9, v6, s[10:11]
	global_load_b32 v2, v6, s[0:1]
	s_waitcnt vmcnt(0)
	v_mad_u64_u32 v[7:8], null, v9, v3, v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_hi_u32 v2, v7, v4
	v_mul_lo_u32 v2, v2, s2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_sub_nc_u32_e32 v2, v7, v2
	v_mov_b32_e32 v7, s12
	v_subrev_nc_u32_e32 v3, s2, v2
	v_cmp_le_u32_e32 vcc_lo, s2, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v2, v2, v3, vcc_lo
	v_subrev_nc_u32_e32 v3, s2, v2
	v_cmp_le_u32_e32 vcc_lo, s2, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v2, v2, v3, vcc_lo
	v_mul_hi_u32 v3, v2, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v3, v3, s3
	v_sub_nc_u32_e32 v2, v2, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v3, s3, v2
	v_cmp_le_u32_e32 vcc_lo, s3, v2
	v_cndmask_b32_e32 v2, v2, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_subrev_nc_u32_e32 v3, s3, v2
	v_cmp_le_u32_e32 vcc_lo, s3, v2
	v_cndmask_b32_e32 v2, v2, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[2:3], 2, v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s6, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v3, vcc_lo
	global_store_b32 v[2:3], v7, off
.LBB5_4:                                ;   in Loop: Header=BB5_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s9
	s_add_i32 s8, s8, -1
	s_add_u32 s10, s10, 4
	s_addc_u32 s11, s11, 0
	s_add_u32 s0, s0, 4
	s_addc_u32 s1, s1, 0
	s_cmp_eq_u32 s8, 0
	s_cbranch_scc0 .LBB5_2
.LBB5_5:                                ; %._crit_edge
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z10delete_eleiiiiPiS_S_S_S_S_S_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 328
		.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 10
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end5:
	.size	_Z10delete_eleiiiiPiS_S_S_S_S_S_, .Lfunc_end5-_Z10delete_eleiiiiPiS_S_S_S_S_S_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 692
; NumSgprs: 18
; NumVgprs: 10
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 10
; 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
      - .offset:         4
        .size:           4
        .value_kind:     by_value
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .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
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         56
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         64
        .size:           8
        .value_kind:     global_buffer
      - .offset:         72
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         76
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         80
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         84
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         86
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         88
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         90
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         92
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         94
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         112
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         120
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         128
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         136
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 328
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z7add_twoiiiiPiS_S_S_S_S_S_
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z7add_twoiiiiPiS_S_S_S_S_S_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     9
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .offset:         4
        .size:           4
        .value_kind:     by_value
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .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
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         56
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         64
        .size:           8
        .value_kind:     global_buffer
      - .offset:         72
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         76
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         80
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         84
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         86
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         88
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         90
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         92
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         94
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         112
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         120
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         128
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         136
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 328
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z12fix_locationiiiiPiS_S_S_S_S_S_
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z12fix_locationiiiiPiS_S_S_S_S_S_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     9
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .offset:         4
        .size:           4
        .value_kind:     by_value
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .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
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         56
        .size:           8
        .value_kind:     global_buffer
      - .offset:         64
        .size:           4
        .value_kind:     by_value
      - .address_space:  global
        .offset:         72
        .size:           8
        .value_kind:     global_buffer
      - .offset:         80
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         84
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         88
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         92
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         94
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         96
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         98
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         100
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         102
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         120
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         128
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         136
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         144
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 336
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z5checkiiiiPiS_S_S_S_S_iS_
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z5checkiiiiPiS_S_S_S_S_iS_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     7
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .offset:         4
        .size:           4
        .value_kind:     by_value
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .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
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         56
        .size:           8
        .value_kind:     global_buffer
      - .offset:         64
        .size:           4
        .value_kind:     by_value
      - .offset:         72
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         76
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         80
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         84
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         86
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         88
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         90
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         92
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         94
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         112
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         120
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         128
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         136
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 328
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z6insertiiiiPiS_S_S_S_S_i
    .private_segment_fixed_size: 0
    .sgpr_count:     22
    .sgpr_spill_count: 0
    .symbol:         _Z6insertiiiiPiS_S_S_S_S_i.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     12
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .offset:         4
        .size:           4
        .value_kind:     by_value
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .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
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         56
        .size:           8
        .value_kind:     global_buffer
      - .offset:         64
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         68
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         72
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         76
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         78
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         80
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         82
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         84
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         86
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         104
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         112
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         120
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         128
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 320
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z4findiiiiPiS_S_S_S_S_
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z4findiiiiPiS_S_S_S_S_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     8
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           4
        .value_kind:     by_value
      - .offset:         4
        .size:           4
        .value_kind:     by_value
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .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
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         56
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         64
        .size:           8
        .value_kind:     global_buffer
      - .offset:         72
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         76
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         80
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         84
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         86
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         88
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         90
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         92
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         94
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         112
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         120
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         128
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         136
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 328
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z10delete_eleiiiiPiS_S_S_S_S_S_
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z10delete_eleiiiiPiS_S_S_S_S_S_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     10
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
