#include "cuda_runtime.h"
#include "device_launch_parameters.h"

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#include <set>
#include <utility>

using namespace std;

__global__ void factorAKernel ( int *T_i, float *T_d ,float *A, float *B, float *C, float *A_n, int l_i, int l_t, int l_q, int l_d, int k,float beta)
{
	int i = blockIdx.y * blockDim.y + threadIdx.y;
	int j = blockIdx.x * blockDim.x + threadIdx.x;
	
	float sum_n = 0.1f, sum_d = 0.1f;
	float temp = 0.0f, error = 0.0f;
	
	int start = T_i[i];
	int end = ((i+1) < l_i) ? T_i[i+1] : l_d;
	int q = 0, t=0;
	
	for(int ind=start+2; ind<end; ind+=3){
		t = T_d[ind-2];
		q = T_d[ind-1];

		error = 0.0f;
		for(int j_i=0;j_i<k;j_i++){
			error += A[i*k+j_i]*B[t*k+j_i]*C[q*k+j_i];
		}

		temp = B[t*k+j]*C[q*k+j];
		sum_n += temp * T_d[ind] / powf(error,1.0f - beta);
		sum_d += temp * powf(error,beta);
	}
	A_n[i*k+j] = A[i*k+j]*(sum_n/sum_d);
}

__global__ void factorBKernel ( int *T_t, float *T_d, float *A, float *B, float *C, float *B_n, int l_i, int l_t, int l_q, int l_d, int k, float beta){
	int t = blockIdx.y * blockDim.y + threadIdx.y;
	int j = blockIdx.x * blockDim.x + threadIdx.x;
	
	float sum_n = 0.1f, sum_d = 0.1f;
	float temp = 0.0f, error = 0.0f;
	
	int start = T_t[t];
	int end = ((t+1) < l_t) ? T_t[t+1] : l_d;
	int i,q;

	for(int ind=start+2; ind<end; ind+=3){
		q = (int)T_d[ind-2];
		i = (int)T_d[ind-1];

		error = 0.0f;
		for(int j=0;j<k;j++){
			error += A[i*k+j]*B[t*k+j]*C[q*k+j];
		}

		temp = A[i*k+j]*C[q*k+j];
		sum_n += temp * T_d[ind] / powf(error, 1.0f - beta);
		sum_d += temp * powf(error, beta);
	}

	B_n[t*k+j] = B[t*k+j]*(sum_n/sum_d);
}

__global__ void factorCKernel ( int *T_q, float *T_d, float *A, float *B, float *C, float *C_n, int l_i, int l_t, int l_q, int l_d, int k, float beta){
	int q = blockIdx.y * blockDim.y + threadIdx.y;
	int j = blockIdx.x * blockDim.x + threadIdx.x;
	
	float sum_n = 0.1f, sum_d = 0.1f;
	float temp = 0.0f, error = 0.0f;
	
	int start = T_q[q];
	int end = ((q+1) < l_q) ? T_q[q+1] : l_d;
	int i,t;

	for(int ind=start+2; ind<end; ind+=3){
		i = (int)T_d[ind-2];
		t = (int)T_d[ind-1];

		error = 0.0f;
		for(int j=0;j<k;j++){
			error += A[i*k+j]*B[t*k+j]*C[q*k+j];
		}

		temp = A[i*k+j]*B[t*k+j];
		sum_n += temp * T_d[ind] / powf(error, 1.0f - beta);
		sum_d += temp * powf(error, beta);
	}

	C_n[q*k+j] = C[q*k+j]*sum_n/sum_d;
}

typedef struct tensor_elem{
    int i,t,q;
    float val;
} tensor_elem;

int comp_i(const void* el1, const void* el2){
    tensor_elem first  = *((tensor_elem*)el1);
    tensor_elem second = *((tensor_elem*)el2);
    return first.i > second.i || (first.i == second.i && first.t > second.t) || (first.i == second.i && first.t == second.t && first.q > second.q);
}

int comp_t(const void* el1, const void* el2){
    tensor_elem first  = *((tensor_elem*)el1);
    tensor_elem second = *((tensor_elem*)el2);
    return first.t > second.t || (first.t == second.t && first.q < second.q) || (first.t == second.t && first.q == second.q && first.i > second.i);
}

int comp_q(const void* el1, const void* el2){
    tensor_elem first  = *((tensor_elem*)el1);
    tensor_elem second = *((tensor_elem*)el2);
    return first.q > second.q || (first.q == second.q && first.i > second.i) || (first.q == second.q && first.i == second.i && first.t > second.t);
}

void unfoldTensor(tensor_elem* T, int** Ti_ind, float** Ti_data, int** Tt_ind, float** Tt_data, int** Tq_ind, float** Tq_data, int* leni_ind, int* lent_ind, int* lenq_ind, int* num_values){
	
	int n = *num_values;
	qsort(T, n, sizeof(tensor_elem),comp_i);
    
    *Ti_ind = (int*)malloc((*leni_ind)*sizeof(int));
    int* Ti_ind_cur = *Ti_ind;
    *Ti_data = (float*)malloc(3*n*sizeof(float));
    float* Ti_data_cur = *Ti_data; 
    
    int ind_data = 0;
    int ind_sparse = 0;
    Ti_ind_cur[0]=0;
    for(int ind=0;ind<((*leni_ind) - 1);ind++){
        while((ind_sparse < (3*n)) && (T[ind_data].i == ind)){
            Ti_data_cur[ind_sparse] = T[ind_data].t;
            Ti_data_cur[ind_sparse+1] = T[ind_data].q;
            Ti_data_cur[ind_sparse+2] = T[ind_data].val; 
            ind_data++;
            ind_sparse+=3;
        }
        Ti_ind_cur[ind+1]=ind_sparse;
                    
    }
    while(ind_sparse < (3*n)){
        Ti_data_cur[ind_sparse] = T[ind_data].t;
        Ti_data_cur[ind_sparse+1] = T[ind_data].q;
        Ti_data_cur[ind_sparse+2] = T[ind_data].val; 
        ind_data++;
        ind_sparse+=3;
    }
    
    qsort(T, n, sizeof(tensor_elem),comp_t);
    
	*Tt_ind = (int*)malloc((*lent_ind)*sizeof(int));
    int* Tt_ind_cur = *Tt_ind;
    *Tt_data = (float*)malloc(3*n*sizeof(float));
    float* Tt_data_cur = *Tt_data; 
    
    ind_data = 0;
    ind_sparse = 0;
    Tt_ind_cur[0]=0;
    for(int ind=0;ind<((*lent_ind) - 1);ind++){
        while((ind_sparse < (3*n)) && (T[ind_data].t == ind)){
            Tt_data_cur[ind_sparse] = T[ind_data].i;
            Tt_data_cur[ind_sparse+1] = T[ind_data].q;
            Tt_data_cur[ind_sparse+2] = T[ind_data].val; 
            ind_data++;
            ind_sparse+=3;
        }
        Tt_ind_cur[ind+1]=ind_sparse;
                    
    }
    while(ind_sparse < (3*n)){
        Tt_data_cur[ind_sparse] = T[ind_data].i;
        Tt_data_cur[ind_sparse+1] = T[ind_data].q;
        Tt_data_cur[ind_sparse+2] = T[ind_data].val; 
        ind_data++;
        ind_sparse+=3;
    }

    qsort(T, n, sizeof(tensor_elem),comp_q);
    
	*Tq_ind = (int*)malloc((*lenq_ind)*sizeof(int));
    int* Tq_ind_cur = *Tq_ind;
    *Tq_data = (float*)malloc(3*n*sizeof(float));
    float* Tq_data_cur = *Tq_data; 
    
    ind_data = 0;
    ind_sparse = 0;
    Tq_ind_cur[0]=0;
    for(int ind=0;ind<((*lenq_ind) - 1);ind++){
        while((ind_sparse < (3*n)) && (T[ind_data].q == ind)){
            Tq_data_cur[ind_sparse] = T[ind_data].i;
            Tq_data_cur[ind_sparse+1] = T[ind_data].t;
            Tq_data_cur[ind_sparse+2] = T[ind_data].val; 
            ind_data++;
            ind_sparse+=3;
        }
        Tq_ind_cur[ind+1]=ind_sparse;
                    
    }
    while(ind_sparse < (3*n)){
        Tq_data_cur[ind_sparse] = T[ind_data].i;
        Tq_data_cur[ind_sparse+1] = T[ind_data].t;
        Tq_data_cur[ind_sparse+2] = T[ind_data].val; 
        ind_data++;
        ind_sparse+=3;
    }
}

void parseTensorFile(char* fileName, int** Ti_ind, float** Ti_data, int** Tt_ind, float** Tt_data, int** Tq_ind, float** Tq_data, int* leni_ind, int* lent_ind, int* lenq_ind, int* num_values){
    
    FILE* f = fopen(fileName, "r");
    
    int n = 0;
    int i,t,q;
    float val;
    fscanf(f,"%d %d %d",&i,&t,&q);
    *leni_ind = i;
    *lent_ind = t;
    *lenq_ind = q;
    fscanf(f,"%d",&n);
    *num_values = n;
    tensor_elem* T = (tensor_elem*)malloc(n*sizeof(tensor_elem));
    
    for(int ind=0;ind<n;ind++){
        fscanf(f,"%d %d %d %f",&i,&t,&q,&val);
        tensor_elem cur;
        cur.i = i; cur.t = t; cur.q = q; cur.val = val;
        T[ind] = cur;
    }
    fclose(f);
    
	unfoldTensor(T,Ti_ind,Ti_data,Tt_ind,Tt_data,Tq_ind,Tq_data,leni_ind,lent_ind,lenq_ind,num_values);

    free(T);
}

void printTensorToFile(char* fileName, tensor_elem* T, int i, int t, int q, int n){
	FILE* f = fopen(fileName, "w");
	fprintf(f,"%d %d %d\n",i,t,q);
	fprintf(f,"%d\n",n);
	
	qsort(T, n, sizeof(tensor_elem),comp_i);

	for(int ind=0;ind<n;ind++){
		tensor_elem cur = T[ind];
		fprintf(f,"%d %d %d %f\n",cur.i,cur.t, cur.q, cur.val);
	}
	fclose(f);
}

void genTensor(int** Ti_ind, float** Ti_data, int** Tt_ind, float** Tt_data, int** Tq_ind, float** Tq_data, int leni_ind, int lent_ind, int lenq_ind, int num_values){

	int n = num_values;

	tensor_elem* T = (tensor_elem*)malloc(n*sizeof(tensor_elem));
	//tensor_elem* T = new tensor_elem[num_values];

	set<pair<int,pair<int,int> > > index_set;

	int ind=0;
    while(ind<n){
        tensor_elem cur;
		int i = rand() % leni_ind;
		int t = rand() % lent_ind;
		int q = rand() % lenq_ind;

		if( index_set.find(make_pair(i,make_pair(t,q))) == index_set.end() ){
			cur.i = i; 
			cur.t = t; 
			cur.q = q; 
			cur.val = rand() % 100;
			T[ind] = cur;
			index_set.insert(make_pair(i,make_pair(t,q)));
			ind++;
		}
    }
    qsort(T, n, sizeof(tensor_elem),comp_i);
	printTensorToFile("tensor_input.txt",T,leni_ind,lent_ind,lenq_ind,num_values);

	unfoldTensor(T,Ti_ind,Ti_data,Tt_ind,Tt_data,Tq_ind,Tq_data,&leni_ind,&lent_ind,&lenq_ind,&num_values);

    free(T);
}

tensor_elem* buildErrorTensor(float* A, float* B,float* C,int k,int leni_ind, int lent_ind, int lenq_ind){
	
	//tensor_elem* T = new tensor_elem[leni_ind*lent_ind*lenq_ind];
	tensor_elem* T = (tensor_elem*)malloc(leni_ind*lent_ind*lenq_ind*sizeof(tensor_elem));


	int ind = 0;
	for(int i=0;i<leni_ind;i++){
		for(int t=0;t<lent_ind;t++){
			for(int q=0;q<lenq_ind;q++){
				float cur = 0.0f;
				for(int j=0;j<k;j++){
					cur += A[i*k+j]*B[t*k+j]*C[q*k+j];
				}
				T[ind].i = i;
				T[ind].t = t;
				T[ind].q = q;
				T[ind].val = cur;
				ind++;
			}
		}
	}

	return T;
}

void printToFile(char* fileNameA, char* fileNameB, char* fileNameC, int k, float* A, int i, float* B, int t, float* C, int q){
    //open file
    FILE* fA = fopen(fileNameA, "w");
    FILE* fB = fopen(fileNameB, "w");
    FILE* fC = fopen(fileNameC, "w");
    for(int ind=1;ind<=(k*i);ind++){
        fprintf(fA,"%f",A[ind-1]);
        if(ind % k == 0) fprintf(fA,"\n");
        else fprintf(fA," ");
    }
    for(int ind=1;ind<=(k*t);ind++){
        fprintf(fB,"%f",B[ind-1]);
        if(ind % k == 0) fprintf(fB,"\n");
        else fprintf(fB," ");
    }
    for(int ind=1;ind<=(k*q);ind++){
        fprintf(fC,"%f",C[ind-1]);
        if(ind % k == 0) fprintf(fC,"\n");
        else fprintf(fC," ");
    }
    fclose(fA);
    fclose(fB);
    fclose(fC);
}



int main ( int argc, char *  argv [] )
{
	char fileName[] = "tensor_input.txt";
	char fileA[] = "A.txt";
	char fileB[] = "B.txt";
	char fileC[] = "C.txt";

    int *Ti_ind, *Tt_ind, *Tq_ind;
    float* Ti_data, *Tt_data, *Tq_data;
    //int i, t, q, n;
    //parseTensorFile(fileName,&Ti_ind,&Ti_data,&Tt_ind,&Tt_data,&Tq_ind,&Tq_data,&i,&t,&q,&n);
    int i = 3, t = 3, q = 3, n = 27;
	genTensor(&Ti_ind,&Ti_data,&Tt_ind,&Tt_data,&Tq_ind,&Tq_data,i,t,q,n);
	
	/*
	for(int ind=0;ind<i;ind++){
        printf("%d ", Ti_ind[ind]);
    }
    printf("\n\n");
    */
	/*
	for(int ind=0;ind<(3*n);ind+=3){
        printf("%f %f %f\n",Ti_data[ind],Ti_data[ind+1],Ti_data[ind+2]);
    }
	*/
    printf("\n");   
	
	int k = 2;
	//scanf("%d", &k);
	
	float beta = 0.0f;

	float* A = new float[k*i];
	float* B = new float[k*t];
	float* C = new float[k*q];

	for(int ind=0;ind<(k*i);ind++) A[ind] = (float)rand();
	for(int ind=0;ind<(k*t);ind++) B[ind] = (float)rand();
	for(int ind=0;ind<(k*q);ind++) C[ind] = (float)rand();

    float *Ti_data_cuda = NULL, *Tt_data_cuda = NULL, *Tq_data_cuda = NULL;
	int *Ti_ind_cuda = NULL, *Tt_ind_cuda = NULL, *Tq_ind_cuda = NULL;
	cudaMalloc ( (void**)&Ti_data_cuda, 3*n*sizeof(float) );
	cudaMalloc ( (void**)&Tt_data_cuda, 3*n*sizeof(float) );
	cudaMalloc ( (void**)&Tq_data_cuda, 3*n*sizeof(float) );
	cudaMalloc ( (void**)&Ti_ind_cuda, i*sizeof(int) );
	cudaMalloc ( (void**)&Tt_ind_cuda, t*sizeof(int) );
	cudaMalloc ( (void**)&Tq_ind_cuda, q*sizeof(int) );
	
	float *A_cuda = NULL, *B_cuda = NULL, *C_cuda = NULL, *A_next_cuda = NULL, *B_next_cuda = NULL, *C_next_cuda = NULL;
	int numBytesA = (k*i)*sizeof(float);
	int numBytesB = (k*t)*sizeof(float);
	int numBytesC = (k*q)*sizeof(float);
	cudaMalloc ( (void**)&A_cuda, numBytesA );
	cudaMalloc ( (void**)&B_cuda, numBytesB );
	cudaMalloc ( (void**)&C_cuda, numBytesC );
	cudaMalloc ( (void**)&A_next_cuda, numBytesA );
	cudaMalloc ( (void**)&B_next_cuda, numBytesB );
	cudaMalloc ( (void**)&C_next_cuda, numBytesC );

    dim3 blocks  = dim3(1, 1);

    cudaEvent_t start, stop;
    float gpuTime = 0.0f;

    cudaEventCreate ( &start );
    cudaEventCreate ( &stop );
    cudaEventRecord ( start, 0 );
    
	cudaDeviceSynchronize();
	cudaMemcpy      ( Ti_data_cuda, Ti_data, 3*n*sizeof(float), cudaMemcpyHostToDevice );
	cudaMemcpy      ( Ti_ind_cuda, Ti_ind, i*sizeof(int), cudaMemcpyHostToDevice );
	cudaMemcpy      ( Tt_data_cuda, Tt_data, 3*n*sizeof(float), cudaMemcpyHostToDevice );
	cudaMemcpy      ( Tt_ind_cuda, Tt_ind, t*sizeof(int), cudaMemcpyHostToDevice );
	cudaMemcpy      ( Tq_data_cuda, Tq_data, 3*n*sizeof(float), cudaMemcpyHostToDevice );
	cudaMemcpy      ( Tq_ind_cuda, Tq_ind, q*sizeof(int), cudaMemcpyHostToDevice );
	
	cudaMemcpy      ( A_cuda, A, numBytesA, cudaMemcpyHostToDevice );
	cudaMemcpy      ( B_cuda, B, numBytesB, cudaMemcpyHostToDevice );
	cudaMemcpy      ( C_cuda, C, numBytesC, cudaMemcpyHostToDevice );

	
	bool flag = true;

	for(int ind=0;ind<100;ind++){
		if(flag){	
			cudaDeviceSynchronize();
			factorAKernel<<<blocks, dim3(k,i)>>>(Ti_ind_cuda, Ti_data_cuda, A_cuda, B_cuda, C_cuda, A_next_cuda,i,t,q,3*n,k,beta);

			cudaDeviceSynchronize();
			factorBKernel<<<blocks, dim3(k,t)>>>(Tt_ind_cuda, Tt_data_cuda, A_next_cuda, B_cuda, C_cuda, B_next_cuda, i,t,q,3*n,k,beta);

			cudaDeviceSynchronize();
			factorCKernel<<<blocks, dim3(k,q)>>>(Tq_ind_cuda, Tq_data_cuda, A_next_cuda, B_next_cuda,C_cuda,C_next_cuda,i,t,q,3*n,k,beta);

		}
		else{
			cudaDeviceSynchronize();
			factorAKernel<<<blocks, dim3(k,i)>>>(Ti_ind_cuda, Ti_data_cuda, A_next_cuda, B_next_cuda, C_next_cuda, A_cuda, i,t,q,3*n,k,beta);
			
			cudaDeviceSynchronize();
			factorBKernel<<<blocks, dim3(k,t)>>>(Tt_ind_cuda, Tt_data_cuda, A_cuda, B_next_cuda, C_next_cuda, B_cuda, i,t,q,3*n,k,beta);
			
			cudaDeviceSynchronize();
			factorCKernel<<<blocks, dim3(k,q)>>>(Tq_ind_cuda, Tq_data_cuda, A_cuda, B_cuda, C_next_cuda, C_cuda, i,t,q,3*n,k,beta);
		}
		flag = !flag;
    
	}
	
	cudaDeviceSynchronize();
	if(flag == false){
		cudaMemcpy      ( A, A_next_cuda, numBytesA, cudaMemcpyDeviceToHost );
		cudaMemcpy      ( B, B_next_cuda, numBytesB, cudaMemcpyDeviceToHost );
		cudaMemcpy      ( C, C_next_cuda, numBytesC, cudaMemcpyDeviceToHost );
		
	}
	else{
		cudaMemcpy      ( A, A_cuda, numBytesA, cudaMemcpyDeviceToHost );
		cudaMemcpy      ( B, B_cuda, numBytesB, cudaMemcpyDeviceToHost );
		cudaMemcpy      ( C, C_cuda, numBytesC, cudaMemcpyDeviceToHost );
	}

	
	cudaEventRecord ( stop, 0 );
    cudaEventSynchronize ( stop );
    cudaEventElapsedTime ( &gpuTime, start, stop );

    printf("\ntime spent executing by the GPU: %.2f millseconds\n", gpuTime );
    
	printToFile(fileA,fileB,fileC,k,A,i,B,t,C,q);

	tensor_elem* Q = buildErrorTensor(A,B,C,k,i,t,q);
	printTensorToFile("error_tensor.txt",Q,i,t,q,i*t*q);
	free(Q);

    cudaEventDestroy ( start );
    cudaEventDestroy ( stop  );
    cudaFree(Ti_ind_cuda);
	cudaFree(Ti_data_cuda);
	cudaFree(Tt_ind_cuda);
	cudaFree(Tt_data_cuda);
	cudaFree(Tq_ind_cuda);
	cudaFree(Tq_data_cuda);
	cudaFree(A_cuda);
	cudaFree(B_cuda);
	cudaFree(C_cuda);
	cudaFree(A_next_cuda);
	cudaFree(B_next_cuda);
	cudaFree(C_next_cuda);
    delete[] Ti_ind;
	delete[] Ti_data;
	delete[] Tt_ind;
	delete[] Tt_data;
	delete[] Tq_ind;
	delete[] Tq_data;
	delete[] A;
	delete[] B;
	delete[] C;
	
    return 0;
}
	.file	"tmpxft_002acaa8_00000000-6_kernel.cudafe1.cpp"
	.text
#APP

#NO_APP
	.globl	_Z6comp_iPKvS0_
	.type	_Z6comp_iPKvS0_, @function
_Z6comp_iPKvS0_:
.LFB2873:
	.cfi_startproc
	endbr64
	movl	(%rsi), %ecx
	movb	$1, %al
	cmpl	%ecx, (%rdi)
	jg	.L2
	movb	$0, %al
	jne	.L2
	movl	4(%rdi), %ecx
	movl	4(%rsi), %edx
	movb	$1, %al
	cmpl	%edx, %ecx
	jg	.L2
	movl	8(%rsi), %eax
	cmpl	%eax, 8(%rdi)
	setg	%al
	cmpl	%edx, %ecx
	sete	%dl
	andl	%edx, %eax
.L2:
	movzbl	%al, %eax
	ret
	.cfi_endproc
.LFE2873:
	.size	_Z6comp_iPKvS0_, .-_Z6comp_iPKvS0_
	.globl	_Z6comp_tPKvS0_
	.type	_Z6comp_tPKvS0_, @function
_Z6comp_tPKvS0_:
.LFB2874:
	.cfi_startproc
	endbr64
	movl	4(%rsi), %ecx
	movb	$1, %al
	cmpl	%ecx, 4(%rdi)
	jg	.L8
	movb	$0, %al
	jne	.L8
	movl	8(%rdi), %ecx
	movl	8(%rsi), %edx
	movb	$1, %al
	cmpl	%edx, %ecx
	jl	.L8
	movl	(%rsi), %eax
	cmpl	%eax, (%rdi)
	setg	%al
	cmpl	%edx, %ecx
	sete	%dl
	andl	%edx, %eax
.L8:
	movzbl	%al, %eax
	ret
	.cfi_endproc
.LFE2874:
	.size	_Z6comp_tPKvS0_, .-_Z6comp_tPKvS0_
	.globl	_Z6comp_qPKvS0_
	.type	_Z6comp_qPKvS0_, @function
_Z6comp_qPKvS0_:
.LFB2875:
	.cfi_startproc
	endbr64
	movl	8(%rsi), %ecx
	movb	$1, %al
	cmpl	%ecx, 8(%rdi)
	jg	.L13
	movb	$0, %al
	jne	.L13
	movl	(%rdi), %ecx
	movl	(%rsi), %edx
	movb	$1, %al
	cmpl	%edx, %ecx
	jg	.L13
	movl	4(%rsi), %eax
	cmpl	%eax, 4(%rdi)
	setg	%al
	cmpl	%edx, %ecx
	sete	%dl
	andl	%edx, %eax
.L13:
	movzbl	%al, %eax
	ret
	.cfi_endproc
.LFE2875:
	.size	_Z6comp_qPKvS0_, .-_Z6comp_qPKvS0_
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2913:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2913:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE8_M_eraseEPSt13_Rb_tree_nodeIS2_E.isra.0, @function
_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE8_M_eraseEPSt13_Rb_tree_nodeIS2_E.isra.0:
.LFB3189:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	pushq	%rdx
	.cfi_def_cfa_offset 32
.L19:
	testq	%rbx, %rbx
	je	.L22
	movq	24(%rbx), %rdi
	call	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE8_M_eraseEPSt13_Rb_tree_nodeIS2_E.isra.0
	movq	16(%rbx), %rbp
	movq	%rbx, %rdi
	movl	$48, %esi
	call	_ZdlPvm@PLT
	movq	%rbp, %rbx
	jmp	.L19
.L22:
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3189:
	.size	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE8_M_eraseEPSt13_Rb_tree_nodeIS2_E.isra.0, .-_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE8_M_eraseEPSt13_Rb_tree_nodeIS2_E.isra.0
	.globl	_Z12unfoldTensorP11tensor_elemPPiPPfS2_S4_S2_S4_S1_S1_S1_S1_
	.type	_Z12unfoldTensorP11tensor_elemPPiPPfS2_S4_S2_S4_S1_S1_S1_S1_, @function
_Z12unfoldTensorP11tensor_elemPPiPPfS2_S4_S2_S4_S1_S1_S1_S1_:
.LFB2876:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdx, %r15
	movl	$16, %edx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rcx, %r13
	leaq	_Z6comp_iPKvS0_(%rip), %rcx
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r8, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r9, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	128(%rsp), %rax
	movq	%rsi, 8(%rsp)
	movslq	(%rax), %rax
	movq	%rax, %rsi
	movq	%rax, %rbx
	movq	%rax, 16(%rsp)
	call	qsort@PLT
	movq	104(%rsp), %rax
	leal	(%rbx,%rbx,2), %ebx
	movslq	(%rax), %rdi
	salq	$2, %rdi
	call	malloc@PLT
	movq	8(%rsp), %r10
	movq	%rax, 24(%rsp)
	movq	%rax, (%r10)
	movslq	%ebx, %rax
	salq	$2, %rax
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
	call	malloc@PLT
	movq	24(%rsp), %r8
	xorl	%esi, %esi
	xorl	%edi, %edi
	movq	%rax, (%r15)
	movq	%rax, %rcx
	movq	104(%rsp), %rax
	xorl	%edx, %edx
	movl	%esi, (%r8)
	xorl	%esi, %esi
	movl	(%rax), %r9d
	decl	%r9d
.L24:
	cmpl	%edi, %r9d
	movl	%edi, %r10d
	movslq	%edx, %rdx
	movslq	%esi, %rax
	jle	.L28
	movq	%rdx, %rsi
	salq	$4, %rsi
	addq	%r14, %rsi
.L29:
	cmpl	%eax, %ebx
	jg	.L25
.L27:
	movl	%eax, 4(%r8,%rdi,4)
	movl	%eax, %esi
	incq	%rdi
	jmp	.L24
.L25:
	movl	(%rsi), %r11d
	leaq	1(%rdx), %r15
	addq	$16, %rsi
	cmpl	%r10d, %r11d
	jne	.L27
	cvtsi2ssl	-12(%rsi), %xmm0
	movq	%r15, %rdx
	movss	%xmm0, (%rcx,%rax,4)
	cvtsi2ssl	-8(%rsi), %xmm0
	movss	%xmm0, 4(%rcx,%rax,4)
	movss	-4(%rsi), %xmm0
	movss	%xmm0, 8(%rcx,%rax,4)
	addq	$3, %rax
	jmp	.L29
.L28:
	salq	$4, %rdx
	addq	%r14, %rdx
.L30:
	addq	$16, %rdx
	cmpl	%eax, %ebx
	jle	.L49
	cvtsi2ssl	-12(%rdx), %xmm0
	movss	%xmm0, (%rcx,%rax,4)
	cvtsi2ssl	-8(%rdx), %xmm0
	movss	%xmm0, 4(%rcx,%rax,4)
	movss	-4(%rdx), %xmm0
	movss	%xmm0, 8(%rcx,%rax,4)
	addq	$3, %rax
	jmp	.L30
.L49:
	movq	16(%rsp), %rsi
	leaq	_Z6comp_tPKvS0_(%rip), %rcx
	movl	$16, %edx
	movq	%r14, %rdi
	call	qsort@PLT
	movq	112(%rsp), %rax
	movslq	(%rax), %rdi
	salq	$2, %rdi
	call	malloc@PLT
	movq	8(%rsp), %rdi
	movq	%rax, 0(%r13)
	movq	%rax, %r15
	call	malloc@PLT
	xorl	%edx, %edx
	xorl	%esi, %esi
	xorl	%r9d, %r9d
	movq	%rax, (%r12)
	movq	%rax, %rcx
	movq	112(%rsp), %rax
	movl	%edx, (%r15)
	xorl	%edx, %edx
	movl	(%rax), %edi
	decl	%edi
.L32:
	cmpl	%esi, %edi
	movl	%esi, %r8d
	movslq	%edx, %rdx
	movslq	%r9d, %rax
	jle	.L36
	movq	%rdx, %r9
	salq	$4, %r9
	addq	%r14, %r9
.L37:
	cmpl	%eax, %ebx
	jg	.L33
.L35:
	movl	%eax, 4(%r15,%rsi,4)
	movl	%eax, %r9d
	incq	%rsi
	jmp	.L32
.L33:
	leaq	1(%rdx), %r10
	cmpl	%r8d, 4(%r9)
	jne	.L35
	cvtsi2ssl	(%r9), %xmm0
	movq	%r10, %rdx
	addq	$16, %r9
	movss	%xmm0, (%rcx,%rax,4)
	cvtsi2ssl	-8(%r9), %xmm0
	movss	%xmm0, 4(%rcx,%rax,4)
	movss	-4(%r9), %xmm0
	movss	%xmm0, 8(%rcx,%rax,4)
	addq	$3, %rax
	jmp	.L37
.L36:
	salq	$4, %rdx
	addq	%r14, %rdx
.L38:
	cmpl	%eax, %ebx
	jle	.L50
	cvtsi2ssl	(%rdx), %xmm0
	addq	$16, %rdx
	movss	%xmm0, (%rcx,%rax,4)
	cvtsi2ssl	-8(%rdx), %xmm0
	movss	%xmm0, 4(%rcx,%rax,4)
	movss	-4(%rdx), %xmm0
	movss	%xmm0, 8(%rcx,%rax,4)
	addq	$3, %rax
	jmp	.L38
.L50:
	movq	16(%rsp), %rsi
	leaq	_Z6comp_qPKvS0_(%rip), %rcx
	movl	$16, %edx
	movq	%r14, %rdi
	call	qsort@PLT
	movq	120(%rsp), %rax
	movslq	(%rax), %rdi
	salq	$2, %rdi
	call	malloc@PLT
	movq	8(%rsp), %rdi
	movq	%rax, 0(%rbp)
	movq	%rax, %r12
	call	malloc@PLT
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%rax, %rcx
	movq	96(%rsp), %rax
	movq	%rcx, (%rax)
	xorl	%eax, %eax
	movl	%eax, (%r12)
	movq	120(%rsp), %rax
	movl	(%rax), %r8d
	decl	%r8d
.L40:
	cmpl	%edi, %r8d
	movl	%edi, %r9d
	movslq	%edx, %rdx
	movslq	%esi, %rax
	jle	.L44
	movq	%rdx, %rsi
	salq	$4, %rsi
	addq	%r14, %rsi
.L45:
	cmpl	%eax, %ebx
	jg	.L41
.L43:
	movl	%eax, 4(%r12,%rdi,4)
	movl	%eax, %esi
	incq	%rdi
	jmp	.L40
.L41:
	leaq	1(%rdx), %r10
	cmpl	%r9d, 8(%rsi)
	jne	.L43
	cvtsi2ssl	(%rsi), %xmm0
	movq	%r10, %rdx
	addq	$16, %rsi
	movss	%xmm0, (%rcx,%rax,4)
	cvtsi2ssl	-12(%rsi), %xmm0
	movss	%xmm0, 4(%rcx,%rax,4)
	movss	-4(%rsi), %xmm0
	movss	%xmm0, 8(%rcx,%rax,4)
	addq	$3, %rax
	jmp	.L45
.L44:
	salq	$4, %rdx
	addq	%rdx, %r14
.L46:
	cmpl	%eax, %ebx
	jle	.L51
	cvtsi2ssl	(%r14), %xmm0
	addq	$16, %r14
	movss	%xmm0, (%rcx,%rax,4)
	cvtsi2ssl	-12(%r14), %xmm0
	movss	%xmm0, 4(%rcx,%rax,4)
	movss	-4(%r14), %xmm0
	movss	%xmm0, 8(%rcx,%rax,4)
	addq	$3, %rax
	jmp	.L46
.L51:
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2876:
	.size	_Z12unfoldTensorP11tensor_elemPPiPPfS2_S4_S2_S4_S1_S1_S1_S1_, .-_Z12unfoldTensorP11tensor_elemPPiPPfS2_S4_S2_S4_S1_S1_S1_S1_
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"r"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d"
.LC3:
	.string	"%d %d %d %f"
	.text
	.globl	_Z15parseTensorFilePcPPiPPfS1_S3_S1_S3_S0_S0_S0_S0_
	.type	_Z15parseTensorFilePcPPiPPfS1_S3_S1_S3_S0_S0_S0_S0_, @function
_Z15parseTensorFilePcPPiPPfS1_S3_S1_S3_S0_S0_S0_S0_:
.LFB2877:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movq	%r9, 48(%rsp)
	movq	168(%rsp), %r12
	movq	%rsi, 16(%rsp)
	leaq	.LC0(%rip), %rsi
	movq	176(%rsp), %r13
	movq	%rdx, 24(%rsp)
	movq	184(%rsp), %r14
	movq	%rcx, 32(%rsp)
	movq	192(%rsp), %r15
	movq	%r8, 40(%rsp)
	movq	160(%rsp), %rbp
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	call	fopen@PLT
	xorl	%edx, %edx
	leaq	76(%rsp), %rcx
	leaq	80(%rsp), %r8
	movq	%rax, %rdi
	movq	%rax, (%rsp)
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	%edx, 68(%rsp)
	leaq	72(%rsp), %rdx
	call	__isoc23_fscanf@PLT
	movl	72(%rsp), %eax
	movq	(%rsp), %rdi
	leaq	68(%rsp), %rdx
	leaq	.LC2(%rip), %rsi
	movl	%eax, (%r12)
	movl	76(%rsp), %eax
	movl	%eax, 0(%r13)
	movl	80(%rsp), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	call	__isoc23_fscanf@PLT
	movslq	68(%rsp), %rdi
	movl	%edi, (%r15)
	salq	$4, %rdi
	call	malloc@PLT
	movq	%rax, 8(%rsp)
	movq	%rax, %r10
.L53:
	cmpl	%ebx, 68(%rsp)
	jle	.L58
	movq	(%rsp), %rdi
	leaq	76(%rsp), %rcx
	leaq	72(%rsp), %rdx
	xorl	%eax, %eax
	leaq	84(%rsp), %r9
	leaq	80(%rsp), %r8
	movq	%r10, 56(%rsp)
	incl	%ebx
	leaq	.LC3(%rip), %rsi
	call	__isoc23_fscanf@PLT
	movq	56(%rsp), %r10
	movl	72(%rsp), %eax
	movss	84(%rsp), %xmm0
	movl	%eax, (%r10)
	movl	76(%rsp), %eax
	addq	$16, %r10
	movss	%xmm0, -4(%r10)
	movl	%eax, -12(%r10)
	movl	80(%rsp), %eax
	movl	%eax, -8(%r10)
	jmp	.L53
.L58:
	movq	(%rsp), %rdi
	call	fclose@PLT
	pushq	%rax
	.cfi_def_cfa_offset 168
	pushq	%r15
	.cfi_def_cfa_offset 176
	pushq	%r14
	.cfi_def_cfa_offset 184
	pushq	%r13
	.cfi_def_cfa_offset 192
	pushq	%r12
	.cfi_def_cfa_offset 200
	pushq	%rbp
	.cfi_def_cfa_offset 208
	movq	96(%rsp), %r9
	movq	88(%rsp), %r8
	movq	80(%rsp), %rcx
	movq	72(%rsp), %rdx
	movq	64(%rsp), %rsi
	movq	56(%rsp), %rdi
	call	_Z12unfoldTensorP11tensor_elemPPiPPfS2_S4_S2_S4_S1_S1_S1_S1_
	addq	$48, %rsp
	.cfi_def_cfa_offset 160
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L55
	call	__stack_chk_fail@PLT
.L55:
	movq	8(%rsp), %rdi
	addq	$104, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	free@PLT
	.cfi_endproc
.LFE2877:
	.size	_Z15parseTensorFilePcPPiPPfS1_S3_S1_S3_S0_S0_S0_S0_, .-_Z15parseTensorFilePcPPiPPfS1_S3_S1_S3_S0_S0_S0_S0_
	.section	.rodata.str1.1
.LC4:
	.string	"w"
.LC5:
	.string	"%d %d %d\n"
.LC6:
	.string	"%d\n"
.LC7:
	.string	"%d %d %d %f\n"
	.text
	.globl	_Z17printTensorToFilePcP11tensor_elemiiii
	.type	_Z17printTensorToFilePcP11tensor_elemiiii, @function
_Z17printTensorToFilePcP11tensor_elemiiii:
.LFB2878:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%r8d, %r15d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%ecx, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%edx, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%r9d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rsi, %rbx
	leaq	.LC4(%rip), %rsi
	pushq	%r10
	.cfi_def_cfa_offset 64
	call	fopen@PLT
	movl	%r14d, %r8d
	movl	%r15d, %r9d
	movl	%r13d, %ecx
	movq	%rax, %rdi
	movq	%rax, %rbp
	leaq	.LC5(%rip), %rdx
	xorl	%eax, %eax
	movl	$2, %esi
	xorl	%r13d, %r13d
	leaq	.LC7(%rip), %r14
	call	__fprintf_chk@PLT
	movl	%r12d, %ecx
	movl	$2, %esi
	movq	%rbp, %rdi
	leaq	.LC6(%rip), %rdx
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
	movslq	%r12d, %rsi
	movl	$16, %edx
	movq	%rbx, %rdi
	leaq	_Z6comp_iPKvS0_(%rip), %rcx
	call	qsort@PLT
.L60:
	cmpl	%r12d, %r13d
	jge	.L63
	movl	8(%rbx), %r9d
	movl	4(%rbx), %r8d
	movq	%r14, %rdx
	movl	$2, %esi
	movl	(%rbx), %ecx
	movq	%rbp, %rdi
	movb	$1, %al
	cvtss2sd	12(%rbx), %xmm0
	incl	%r13d
	addq	$16, %rbx
	call	__fprintf_chk@PLT
	jmp	.L60
.L63:
	popq	%rax
	.cfi_def_cfa_offset 56
	movq	%rbp, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	fclose@PLT
	.cfi_endproc
.LFE2878:
	.size	_Z17printTensorToFilePcP11tensor_elemiiii, .-_Z17printTensorToFilePcP11tensor_elemiiii
	.globl	_Z16buildErrorTensorPfS_S_iiii
	.type	_Z16buildErrorTensorPfS_S_iiii, @function
_Z16buildErrorTensorPfS_S_iiii:
.LFB2908:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%r9d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%r8d, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%ecx, %ebx
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 32(%rsp)
	movl	%r8d, %edi
	movl	128(%rsp), %r13d
	imull	%r9d, %edi
	movq	%rdx, 48(%rsp)
	movq	%rsi, 40(%rsp)
	imull	%r13d, %edi
	movslq	%edi, %rdi
	salq	$4, %rdi
	call	malloc@PLT
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	xorl	%edi, %edi
	xorl	%r10d, %r10d
	testl	%r13d, %r13d
	cmovns	%r13d, %edx
	movl	%edx, 60(%rsp)
.L65:
	cmpl	%ebp, %edi
	jge	.L64
	movq	32(%rsp), %rsi
	movslq	%r9d, %rdx
	xorl	%r15d, %r15d
	leaq	(%rsi,%rdx,4), %rsi
	movq	%rsi, 8(%rsp)
	xorl	%esi, %esi
.L72:
	cmpl	%r12d, %esi
	jge	.L69
	movq	40(%rsp), %r11
	movslq	%r15d, %rcx
	movslq	%r10d, %rdx
	xorl	%r8d, %r8d
	salq	$4, %rdx
	leaq	(%r11,%rcx,4), %rcx
	addq	%rax, %rdx
	xorl	%r11d, %r11d
	movq	%rcx, 16(%rsp)
.L70:
	cmpl	%r13d, %r8d
	jge	.L67
	movq	48(%rsp), %r14
	movslq	%r11d, %rcx
	xorps	%xmm1, %xmm1
	leaq	(%r14,%rcx,4), %rcx
	movq	%rcx, 24(%rsp)
	xorl	%ecx, %ecx
.L68:
	cmpl	%ecx, %ebx
	jle	.L74
	movq	8(%rsp), %r14
	movss	(%r14,%rcx,4), %xmm0
	movq	16(%rsp), %r14
	mulss	(%r14,%rcx,4), %xmm0
	movq	24(%rsp), %r14
	mulss	(%r14,%rcx,4), %xmm0
	incq	%rcx
	addss	%xmm0, %xmm1
	jmp	.L68
.L74:
	movl	%r8d, 8(%rdx)
	addl	%ebx, %r11d
	incl	%r8d
	addq	$16, %rdx
	movl	%edi, -16(%rdx)
	movl	%esi, -12(%rdx)
	movss	%xmm1, -4(%rdx)
	jmp	.L70
.L67:
	movl	60(%rsp), %ecx
	incl	%esi
	addl	%ebx, %r15d
	addl	%ecx, %r10d
	jmp	.L72
.L69:
	incl	%edi
	addl	%ebx, %r9d
	jmp	.L65
.L64:
	addq	$72, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2908:
	.size	_Z16buildErrorTensorPfS_S_iiii, .-_Z16buildErrorTensorPfS_S_iiii
	.section	.rodata.str1.1
.LC9:
	.string	"%f"
.LC10:
	.string	"\n"
.LC11:
	.string	" "
	.text
	.globl	_Z11printToFilePcS_S_iPfiS0_iS0_i
	.type	_Z11printToFilePcS_S_iPfiS0_iS0_i, @function
_Z11printToFilePcS_S_iPfiS0_iS0_i:
.LFB2909:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%r9d, %r15d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC4(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rdx, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r8, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%ecx, %ebx
	imull	%ebx, %r15d
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	112(%rsp), %rax
	movl	120(%rsp), %ebp
	movq	%rsi, 8(%rsp)
	movq	%r14, %rsi
	movq	%rax, 24(%rsp)
	movq	128(%rsp), %rax
	movq	%rax, 32(%rsp)
	movl	136(%rsp), %eax
	movl	%eax, 44(%rsp)
	call	fopen@PLT
	movq	8(%rsp), %rdi
	movq	%r14, %rsi
	movq	%rax, (%rsp)
	call	fopen@PLT
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$1, %r13d
	movq	%rax, 8(%rsp)
	call	fopen@PLT
	movq	%rax, 16(%rsp)
.L76:
	movl	%r13d, %r14d
	cmpl	%r13d, %r15d
	jl	.L92
	movq	(%rsp), %rdi
	leaq	.LC9(%rip), %rdx
	movl	$2, %esi
	movb	$1, %al
	cvtss2sd	-4(%r12,%r13,4), %xmm0
	call	__fprintf_chk@PLT
	movl	%r14d, %eax
	cltd
	idivl	%ebx
	testl	%edx, %edx
	jne	.L77
	leaq	.LC10(%rip), %rdx
	jmp	.L89
.L77:
	leaq	.LC11(%rip), %rdx
.L89:
	movq	(%rsp), %rdi
	movl	$2, %esi
	xorl	%eax, %eax
	incq	%r13
	call	__fprintf_chk@PLT
	jmp	.L76
.L92:
	imull	%ebx, %ebp
	movl	$1, %r12d
	leaq	.LC9(%rip), %r14
.L80:
	movl	%r12d, %r13d
	cmpl	%r12d, %ebp
	jl	.L93
	movq	24(%rsp), %rax
	movq	8(%rsp), %rdi
	movq	%r14, %rdx
	movl	$2, %esi
	cvtss2sd	-4(%rax,%r12,4), %xmm0
	movb	$1, %al
	call	__fprintf_chk@PLT
	movl	%r13d, %eax
	cltd
	idivl	%ebx
	testl	%edx, %edx
	jne	.L81
	leaq	.LC10(%rip), %rdx
	jmp	.L90
.L81:
	leaq	.LC11(%rip), %rdx
.L90:
	movq	8(%rsp), %rdi
	movl	$2, %esi
	xorl	%eax, %eax
	incq	%r12
	call	__fprintf_chk@PLT
	jmp	.L80
.L93:
	movl	44(%rsp), %r12d
	movl	$1, %ebp
	leaq	.LC9(%rip), %r14
	imull	%ebx, %r12d
.L84:
	movl	%ebp, %r13d
	cmpl	%ebp, %r12d
	jl	.L94
	movq	32(%rsp), %rax
	movq	16(%rsp), %rdi
	movq	%r14, %rdx
	movl	$2, %esi
	cvtss2sd	-4(%rax,%rbp,4), %xmm0
	movb	$1, %al
	call	__fprintf_chk@PLT
	movl	%r13d, %eax
	cltd
	idivl	%ebx
	testl	%edx, %edx
	jne	.L85
	leaq	.LC10(%rip), %rdx
	jmp	.L91
.L85:
	leaq	.LC11(%rip), %rdx
.L91:
	movq	16(%rsp), %rdi
	movl	$2, %esi
	xorl	%eax, %eax
	incq	%rbp
	call	__fprintf_chk@PLT
	jmp	.L84
.L94:
	movq	(%rsp), %rdi
	call	fclose@PLT
	movq	8(%rsp), %rdi
	call	fclose@PLT
	movq	16(%rsp), %rdi
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	fclose@PLT
	.cfi_endproc
.LFE2909:
	.size	_Z11printToFilePcS_S_iPfiS0_iS0_i, .-_Z11printToFilePcS_S_iPfiS0_iS0_i
	.globl	_Z53__device_stub__Z13factorAKernelPiPfS0_S0_S0_S0_iiiiifPiPfS0_S0_S0_S0_iiiiif
	.type	_Z53__device_stub__Z13factorAKernelPiPfS0_S0_S0_S0_iiiiifPiPfS0_S0_S0_S0_iiiiif, @function
_Z53__device_stub__Z13factorAKernelPiPfS0_S0_S0_S0_iiiiifPiPfS0_S0_S0_S0_iiiiif:
.LFB2935:
	.cfi_startproc
	endbr64
	subq	$248, %rsp
	.cfi_def_cfa_offset 256
	movq	%rdi, 56(%rsp)
	leaq	88(%rsp), %rdi
	movq	%rsi, 48(%rsp)
	leaq	100(%rsp), %rsi
	movq	%rdx, 40(%rsp)
	leaq	72(%rsp), %rdx
	movq	%rcx, 32(%rsp)
	leaq	80(%rsp), %rcx
	movq	%r8, 24(%rsp)
	movq	%r9, 16(%rsp)
	movss	%xmm0, 12(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	56(%rsp), %rax
	movl	$1, 96(%rsp)
	movq	%rax, 136(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	256(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	264(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	272(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	280(%rsp), %rax
	movq	%rax, 208(%rsp)
	leaq	288(%rsp), %rax
	movq	%rax, 216(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 224(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 88(%rsp)
	movq	%rax, 100(%rsp)
	movl	$1, 108(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L95
	pushq	80(%rsp)
	.cfi_def_cfa_offset 264
	leaq	_Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif(%rip), %rdi
	pushq	80(%rsp)
	.cfi_def_cfa_offset 272
	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 264
	popq	%rdx
	.cfi_def_cfa_offset 256
.L95:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	je	.L97
	call	__stack_chk_fail@PLT
.L97:
	addq	$248, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2935:
	.size	_Z53__device_stub__Z13factorAKernelPiPfS0_S0_S0_S0_iiiiifPiPfS0_S0_S0_S0_iiiiif, .-_Z53__device_stub__Z13factorAKernelPiPfS0_S0_S0_S0_iiiiifPiPfS0_S0_S0_S0_iiiiif
	.globl	_Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif
	.type	_Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif, @function
_Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif:
.LFB2936:
	.cfi_startproc
	endbr64
	jmp	_Z53__device_stub__Z13factorAKernelPiPfS0_S0_S0_S0_iiiiifPiPfS0_S0_S0_S0_iiiiif
	.cfi_endproc
.LFE2936:
	.size	_Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif, .-_Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif
	.globl	_Z53__device_stub__Z13factorBKernelPiPfS0_S0_S0_S0_iiiiifPiPfS0_S0_S0_S0_iiiiif
	.type	_Z53__device_stub__Z13factorBKernelPiPfS0_S0_S0_S0_iiiiifPiPfS0_S0_S0_S0_iiiiif, @function
_Z53__device_stub__Z13factorBKernelPiPfS0_S0_S0_S0_iiiiifPiPfS0_S0_S0_S0_iiiiif:
.LFB2937:
	.cfi_startproc
	endbr64
	subq	$248, %rsp
	.cfi_def_cfa_offset 256
	movq	%rdi, 56(%rsp)
	leaq	88(%rsp), %rdi
	movq	%rsi, 48(%rsp)
	leaq	100(%rsp), %rsi
	movq	%rdx, 40(%rsp)
	leaq	72(%rsp), %rdx
	movq	%rcx, 32(%rsp)
	leaq	80(%rsp), %rcx
	movq	%r8, 24(%rsp)
	movq	%r9, 16(%rsp)
	movss	%xmm0, 12(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	56(%rsp), %rax
	movl	$1, 96(%rsp)
	movq	%rax, 136(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	256(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	264(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	272(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	280(%rsp), %rax
	movq	%rax, 208(%rsp)
	leaq	288(%rsp), %rax
	movq	%rax, 216(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 224(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 88(%rsp)
	movq	%rax, 100(%rsp)
	movl	$1, 108(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L100
	pushq	80(%rsp)
	.cfi_def_cfa_offset 264
	leaq	_Z13factorBKernelPiPfS0_S0_S0_S0_iiiiif(%rip), %rdi
	pushq	80(%rsp)
	.cfi_def_cfa_offset 272
	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 264
	popq	%rdx
	.cfi_def_cfa_offset 256
.L100:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	je	.L102
	call	__stack_chk_fail@PLT
.L102:
	addq	$248, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2937:
	.size	_Z53__device_stub__Z13factorBKernelPiPfS0_S0_S0_S0_iiiiifPiPfS0_S0_S0_S0_iiiiif, .-_Z53__device_stub__Z13factorBKernelPiPfS0_S0_S0_S0_iiiiifPiPfS0_S0_S0_S0_iiiiif
	.globl	_Z13factorBKernelPiPfS0_S0_S0_S0_iiiiif
	.type	_Z13factorBKernelPiPfS0_S0_S0_S0_iiiiif, @function
_Z13factorBKernelPiPfS0_S0_S0_S0_iiiiif:
.LFB2938:
	.cfi_startproc
	endbr64
	jmp	_Z53__device_stub__Z13factorBKernelPiPfS0_S0_S0_S0_iiiiifPiPfS0_S0_S0_S0_iiiiif
	.cfi_endproc
.LFE2938:
	.size	_Z13factorBKernelPiPfS0_S0_S0_S0_iiiiif, .-_Z13factorBKernelPiPfS0_S0_S0_S0_iiiiif
	.globl	_Z53__device_stub__Z13factorCKernelPiPfS0_S0_S0_S0_iiiiifPiPfS0_S0_S0_S0_iiiiif
	.type	_Z53__device_stub__Z13factorCKernelPiPfS0_S0_S0_S0_iiiiifPiPfS0_S0_S0_S0_iiiiif, @function
_Z53__device_stub__Z13factorCKernelPiPfS0_S0_S0_S0_iiiiifPiPfS0_S0_S0_S0_iiiiif:
.LFB2939:
	.cfi_startproc
	endbr64
	subq	$248, %rsp
	.cfi_def_cfa_offset 256
	movq	%rdi, 56(%rsp)
	leaq	88(%rsp), %rdi
	movq	%rsi, 48(%rsp)
	leaq	100(%rsp), %rsi
	movq	%rdx, 40(%rsp)
	leaq	72(%rsp), %rdx
	movq	%rcx, 32(%rsp)
	leaq	80(%rsp), %rcx
	movq	%r8, 24(%rsp)
	movq	%r9, 16(%rsp)
	movss	%xmm0, 12(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	56(%rsp), %rax
	movl	$1, 96(%rsp)
	movq	%rax, 136(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	256(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	264(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	272(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	280(%rsp), %rax
	movq	%rax, 208(%rsp)
	leaq	288(%rsp), %rax
	movq	%rax, 216(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 224(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 88(%rsp)
	movq	%rax, 100(%rsp)
	movl	$1, 108(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L105
	pushq	80(%rsp)
	.cfi_def_cfa_offset 264
	leaq	_Z13factorCKernelPiPfS0_S0_S0_S0_iiiiif(%rip), %rdi
	pushq	80(%rsp)
	.cfi_def_cfa_offset 272
	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 264
	popq	%rdx
	.cfi_def_cfa_offset 256
.L105:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	je	.L107
	call	__stack_chk_fail@PLT
.L107:
	addq	$248, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2939:
	.size	_Z53__device_stub__Z13factorCKernelPiPfS0_S0_S0_S0_iiiiifPiPfS0_S0_S0_S0_iiiiif, .-_Z53__device_stub__Z13factorCKernelPiPfS0_S0_S0_S0_iiiiifPiPfS0_S0_S0_S0_iiiiif
	.globl	_Z13factorCKernelPiPfS0_S0_S0_S0_iiiiif
	.type	_Z13factorCKernelPiPfS0_S0_S0_S0_iiiiif, @function
_Z13factorCKernelPiPfS0_S0_S0_S0_iiiiif:
.LFB2940:
	.cfi_startproc
	endbr64
	jmp	_Z53__device_stub__Z13factorCKernelPiPfS0_S0_S0_S0_iiiiifPiPfS0_S0_S0_S0_iiiiif
	.cfi_endproc
.LFE2940:
	.size	_Z13factorCKernelPiPfS0_S0_S0_S0_iiiiif, .-_Z13factorCKernelPiPfS0_S0_S0_S0_iiiiif
	.section	.rodata.str1.1
.LC12:
	.string	"_Z13factorCKernelPiPfS0_S0_S0_S0_iiiiif"
.LC13:
	.string	"_Z13factorBKernelPiPfS0_S0_S0_S0_iiiiif"
.LC14:
	.string	"_Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2942:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC12(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z13factorCKernelPiPfS0_S0_S0_S0_iiiiif(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC13(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z13factorBKernelPiPfS0_S0_S0_S0_iiiiif(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC14(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif(%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
.LFE2942:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.text._ZStltIiSt4pairIiiEEbRKS0_IT_T0_ES6_,"axG",@progbits,_ZStltIiSt4pairIiiEEbRKS0_IT_T0_ES6_,comdat
	.weak	_ZStltIiSt4pairIiiEEbRKS0_IT_T0_ES6_
	.type	_ZStltIiSt4pairIiiEEbRKS0_IT_T0_ES6_, @function
_ZStltIiSt4pairIiiEEbRKS0_IT_T0_ES6_:
.LFB3153:
	.cfi_startproc
	endbr64
	movl	(%rsi), %edx
	movb	$1, %al
	cmpl	%edx, (%rdi)
	jl	.L112
	movb	$0, %al
	jne	.L112
	movl	4(%rsi), %ecx
	movb	$1, %al
	cmpl	%ecx, 4(%rdi)
	jl	.L112
	movb	$0, %al
	jne	.L112
	movl	8(%rsi), %eax
	cmpl	%eax, 8(%rdi)
	setl	%al
.L112:
	ret
	.cfi_endproc
.LFE3153:
	.size	_ZStltIiSt4pairIiiEEbRKS0_IT_T0_ES6_, .-_ZStltIiSt4pairIiiEEbRKS0_IT_T0_ES6_
	.section	.text._ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE16_M_insert_uniqueIS2_EES0_ISt17_Rb_tree_iteratorIS2_EbEOT_,"axG",@progbits,_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE16_M_insert_uniqueIS2_EES0_ISt17_Rb_tree_iteratorIS2_EbEOT_,comdat
	.align 2
	.weak	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE16_M_insert_uniqueIS2_EES0_ISt17_Rb_tree_iteratorIS2_EbEOT_
	.type	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE16_M_insert_uniqueIS2_EES0_ISt17_Rb_tree_iteratorIS2_EbEOT_, @function
_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE16_M_insert_uniqueIS2_EES0_ISt17_Rb_tree_iteratorIS2_EbEOT_:
.LFB3071:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	8(%rdi), %r15
	movb	$1, %al
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rsi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r15, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	pushq	%r8
	.cfi_def_cfa_offset 64
	movq	16(%rdi), %rbx
.L119:
	testq	%rbx, %rbx
	je	.L131
	leaq	32(%rbx), %rsi
	movq	%r13, %rdi
	movq	%rbx, %r12
	call	_ZStltIiSt4pairIiiEEbRKS0_IT_T0_ES6_
	movq	24(%rbx), %rdx
	testb	%al, %al
	cmovne	16(%rbx), %rdx
	movq	%rdx, %rbx
	jmp	.L119
.L131:
	testb	%al, %al
	je	.L126
	cmpq	%r12, 24(%rbp)
	je	.L123
	movq	%r12, %rdi
	call	_ZSt18_Rb_tree_decrementPSt18_Rb_tree_node_base@PLT
	movq	%rax, %rbx
	jmp	.L122
.L126:
	movq	%r12, %rbx
.L122:
	leaq	32(%rbx), %rdi
	movq	%r13, %rsi
	call	_ZStltIiSt4pairIiiEEbRKS0_IT_T0_ES6_
	movl	%eax, %edx
	xorl	%eax, %eax
	testb	%dl, %dl
	je	.L124
.L123:
	movb	$1, %r14b
	cmpq	%r12, %r15
	je	.L125
	leaq	32(%r12), %rsi
	movq	%r13, %rdi
	call	_ZStltIiSt4pairIiiEEbRKS0_IT_T0_ES6_
	movl	%eax, %r14d
.L125:
	movl	$48, %edi
	call	_Znwm@PLT
	movzbl	%r14b, %edi
	movq	%r15, %rcx
	movq	%r12, %rdx
	movq	%rax, %rbx
	movq	0(%r13), %rax
	movq	%rbx, %rsi
	movq	%rax, 32(%rbx)
	movl	8(%r13), %eax
	movl	%eax, 40(%rbx)
	call	_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_@PLT
	incq	40(%rbp)
	movb	$1, %al
.L124:
	popq	%rcx
	.cfi_def_cfa_offset 56
	movzbl	%al, %edx
	movq	%rbx, %rax
	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
.LFE3071:
	.size	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE16_M_insert_uniqueIS2_EES0_ISt17_Rb_tree_iteratorIS2_EbEOT_, .-_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE16_M_insert_uniqueIS2_EES0_ISt17_Rb_tree_iteratorIS2_EbEOT_
	.section	.rodata.str1.1
.LC15:
	.string	"tensor_input.txt"
	.text
	.globl	_Z9genTensorPPiPPfS0_S2_S0_S2_iiii
	.type	_Z9genTensorPPiPPfS0_S2_S0_S2_iiii, @function
_Z9genTensorPPiPPfS0_S2_S0_S2_iiii:
.LFB2879:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA2879
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	xorl	%r12d, %r12d
	pushq	%rbx
	subq	$200, %rsp
	.cfi_offset 3, -56
	movq	%rdi, -168(%rbp)
	movq	%rsi, -176(%rbp)
	movq	%rdx, -184(%rbp)
	movq	%rcx, -192(%rbp)
	movq	%r8, -200(%rbp)
	movq	%r9, -208(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movslq	40(%rbp), %rax
	movq	%rax, %rdi
	movl	%eax, -148(%rbp)
	salq	$4, %rdi
	movq	%rax, -160(%rbp)
	call	malloc@PLT
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	movq	%rax, -136(%rbp)
	leaq	-96(%rbp), %rax
	movq	-136(%rbp), %rbx
	movl	%edx, -96(%rbp)
	movq	%rcx, -88(%rbp)
	movq	%rax, -144(%rbp)
	movq	%rax, -80(%rbp)
	movq	%rax, -72(%rbp)
	movq	%rsi, -64(%rbp)
.L142:
	cmpl	%r12d, -148(%rbp)
	jle	.L151
	call	rand@PLT
	cltd
	idivl	16(%rbp)
	movl	%edx, %r15d
	call	rand@PLT
	cltd
	idivl	24(%rbp)
	movl	%edx, %r14d
	call	rand@PLT
	movl	%r15d, -116(%rbp)
	movq	-88(%rbp), %rcx
	cltd
	movl	%r14d, -112(%rbp)
	idivl	32(%rbp)
	leaq	-116(%rbp), %rax
	movq	%rax, -216(%rbp)
	movl	%edx, -108(%rbp)
	movl	%edx, %r13d
	movq	-144(%rbp), %rdx
.L134:
	testq	%rcx, %rcx
	je	.L152
	movq	-216(%rbp), %rsi
	leaq	32(%rcx), %rdi
	movq	%rdx, -232(%rbp)
	movq	%rcx, -224(%rbp)
	call	_ZStltIiSt4pairIiiEEbRKS0_IT_T0_ES6_
	movq	-224(%rbp), %rcx
	movq	-232(%rbp), %rdx
	testb	%al, %al
	movq	24(%rcx), %rsi
	cmove	16(%rcx), %rsi
	cmove	%rcx, %rdx
	movq	%rsi, %rcx
	jmp	.L134
.L152:
	movq	-144(%rbp), %rax
	cmpq	%rax, %rdx
	je	.L137
	leaq	32(%rdx), %rsi
	leaq	-116(%rbp), %rdi
	call	_ZStltIiSt4pairIiiEEbRKS0_IT_T0_ES6_
	testb	%al, %al
	jne	.L137
	jmp	.L142
.L151:
	movq	-160(%rbp), %rsi
	movq	-136(%rbp), %rdi
	movl	$16, %edx
	leaq	_Z6comp_iPKvS0_(%rip), %rcx
.LEHB0:
	call	qsort@PLT
	movl	32(%rbp), %r8d
	movl	24(%rbp), %ecx
	leaq	.LC15(%rip), %rdi
	movl	-148(%rbp), %r9d
	movl	16(%rbp), %edx
	movq	-136(%rbp), %rsi
	call	_Z17printTensorToFilePcP11tensor_elemiiii
	pushq	%rax
	leaq	40(%rbp), %rax
	movq	-200(%rbp), %r9
	movq	-192(%rbp), %r8
	movq	-184(%rbp), %rcx
	pushq	%rax
	leaq	32(%rbp), %rax
	movq	-176(%rbp), %rdx
	movq	-168(%rbp), %rsi
	pushq	%rax
	leaq	24(%rbp), %rax
	pushq	%rax
	leaq	16(%rbp), %rax
	movq	-136(%rbp), %rdi
	pushq	%rax
	pushq	-208(%rbp)
	.cfi_escape 0x2e,0x30
	call	_Z12unfoldTensorP11tensor_elemPPiPPfS2_S4_S2_S4_S1_S1_S1_S1_
.LEHE0:
	movq	-136(%rbp), %rdi
	addq	$48, %rsp
	call	free@PLT
	movq	-88(%rbp), %rdi
	call	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE8_M_eraseEPSt13_Rb_tree_nodeIS2_E.isra.0
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	je	.L144
	jmp	.L148
.L145:
	endbr64
	movq	%rax, %rbx
.L140:
	movq	-88(%rbp), %rdi
	call	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE8_M_eraseEPSt13_Rb_tree_nodeIS2_E.isra.0
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L148
	movq	%rbx, %rdi
.LEHB1:
	call	_Unwind_Resume@PLT
.LEHE1:
.L137:
	call	rand@PLT
	movl	%r15d, (%rbx)
	leaq	-116(%rbp), %rsi
	leaq	-104(%rbp), %rdi
	movl	$100, %ecx
	cltd
	movl	%r14d, 4(%rbx)
	idivl	%ecx
	movl	%r13d, 8(%rbx)
	movl	%r15d, -116(%rbp)
	movl	%r14d, -112(%rbp)
	movl	%r13d, -108(%rbp)
	cvtsi2ssl	%edx, %xmm0
	movss	%xmm0, 12(%rbx)
.LEHB2:
	.cfi_escape 0x2e,0
	call	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE16_M_insert_uniqueIS2_EES0_ISt17_Rb_tree_iteratorIS2_EbEOT_
.LEHE2:
	incl	%r12d
	addq	$16, %rbx
	jmp	.L142
.L148:
	call	__stack_chk_fail@PLT
.L144:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2879:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA2879:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE2879-.LLSDACSB2879
.LLSDACSB2879:
	.uleb128 .LEHB0-.LFB2879
	.uleb128 .LEHE0-.LEHB0
	.uleb128 .L145-.LFB2879
	.uleb128 0
	.uleb128 .LEHB1-.LFB2879
	.uleb128 .LEHE1-.LEHB1
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB2-.LFB2879
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L145-.LFB2879
	.uleb128 0
.LLSDACSE2879:
	.text
	.size	_Z9genTensorPPiPPfS0_S2_S0_S2_iiii, .-_Z9genTensorPPiPPfS0_S2_S0_S2_iiii
	.section	.rodata.str1.1
.LC16:
	.string	"\ntime spent executing by the GPU: %.2f millseconds\n"
.LC17:
	.string	"error_tensor.txt"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB2910:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	subq	$280, %rsp
	.cfi_def_cfa_offset 336
	movq	%fs:40, %rax
	movq	%rax, 264(%rsp)
	xorl	%eax, %eax
	leaq	88(%rsp), %rcx
	leaq	64(%rsp), %rdx
	movl	$2020879937, 246(%rsp)
	leaq	80(%rsp), %rsi
	leaq	56(%rsp), %rdi
	movw	$116, 250(%rsp)
	movl	$2020879938, 252(%rsp)
	movw	$116, 256(%rsp)
	movl	$2020879939, 258(%rsp)
	movw	$116, 262(%rsp)
	pushq	$27
	.cfi_def_cfa_offset 344
	pushq	$3
	.cfi_def_cfa_offset 352
	pushq	$3
	.cfi_def_cfa_offset 360
	pushq	$3
	.cfi_def_cfa_offset 368
	leaq	128(%rsp), %r9
	leaq	104(%rsp), %r8
	call	_Z9genTensorPPiPPfS0_S2_S0_S2_iiii
	addq	$32, %rsp
	.cfi_def_cfa_offset 336
	movl	$2, %edi
	xorl	%eax, %eax
	leaq	.LC10(%rip), %rsi
	call	__printf_chk@PLT
	movl	$24, %edi
	call	_Znam@PLT
	movl	$24, %edi
	movq	%rax, (%rsp)
	call	_Znam@PLT
	movl	$24, %edi
	movq	%rax, %r12
	call	_Znam@PLT
	movq	%rax, %rbp
.L154:
	call	rand@PLT
	cvtsi2ssl	%eax, %xmm0
	movq	(%rsp), %rax
	movss	%xmm0, (%rax,%rbx,4)
	incq	%rbx
	cmpq	$6, %rbx
	jne	.L154
	xorl	%ebx, %ebx
.L155:
	call	rand@PLT
	cvtsi2ssl	%eax, %xmm0
	movss	%xmm0, (%r12,%rbx,4)
	incq	%rbx
	cmpq	$6, %rbx
	jne	.L155
	xorl	%ebx, %ebx
.L156:
	call	rand@PLT
	cvtsi2ssl	%eax, %xmm0
	movss	%xmm0, 0(%rbp,%rbx,4)
	incq	%rbx
	cmpq	$6, %rbx
	jne	.L156
	xorl	%r11d, %r11d
	leaq	104(%rsp), %rdi
	movl	$324, %esi
	xorl	%ebx, %ebx
	movq	%r11, 104(%rsp)
	movl	$100, %r15d
	movb	$1, %r13b
	movq	%r11, 112(%rsp)
	movq	%r11, 120(%rsp)
	movq	%r11, 128(%rsp)
	movq	%r11, 136(%rsp)
	movq	%r11, 144(%rsp)
	call	cudaMalloc@PLT
	leaq	112(%rsp), %rdi
	movl	$324, %esi
	call	cudaMalloc@PLT
	leaq	120(%rsp), %rdi
	movl	$324, %esi
	call	cudaMalloc@PLT
	leaq	128(%rsp), %rdi
	movl	$12, %esi
	call	cudaMalloc@PLT
	leaq	136(%rsp), %rdi
	movl	$12, %esi
	call	cudaMalloc@PLT
	leaq	144(%rsp), %rdi
	movl	$12, %esi
	call	cudaMalloc@PLT
	leaq	152(%rsp), %rdi
	movl	$24, %esi
	movq	%rbx, 152(%rsp)
	movq	%rbx, 160(%rsp)
	movq	%rbx, 168(%rsp)
	movq	%rbx, 176(%rsp)
	movq	%rbx, 184(%rsp)
	movq	%rbx, 192(%rsp)
	movabsq	$12884901890, %rbx
	call	cudaMalloc@PLT
	leaq	160(%rsp), %rdi
	movl	$24, %esi
	call	cudaMalloc@PLT
	leaq	168(%rsp), %rdi
	movl	$24, %esi
	call	cudaMalloc@PLT
	leaq	176(%rsp), %rdi
	movl	$24, %esi
	call	cudaMalloc@PLT
	leaq	184(%rsp), %rdi
	movl	$24, %esi
	call	cudaMalloc@PLT
	movl	$24, %esi
	leaq	192(%rsp), %rdi
	call	cudaMalloc@PLT
	leaq	200(%rsp), %rdi
	movabsq	$4294967297, %rax
	movl	$1, 228(%rsp)
	movq	%rax, 220(%rsp)
	movl	$0x00000000, 52(%rsp)
	call	cudaEventCreate@PLT
	leaq	208(%rsp), %rdi
	call	cudaEventCreate@PLT
	movq	200(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	call	cudaDeviceSynchronize@PLT
	movq	80(%rsp), %rax
	movq	104(%rsp), %rdi
	movl	$1, %ecx
	movl	$324, %edx
	movq	%rax, %rsi
	movq	%rax, 8(%rsp)
	call	cudaMemcpy@PLT
	movq	56(%rsp), %r14
	movl	$1, %ecx
	movq	128(%rsp), %rdi
	movl	$12, %edx
	movq	%r14, %rsi
	call	cudaMemcpy@PLT
	movq	88(%rsp), %rax
	movq	112(%rsp), %rdi
	movl	$1, %ecx
	movl	$324, %edx
	movq	%rax, %rsi
	movq	%rax, 16(%rsp)
	call	cudaMemcpy@PLT
	movq	64(%rsp), %rax
	movl	$1, %ecx
	movq	136(%rsp), %rdi
	movl	$12, %edx
	movq	%rax, %rsi
	movq	%rax, 24(%rsp)
	call	cudaMemcpy@PLT
	movq	96(%rsp), %rax
	movq	120(%rsp), %rdi
	movl	$1, %ecx
	movl	$324, %edx
	movq	%rax, %rsi
	movq	%rax, 32(%rsp)
	call	cudaMemcpy@PLT
	movq	72(%rsp), %rax
	movl	$1, %ecx
	movq	144(%rsp), %rdi
	movl	$12, %edx
	movq	%rax, %rsi
	movq	%rax, 40(%rsp)
	call	cudaMemcpy@PLT
	movq	(%rsp), %rsi
	movl	$1, %ecx
	movq	152(%rsp), %rdi
	movl	$24, %edx
	call	cudaMemcpy@PLT
	movq	160(%rsp), %rdi
	movl	$1, %ecx
	movq	%r12, %rsi
	movl	$24, %edx
	call	cudaMemcpy@PLT
	movq	168(%rsp), %rdi
	movl	$1, %ecx
	movq	%rbp, %rsi
	movl	$24, %edx
	call	cudaMemcpy@PLT
.L165:
	testb	%r13b, %r13b
	je	.L157
	call	cudaDeviceSynchronize@PLT
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rbx, %rdx
	movq	220(%rsp), %rdi
	movl	228(%rsp), %esi
	movl	$1, %ecx
	movq	%rbx, 232(%rsp)
	movl	$1, 240(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L158
	pushq	%r10
	.cfi_def_cfa_offset 344
	xorps	%xmm0, %xmm0
	pushq	$2
	.cfi_def_cfa_offset 352
	pushq	$81
	.cfi_def_cfa_offset 360
	pushq	$3
	.cfi_def_cfa_offset 368
	pushq	$3
	.cfi_def_cfa_offset 376
	pushq	$3
	.cfi_def_cfa_offset 384
	movq	224(%rsp), %r9
	movq	216(%rsp), %r8
	movq	208(%rsp), %rcx
	movq	200(%rsp), %rdx
	movq	152(%rsp), %rsi
	movq	176(%rsp), %rdi
	call	_Z53__device_stub__Z13factorAKernelPiPfS0_S0_S0_S0_iiiiifPiPfS0_S0_S0_S0_iiiiif
	addq	$48, %rsp
	.cfi_def_cfa_offset 336
.L158:
	call	cudaDeviceSynchronize@PLT
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rbx, %rdx
	movq	220(%rsp), %rdi
	movl	228(%rsp), %esi
	movl	$1, %ecx
	movq	%rbx, 232(%rsp)
	movl	$1, 240(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L159
	pushq	%r9
	.cfi_def_cfa_offset 344
	xorps	%xmm0, %xmm0
	pushq	$2
	.cfi_def_cfa_offset 352
	pushq	$81
	.cfi_def_cfa_offset 360
	pushq	$3
	.cfi_def_cfa_offset 368
	pushq	$3
	.cfi_def_cfa_offset 376
	pushq	$3
	.cfi_def_cfa_offset 384
	movq	232(%rsp), %r9
	movq	216(%rsp), %r8
	movq	208(%rsp), %rcx
	movq	224(%rsp), %rdx
	movq	160(%rsp), %rsi
	movq	184(%rsp), %rdi
	call	_Z53__device_stub__Z13factorBKernelPiPfS0_S0_S0_S0_iiiiifPiPfS0_S0_S0_S0_iiiiif
	addq	$48, %rsp
	.cfi_def_cfa_offset 336
.L159:
	call	cudaDeviceSynchronize@PLT
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rbx, %rdx
	movq	220(%rsp), %rdi
	movl	228(%rsp), %esi
	movl	$1, %ecx
	movq	%rbx, 232(%rsp)
	movl	$1, 240(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L161
	xorps	%xmm0, %xmm0
	pushq	%r8
	.cfi_remember_state
	.cfi_def_cfa_offset 344
	pushq	$2
	.cfi_def_cfa_offset 352
	pushq	$81
	.cfi_def_cfa_offset 360
	pushq	$3
	.cfi_def_cfa_offset 368
	pushq	$3
	.cfi_def_cfa_offset 376
	pushq	$3
	.cfi_def_cfa_offset 384
	movq	240(%rsp), %r9
	movq	216(%rsp), %r8
	movq	232(%rsp), %rcx
	movq	224(%rsp), %rdx
	jmp	.L198
.L157:
	.cfi_restore_state
	call	cudaDeviceSynchronize@PLT
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rbx, %rdx
	movq	220(%rsp), %rdi
	movl	228(%rsp), %esi
	movl	$1, %ecx
	movq	%rbx, 232(%rsp)
	movl	$1, 240(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L162
	pushq	%rdi
	.cfi_def_cfa_offset 344
	xorps	%xmm0, %xmm0
	pushq	$2
	.cfi_def_cfa_offset 352
	pushq	$81
	.cfi_def_cfa_offset 360
	pushq	$3
	.cfi_def_cfa_offset 368
	pushq	$3
	.cfi_def_cfa_offset 376
	pushq	$3
	.cfi_def_cfa_offset 384
	movq	200(%rsp), %r9
	movq	240(%rsp), %r8
	movq	232(%rsp), %rcx
	movq	224(%rsp), %rdx
	movq	152(%rsp), %rsi
	movq	176(%rsp), %rdi
	call	_Z53__device_stub__Z13factorAKernelPiPfS0_S0_S0_S0_iiiiifPiPfS0_S0_S0_S0_iiiiif
	addq	$48, %rsp
	.cfi_def_cfa_offset 336
.L162:
	call	cudaDeviceSynchronize@PLT
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rbx, %rdx
	movq	220(%rsp), %rdi
	movl	228(%rsp), %esi
	movl	$1, %ecx
	movq	%rbx, 232(%rsp)
	movl	$1, 240(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L163
	pushq	%rsi
	.cfi_def_cfa_offset 344
	xorps	%xmm0, %xmm0
	pushq	$2
	.cfi_def_cfa_offset 352
	pushq	$81
	.cfi_def_cfa_offset 360
	pushq	$3
	.cfi_def_cfa_offset 368
	pushq	$3
	.cfi_def_cfa_offset 376
	pushq	$3
	.cfi_def_cfa_offset 384
	movq	208(%rsp), %r9
	movq	240(%rsp), %r8
	movq	232(%rsp), %rcx
	movq	200(%rsp), %rdx
	movq	160(%rsp), %rsi
	movq	184(%rsp), %rdi
	call	_Z53__device_stub__Z13factorBKernelPiPfS0_S0_S0_S0_iiiiifPiPfS0_S0_S0_S0_iiiiif
	addq	$48, %rsp
	.cfi_def_cfa_offset 336
.L163:
	call	cudaDeviceSynchronize@PLT
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	%rbx, %rdx
	movq	220(%rsp), %rdi
	movl	228(%rsp), %esi
	movl	$1, %ecx
	movq	%rbx, 232(%rsp)
	movl	$1, 240(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L161
	pushq	%rcx
	.cfi_def_cfa_offset 344
	xorps	%xmm0, %xmm0
	pushq	$2
	.cfi_def_cfa_offset 352
	pushq	$81
	.cfi_def_cfa_offset 360
	pushq	$3
	.cfi_def_cfa_offset 368
	pushq	$3
	.cfi_def_cfa_offset 376
	pushq	$3
	.cfi_def_cfa_offset 384
	movq	216(%rsp), %r9
	movq	240(%rsp), %r8
	movq	208(%rsp), %rcx
	movq	200(%rsp), %rdx
.L198:
	movq	168(%rsp), %rsi
	movq	192(%rsp), %rdi
	call	_Z53__device_stub__Z13factorCKernelPiPfS0_S0_S0_S0_iiiiifPiPfS0_S0_S0_S0_iiiiif
	addq	$48, %rsp
	.cfi_def_cfa_offset 336
.L161:
	xorl	$1, %r13d
	decl	%r15d
	jne	.L165
	call	cudaDeviceSynchronize@PLT
	movl	$2, %ecx
	movl	$24, %edx
	testb	%r13b, %r13b
	jne	.L166
	movq	176(%rsp), %rsi
	movq	(%rsp), %rdi
	call	cudaMemcpy@PLT
	movq	184(%rsp), %rsi
	movl	$2, %ecx
	movq	%r12, %rdi
	movl	$24, %edx
	call	cudaMemcpy@PLT
	movl	$2, %ecx
	movl	$24, %edx
	movq	192(%rsp), %rsi
	jmp	.L199
.L166:
	movq	152(%rsp), %rsi
	movq	(%rsp), %rdi
	call	cudaMemcpy@PLT
	movq	160(%rsp), %rsi
	movl	$2, %ecx
	movq	%r12, %rdi
	movl	$24, %edx
	call	cudaMemcpy@PLT
	movl	$2, %ecx
	movl	$24, %edx
	movq	168(%rsp), %rsi
.L199:
	movq	%rbp, %rdi
	call	cudaMemcpy@PLT
	movq	208(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movq	208(%rsp), %rdi
	call	cudaEventSynchronize@PLT
	movq	208(%rsp), %rdx
	leaq	52(%rsp), %rdi
	movq	200(%rsp), %rsi
	call	cudaEventElapsedTime@PLT
	leaq	.LC16(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	cvtss2sd	52(%rsp), %xmm0
	call	__printf_chk@PLT
	movl	$2, %ecx
	leaq	258(%rsp), %rdx
	leaq	252(%rsp), %rsi
	leaq	246(%rsp), %rdi
	pushq	$3
	.cfi_def_cfa_offset 344
	movl	$3, %r9d
	pushq	%rbp
	.cfi_def_cfa_offset 352
	pushq	$3
	.cfi_def_cfa_offset 360
	pushq	%r12
	.cfi_def_cfa_offset 368
	movq	32(%rsp), %r8
	call	_Z11printToFilePcS_S_iPfiS0_iS0_i
	addq	$24, %rsp
	.cfi_def_cfa_offset 344
	movq	%rbp, %rdx
	movq	%r12, %rsi
	pushq	$3
	.cfi_def_cfa_offset 352
	movq	16(%rsp), %rdi
	movl	$3, %r9d
	movl	$3, %r8d
	movl	$2, %ecx
	call	_Z16buildErrorTensorPfS_S_iiii
	movl	$27, %r9d
	movl	$3, %r8d
	movl	$3, %ecx
	movq	%rax, %rbx
	leaq	.LC17(%rip), %rdi
	popq	%rax
	.cfi_def_cfa_offset 344
	popq	%rdx
	.cfi_def_cfa_offset 336
	movq	%rbx, %rsi
	movl	$3, %edx
	call	_Z17printTensorToFilePcP11tensor_elemiiii
	movq	%rbx, %rdi
	call	free@PLT
	movq	200(%rsp), %rdi
	call	cudaEventDestroy@PLT
	movq	208(%rsp), %rdi
	call	cudaEventDestroy@PLT
	movq	128(%rsp), %rdi
	call	cudaFree@PLT
	movq	104(%rsp), %rdi
	call	cudaFree@PLT
	movq	136(%rsp), %rdi
	call	cudaFree@PLT
	movq	112(%rsp), %rdi
	call	cudaFree@PLT
	movq	144(%rsp), %rdi
	call	cudaFree@PLT
	movq	120(%rsp), %rdi
	call	cudaFree@PLT
	movq	152(%rsp), %rdi
	call	cudaFree@PLT
	movq	160(%rsp), %rdi
	call	cudaFree@PLT
	movq	168(%rsp), %rdi
	call	cudaFree@PLT
	movq	176(%rsp), %rdi
	call	cudaFree@PLT
	movq	184(%rsp), %rdi
	call	cudaFree@PLT
	movq	192(%rsp), %rdi
	call	cudaFree@PLT
	testq	%r14, %r14
	je	.L168
	movq	%r14, %rdi
	call	_ZdaPv@PLT
.L168:
	cmpq	$0, 8(%rsp)
	je	.L169
	movq	8(%rsp), %rdi
	call	_ZdaPv@PLT
.L169:
	cmpq	$0, 24(%rsp)
	je	.L170
	movq	24(%rsp), %rdi
	call	_ZdaPv@PLT
.L170:
	cmpq	$0, 16(%rsp)
	je	.L171
	movq	16(%rsp), %rdi
	call	_ZdaPv@PLT
.L171:
	cmpq	$0, 40(%rsp)
	je	.L172
	movq	40(%rsp), %rdi
	call	_ZdaPv@PLT
.L172:
	cmpq	$0, 32(%rsp)
	je	.L173
	movq	32(%rsp), %rdi
	call	_ZdaPv@PLT
.L173:
	movq	(%rsp), %rdi
	call	_ZdaPv@PLT
	movq	%r12, %rdi
	call	_ZdaPv@PLT
	movq	%rbp, %rdi
	call	_ZdaPv@PLT
	movq	264(%rsp), %rax
	subq	%fs:40, %rax
	je	.L174
	call	__stack_chk_fail@PLT
.L174:
	addq	$280, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2910:
	.size	main, .-main
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include "hip/hip_runtime.h"


#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#include <set>
#include <utility>

using namespace std;

__global__ void factorAKernel ( int *T_i, float *T_d ,float *A, float *B, float *C, float *A_n, int l_i, int l_t, int l_q, int l_d, int k,float beta)
{
	int i = blockIdx.y * blockDim.y + threadIdx.y;
	int j = blockIdx.x * blockDim.x + threadIdx.x;
	
	float sum_n = 0.1f, sum_d = 0.1f;
	float temp = 0.0f, error = 0.0f;
	
	int start = T_i[i];
	int end = ((i+1) < l_i) ? T_i[i+1] : l_d;
	int q = 0, t=0;
	
	for(int ind=start+2; ind<end; ind+=3){
		t = T_d[ind-2];
		q = T_d[ind-1];

		error = 0.0f;
		for(int j_i=0;j_i<k;j_i++){
			error += A[i*k+j_i]*B[t*k+j_i]*C[q*k+j_i];
		}

		temp = B[t*k+j]*C[q*k+j];
		sum_n += temp * T_d[ind] / powf(error,1.0f - beta);
		sum_d += temp * powf(error,beta);
	}
	A_n[i*k+j] = A[i*k+j]*(sum_n/sum_d);
}

__global__ void factorBKernel ( int *T_t, float *T_d, float *A, float *B, float *C, float *B_n, int l_i, int l_t, int l_q, int l_d, int k, float beta){
	int t = blockIdx.y * blockDim.y + threadIdx.y;
	int j = blockIdx.x * blockDim.x + threadIdx.x;
	
	float sum_n = 0.1f, sum_d = 0.1f;
	float temp = 0.0f, error = 0.0f;
	
	int start = T_t[t];
	int end = ((t+1) < l_t) ? T_t[t+1] : l_d;
	int i,q;

	for(int ind=start+2; ind<end; ind+=3){
		q = (int)T_d[ind-2];
		i = (int)T_d[ind-1];

		error = 0.0f;
		for(int j=0;j<k;j++){
			error += A[i*k+j]*B[t*k+j]*C[q*k+j];
		}

		temp = A[i*k+j]*C[q*k+j];
		sum_n += temp * T_d[ind] / powf(error, 1.0f - beta);
		sum_d += temp * powf(error, beta);
	}

	B_n[t*k+j] = B[t*k+j]*(sum_n/sum_d);
}

__global__ void factorCKernel ( int *T_q, float *T_d, float *A, float *B, float *C, float *C_n, int l_i, int l_t, int l_q, int l_d, int k, float beta){
	int q = blockIdx.y * blockDim.y + threadIdx.y;
	int j = blockIdx.x * blockDim.x + threadIdx.x;
	
	float sum_n = 0.1f, sum_d = 0.1f;
	float temp = 0.0f, error = 0.0f;
	
	int start = T_q[q];
	int end = ((q+1) < l_q) ? T_q[q+1] : l_d;
	int i,t;

	for(int ind=start+2; ind<end; ind+=3){
		i = (int)T_d[ind-2];
		t = (int)T_d[ind-1];

		error = 0.0f;
		for(int j=0;j<k;j++){
			error += A[i*k+j]*B[t*k+j]*C[q*k+j];
		}

		temp = A[i*k+j]*B[t*k+j];
		sum_n += temp * T_d[ind] / powf(error, 1.0f - beta);
		sum_d += temp * powf(error, beta);
	}

	C_n[q*k+j] = C[q*k+j]*sum_n/sum_d;
}

typedef struct tensor_elem{
    int i,t,q;
    float val;
} tensor_elem;

int comp_i(const void* el1, const void* el2){
    tensor_elem first  = *((tensor_elem*)el1);
    tensor_elem second = *((tensor_elem*)el2);
    return first.i > second.i || (first.i == second.i && first.t > second.t) || (first.i == second.i && first.t == second.t && first.q > second.q);
}

int comp_t(const void* el1, const void* el2){
    tensor_elem first  = *((tensor_elem*)el1);
    tensor_elem second = *((tensor_elem*)el2);
    return first.t > second.t || (first.t == second.t && first.q < second.q) || (first.t == second.t && first.q == second.q && first.i > second.i);
}

int comp_q(const void* el1, const void* el2){
    tensor_elem first  = *((tensor_elem*)el1);
    tensor_elem second = *((tensor_elem*)el2);
    return first.q > second.q || (first.q == second.q && first.i > second.i) || (first.q == second.q && first.i == second.i && first.t > second.t);
}

void unfoldTensor(tensor_elem* T, int** Ti_ind, float** Ti_data, int** Tt_ind, float** Tt_data, int** Tq_ind, float** Tq_data, int* leni_ind, int* lent_ind, int* lenq_ind, int* num_values){
	
	int n = *num_values;
	qsort(T, n, sizeof(tensor_elem),comp_i);
    
    *Ti_ind = (int*)malloc((*leni_ind)*sizeof(int));
    int* Ti_ind_cur = *Ti_ind;
    *Ti_data = (float*)malloc(3*n*sizeof(float));
    float* Ti_data_cur = *Ti_data; 
    
    int ind_data = 0;
    int ind_sparse = 0;
    Ti_ind_cur[0]=0;
    for(int ind=0;ind<((*leni_ind) - 1);ind++){
        while((ind_sparse < (3*n)) && (T[ind_data].i == ind)){
            Ti_data_cur[ind_sparse] = T[ind_data].t;
            Ti_data_cur[ind_sparse+1] = T[ind_data].q;
            Ti_data_cur[ind_sparse+2] = T[ind_data].val; 
            ind_data++;
            ind_sparse+=3;
        }
        Ti_ind_cur[ind+1]=ind_sparse;
                    
    }
    while(ind_sparse < (3*n)){
        Ti_data_cur[ind_sparse] = T[ind_data].t;
        Ti_data_cur[ind_sparse+1] = T[ind_data].q;
        Ti_data_cur[ind_sparse+2] = T[ind_data].val; 
        ind_data++;
        ind_sparse+=3;
    }
    
    qsort(T, n, sizeof(tensor_elem),comp_t);
    
	*Tt_ind = (int*)malloc((*lent_ind)*sizeof(int));
    int* Tt_ind_cur = *Tt_ind;
    *Tt_data = (float*)malloc(3*n*sizeof(float));
    float* Tt_data_cur = *Tt_data; 
    
    ind_data = 0;
    ind_sparse = 0;
    Tt_ind_cur[0]=0;
    for(int ind=0;ind<((*lent_ind) - 1);ind++){
        while((ind_sparse < (3*n)) && (T[ind_data].t == ind)){
            Tt_data_cur[ind_sparse] = T[ind_data].i;
            Tt_data_cur[ind_sparse+1] = T[ind_data].q;
            Tt_data_cur[ind_sparse+2] = T[ind_data].val; 
            ind_data++;
            ind_sparse+=3;
        }
        Tt_ind_cur[ind+1]=ind_sparse;
                    
    }
    while(ind_sparse < (3*n)){
        Tt_data_cur[ind_sparse] = T[ind_data].i;
        Tt_data_cur[ind_sparse+1] = T[ind_data].q;
        Tt_data_cur[ind_sparse+2] = T[ind_data].val; 
        ind_data++;
        ind_sparse+=3;
    }

    qsort(T, n, sizeof(tensor_elem),comp_q);
    
	*Tq_ind = (int*)malloc((*lenq_ind)*sizeof(int));
    int* Tq_ind_cur = *Tq_ind;
    *Tq_data = (float*)malloc(3*n*sizeof(float));
    float* Tq_data_cur = *Tq_data; 
    
    ind_data = 0;
    ind_sparse = 0;
    Tq_ind_cur[0]=0;
    for(int ind=0;ind<((*lenq_ind) - 1);ind++){
        while((ind_sparse < (3*n)) && (T[ind_data].q == ind)){
            Tq_data_cur[ind_sparse] = T[ind_data].i;
            Tq_data_cur[ind_sparse+1] = T[ind_data].t;
            Tq_data_cur[ind_sparse+2] = T[ind_data].val; 
            ind_data++;
            ind_sparse+=3;
        }
        Tq_ind_cur[ind+1]=ind_sparse;
                    
    }
    while(ind_sparse < (3*n)){
        Tq_data_cur[ind_sparse] = T[ind_data].i;
        Tq_data_cur[ind_sparse+1] = T[ind_data].t;
        Tq_data_cur[ind_sparse+2] = T[ind_data].val; 
        ind_data++;
        ind_sparse+=3;
    }
}

void parseTensorFile(char* fileName, int** Ti_ind, float** Ti_data, int** Tt_ind, float** Tt_data, int** Tq_ind, float** Tq_data, int* leni_ind, int* lent_ind, int* lenq_ind, int* num_values){
    
    FILE* f = fopen(fileName, "r");
    
    int n = 0;
    int i,t,q;
    float val;
    fscanf(f,"%d %d %d",&i,&t,&q);
    *leni_ind = i;
    *lent_ind = t;
    *lenq_ind = q;
    fscanf(f,"%d",&n);
    *num_values = n;
    tensor_elem* T = (tensor_elem*)malloc(n*sizeof(tensor_elem));
    
    for(int ind=0;ind<n;ind++){
        fscanf(f,"%d %d %d %f",&i,&t,&q,&val);
        tensor_elem cur;
        cur.i = i; cur.t = t; cur.q = q; cur.val = val;
        T[ind] = cur;
    }
    fclose(f);
    
	unfoldTensor(T,Ti_ind,Ti_data,Tt_ind,Tt_data,Tq_ind,Tq_data,leni_ind,lent_ind,lenq_ind,num_values);

    free(T);
}

void printTensorToFile(char* fileName, tensor_elem* T, int i, int t, int q, int n){
	FILE* f = fopen(fileName, "w");
	fprintf(f,"%d %d %d\n",i,t,q);
	fprintf(f,"%d\n",n);
	
	qsort(T, n, sizeof(tensor_elem),comp_i);

	for(int ind=0;ind<n;ind++){
		tensor_elem cur = T[ind];
		fprintf(f,"%d %d %d %f\n",cur.i,cur.t, cur.q, cur.val);
	}
	fclose(f);
}

void genTensor(int** Ti_ind, float** Ti_data, int** Tt_ind, float** Tt_data, int** Tq_ind, float** Tq_data, int leni_ind, int lent_ind, int lenq_ind, int num_values){

	int n = num_values;

	tensor_elem* T = (tensor_elem*)malloc(n*sizeof(tensor_elem));
	//tensor_elem* T = new tensor_elem[num_values];

	set<pair<int,pair<int,int> > > index_set;

	int ind=0;
    while(ind<n){
        tensor_elem cur;
		int i = rand() % leni_ind;
		int t = rand() % lent_ind;
		int q = rand() % lenq_ind;

		if( index_set.find(make_pair(i,make_pair(t,q))) == index_set.end() ){
			cur.i = i; 
			cur.t = t; 
			cur.q = q; 
			cur.val = rand() % 100;
			T[ind] = cur;
			index_set.insert(make_pair(i,make_pair(t,q)));
			ind++;
		}
    }
    qsort(T, n, sizeof(tensor_elem),comp_i);
	printTensorToFile("tensor_input.txt",T,leni_ind,lent_ind,lenq_ind,num_values);

	unfoldTensor(T,Ti_ind,Ti_data,Tt_ind,Tt_data,Tq_ind,Tq_data,&leni_ind,&lent_ind,&lenq_ind,&num_values);

    free(T);
}

tensor_elem* buildErrorTensor(float* A, float* B,float* C,int k,int leni_ind, int lent_ind, int lenq_ind){
	
	//tensor_elem* T = new tensor_elem[leni_ind*lent_ind*lenq_ind];
	tensor_elem* T = (tensor_elem*)malloc(leni_ind*lent_ind*lenq_ind*sizeof(tensor_elem));


	int ind = 0;
	for(int i=0;i<leni_ind;i++){
		for(int t=0;t<lent_ind;t++){
			for(int q=0;q<lenq_ind;q++){
				float cur = 0.0f;
				for(int j=0;j<k;j++){
					cur += A[i*k+j]*B[t*k+j]*C[q*k+j];
				}
				T[ind].i = i;
				T[ind].t = t;
				T[ind].q = q;
				T[ind].val = cur;
				ind++;
			}
		}
	}

	return T;
}

void printToFile(char* fileNameA, char* fileNameB, char* fileNameC, int k, float* A, int i, float* B, int t, float* C, int q){
    //open file
    FILE* fA = fopen(fileNameA, "w");
    FILE* fB = fopen(fileNameB, "w");
    FILE* fC = fopen(fileNameC, "w");
    for(int ind=1;ind<=(k*i);ind++){
        fprintf(fA,"%f",A[ind-1]);
        if(ind % k == 0) fprintf(fA,"\n");
        else fprintf(fA," ");
    }
    for(int ind=1;ind<=(k*t);ind++){
        fprintf(fB,"%f",B[ind-1]);
        if(ind % k == 0) fprintf(fB,"\n");
        else fprintf(fB," ");
    }
    for(int ind=1;ind<=(k*q);ind++){
        fprintf(fC,"%f",C[ind-1]);
        if(ind % k == 0) fprintf(fC,"\n");
        else fprintf(fC," ");
    }
    fclose(fA);
    fclose(fB);
    fclose(fC);
}



int main ( int argc, char *  argv [] )
{
	char fileName[] = "tensor_input.txt";
	char fileA[] = "A.txt";
	char fileB[] = "B.txt";
	char fileC[] = "C.txt";

    int *Ti_ind, *Tt_ind, *Tq_ind;
    float* Ti_data, *Tt_data, *Tq_data;
    //int i, t, q, n;
    //parseTensorFile(fileName,&Ti_ind,&Ti_data,&Tt_ind,&Tt_data,&Tq_ind,&Tq_data,&i,&t,&q,&n);
    int i = 3, t = 3, q = 3, n = 27;
	genTensor(&Ti_ind,&Ti_data,&Tt_ind,&Tt_data,&Tq_ind,&Tq_data,i,t,q,n);
	
	/*
	for(int ind=0;ind<i;ind++){
        printf("%d ", Ti_ind[ind]);
    }
    printf("\n\n");
    */
	/*
	for(int ind=0;ind<(3*n);ind+=3){
        printf("%f %f %f\n",Ti_data[ind],Ti_data[ind+1],Ti_data[ind+2]);
    }
	*/
    printf("\n");   
	
	int k = 2;
	//scanf("%d", &k);
	
	float beta = 0.0f;

	float* A = new float[k*i];
	float* B = new float[k*t];
	float* C = new float[k*q];

	for(int ind=0;ind<(k*i);ind++) A[ind] = (float)rand();
	for(int ind=0;ind<(k*t);ind++) B[ind] = (float)rand();
	for(int ind=0;ind<(k*q);ind++) C[ind] = (float)rand();

    float *Ti_data_cuda = NULL, *Tt_data_cuda = NULL, *Tq_data_cuda = NULL;
	int *Ti_ind_cuda = NULL, *Tt_ind_cuda = NULL, *Tq_ind_cuda = NULL;
	hipMalloc ( (void**)&Ti_data_cuda, 3*n*sizeof(float) );
	hipMalloc ( (void**)&Tt_data_cuda, 3*n*sizeof(float) );
	hipMalloc ( (void**)&Tq_data_cuda, 3*n*sizeof(float) );
	hipMalloc ( (void**)&Ti_ind_cuda, i*sizeof(int) );
	hipMalloc ( (void**)&Tt_ind_cuda, t*sizeof(int) );
	hipMalloc ( (void**)&Tq_ind_cuda, q*sizeof(int) );
	
	float *A_cuda = NULL, *B_cuda = NULL, *C_cuda = NULL, *A_next_cuda = NULL, *B_next_cuda = NULL, *C_next_cuda = NULL;
	int numBytesA = (k*i)*sizeof(float);
	int numBytesB = (k*t)*sizeof(float);
	int numBytesC = (k*q)*sizeof(float);
	hipMalloc ( (void**)&A_cuda, numBytesA );
	hipMalloc ( (void**)&B_cuda, numBytesB );
	hipMalloc ( (void**)&C_cuda, numBytesC );
	hipMalloc ( (void**)&A_next_cuda, numBytesA );
	hipMalloc ( (void**)&B_next_cuda, numBytesB );
	hipMalloc ( (void**)&C_next_cuda, numBytesC );

    dim3 blocks  = dim3(1, 1);

    hipEvent_t start, stop;
    float gpuTime = 0.0f;

    hipEventCreate ( &start );
    hipEventCreate ( &stop );
    hipEventRecord ( start, 0 );
    
	hipDeviceSynchronize();
	hipMemcpy      ( Ti_data_cuda, Ti_data, 3*n*sizeof(float), hipMemcpyHostToDevice );
	hipMemcpy      ( Ti_ind_cuda, Ti_ind, i*sizeof(int), hipMemcpyHostToDevice );
	hipMemcpy      ( Tt_data_cuda, Tt_data, 3*n*sizeof(float), hipMemcpyHostToDevice );
	hipMemcpy      ( Tt_ind_cuda, Tt_ind, t*sizeof(int), hipMemcpyHostToDevice );
	hipMemcpy      ( Tq_data_cuda, Tq_data, 3*n*sizeof(float), hipMemcpyHostToDevice );
	hipMemcpy      ( Tq_ind_cuda, Tq_ind, q*sizeof(int), hipMemcpyHostToDevice );
	
	hipMemcpy      ( A_cuda, A, numBytesA, hipMemcpyHostToDevice );
	hipMemcpy      ( B_cuda, B, numBytesB, hipMemcpyHostToDevice );
	hipMemcpy      ( C_cuda, C, numBytesC, hipMemcpyHostToDevice );

	
	bool flag = true;

	for(int ind=0;ind<100;ind++){
		if(flag){	
			hipDeviceSynchronize();
			factorAKernel<<<blocks, dim3(k,i)>>>(Ti_ind_cuda, Ti_data_cuda, A_cuda, B_cuda, C_cuda, A_next_cuda,i,t,q,3*n,k,beta);

			hipDeviceSynchronize();
			factorBKernel<<<blocks, dim3(k,t)>>>(Tt_ind_cuda, Tt_data_cuda, A_next_cuda, B_cuda, C_cuda, B_next_cuda, i,t,q,3*n,k,beta);

			hipDeviceSynchronize();
			factorCKernel<<<blocks, dim3(k,q)>>>(Tq_ind_cuda, Tq_data_cuda, A_next_cuda, B_next_cuda,C_cuda,C_next_cuda,i,t,q,3*n,k,beta);

		}
		else{
			hipDeviceSynchronize();
			factorAKernel<<<blocks, dim3(k,i)>>>(Ti_ind_cuda, Ti_data_cuda, A_next_cuda, B_next_cuda, C_next_cuda, A_cuda, i,t,q,3*n,k,beta);
			
			hipDeviceSynchronize();
			factorBKernel<<<blocks, dim3(k,t)>>>(Tt_ind_cuda, Tt_data_cuda, A_cuda, B_next_cuda, C_next_cuda, B_cuda, i,t,q,3*n,k,beta);
			
			hipDeviceSynchronize();
			factorCKernel<<<blocks, dim3(k,q)>>>(Tq_ind_cuda, Tq_data_cuda, A_cuda, B_cuda, C_next_cuda, C_cuda, i,t,q,3*n,k,beta);
		}
		flag = !flag;
    
	}
	
	hipDeviceSynchronize();
	if(flag == false){
		hipMemcpy      ( A, A_next_cuda, numBytesA, hipMemcpyDeviceToHost );
		hipMemcpy      ( B, B_next_cuda, numBytesB, hipMemcpyDeviceToHost );
		hipMemcpy      ( C, C_next_cuda, numBytesC, hipMemcpyDeviceToHost );
		
	}
	else{
		hipMemcpy      ( A, A_cuda, numBytesA, hipMemcpyDeviceToHost );
		hipMemcpy      ( B, B_cuda, numBytesB, hipMemcpyDeviceToHost );
		hipMemcpy      ( C, C_cuda, numBytesC, hipMemcpyDeviceToHost );
	}

	
	hipEventRecord ( stop, 0 );
    hipEventSynchronize ( stop );
    hipEventElapsedTime ( &gpuTime, start, stop );

    printf("\ntime spent executing by the GPU: %.2f millseconds\n", gpuTime );
    
	printToFile(fileA,fileB,fileC,k,A,i,B,t,C,q);

	tensor_elem* Q = buildErrorTensor(A,B,C,k,i,t,q);
	printTensorToFile("error_tensor.txt",Q,i,t,q,i*t*q);
	free(Q);

    hipEventDestroy ( start );
    hipEventDestroy ( stop  );
    hipFree(Ti_ind_cuda);
	hipFree(Ti_data_cuda);
	hipFree(Tt_ind_cuda);
	hipFree(Tt_data_cuda);
	hipFree(Tq_ind_cuda);
	hipFree(Tq_data_cuda);
	hipFree(A_cuda);
	hipFree(B_cuda);
	hipFree(C_cuda);
	hipFree(A_next_cuda);
	hipFree(B_next_cuda);
	hipFree(C_next_cuda);
    delete[] Ti_ind;
	delete[] Ti_data;
	delete[] Tt_ind;
	delete[] Tt_data;
	delete[] Tq_ind;
	delete[] Tq_data;
	delete[] A;
	delete[] B;
	delete[] C;
	
    return 0;
}
	.text
	.file	"kernel.hip"
	.globl	_Z28__device_stub__factorAKernelPiPfS0_S0_S0_S0_iiiiif # -- Begin function _Z28__device_stub__factorAKernelPiPfS0_S0_S0_S0_iiiiif
	.type	_Z28__device_stub__factorAKernelPiPfS0_S0_S0_S0_iiiiif,@function
_Z28__device_stub__factorAKernelPiPfS0_S0_S0_S0_iiiiif: # @_Z28__device_stub__factorAKernelPiPfS0_S0_S0_S0_iiiiif
	.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	$208, %rsp
	.cfi_def_cfa_offset 256
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	72(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	64(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	56(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	48(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	40(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	32(%rsp), %r8
	movq	%r9, (%r8)
	leaq	12(%rsp), %r9
	movss	%xmm0, (%r9)
	leaq	112(%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	256(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	264(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	272(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	280(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	288(%rsp), %rax
	movq	%rax, 80(%rbx)
	movq	%r9, 88(%rbx)
	leaq	96(%rsp), %r14
	leaq	80(%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	$_Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$224, %rsp
	.cfi_adjust_cfa_offset -224
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	_Z28__device_stub__factorAKernelPiPfS0_S0_S0_S0_iiiiif, .Lfunc_end0-_Z28__device_stub__factorAKernelPiPfS0_S0_S0_S0_iiiiif
	.cfi_endproc
                                        # -- End function
	.globl	_Z28__device_stub__factorBKernelPiPfS0_S0_S0_S0_iiiiif # -- Begin function _Z28__device_stub__factorBKernelPiPfS0_S0_S0_S0_iiiiif
	.type	_Z28__device_stub__factorBKernelPiPfS0_S0_S0_S0_iiiiif,@function
_Z28__device_stub__factorBKernelPiPfS0_S0_S0_S0_iiiiif: # @_Z28__device_stub__factorBKernelPiPfS0_S0_S0_S0_iiiiif
	.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	$208, %rsp
	.cfi_def_cfa_offset 256
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	72(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	64(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	56(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	48(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	40(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	32(%rsp), %r8
	movq	%r9, (%r8)
	leaq	12(%rsp), %r9
	movss	%xmm0, (%r9)
	leaq	112(%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	256(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	264(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	272(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	280(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	288(%rsp), %rax
	movq	%rax, 80(%rbx)
	movq	%r9, 88(%rbx)
	leaq	96(%rsp), %r14
	leaq	80(%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	$_Z13factorBKernelPiPfS0_S0_S0_S0_iiiiif, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$224, %rsp
	.cfi_adjust_cfa_offset -224
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z28__device_stub__factorBKernelPiPfS0_S0_S0_S0_iiiiif, .Lfunc_end1-_Z28__device_stub__factorBKernelPiPfS0_S0_S0_S0_iiiiif
	.cfi_endproc
                                        # -- End function
	.globl	_Z28__device_stub__factorCKernelPiPfS0_S0_S0_S0_iiiiif # -- Begin function _Z28__device_stub__factorCKernelPiPfS0_S0_S0_S0_iiiiif
	.type	_Z28__device_stub__factorCKernelPiPfS0_S0_S0_S0_iiiiif,@function
_Z28__device_stub__factorCKernelPiPfS0_S0_S0_S0_iiiiif: # @_Z28__device_stub__factorCKernelPiPfS0_S0_S0_S0_iiiiif
	.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	$208, %rsp
	.cfi_def_cfa_offset 256
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	72(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	64(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	56(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	48(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	40(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	32(%rsp), %r8
	movq	%r9, (%r8)
	leaq	12(%rsp), %r9
	movss	%xmm0, (%r9)
	leaq	112(%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	256(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	264(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	272(%rsp), %rax
	movq	%rax, 64(%rbx)
	leaq	280(%rsp), %rax
	movq	%rax, 72(%rbx)
	leaq	288(%rsp), %rax
	movq	%rax, 80(%rbx)
	movq	%r9, 88(%rbx)
	leaq	96(%rsp), %r14
	leaq	80(%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	$_Z13factorCKernelPiPfS0_S0_S0_S0_iiiiif, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$224, %rsp
	.cfi_adjust_cfa_offset -224
	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	_Z28__device_stub__factorCKernelPiPfS0_S0_S0_S0_iiiiif, .Lfunc_end2-_Z28__device_stub__factorCKernelPiPfS0_S0_S0_S0_iiiiif
	.cfi_endproc
                                        # -- End function
	.globl	_Z6comp_iPKvS0_                 # -- Begin function _Z6comp_iPKvS0_
	.type	_Z6comp_iPKvS0_,@function
_Z6comp_iPKvS0_:                        # @_Z6comp_iPKvS0_
	.cfi_startproc
# %bb.0:
	movl	(%rdi), %ecx
	movl	(%rsi), %edx
	movb	$1, %al
	cmpl	%edx, %ecx
	jg	.LBB3_4
# %bb.1:
	movl	4(%rdi), %r8d
	movl	4(%rsi), %r9d
	sete	%r10b
	cmpl	%r9d, %r8d
	setg	%al
	andb	%r10b, %al
	jne	.LBB3_4
# %bb.2:
	cmpl	%edx, %ecx
	jne	.LBB3_4
# %bb.3:
	movl	8(%rsi), %eax
	cmpl	%r9d, %r8d
	sete	%cl
	cmpl	%eax, 8(%rdi)
	setg	%al
	andb	%cl, %al
.LBB3_4:
	movzbl	%al, %eax
	retq
.Lfunc_end3:
	.size	_Z6comp_iPKvS0_, .Lfunc_end3-_Z6comp_iPKvS0_
	.cfi_endproc
                                        # -- End function
	.globl	_Z6comp_tPKvS0_                 # -- Begin function _Z6comp_tPKvS0_
	.type	_Z6comp_tPKvS0_,@function
_Z6comp_tPKvS0_:                        # @_Z6comp_tPKvS0_
	.cfi_startproc
# %bb.0:
	movl	4(%rdi), %ecx
	movl	4(%rsi), %edx
	movb	$1, %al
	cmpl	%edx, %ecx
	jg	.LBB4_4
# %bb.1:
	movl	8(%rdi), %r8d
	movl	8(%rsi), %r9d
	sete	%r10b
	cmpl	%r9d, %r8d
	setl	%al
	andb	%r10b, %al
	jne	.LBB4_4
# %bb.2:
	cmpl	%edx, %ecx
	jne	.LBB4_4
# %bb.3:
	movl	(%rsi), %eax
	cmpl	%r9d, %r8d
	sete	%cl
	cmpl	%eax, (%rdi)
	setg	%al
	andb	%cl, %al
.LBB4_4:
	movzbl	%al, %eax
	retq
.Lfunc_end4:
	.size	_Z6comp_tPKvS0_, .Lfunc_end4-_Z6comp_tPKvS0_
	.cfi_endproc
                                        # -- End function
	.globl	_Z6comp_qPKvS0_                 # -- Begin function _Z6comp_qPKvS0_
	.type	_Z6comp_qPKvS0_,@function
_Z6comp_qPKvS0_:                        # @_Z6comp_qPKvS0_
	.cfi_startproc
# %bb.0:
	movl	8(%rdi), %ecx
	movl	8(%rsi), %edx
	movb	$1, %al
	cmpl	%edx, %ecx
	jg	.LBB5_4
# %bb.1:
	movl	(%rdi), %r8d
	movl	(%rsi), %r9d
	sete	%r10b
	cmpl	%r9d, %r8d
	setg	%al
	andb	%r10b, %al
	jne	.LBB5_4
# %bb.2:
	cmpl	%edx, %ecx
	jne	.LBB5_4
# %bb.3:
	movl	4(%rsi), %eax
	cmpl	%r9d, %r8d
	sete	%cl
	cmpl	%eax, 4(%rdi)
	setg	%al
	andb	%cl, %al
.LBB5_4:
	movzbl	%al, %eax
	retq
.Lfunc_end5:
	.size	_Z6comp_qPKvS0_, .Lfunc_end5-_Z6comp_qPKvS0_
	.cfi_endproc
                                        # -- End function
	.globl	_Z12unfoldTensorP11tensor_elemPPiPPfS2_S4_S2_S4_S1_S1_S1_S1_ # -- Begin function _Z12unfoldTensorP11tensor_elemPPiPPfS2_S4_S2_S4_S1_S1_S1_S1_
	.type	_Z12unfoldTensorP11tensor_elemPPiPPfS2_S4_S2_S4_S1_S1_S1_S1_,@function
_Z12unfoldTensorP11tensor_elemPPiPPfS2_S4_S2_S4_S1_S1_S1_S1_: # @_Z12unfoldTensorP11tensor_elemPPiPPfS2_S4_S2_S4_S1_S1_S1_S1_
	.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
	movq	%r9, 32(%rsp)                   # 8-byte Spill
	movq	%r8, 24(%rsp)                   # 8-byte Spill
	movq	%rcx, 16(%rsp)                  # 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	104(%rsp), %r14
	movq	128(%rsp), %rax
	movslq	(%rax), %rbp
	movl	$16, %edx
	movl	$_Z6comp_iPKvS0_, %ecx
	movq	%rbp, %rsi
	callq	qsort
	movslq	(%r14), %r15
	leaq	(,%r15,4), %rdi
	callq	malloc
	movq	%rax, %r14
	movq	%rax, (%r12)
	movq	%rbp, 8(%rsp)                   # 8-byte Spill
	leaq	(%rbp,%rbp,2), %rbp
	leaq	(,%rbp,4), %r12
	movq	%r12, %rdi
	callq	malloc
	movq	%rax, (%r13)
	movl	$0, (%r14)
	cmpq	$2, %r15
	jl	.LBB6_1
# %bb.2:                                # %.preheader171.preheader
	decl	%r15d
	leaq	12(%rbx), %rdx
	xorl	%esi, %esi
	xorl	%edi, %edi
	xorl	%ecx, %ecx
.LBB6_3:                                # %.preheader171
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB6_5 Depth 2
	cmpl	%ebp, %ecx
	jge	.LBB6_7
# %bb.4:                                # %.lr.ph.preheader
                                        #   in Loop: Header=BB6_3 Depth=1
	movslq	%edi, %rdi
	movslq	%ecx, %rcx
	movq	%rdi, %r8
	shlq	$4, %r8
	addq	%rdx, %r8
.LBB6_5:                                # %.lr.ph
                                        #   Parent Loop BB6_3 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	-12(%r8), %r9d
	cmpq	%r9, %rsi
	jne	.LBB6_7
# %bb.6:                                #   in Loop: Header=BB6_5 Depth=2
	xorps	%xmm0, %xmm0
	cvtsi2ssl	-8(%r8), %xmm0
	movss	%xmm0, (%rax,%rcx,4)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	-4(%r8), %xmm0
	movss	%xmm0, 4(%rax,%rcx,4)
	movss	(%r8), %xmm0                    # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 8(%rax,%rcx,4)
	incq	%rdi
	addq	$3, %rcx
	addq	$16, %r8
	cmpq	%rbp, %rcx
	jl	.LBB6_5
.LBB6_7:                                # %.critedge
                                        #   in Loop: Header=BB6_3 Depth=1
	movl	%ecx, 4(%r14,%rsi,4)
	incq	%rsi
	cmpq	%r15, %rsi
	jne	.LBB6_3
# %bb.8:                                # %.preheader170.loopexit
	movslq	%edi, %rdx
	jmp	.LBB6_9
.LBB6_1:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
.LBB6_9:                                # %.preheader170
	movq	112(%rsp), %r14
	cmpl	%ebp, %ecx
	jge	.LBB6_12
# %bb.10:                               # %.lr.ph185.preheader
	movslq	%ecx, %rcx
	shlq	$4, %rdx
	addq	%rbx, %rdx
	addq	$12, %rdx
.LBB6_11:                               # %.lr.ph185
                                        # =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ssl	-8(%rdx), %xmm0
	movss	%xmm0, (%rax,%rcx,4)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	-4(%rdx), %xmm0
	movss	%xmm0, 4(%rax,%rcx,4)
	movss	(%rdx), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 8(%rax,%rcx,4)
	addq	$3, %rcx
	addq	$16, %rdx
	cmpq	%rbp, %rcx
	jl	.LBB6_11
.LBB6_12:                               # %._crit_edge
	movl	$16, %edx
	movl	$_Z6comp_tPKvS0_, %ecx
	movq	%rbx, %rdi
	movq	8(%rsp), %rsi                   # 8-byte Reload
	callq	qsort
	movslq	(%r14), %r15
	leaq	(,%r15,4), %rdi
	callq	malloc
	movq	%rax, %r14
	movq	16(%rsp), %rax                  # 8-byte Reload
	movq	%r14, (%rax)
	movq	%r12, %rdi
	callq	malloc
	movq	24(%rsp), %rcx                  # 8-byte Reload
	movq	%rax, (%rcx)
	movl	$0, (%r14)
	cmpq	$2, %r15
	jl	.LBB6_13
# %bb.14:                               # %.preheader169.preheader
	decl	%r15d
	leaq	12(%rbx), %rdx
	xorl	%esi, %esi
	xorl	%edi, %edi
	xorl	%ecx, %ecx
.LBB6_15:                               # %.preheader169
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB6_17 Depth 2
	cmpl	%ebp, %ecx
	jge	.LBB6_19
# %bb.16:                               # %.lr.ph188.preheader
                                        #   in Loop: Header=BB6_15 Depth=1
	movslq	%edi, %rdi
	movslq	%ecx, %rcx
	movq	%rdi, %r8
	shlq	$4, %r8
	addq	%rdx, %r8
.LBB6_17:                               # %.lr.ph188
                                        #   Parent Loop BB6_15 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	-8(%r8), %r9d
	cmpq	%r9, %rsi
	jne	.LBB6_19
# %bb.18:                               #   in Loop: Header=BB6_17 Depth=2
	xorps	%xmm0, %xmm0
	cvtsi2ssl	-12(%r8), %xmm0
	movss	%xmm0, (%rax,%rcx,4)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	-4(%r8), %xmm0
	movss	%xmm0, 4(%rax,%rcx,4)
	movss	(%r8), %xmm0                    # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 8(%rax,%rcx,4)
	incq	%rdi
	addq	$3, %rcx
	addq	$16, %r8
	cmpq	%rbp, %rcx
	jl	.LBB6_17
.LBB6_19:                               # %.critedge2
                                        #   in Loop: Header=BB6_15 Depth=1
	movl	%ecx, 4(%r14,%rsi,4)
	incq	%rsi
	cmpq	%r15, %rsi
	jne	.LBB6_15
# %bb.20:                               # %.preheader168.loopexit
	movslq	%edi, %rdx
	jmp	.LBB6_21
.LBB6_13:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
.LBB6_21:                               # %.preheader168
	movq	120(%rsp), %r14
	movq	96(%rsp), %r13
	cmpl	%ebp, %ecx
	jge	.LBB6_24
# %bb.22:                               # %.lr.ph201.preheader
	movslq	%ecx, %rcx
	shlq	$4, %rdx
	addq	%rbx, %rdx
	addq	$12, %rdx
.LBB6_23:                               # %.lr.ph201
                                        # =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ssl	-12(%rdx), %xmm0
	movss	%xmm0, (%rax,%rcx,4)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	-4(%rdx), %xmm0
	movss	%xmm0, 4(%rax,%rcx,4)
	movss	(%rdx), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 8(%rax,%rcx,4)
	addq	$3, %rcx
	addq	$16, %rdx
	cmpq	%rbp, %rcx
	jl	.LBB6_23
.LBB6_24:                               # %._crit_edge202
	movl	$16, %edx
	movl	$_Z6comp_qPKvS0_, %ecx
	movq	%rbx, %rdi
	movq	8(%rsp), %rsi                   # 8-byte Reload
	callq	qsort
	movslq	(%r14), %r15
	leaq	(,%r15,4), %rdi
	callq	malloc
	movq	%rax, %r14
	movq	32(%rsp), %rax                  # 8-byte Reload
	movq	%r14, (%rax)
	movq	%r12, %rdi
	callq	malloc
	movq	%rax, (%r13)
	movl	$0, (%r14)
	cmpq	$2, %r15
	jl	.LBB6_25
# %bb.26:                               # %.preheader167.preheader
	decl	%r15d
	leaq	12(%rbx), %rdx
	xorl	%esi, %esi
	xorl	%edi, %edi
	xorl	%ecx, %ecx
.LBB6_27:                               # %.preheader167
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB6_29 Depth 2
	cmpl	%ebp, %ecx
	jge	.LBB6_31
# %bb.28:                               # %.lr.ph205.preheader
                                        #   in Loop: Header=BB6_27 Depth=1
	movslq	%edi, %rdi
	movslq	%ecx, %rcx
	movq	%rdi, %r8
	shlq	$4, %r8
	addq	%rdx, %r8
.LBB6_29:                               # %.lr.ph205
                                        #   Parent Loop BB6_27 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	-4(%r8), %r9d
	cmpq	%r9, %rsi
	jne	.LBB6_31
# %bb.30:                               #   in Loop: Header=BB6_29 Depth=2
	xorps	%xmm0, %xmm0
	cvtsi2ssl	-12(%r8), %xmm0
	movss	%xmm0, (%rax,%rcx,4)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	-8(%r8), %xmm0
	movss	%xmm0, 4(%rax,%rcx,4)
	movss	(%r8), %xmm0                    # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 8(%rax,%rcx,4)
	incq	%rdi
	addq	$3, %rcx
	addq	$16, %r8
	cmpq	%rbp, %rcx
	jl	.LBB6_29
.LBB6_31:                               # %.critedge4
                                        #   in Loop: Header=BB6_27 Depth=1
	movl	%ecx, 4(%r14,%rsi,4)
	incq	%rsi
	cmpq	%r15, %rsi
	jne	.LBB6_27
# %bb.32:                               # %.preheader.loopexit
	movslq	%edi, %rdx
	jmp	.LBB6_33
.LBB6_25:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
.LBB6_33:                               # %.preheader
	cmpl	%ebp, %ecx
	jge	.LBB6_36
# %bb.34:                               # %.lr.ph218.preheader
	movslq	%ecx, %rcx
	shlq	$4, %rdx
	addq	%rdx, %rbx
.LBB6_35:                               # %.lr.ph218
                                        # =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ssl	(%rbx), %xmm0
	movss	%xmm0, (%rax,%rcx,4)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	4(%rbx), %xmm0
	movss	%xmm0, 4(%rax,%rcx,4)
	movss	12(%rbx), %xmm0                 # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 8(%rax,%rcx,4)
	addq	$3, %rcx
	addq	$16, %rbx
	cmpq	%rbp, %rcx
	jl	.LBB6_35
.LBB6_36:                               # %._crit_edge219
	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_end6:
	.size	_Z12unfoldTensorP11tensor_elemPPiPPfS2_S4_S2_S4_S1_S1_S1_S1_, .Lfunc_end6-_Z12unfoldTensorP11tensor_elemPPiPPfS2_S4_S2_S4_S1_S1_S1_S1_
	.cfi_endproc
                                        # -- End function
	.globl	_Z15parseTensorFilePcPPiPPfS1_S3_S1_S3_S0_S0_S0_S0_ # -- Begin function _Z15parseTensorFilePcPPiPPfS1_S3_S1_S3_S0_S0_S0_S0_
	.type	_Z15parseTensorFilePcPPiPPfS1_S3_S1_S3_S0_S0_S0_S0_,@function
_Z15parseTensorFilePcPPiPPfS1_S3_S1_S3_S0_S0_S0_S0_: # @_Z15parseTensorFilePcPPiPPfS1_S3_S1_S3_S0_S0_S0_S0_
	.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	$72, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%r9, 64(%rsp)                   # 8-byte Spill
	movq	%r8, 56(%rsp)                   # 8-byte Spill
	movq	%rcx, 48(%rsp)                  # 8-byte Spill
	movq	%rdx, 40(%rsp)                  # 8-byte Spill
	movq	%rsi, 32(%rsp)                  # 8-byte Spill
	movq	136(%rsp), %r13
	movl	$.L.str, %esi
	callq	fopen
	movq	%rax, %rbp
	leaq	20(%rsp), %rbx
	movl	$0, (%rbx)
	leaq	12(%rsp), %r14
	leaq	8(%rsp), %r15
	leaq	4(%rsp), %r12
	movl	$.L.str.1, %esi
	movq	%rax, %rdi
	movq	%r14, %rdx
	movq	%r15, %rcx
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movl	(%r14), %eax
	movl	%eax, (%r13)
	movl	(%r15), %eax
	movq	144(%rsp), %rcx
	movl	%eax, (%rcx)
	movl	(%r12), %eax
	movq	152(%rsp), %rcx
	movl	%eax, (%rcx)
	movl	$.L.str.2, %esi
	movq	%rbp, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movslq	(%rbx), %rbx
	movq	160(%rsp), %rax
	movl	%ebx, (%rax)
	movq	%rbx, %rdi
	shlq	$4, %rdi
	callq	malloc
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	testq	%rbx, %rbx
	jle	.LBB7_3
# %bb.1:                                # %.lr.ph.preheader
	movq	24(%rsp), %rbx                  # 8-byte Reload
	addq	$12, %rbx
	leaq	8(%rsp), %r15
	leaq	4(%rsp), %r12
	leaq	16(%rsp), %r13
	xorl	%r14d, %r14d
.LBB7_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	$.L.str.3, %esi
	movq	%rbp, %rdi
	leaq	12(%rsp), %rdx
	movq	%r15, %rcx
	movq	%r12, %r8
	movq	%r13, %r9
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movl	12(%rsp), %eax
	movl	8(%rsp), %ecx
	movl	4(%rsp), %edx
	movss	16(%rsp), %xmm0                 # xmm0 = mem[0],zero,zero,zero
	movl	%eax, -12(%rbx)
	movl	%ecx, -8(%rbx)
	movl	%edx, -4(%rbx)
	movss	%xmm0, (%rbx)
	incq	%r14
	movslq	20(%rsp), %rax
	addq	$16, %rbx
	cmpq	%rax, %r14
	jl	.LBB7_2
.LBB7_3:                                # %._crit_edge
	movq	%rbp, %rdi
	callq	fclose
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	movq	32(%rsp), %rbx                  # 8-byte Reload
	movq	%rbx, %rdi
	movq	40(%rsp), %rsi                  # 8-byte Reload
	movq	48(%rsp), %rdx                  # 8-byte Reload
	movq	56(%rsp), %rcx                  # 8-byte Reload
	movq	64(%rsp), %r8                   # 8-byte Reload
	movq	72(%rsp), %r9                   # 8-byte Reload
	pushq	168(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	168(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	168(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	168(%rsp)
	.cfi_adjust_cfa_offset 8
	pushq	168(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	_Z12unfoldTensorP11tensor_elemPPiPPfS2_S4_S2_S4_S1_S1_S1_S1_
	addq	$48, %rsp
	.cfi_adjust_cfa_offset -48
	movq	%rbx, %rdi
	callq	free
	addq	$72, %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_end7:
	.size	_Z15parseTensorFilePcPPiPPfS1_S3_S1_S3_S0_S0_S0_S0_, .Lfunc_end7-_Z15parseTensorFilePcPPiPPfS1_S3_S1_S3_S0_S0_S0_S0_
	.cfi_endproc
                                        # -- End function
	.globl	_Z17printTensorToFilePcP11tensor_elemiiii # -- Begin function _Z17printTensorToFilePcP11tensor_elemiiii
	.type	_Z17printTensorToFilePcP11tensor_elemiiii,@function
_Z17printTensorToFilePcP11tensor_elemiiii: # @_Z17printTensorToFilePcP11tensor_elemiiii
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	%r9d, %ebp
	movl	%r8d, %r15d
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movl	$.L.str.4, %esi
	callq	fopen
	movq	%rax, %r14
	movl	$.L.str.5, %esi
	movq	%rax, %rdi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	fprintf
	movl	$.L.str.6, %esi
	movq	%r14, %rdi
	movl	%ebp, %edx
	xorl	%eax, %eax
	callq	fprintf
	movslq	%ebp, %r15
	movl	$16, %edx
	movl	$_Z6comp_iPKvS0_, %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	qsort
	testl	%r15d, %r15d
	jle	.LBB8_3
# %bb.1:                                # %.lr.ph.preheader
	movl	%ebp, %r15d
	shlq	$4, %r15
	xorl	%r12d, %r12d
.LBB8_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r12), %edx
	movl	4(%rbx,%r12), %ecx
	movl	8(%rbx,%r12), %r8d
	xorps	%xmm0, %xmm0
	cvtss2sd	12(%rbx,%r12), %xmm0
	movl	$.L.str.7, %esi
	movq	%r14, %rdi
	movb	$1, %al
	callq	fprintf
	addq	$16, %r12
	cmpq	%r12, %r15
	jne	.LBB8_2
.LBB8_3:                                # %._crit_edge
	movq	%r14, %rdi
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	fclose                          # TAILCALL
.Lfunc_end8:
	.size	_Z17printTensorToFilePcP11tensor_elemiiii, .Lfunc_end8-_Z17printTensorToFilePcP11tensor_elemiiii
	.cfi_endproc
                                        # -- End function
	.globl	_Z9genTensorPPiPPfS0_S2_S0_S2_iiii # -- Begin function _Z9genTensorPPiPPfS0_S2_S0_S2_iiii
	.type	_Z9genTensorPPiPPfS0_S2_S0_S2_iiii,@function
_Z9genTensorPPiPPfS0_S2_S0_S2_iiii:     # @_Z9genTensorPPiPPfS0_S2_S0_S2_iiii
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$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
	movq	%r9, 96(%rsp)                   # 8-byte Spill
	movq	%r8, 88(%rsp)                   # 8-byte Spill
	movq	%rcx, 80(%rsp)                  # 8-byte Spill
	movq	%rdx, 72(%rsp)                  # 8-byte Spill
	movq	%rsi, 64(%rsp)                  # 8-byte Spill
	movq	%rdi, 56(%rsp)                  # 8-byte Spill
	movslq	232(%rsp), %rbx
	movl	224(%rsp), %eax
	movl	%eax, 12(%rsp)                  # 4-byte Spill
	movl	216(%rsp), %eax
	movl	%eax, 8(%rsp)                   # 4-byte Spill
	movl	208(%rsp), %eax
	movl	%eax, 4(%rsp)                   # 4-byte Spill
	movq	%rbx, %rdi
	shlq	$4, %rdi
	.cfi_escape 0x2e, 0x00
	callq	malloc
	movq	%rax, 48(%rsp)                  # 8-byte Spill
	xorl	%ebp, %ebp
	leaq	112(%rsp), %rax
	movl	$0, (%rax)
	movq	%rbp, 8(%rax)
	movq	%rax, 16(%rax)
	movq	%rax, 24(%rax)
	movq	%rbp, 32(%rax)
	testq	%rbx, %rbx
	jle	.LBB9_4
.LBB9_1:                                # =>This Inner Loop Header: Depth=1
	movq	%rbx, %r14
	.cfi_escape 0x2e, 0x00
	callq	rand
	cltd
	idivl	4(%rsp)                         # 4-byte Folded Reload
	movl	%edx, %ebx
	.cfi_escape 0x2e, 0x00
	callq	rand
	cltd
	idivl	8(%rsp)                         # 4-byte Folded Reload
	movl	%edx, %r12d
	.cfi_escape 0x2e, 0x00
	callq	rand
	cltd
	idivl	12(%rsp)                        # 4-byte Folded Reload
	movl	%edx, %r13d
	movq	%r13, %rax
	shlq	$32, %rax
	leaq	(%r12,%rax), %r15
	movl	%ebx, 32(%rsp)
	movq	%r15, 36(%rsp)
	movq	32(%rsp), %rax
	movq	%rax, 16(%rsp)
	movl	%edx, 24(%rsp)
.Ltmp0:
	.cfi_escape 0x2e, 0x00
	leaq	104(%rsp), %rdi
	leaq	16(%rsp), %rsi
	callq	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE4findERKS2_
.Ltmp1:
# %bb.2:                                # %_ZNSt3setISt4pairIiS0_IiiEESt4lessIS2_ESaIS2_EE4findERKS2_.exit
                                        #   in Loop: Header=BB9_1 Depth=1
	leaq	112(%rsp), %rcx
	cmpq	%rcx, %rax
	jne	.LBB9_3
# %bb.8:                                #   in Loop: Header=BB9_1 Depth=1
	.cfi_escape 0x2e, 0x00
	callq	rand
	cltq
	imulq	$1374389535, %rax, %rcx         # imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$37, %rcx
	addl	%edx, %ecx
	imull	$100, %ecx, %ecx
	subl	%ecx, %eax
	cvtsi2ss	%eax, %xmm0
	movslq	%ebp, %rax
	shlq	$4, %rax
	movq	48(%rsp), %rcx                  # 8-byte Reload
	movl	%ebx, (%rcx,%rax)
	movl	%r12d, 4(%rcx,%rax)
	movl	%r13d, 8(%rcx,%rax)
	movss	%xmm0, 12(%rcx,%rax)
	movl	%ebx, 32(%rsp)
	movq	%r15, 36(%rsp)
	movq	32(%rsp), %rax
	movq	%rax, 16(%rsp)
	movl	%r13d, 24(%rsp)
.Ltmp3:
	.cfi_escape 0x2e, 0x00
	leaq	104(%rsp), %rdi
	leaq	16(%rsp), %rsi
	callq	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE16_M_insert_uniqueIS2_EES0_ISt17_Rb_tree_iteratorIS2_EbEOT_
.Ltmp4:
# %bb.9:                                # %_ZNSt3setISt4pairIiS0_IiiEESt4lessIS2_ESaIS2_EE6insertEOS2_.exit
                                        #   in Loop: Header=BB9_1 Depth=1
	incl	%ebp
.LBB9_3:                                #   in Loop: Header=BB9_1 Depth=1
	movq	%r14, %rbx
	cmpl	%ebx, %ebp
	jl	.LBB9_1
.LBB9_4:                                # %._crit_edge
.Ltmp6:
	.cfi_escape 0x2e, 0x00
	movl	$16, %edx
	movl	$_Z6comp_iPKvS0_, %ecx
	movq	48(%rsp), %r14                  # 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	qsort
.Ltmp7:
# %bb.5:
.Ltmp8:
	.cfi_escape 0x2e, 0x00
	movl	$.L.str.8, %edi
	movq	%r14, %rsi
	movl	4(%rsp), %edx                   # 4-byte Reload
	movl	8(%rsp), %ecx                   # 4-byte Reload
	movl	12(%rsp), %r8d                  # 4-byte Reload
	movl	%ebx, %r9d
	callq	_Z17printTensorToFilePcP11tensor_elemiiii
.Ltmp9:
# %bb.6:
.Ltmp10:
	.cfi_escape 0x2e, 0x30
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	leaq	240(%rsp), %rax
	leaq	232(%rsp), %r10
	leaq	224(%rsp), %r11
	leaq	216(%rsp), %rbx
	movq	%r14, %rdi
	movq	64(%rsp), %rsi                  # 8-byte Reload
	movq	72(%rsp), %rdx                  # 8-byte Reload
	movq	80(%rsp), %rcx                  # 8-byte Reload
	movq	88(%rsp), %r8                   # 8-byte Reload
	movq	96(%rsp), %r9                   # 8-byte Reload
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	pushq	%r10
	.cfi_adjust_cfa_offset 8
	pushq	%r11
	.cfi_adjust_cfa_offset 8
	pushq	%rbx
	.cfi_adjust_cfa_offset 8
	pushq	136(%rsp)                       # 8-byte Folded Reload
	.cfi_adjust_cfa_offset 8
	callq	_Z12unfoldTensorP11tensor_elemPPiPPfS2_S4_S2_S4_S1_S1_S1_S1_
	addq	$48, %rsp
	.cfi_adjust_cfa_offset -48
.Ltmp11:
# %bb.7:
	.cfi_escape 0x2e, 0x00
	movq	%r14, %rdi
	callq	free
	.cfi_escape 0x2e, 0x00
	leaq	104(%rsp), %rdi
	callq	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EED2Ev
	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
.LBB9_12:
	.cfi_def_cfa_offset 208
.Ltmp12:
	jmp	.LBB9_13
.LBB9_11:
.Ltmp5:
	jmp	.LBB9_13
.LBB9_10:
.Ltmp2:
.LBB9_13:
	movq	%rax, %rbx
	.cfi_escape 0x2e, 0x00
	leaq	104(%rsp), %rdi
	callq	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EED2Ev
	.cfi_escape 0x2e, 0x00
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end9:
	.size	_Z9genTensorPPiPPfS0_S2_S0_S2_iiii, .Lfunc_end9-_Z9genTensorPPiPPfS0_S2_S0_S2_iiii
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table9:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 1 <<
	.uleb128 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp2-.Lfunc_begin0           #     jumps to .Ltmp2
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp4-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp4
	.uleb128 .Ltmp5-.Lfunc_begin0           #     jumps to .Ltmp5
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp6-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp11-.Ltmp6                 #   Call between .Ltmp6 and .Ltmp11
	.uleb128 .Ltmp12-.Lfunc_begin0          #     jumps to .Ltmp12
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp11-.Lfunc_begin0          # >> Call Site 4 <<
	.uleb128 .Lfunc_end9-.Ltmp11            #   Call between .Ltmp11 and .Lfunc_end9
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_Z16buildErrorTensorPfS_S_iiii  # -- Begin function _Z16buildErrorTensorPfS_S_iiii
	.type	_Z16buildErrorTensorPfS_S_iiii,@function
_Z16buildErrorTensorPfS_S_iiii:         # @_Z16buildErrorTensorPfS_S_iiii
	.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	$56, %rsp
	.cfi_def_cfa_offset 112
	.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	%r8d, %r13d
	movl	%ecx, %ebp
	movq	%rdx, %r14
	movq	%rsi, 40(%rsp)                  # 8-byte Spill
	movq	%rdi, 16(%rsp)                  # 8-byte Spill
	movl	%r9d, 12(%rsp)                  # 4-byte Spill
	movl	%r9d, %eax
	imull	%r8d, %eax
	imull	112(%rsp), %eax
	movslq	%eax, %rdi
	shlq	$4, %rdi
	callq	malloc
	testl	%r13d, %r13d
	jle	.LBB10_11
# %bb.1:                                # %.preheader48.lr.ph
	movl	%r13d, %ecx
	movq	%rcx, 24(%rsp)                  # 8-byte Spill
	movl	12(%rsp), %ecx                  # 4-byte Reload
	movq	%rcx, 48(%rsp)                  # 8-byte Spill
	movl	112(%rsp), %esi
	movl	%ebp, %edi
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	xorl	%r10d, %r10d
.LBB10_2:                               # %.preheader48
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB10_4 Depth 2
                                        #       Child Loop BB10_6 Depth 3
                                        #         Child Loop BB10_13 Depth 4
	cmpl	$0, 12(%rsp)                    # 4-byte Folded Reload
	movq	%rcx, 32(%rsp)                  # 8-byte Spill
	jle	.LBB10_10
# %bb.3:                                # %.preheader47.lr.ph
                                        #   in Loop: Header=BB10_2 Depth=1
	movl	%ecx, %ecx
	movq	16(%rsp), %rdx                  # 8-byte Reload
	leaq	(%rdx,%rcx,4), %r11
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
.LBB10_4:                               # %.preheader47
                                        #   Parent Loop BB10_2 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB10_6 Depth 3
                                        #         Child Loop BB10_13 Depth 4
	cmpl	$0, 112(%rsp)
	jle	.LBB10_9
# %bb.5:                                # %.preheader.lr.ph
                                        #   in Loop: Header=BB10_4 Depth=2
	movl	%r13d, %ecx
	movq	40(%rsp), %rdx                  # 8-byte Reload
	leaq	(%rdx,%rcx,4), %rcx
	movslq	%r10d, %r10
	xorl	%r8d, %r8d
	xorl	%r12d, %r12d
.LBB10_6:                               # %.preheader
                                        #   Parent Loop BB10_2 Depth=1
                                        #     Parent Loop BB10_4 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB10_13 Depth 4
	testl	%ebp, %ebp
	jle	.LBB10_7
# %bb.12:                               # %.lr.ph
                                        #   in Loop: Header=BB10_6 Depth=3
	movl	%r8d, %edx
	leaq	(%r14,%rdx,4), %r15
	xorps	%xmm0, %xmm0
	xorl	%edx, %edx
.LBB10_13:                              #   Parent Loop BB10_2 Depth=1
                                        #     Parent Loop BB10_4 Depth=2
                                        #       Parent Loop BB10_6 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	movss	(%r11,%rdx,4), %xmm1            # xmm1 = mem[0],zero,zero,zero
	mulss	(%rcx,%rdx,4), %xmm1
	mulss	(%r15,%rdx,4), %xmm1
	addss	%xmm1, %xmm0
	incq	%rdx
	cmpq	%rdx, %rdi
	jne	.LBB10_13
	jmp	.LBB10_8
.LBB10_7:                               #   in Loop: Header=BB10_6 Depth=3
	xorps	%xmm0, %xmm0
.LBB10_8:                               # %._crit_edge
                                        #   in Loop: Header=BB10_6 Depth=3
	movq	%r10, %rdx
	shlq	$4, %rdx
	movl	%r9d, (%rax,%rdx)
	movl	%ebx, 4(%rax,%rdx)
	movl	%r12d, 8(%rax,%rdx)
	movss	%xmm0, 12(%rax,%rdx)
	incq	%r10
	incq	%r12
	addl	%ebp, %r8d
	cmpq	%rsi, %r12
	jne	.LBB10_6
.LBB10_9:                               # %._crit_edge53
                                        #   in Loop: Header=BB10_4 Depth=2
	incq	%rbx
	addl	%ebp, %r13d
	cmpq	48(%rsp), %rbx                  # 8-byte Folded Reload
	jne	.LBB10_4
.LBB10_10:                              # %._crit_edge57
                                        #   in Loop: Header=BB10_2 Depth=1
	incq	%r9
	movq	32(%rsp), %rcx                  # 8-byte Reload
	addl	%ebp, %ecx
	cmpq	24(%rsp), %r9                   # 8-byte Folded Reload
	jne	.LBB10_2
.LBB10_11:                              # %._crit_edge61
	addq	$56, %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_end10:
	.size	_Z16buildErrorTensorPfS_S_iiii, .Lfunc_end10-_Z16buildErrorTensorPfS_S_iiii
	.cfi_endproc
                                        # -- End function
	.globl	_Z11printToFilePcS_S_iPfiS0_iS0_i # -- Begin function _Z11printToFilePcS_S_iPfiS0_iS0_i
	.type	_Z11printToFilePcS_S_iPfiS0_iS0_i,@function
_Z11printToFilePcS_S_iPfiS0_iS0_i:      # @_Z11printToFilePcS_S_iPfiS0_iS0_i
	.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	%r9d, %r13d
	movq	%r8, 16(%rsp)                   # 8-byte Spill
	movl	%ecx, %ebx
	movq	%rdx, %r12
	movq	%rsi, %r15
	movl	120(%rsp), %eax
	movq	%rax, 8(%rsp)                   # 8-byte Spill
	movq	112(%rsp), %rax
	movq	%rax, 32(%rsp)                  # 8-byte Spill
	movl	104(%rsp), %eax
	movq	%rax, (%rsp)                    # 8-byte Spill
	movq	96(%rsp), %rax
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	movl	$.L.str.4, %esi
	callq	fopen
	movq	%rax, %r14
	movl	$.L.str.4, %esi
	movq	%r15, %rdi
	callq	fopen
	movq	%rax, %r15
	movl	$.L.str.4, %esi
	movq	%r12, %rdi
	callq	fopen
	movq	%rax, %r12
	imull	%ebx, %r13d
	testl	%r13d, %r13d
	jle	.LBB11_5
# %bb.1:                                # %.lr.ph.preheader
	incl	%r13d
	movl	$1, %ebp
.LBB11_2:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	16(%rsp), %rax                  # 8-byte Reload
	xorps	%xmm0, %xmm0
	cvtss2sd	-4(%rax,%rbp,4), %xmm0
	movl	$.L.str.9, %esi
	movq	%r14, %rdi
	movb	$1, %al
	callq	fprintf
	movl	%ebp, %eax
	cltd
	idivl	%ebx
	movl	$10, %edi
	testl	%edx, %edx
	je	.LBB11_4
# %bb.3:                                # %.lr.ph
                                        #   in Loop: Header=BB11_2 Depth=1
	movl	$32, %edi
.LBB11_4:                               # %.lr.ph
                                        #   in Loop: Header=BB11_2 Depth=1
	movq	%r14, %rsi
	callq	fputc@PLT
	incq	%rbp
	cmpq	%rbp, %r13
	jne	.LBB11_2
.LBB11_5:                               # %.preheader47
	movq	(%rsp), %rax                    # 8-byte Reload
	imull	%ebx, %eax
	testl	%eax, %eax
	jle	.LBB11_10
# %bb.6:                                # %.lr.ph54.preheader
	movq	%rax, %rbp
	incl	%ebp
	movl	$1, %r13d
.LBB11_7:                               # %.lr.ph54
                                        # =>This Inner Loop Header: Depth=1
	movq	24(%rsp), %rax                  # 8-byte Reload
	xorps	%xmm0, %xmm0
	cvtss2sd	-4(%rax,%r13,4), %xmm0
	movl	$.L.str.9, %esi
	movq	%r15, %rdi
	movb	$1, %al
	callq	fprintf
	movl	%r13d, %eax
	cltd
	idivl	%ebx
	movl	$10, %edi
	testl	%edx, %edx
	je	.LBB11_9
# %bb.8:                                # %.lr.ph54
                                        #   in Loop: Header=BB11_7 Depth=1
	movl	$32, %edi
.LBB11_9:                               # %.lr.ph54
                                        #   in Loop: Header=BB11_7 Depth=1
	movq	%r15, %rsi
	callq	fputc@PLT
	incq	%r13
	cmpq	%r13, %rbp
	jne	.LBB11_7
.LBB11_10:                              # %.preheader
	movq	8(%rsp), %rbp                   # 8-byte Reload
	imull	%ebx, %ebp
	testl	%ebp, %ebp
	jle	.LBB11_15
# %bb.11:                               # %.lr.ph59.preheader
	incl	%ebp
	movl	$1, %r13d
.LBB11_12:                              # %.lr.ph59
                                        # =>This Inner Loop Header: Depth=1
	movq	32(%rsp), %rax                  # 8-byte Reload
	xorps	%xmm0, %xmm0
	cvtss2sd	-4(%rax,%r13,4), %xmm0
	movl	$.L.str.9, %esi
	movq	%r12, %rdi
	movb	$1, %al
	callq	fprintf
	movl	%r13d, %eax
	cltd
	idivl	%ebx
	movl	$10, %edi
	testl	%edx, %edx
	je	.LBB11_14
# %bb.13:                               # %.lr.ph59
                                        #   in Loop: Header=BB11_12 Depth=1
	movl	$32, %edi
.LBB11_14:                              # %.lr.ph59
                                        #   in Loop: Header=BB11_12 Depth=1
	movq	%r12, %rsi
	callq	fputc@PLT
	incq	%r13
	cmpq	%r13, %rbp
	jne	.LBB11_12
.LBB11_15:                              # %._crit_edge
	movq	%r14, %rdi
	callq	fclose
	movq	%r15, %rdi
	callq	fclose
	movq	%r12, %rdi
	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
	jmp	fclose                          # TAILCALL
.Lfunc_end11:
	.size	_Z11printToFilePcS_S_iPfiS0_iS0_i, .Lfunc_end11-_Z11printToFilePcS_S_iPfiS0_iS0_i
	.cfi_endproc
                                        # -- End function
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$248, %rsp
	.cfi_def_cfa_offset 304
	.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	$2020879937, 122(%rsp)          # imm = 0x78742E41
	movw	$116, %ax
	movw	%ax, 126(%rsp)
	movl	$2020879938, 116(%rsp)          # imm = 0x78742E42
	movw	%ax, 120(%rsp)
	movl	$2020879939, 110(%rsp)          # imm = 0x78742E43
	movw	%ax, 114(%rsp)
	movl	$3, %eax
	leaq	240(%rsp), %rdi
	leaq	216(%rsp), %rsi
	leaq	232(%rsp), %rdx
	leaq	208(%rsp), %rcx
	leaq	224(%rsp), %r8
	leaq	200(%rsp), %r9
	pushq	$27
	.cfi_adjust_cfa_offset 8
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	callq	_Z9genTensorPPiPPfS0_S2_S0_S2_iiii
	addq	$32, %rsp
	.cfi_adjust_cfa_offset -32
	movl	$10, %edi
	callq	putchar@PLT
	movl	$24, %edi
	callq	_Znam
	movq	%rax, %r14
	movl	$24, %edi
	callq	_Znam
	movq	%rax, %r12
	movl	$24, %edi
	callq	_Znam
	movq	%rax, %r15
	xorl	%ebx, %ebx
.LBB12_1:                               # =>This Inner Loop Header: Depth=1
	callq	rand
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	%xmm0, (%r14,%rbx,4)
	incq	%rbx
	cmpq	$6, %rbx
	jne	.LBB12_1
# %bb.2:                                # %.preheader223.preheader
	xorl	%ebx, %ebx
.LBB12_3:                               # %.preheader223
                                        # =>This Inner Loop Header: Depth=1
	callq	rand
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	%xmm0, (%r12,%rbx,4)
	incq	%rbx
	cmpq	$6, %rbx
	jne	.LBB12_3
# %bb.4:                                # %.preheader.preheader
	movq	%r12, 128(%rsp)                 # 8-byte Spill
	xorl	%ebx, %ebx
.LBB12_5:                               # %.preheader
                                        # =>This Inner Loop Header: Depth=1
	callq	rand
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	%xmm0, (%r15,%rbx,4)
	incq	%rbx
	cmpq	$6, %rbx
	jne	.LBB12_5
# %bb.6:
	movabsq	$12884901890, %r12              # imm = 0x300000002
	movabsq	$4294967297, %r13               # imm = 0x100000001
	xorl	%ebx, %ebx
	leaq	96(%rsp), %rax
	movq	%rbx, (%rax)
	movq	%rax, %rdi
	leaq	88(%rsp), %rbp
	movq	%rbx, (%rbp)
	leaq	72(%rsp), %rax
	movq	%rbx, (%rax)
	leaq	64(%rsp), %rax
	movq	%rbx, (%rax)
	leaq	56(%rsp), %rax
	movq	%rbx, (%rax)
	leaq	48(%rsp), %rax
	movq	%rbx, (%rax)
	movl	$324, %esi                      # imm = 0x144
	callq	hipMalloc
	movl	$324, %esi                      # imm = 0x144
	movq	%rbp, %rdi
	callq	hipMalloc
	movl	$324, %esi                      # imm = 0x144
	leaq	72(%rsp), %rdi
	callq	hipMalloc
	movl	$12, %esi
	leaq	64(%rsp), %rdi
	callq	hipMalloc
	movl	$12, %esi
	leaq	56(%rsp), %rdi
	callq	hipMalloc
	movl	$12, %esi
	leaq	48(%rsp), %rdi
	callq	hipMalloc
	leaq	16(%rsp), %rax
	movq	%rbx, (%rax)
	movq	%rax, %rdi
	leaq	8(%rsp), %rbp
	movq	%rbx, (%rbp)
	movq	%rsp, %rax
	movq	%rbx, (%rax)
	leaq	32(%rsp), %rax
	movq	%rbx, (%rax)
	leaq	24(%rsp), %rax
	movq	%rbx, (%rax)
	leaq	40(%rsp), %rax
	movq	%rbx, (%rax)
	movq	%rax, %rbx
	movl	$24, %esi
	callq	hipMalloc
	movl	$24, %esi
	movq	%rbp, %rdi
	callq	hipMalloc
	movl	$24, %esi
	movq	%rsp, %rdi
	callq	hipMalloc
	movl	$24, %esi
	leaq	32(%rsp), %rdi
	callq	hipMalloc
	movl	$24, %esi
	leaq	24(%rsp), %rdi
	callq	hipMalloc
	movl	$24, %esi
	movq	%rbx, %rdi
	callq	hipMalloc
	movl	$0, 104(%rsp)
	leaq	136(%rsp), %rbp
	movq	%rbp, %rdi
	callq	hipEventCreate
	leaq	80(%rsp), %rdi
	callq	hipEventCreate
	movq	(%rbp), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	callq	hipDeviceSynchronize
	leaq	96(%rsp), %rax
	movq	(%rax), %rdi
	movq	216(%rsp), %rsi
	movl	$324, %edx                      # imm = 0x144
	movq	%rsi, 184(%rsp)                 # 8-byte Spill
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	64(%rsp), %rax
	movq	(%rax), %rdi
	movq	240(%rsp), %rsi
	movl	$12, %edx
	movq	%rsi, 160(%rsp)                 # 8-byte Spill
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	88(%rsp), %rax
	movq	(%rax), %rdi
	movq	208(%rsp), %rsi
	movl	$324, %edx                      # imm = 0x144
	movq	%rsi, 176(%rsp)                 # 8-byte Spill
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	56(%rsp), %rax
	movq	(%rax), %rdi
	movq	232(%rsp), %rsi
	movl	$12, %edx
	movq	%rsi, 152(%rsp)                 # 8-byte Spill
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	72(%rsp), %rax
	movq	(%rax), %rdi
	movq	200(%rsp), %rsi
	movl	$324, %edx                      # imm = 0x144
	movq	%rsi, 168(%rsp)                 # 8-byte Spill
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	48(%rsp), %rax
	movq	(%rax), %rdi
	movq	224(%rsp), %rsi
	movl	$12, %edx
	movq	%rsi, 144(%rsp)                 # 8-byte Spill
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	16(%rsp), %rax
	movq	(%rax), %rdi
	movl	$24, %edx
	movq	%r14, 192(%rsp)                 # 8-byte Spill
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	8(%rsp), %rax
	movq	(%rax), %rdi
	movl	$24, %edx
	movq	128(%rsp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	movq	%rsp, %rax
	movq	(%rax), %rdi
	movl	$24, %edx
	movq	%r15, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movb	$1, %bpl
	movl	$100, %ebx
	movl	$3, %r14d
.LBB12_7:                               # =>This Inner Loop Header: Depth=1
	callq	hipDeviceSynchronize
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testb	$1, %bpl
	je	.LBB12_14
# %bb.8:                                #   in Loop: Header=BB12_7 Depth=1
	testl	%eax, %eax
	jne	.LBB12_10
# %bb.9:                                #   in Loop: Header=BB12_7 Depth=1
	movq	64(%rsp), %rdi
	movq	96(%rsp), %rsi
	movq	16(%rsp), %rdx
	movq	8(%rsp), %rcx
	movq	(%rsp), %r8
	movq	32(%rsp), %r9
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	xorps	%xmm0, %xmm0
	pushq	$2
	.cfi_adjust_cfa_offset 8
	pushq	$81
	.cfi_adjust_cfa_offset 8
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	callq	_Z28__device_stub__factorAKernelPiPfS0_S0_S0_S0_iiiiif
	addq	$48, %rsp
	.cfi_adjust_cfa_offset -48
.LBB12_10:                              #   in Loop: Header=BB12_7 Depth=1
	callq	hipDeviceSynchronize
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB12_12
# %bb.11:                               #   in Loop: Header=BB12_7 Depth=1
	movq	56(%rsp), %rdi
	movq	88(%rsp), %rsi
	movq	32(%rsp), %rdx
	movq	8(%rsp), %rcx
	movq	(%rsp), %r8
	movq	24(%rsp), %r9
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	xorps	%xmm0, %xmm0
	pushq	$2
	.cfi_adjust_cfa_offset 8
	pushq	$81
	.cfi_adjust_cfa_offset 8
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	callq	_Z28__device_stub__factorBKernelPiPfS0_S0_S0_S0_iiiiif
	addq	$48, %rsp
	.cfi_adjust_cfa_offset -48
.LBB12_12:                              #   in Loop: Header=BB12_7 Depth=1
	callq	hipDeviceSynchronize
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB12_21
# %bb.13:                               #   in Loop: Header=BB12_7 Depth=1
	movq	48(%rsp), %rdi
	movq	72(%rsp), %rsi
	movq	32(%rsp), %rdx
	movq	24(%rsp), %rcx
	movq	(%rsp), %r8
	movq	40(%rsp), %r9
	jmp	.LBB12_20
.LBB12_14:                              #   in Loop: Header=BB12_7 Depth=1
	testl	%eax, %eax
	jne	.LBB12_16
# %bb.15:                               #   in Loop: Header=BB12_7 Depth=1
	movq	64(%rsp), %rdi
	movq	96(%rsp), %rsi
	movq	32(%rsp), %rdx
	movq	24(%rsp), %rcx
	movq	40(%rsp), %r8
	movq	16(%rsp), %r9
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	xorps	%xmm0, %xmm0
	pushq	$2
	.cfi_adjust_cfa_offset 8
	pushq	$81
	.cfi_adjust_cfa_offset 8
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	callq	_Z28__device_stub__factorAKernelPiPfS0_S0_S0_S0_iiiiif
	addq	$48, %rsp
	.cfi_adjust_cfa_offset -48
.LBB12_16:                              #   in Loop: Header=BB12_7 Depth=1
	callq	hipDeviceSynchronize
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB12_18
# %bb.17:                               #   in Loop: Header=BB12_7 Depth=1
	movq	56(%rsp), %rdi
	movq	88(%rsp), %rsi
	movq	16(%rsp), %rdx
	movq	24(%rsp), %rcx
	movq	40(%rsp), %r8
	movq	8(%rsp), %r9
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	xorps	%xmm0, %xmm0
	pushq	$2
	.cfi_adjust_cfa_offset 8
	pushq	$81
	.cfi_adjust_cfa_offset 8
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	callq	_Z28__device_stub__factorBKernelPiPfS0_S0_S0_S0_iiiiif
	addq	$48, %rsp
	.cfi_adjust_cfa_offset -48
.LBB12_18:                              #   in Loop: Header=BB12_7 Depth=1
	callq	hipDeviceSynchronize
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB12_21
# %bb.19:                               #   in Loop: Header=BB12_7 Depth=1
	movq	48(%rsp), %rdi
	movq	72(%rsp), %rsi
	movq	16(%rsp), %rdx
	movq	8(%rsp), %rcx
	movq	40(%rsp), %r8
	movq	(%rsp), %r9
.LBB12_20:                              #   in Loop: Header=BB12_7 Depth=1
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	xorps	%xmm0, %xmm0
	pushq	$2
	.cfi_adjust_cfa_offset 8
	pushq	$81
	.cfi_adjust_cfa_offset 8
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	callq	_Z28__device_stub__factorCKernelPiPfS0_S0_S0_S0_iiiiif
	addq	$48, %rsp
	.cfi_adjust_cfa_offset -48
.LBB12_21:                              #   in Loop: Header=BB12_7 Depth=1
	xorb	$1, %bpl
	decl	%ebx
	jne	.LBB12_7
# %bb.22:
	callq	hipDeviceSynchronize
	movq	16(%rsp), %rsi
	movl	$24, %edx
	movq	192(%rsp), %r14                 # 8-byte Reload
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movq	8(%rsp), %rsi
	movl	$24, %edx
	movq	128(%rsp), %r13                 # 8-byte Reload
	movq	%r13, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movq	(%rsp), %rsi
	movl	$24, %edx
	movq	%r15, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movq	80(%rsp), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	movq	80(%rsp), %rdi
	callq	hipEventSynchronize
	movq	136(%rsp), %rsi
	movq	80(%rsp), %rdx
	leaq	104(%rsp), %r12
	movq	%r12, %rdi
	callq	hipEventElapsedTime
	xorps	%xmm0, %xmm0
	cvtss2sd	(%r12), %xmm0
	movl	$.L.str.12, %edi
	movb	$1, %al
	callq	printf
	movl	$3, %ebx
	leaq	122(%rsp), %rdi
	leaq	116(%rsp), %rsi
	leaq	110(%rsp), %rdx
	movl	$2, %ecx
	movq	%r14, %r8
	movl	$3, %r9d
	pushq	%rbx
	.cfi_adjust_cfa_offset 8
	pushq	%r15
	.cfi_adjust_cfa_offset 8
	pushq	%rbx
	.cfi_adjust_cfa_offset 8
	pushq	%r13
	.cfi_adjust_cfa_offset 8
	callq	_Z11printToFilePcS_S_iPfiS0_iS0_i
	addq	$24, %rsp
	.cfi_adjust_cfa_offset -24
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movl	$2, %ecx
	movl	$3, %r8d
	movl	$3, %r9d
	pushq	%rbx
	.cfi_adjust_cfa_offset 8
	callq	_Z16buildErrorTensorPfS_S_iiii
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
	movq	%rax, %r12
	movl	$.L.str.13, %edi
	movq	%rax, %rsi
	movl	$3, %edx
	movl	$3, %ecx
	movl	$3, %r8d
	movl	$27, %r9d
	callq	_Z17printTensorToFilePcP11tensor_elemiiii
	movq	%r12, %rdi
	callq	free
	movq	136(%rsp), %rdi
	callq	hipEventDestroy
	movq	80(%rsp), %rdi
	callq	hipEventDestroy
	movq	64(%rsp), %rdi
	callq	hipFree
	movq	96(%rsp), %rdi
	callq	hipFree
	movq	56(%rsp), %rdi
	callq	hipFree
	movq	88(%rsp), %rdi
	callq	hipFree
	movq	48(%rsp), %rdi
	callq	hipFree
	movq	72(%rsp), %rdi
	callq	hipFree
	movq	16(%rsp), %rdi
	callq	hipFree
	movq	8(%rsp), %rdi
	callq	hipFree
	movq	(%rsp), %rdi
	callq	hipFree
	movq	32(%rsp), %rdi
	callq	hipFree
	movq	24(%rsp), %rdi
	callq	hipFree
	movq	40(%rsp), %rdi
	callq	hipFree
	movq	160(%rsp), %rdi                 # 8-byte Reload
	testq	%rdi, %rdi
	je	.LBB12_24
# %bb.23:
	callq	_ZdaPv
.LBB12_24:
	movq	184(%rsp), %rdi                 # 8-byte Reload
	testq	%rdi, %rdi
	je	.LBB12_26
# %bb.25:
	callq	_ZdaPv
.LBB12_26:
	movq	152(%rsp), %rdi                 # 8-byte Reload
	testq	%rdi, %rdi
	je	.LBB12_28
# %bb.27:
	callq	_ZdaPv
.LBB12_28:
	movq	176(%rsp), %rdi                 # 8-byte Reload
	testq	%rdi, %rdi
	je	.LBB12_30
# %bb.29:
	callq	_ZdaPv
.LBB12_30:
	movq	144(%rsp), %rdi                 # 8-byte Reload
	testq	%rdi, %rdi
	je	.LBB12_32
# %bb.31:
	callq	_ZdaPv
.LBB12_32:
	movq	168(%rsp), %rdi                 # 8-byte Reload
	testq	%rdi, %rdi
	je	.LBB12_34
# %bb.33:
	callq	_ZdaPv
.LBB12_34:
	movq	%r14, %rdi
	callq	_ZdaPv
	movq	%r13, %rdi
	callq	_ZdaPv
	movq	%r15, %rdi
	callq	_ZdaPv
	xorl	%eax, %eax
	addq	$248, %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	main, .Lfunc_end12-main
	.cfi_endproc
                                        # -- End function
	.section	.text.__clang_call_terminate,"axG",@progbits,__clang_call_terminate,comdat
	.hidden	__clang_call_terminate          # -- Begin function __clang_call_terminate
	.weak	__clang_call_terminate
	.type	__clang_call_terminate,@function
__clang_call_terminate:                 # @__clang_call_terminate
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__cxa_begin_catch
	callq	_ZSt9terminatev
.Lfunc_end13:
	.size	__clang_call_terminate, .Lfunc_end13-__clang_call_terminate
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EED2Ev,"axG",@progbits,_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EED2Ev,comdat
	.weak	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EED2Ev # -- Begin function _ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EED2Ev
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EED2Ev,@function
_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EED2Ev: # @_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EED2Ev
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	16(%rdi), %rsi
.Ltmp13:
	callq	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE8_M_eraseEPSt13_Rb_tree_nodeIS2_E
.Ltmp14:
# %bb.1:
	popq	%rax
	.cfi_def_cfa_offset 8
	retq
.LBB14_2:
	.cfi_def_cfa_offset 16
.Ltmp15:
	movq	%rax, %rdi
	callq	__clang_call_terminate
.Lfunc_end14:
	.size	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EED2Ev, .Lfunc_end14-_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EED2Ev
	.cfi_endproc
	.section	.gcc_except_table._ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EED2Ev,"aG",@progbits,_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EED2Ev,comdat
	.p2align	2, 0x0
GCC_except_table14:
.Lexception1:
	.byte	255                             # @LPStart Encoding = omit
	.byte	3                               # @TType Encoding = udata4
	.uleb128 .Lttbase0-.Lttbaseref0
.Lttbaseref0:
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end1-.Lcst_begin1
.Lcst_begin1:
	.uleb128 .Ltmp13-.Lfunc_begin1          # >> Call Site 1 <<
	.uleb128 .Ltmp14-.Ltmp13                #   Call between .Ltmp13 and .Ltmp14
	.uleb128 .Ltmp15-.Lfunc_begin1          #     jumps to .Ltmp15
	.byte	1                               #   On action: 1
.Lcst_end1:
	.byte	1                               # >> Action Record 1 <<
                                        #   Catch TypeInfo 1
	.byte	0                               #   No further actions
	.p2align	2, 0x0
                                        # >> Catch TypeInfos <<
	.long	0                               # TypeInfo 1
.Lttbase0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE8_M_eraseEPSt13_Rb_tree_nodeIS2_E,"axG",@progbits,_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE8_M_eraseEPSt13_Rb_tree_nodeIS2_E,comdat
	.weak	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE8_M_eraseEPSt13_Rb_tree_nodeIS2_E # -- Begin function _ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE8_M_eraseEPSt13_Rb_tree_nodeIS2_E
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE8_M_eraseEPSt13_Rb_tree_nodeIS2_E,@function
_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE8_M_eraseEPSt13_Rb_tree_nodeIS2_E: # @_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE8_M_eraseEPSt13_Rb_tree_nodeIS2_E
	.cfi_startproc
# %bb.0:
	testq	%rsi, %rsi
	je	.LBB15_4
# %bb.1:                                # %.lr.ph.preheader
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %r14
	movq	%rdi, %rbx
.LBB15_2:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rsi
	movq	%rbx, %rdi
	callq	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE8_M_eraseEPSt13_Rb_tree_nodeIS2_E
	movq	16(%r14), %r15
	movq	%r14, %rdi
	callq	_ZdlPv
	movq	%r15, %r14
	testq	%r15, %r15
	jne	.LBB15_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
.LBB15_4:                               # %._crit_edge
	retq
.Lfunc_end15:
	.size	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE8_M_eraseEPSt13_Rb_tree_nodeIS2_E, .Lfunc_end15-_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE8_M_eraseEPSt13_Rb_tree_nodeIS2_E
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE4findERKS2_,"axG",@progbits,_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE4findERKS2_,comdat
	.weak	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE4findERKS2_ # -- Begin function _ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE4findERKS2_
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE4findERKS2_,@function
_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE4findERKS2_: # @_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE4findERKS2_
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movq	%rsi, %r14
	movq	16(%rdi), %rsi
	leaq	8(%rdi), %rbx
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE14_M_lower_boundEPSt13_Rb_tree_nodeIS2_EPSt18_Rb_tree_node_baseRKS2_
	cmpq	%rbx, %rax
	je	.LBB16_7
# %bb.1:
	movl	(%r14), %ecx
	movl	32(%rax), %edx
	cmpl	%edx, %ecx
	jl	.LBB16_7
# %bb.2:
	jle	.LBB16_3
.LBB16_6:                               # %_ZNKSt4lessISt4pairIiS0_IiiEEEclERKS2_S5_.exit.thread6
	movq	%rax, %rbx
	jmp	.LBB16_7
.LBB16_3:
	movl	4(%r14), %ecx
	movl	36(%rax), %edx
	cmpl	%edx, %ecx
	jge	.LBB16_4
.LBB16_7:                               # %_ZNKSt4lessISt4pairIiS0_IiiEEEclERKS2_S5_.exit.thread
	movq	%rbx, %rax
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.LBB16_4:
	.cfi_def_cfa_offset 32
	jg	.LBB16_6
# %bb.5:                                # %_ZNKSt4lessISt4pairIiS0_IiiEEEclERKS2_S5_.exit
	movl	8(%r14), %ecx
	cmpl	40(%rax), %ecx
	jge	.LBB16_6
	jmp	.LBB16_7
.Lfunc_end16:
	.size	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE4findERKS2_, .Lfunc_end16-_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE4findERKS2_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE14_M_lower_boundEPSt13_Rb_tree_nodeIS2_EPSt18_Rb_tree_node_baseRKS2_,"axG",@progbits,_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE14_M_lower_boundEPSt13_Rb_tree_nodeIS2_EPSt18_Rb_tree_node_baseRKS2_,comdat
	.weak	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE14_M_lower_boundEPSt13_Rb_tree_nodeIS2_EPSt18_Rb_tree_node_baseRKS2_ # -- Begin function _ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE14_M_lower_boundEPSt13_Rb_tree_nodeIS2_EPSt18_Rb_tree_node_baseRKS2_
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE14_M_lower_boundEPSt13_Rb_tree_nodeIS2_EPSt18_Rb_tree_node_baseRKS2_,@function
_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE14_M_lower_boundEPSt13_Rb_tree_nodeIS2_EPSt18_Rb_tree_node_baseRKS2_: # @_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE14_M_lower_boundEPSt13_Rb_tree_nodeIS2_EPSt18_Rb_tree_node_baseRKS2_
	.cfi_startproc
# %bb.0:
	movq	%rdx, %rax
	testq	%rsi, %rsi
	je	.LBB17_10
# %bb.1:                                # %.lr.ph
	movl	(%rcx), %edx
	movl	4(%rcx), %edi
	movl	8(%rcx), %ecx
.LBB17_2:                               # =>This Inner Loop Header: Depth=1
	movl	32(%rsi), %r8d
	cmpl	%edx, %r8d
	jge	.LBB17_3
.LBB17_8:                               # %_ZNKSt4lessISt4pairIiS0_IiiEEEclERKS2_S5_.exit.thread
                                        #   in Loop: Header=BB17_2 Depth=1
	movq	%rsi, %r8
	addq	$24, %r8
	jmp	.LBB17_9
.LBB17_3:                               #   in Loop: Header=BB17_2 Depth=1
	jle	.LBB17_4
.LBB17_7:                               # %_ZNKSt4lessISt4pairIiS0_IiiEEEclERKS2_S5_.exit.thread11
                                        #   in Loop: Header=BB17_2 Depth=1
	leaq	16(%rsi), %r8
	movq	%rsi, %rax
.LBB17_9:                               #   in Loop: Header=BB17_2 Depth=1
	movq	(%r8), %rsi
	testq	%rsi, %rsi
	jne	.LBB17_2
	jmp	.LBB17_10
.LBB17_4:                               #   in Loop: Header=BB17_2 Depth=1
	movl	36(%rsi), %r8d
	cmpl	%edi, %r8d
	jl	.LBB17_8
# %bb.5:                                #   in Loop: Header=BB17_2 Depth=1
	jg	.LBB17_7
# %bb.6:                                # %_ZNKSt4lessISt4pairIiS0_IiiEEEclERKS2_S5_.exit
                                        #   in Loop: Header=BB17_2 Depth=1
	cmpl	%ecx, 40(%rsi)
	jl	.LBB17_8
	jmp	.LBB17_7
.LBB17_10:                              # %._crit_edge
	retq
.Lfunc_end17:
	.size	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE14_M_lower_boundEPSt13_Rb_tree_nodeIS2_EPSt18_Rb_tree_node_baseRKS2_, .Lfunc_end17-_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE14_M_lower_boundEPSt13_Rb_tree_nodeIS2_EPSt18_Rb_tree_node_baseRKS2_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE16_M_insert_uniqueIS2_EES0_ISt17_Rb_tree_iteratorIS2_EbEOT_,"axG",@progbits,_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE16_M_insert_uniqueIS2_EES0_ISt17_Rb_tree_iteratorIS2_EbEOT_,comdat
	.weak	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE16_M_insert_uniqueIS2_EES0_ISt17_Rb_tree_iteratorIS2_EbEOT_ # -- Begin function _ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE16_M_insert_uniqueIS2_EES0_ISt17_Rb_tree_iteratorIS2_EbEOT_
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE16_M_insert_uniqueIS2_EES0_ISt17_Rb_tree_iteratorIS2_EbEOT_,@function
_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE16_M_insert_uniqueIS2_EES0_ISt17_Rb_tree_iteratorIS2_EbEOT_: # @_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE16_M_insert_uniqueIS2_EES0_ISt17_Rb_tree_iteratorIS2_EbEOT_
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE24_M_get_insert_unique_posERKS2_
	testq	%rdx, %rdx
	je	.LBB18_1
# %bb.2:
	movq	%rsp, %r8
	movq	%r14, (%r8)
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rcx
	callq	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE10_M_insert_IS2_NS8_11_Alloc_nodeEEESt17_Rb_tree_iteratorIS2_EPSt18_Rb_tree_node_baseSE_OT_RT0_
	movb	$1, %dl
	jmp	.LBB18_3
.LBB18_1:
	xorl	%edx, %edx
.LBB18_3:
                                        # kill: def $dl killed $dl killed $edx
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end18:
	.size	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE16_M_insert_uniqueIS2_EES0_ISt17_Rb_tree_iteratorIS2_EbEOT_, .Lfunc_end18-_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE16_M_insert_uniqueIS2_EES0_ISt17_Rb_tree_iteratorIS2_EbEOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE24_M_get_insert_unique_posERKS2_,"axG",@progbits,_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE24_M_get_insert_unique_posERKS2_,comdat
	.weak	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE24_M_get_insert_unique_posERKS2_ # -- Begin function _ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE24_M_get_insert_unique_posERKS2_
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE24_M_get_insert_unique_posERKS2_,@function
_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE24_M_get_insert_unique_posERKS2_: # @_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE24_M_get_insert_unique_posERKS2_
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movq	%rsi, %r14
	movq	16(%rdi), %r8
	testq	%r8, %r8
	je	.LBB19_1
# %bb.2:                                # %.lr.ph
	movl	(%r14), %eax
	movl	4(%r14), %ecx
	movl	8(%r14), %edx
.LBB19_3:                               # =>This Inner Loop Header: Depth=1
	movq	%r8, %rbx
	movl	32(%r8), %esi
	cmpl	%esi, %eax
	jge	.LBB19_4
.LBB19_8:                               # %_ZNKSt4lessISt4pairIiS0_IiiEEEclERKS2_S5_.exit.thread
                                        #   in Loop: Header=BB19_3 Depth=1
	leaq	16(%rbx), %r8
	movb	$1, %sil
	jmp	.LBB19_10
.LBB19_4:                               #   in Loop: Header=BB19_3 Depth=1
	jle	.LBB19_5
.LBB19_9:                               # %_ZNKSt4lessISt4pairIiS0_IiiEEEclERKS2_S5_.exit.thread23
                                        #   in Loop: Header=BB19_3 Depth=1
	leaq	24(%rbx), %r8
	xorl	%esi, %esi
.LBB19_10:                              #   in Loop: Header=BB19_3 Depth=1
	movq	(%r8), %r8
	testq	%r8, %r8
	jne	.LBB19_3
	jmp	.LBB19_11
.LBB19_5:                               #   in Loop: Header=BB19_3 Depth=1
	movl	36(%rbx), %esi
	cmpl	%esi, %ecx
	jl	.LBB19_8
# %bb.6:                                #   in Loop: Header=BB19_3 Depth=1
	jg	.LBB19_9
# %bb.7:                                # %_ZNKSt4lessISt4pairIiS0_IiiEEEclERKS2_S5_.exit
                                        #   in Loop: Header=BB19_3 Depth=1
	cmpl	40(%rbx), %edx
	jl	.LBB19_8
	jmp	.LBB19_9
.LBB19_11:                              # %._crit_edge
	movq	%rbx, %rax
	testb	%sil, %sil
	jne	.LBB19_12
	jmp	.LBB19_15
.LBB19_1:
	leaq	8(%rdi), %rbx
.LBB19_12:                              # %._crit_edge.thread
	cmpq	24(%rdi), %rbx
	je	.LBB19_13
# %bb.14:
	movq	%rbx, %rdi
	callq	_ZSt18_Rb_tree_decrementPSt18_Rb_tree_node_base
.LBB19_15:
	movl	32(%rax), %ecx
	movl	(%r14), %edx
	cmpl	%edx, %ecx
	jge	.LBB19_16
.LBB19_13:
	xorl	%eax, %eax
	jmp	.LBB19_21
.LBB19_16:
	jle	.LBB19_17
.LBB19_20:                              # %_ZNKSt4lessISt4pairIiS0_IiiEEEclERKS2_S5_.exit5.thread25
	xorl	%ebx, %ebx
.LBB19_21:                              # %_ZNKSt4lessISt4pairIiS0_IiiEEEclERKS2_S5_.exit5.thread
	movq	%rbx, %rdx
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.LBB19_17:
	.cfi_def_cfa_offset 32
	movl	36(%rax), %ecx
	movl	4(%r14), %edx
	cmpl	%edx, %ecx
	jl	.LBB19_13
# %bb.18:
	jg	.LBB19_20
# %bb.19:                               # %_ZNKSt4lessISt4pairIiS0_IiiEEEclERKS2_S5_.exit5
	movl	40(%rax), %ecx
	cmpl	8(%r14), %ecx
	jl	.LBB19_13
	jmp	.LBB19_20
.Lfunc_end19:
	.size	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE24_M_get_insert_unique_posERKS2_, .Lfunc_end19-_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE24_M_get_insert_unique_posERKS2_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE10_M_insert_IS2_NS8_11_Alloc_nodeEEESt17_Rb_tree_iteratorIS2_EPSt18_Rb_tree_node_baseSE_OT_RT0_,"axG",@progbits,_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE10_M_insert_IS2_NS8_11_Alloc_nodeEEESt17_Rb_tree_iteratorIS2_EPSt18_Rb_tree_node_baseSE_OT_RT0_,comdat
	.weak	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE10_M_insert_IS2_NS8_11_Alloc_nodeEEESt17_Rb_tree_iteratorIS2_EPSt18_Rb_tree_node_baseSE_OT_RT0_ # -- Begin function _ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE10_M_insert_IS2_NS8_11_Alloc_nodeEEESt17_Rb_tree_iteratorIS2_EPSt18_Rb_tree_node_baseSE_OT_RT0_
	.p2align	1, 0x90
	.type	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE10_M_insert_IS2_NS8_11_Alloc_nodeEEESt17_Rb_tree_iteratorIS2_EPSt18_Rb_tree_node_baseSE_OT_RT0_,@function
_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE10_M_insert_IS2_NS8_11_Alloc_nodeEEESt17_Rb_tree_iteratorIS2_EPSt18_Rb_tree_node_baseSE_OT_RT0_: # @_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE10_M_insert_IS2_NS8_11_Alloc_nodeEEESt17_Rb_tree_iteratorIS2_EPSt18_Rb_tree_node_baseSE_OT_RT0_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rdi, %rbx
	leaq	8(%rdi), %r15
	movb	$1, %bpl
	testq	%rsi, %rsi
	jne	.LBB20_8
# %bb.1:
	cmpq	%r14, %r15
	je	.LBB20_8
# %bb.2:
	movl	(%r12), %eax
	movl	32(%r14), %ecx
	cmpl	%ecx, %eax
	jl	.LBB20_8
# %bb.3:
	jle	.LBB20_5
.LBB20_4:
	xorl	%ebp, %ebp
	jmp	.LBB20_8
.LBB20_5:
	movl	4(%r12), %eax
	movl	36(%r14), %ecx
	cmpl	%ecx, %eax
	jl	.LBB20_8
# %bb.6:
	jg	.LBB20_4
# %bb.7:
	movl	8(%r12), %eax
	cmpl	40(%r14), %eax
	setl	%bpl
.LBB20_8:                               # %_ZNKSt4lessISt4pairIiS0_IiiEEEclERKS2_S5_.exit
	movl	$48, %edi
	callq	_Znwm
	movq	%rax, %r13
	movq	(%r12), %rax
	movq	%rax, 32(%r13)
	movl	8(%r12), %eax
	movl	%eax, 40(%r13)
	movzbl	%bpl, %edi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_
	incq	40(%rbx)
	movq	%r13, %rax
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end20:
	.size	_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE10_M_insert_IS2_NS8_11_Alloc_nodeEEESt17_Rb_tree_iteratorIS2_EPSt18_Rb_tree_node_baseSE_OT_RT0_, .Lfunc_end20-_ZNSt8_Rb_treeISt4pairIiS0_IiiEES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE10_M_insert_IS2_NS8_11_Alloc_nodeEEESt17_Rb_tree_iteratorIS2_EPSt18_Rb_tree_node_baseSE_OT_RT0_
	.cfi_endproc
                                        # -- End function
	.text
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB21_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB21_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif, %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	$_Z13factorBKernelPiPfS0_S0_S0_S0_iiiiif, %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	$_Z13factorCKernelPiPfS0_S0_S0_S0_iiiiif, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end21:
	.size	__hip_module_ctor, .Lfunc_end21-__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	.LBB22_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
.LBB22_2:
	retq
.Lfunc_end22:
	.size	__hip_module_dtor, .Lfunc_end22-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif,@object # @_Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif
	.section	.rodata,"a",@progbits
	.globl	_Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif
	.p2align	3, 0x0
_Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif:
	.quad	_Z28__device_stub__factorAKernelPiPfS0_S0_S0_S0_iiiiif
	.size	_Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif, 8

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

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

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

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"%d %d %d"
	.size	.L.str.1, 9

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"%d"
	.size	.L.str.2, 3

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"%d %d %d %f"
	.size	.L.str.3, 12

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

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"%d %d %d\n"
	.size	.L.str.5, 10

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"%d\n"
	.size	.L.str.6, 4

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"%d %d %d %f\n"
	.size	.L.str.7, 13

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"tensor_input.txt"
	.size	.L.str.8, 17

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"%f"
	.size	.L.str.9, 3

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	"\ntime spent executing by the GPU: %.2f millseconds\n"
	.size	.L.str.12, 52

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	"error_tensor.txt"
	.size	.L.str.13, 17

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif"
	.size	.L__unnamed_1, 40

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z13factorBKernelPiPfS0_S0_S0_S0_iiiiif"
	.size	.L__unnamed_2, 40

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z13factorCKernelPiPfS0_S0_S0_S0_iiiiif"
	.size	.L__unnamed_3, 40

	.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 _Z28__device_stub__factorAKernelPiPfS0_S0_S0_S0_iiiiif
	.addrsig_sym _Z28__device_stub__factorBKernelPiPfS0_S0_S0_S0_iiiiif
	.addrsig_sym _Z28__device_stub__factorCKernelPiPfS0_S0_S0_S0_iiiiif
	.addrsig_sym _Z6comp_iPKvS0_
	.addrsig_sym _Z6comp_tPKvS0_
	.addrsig_sym _Z6comp_qPKvS0_
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif
	.addrsig_sym _Z13factorBKernelPiPfS0_S0_S0_S0_iiiiif
	.addrsig_sym _Z13factorCKernelPiPfS0_S0_S0_S0_iiiiif
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif ; -- Begin function _Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif
	.globl	_Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif
	.p2align	8
	.type	_Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif,@function
_Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif: ; @_Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif
; %bb.0:
	s_load_b32 s2, s[0:1], 0x54
	v_bfe_u32 v1, v0, 10, 10
	s_load_b256 s[4:11], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s3, s2, 16
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_mad_u64_u32 v[4:5], null, s15, s3, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v5, 31, v4
	v_lshlrev_b64 v[1:2], 2, v[4:5]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v1, vcc_lo, s4, v1
	v_add_co_ci_u32_e32 v2, vcc_lo, s5, v2, vcc_lo
	global_load_b32 v3, v[1:2], off
	s_clause 0x2
	s_load_b32 s3, s[0:1], 0x30
	s_load_b128 s[20:23], s[0:1], 0x3c
	s_load_b128 s[16:19], s[0:1], 0x20
	v_add_nc_u32_e32 v5, 1, v4
	s_mov_b32 s0, exec_lo
	s_waitcnt lgkmcnt(0)
	v_mov_b32_e32 v18, s20
	s_delay_alu instid0(VALU_DEP_2)
	v_cmpx_gt_i32_e64 s3, v5
	s_cbranch_execz .LBB0_2
; %bb.1:
	global_load_b32 v18, v[1:2], off offset:4
.LBB0_2:
	s_or_b32 exec_lo, exec_lo, s0
	v_and_b32_e32 v2, 0x3ff, v0
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v3, 2, v3
	s_and_b32 s0, s2, 0xffff
	s_mov_b32 s1, exec_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_mad_u64_u32 v[0:1], null, s14, s0, v[2:3]
                                        ; implicit-def: $sgpr0
                                        ; implicit-def: $vgpr1
	v_cmpx_ge_i32_e64 v3, v18
	s_xor_b32 s1, exec_lo, s1
; %bb.3:                                ; %.._crit_edge78_crit_edge
	v_mul_lo_u32 v1, v4, s21
	s_mov_b32 s0, 1.0
                                        ; implicit-def: $vgpr18
                                        ; implicit-def: $vgpr3
                                        ; implicit-def: $vgpr4_vgpr5
; %bb.4:                                ; %Flow136
	s_or_saveexec_b32 s4, s1
	v_mov_b32_e32 v2, s0
	s_xor_b32 exec_lo, exec_lo, s4
	s_cbranch_execz .LBB0_12
; %bb.5:                                ; %.lr.ph77
	v_mul_lo_u32 v1, v4, s21
	v_sub_f32_e64 v20, 1.0, s22
	s_cmp_gt_i32 s21, 0
	s_mov_b32 s12, 0
	s_cselect_b32 s5, -1, 0
	s_mov_b32 s13, 0x3e76c4e1
	v_mov_b32_e32 v19, 0x3dcccccd
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v2, 31, v1
	v_lshlrev_b64 v[5:6], 2, v[1:2]
	v_mov_b32_e32 v2, 0x3dcccccd
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v5, vcc_lo, s8, v5
	v_add_co_ci_u32_e32 v6, vcc_lo, s9, v6, vcc_lo
.LBB0_6:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	v_ashrrev_i32_e32 v4, 31, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[7:8], 2, v[3:4]
	v_add_co_u32 v7, vcc_lo, s6, v7
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v8, vcc_lo, s7, v8, vcc_lo
	s_and_not1_b32 vcc_lo, exec_lo, s5
	global_load_b64 v[9:10], v[7:8], off offset:-8
	s_waitcnt vmcnt(0)
	v_cvt_i32_f32_e32 v4, v9
	v_cvt_i32_f32_e32 v9, v10
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v11, v4, s21
	v_mul_lo_u32 v9, v9, s21
	s_cbranch_vccnz .LBB0_9
; %bb.7:                                ; %.lr.ph.preheader
                                        ;   in Loop: Header=BB0_6 Depth=1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v10, 31, v9
	v_ashrrev_i32_e32 v12, 31, v11
	v_mov_b32_e32 v21, 0
	s_mov_b32 s0, s21
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[13:14], 2, v[9:10]
	v_lshlrev_b64 v[15:16], 2, v[11:12]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v12, vcc_lo, s16, v13
	v_add_co_ci_u32_e32 v13, vcc_lo, s17, v14, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v14, vcc_lo, s10, v15
	v_add_co_ci_u32_e32 v15, vcc_lo, s11, v16, vcc_lo
	v_dual_mov_b32 v17, v6 :: v_dual_mov_b32 v16, v5
.LBB0_8:                                ; %.lr.ph
                                        ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	global_load_b32 v4, v[16:17], off
	global_load_b32 v10, v[14:15], off
	global_load_b32 v22, v[12:13], off
	v_add_co_u32 v12, vcc_lo, v12, 4
	v_add_co_ci_u32_e32 v13, vcc_lo, 0, v13, vcc_lo
	v_add_co_u32 v14, vcc_lo, v14, 4
	v_add_co_ci_u32_e32 v15, vcc_lo, 0, v15, vcc_lo
	v_add_co_u32 v16, vcc_lo, v16, 4
	v_add_co_ci_u32_e32 v17, vcc_lo, 0, v17, vcc_lo
	s_add_i32 s0, s0, -1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	s_cmp_eq_u32 s0, 0
	s_waitcnt vmcnt(1)
	v_mul_f32_e32 v4, v4, v10
	s_waitcnt vmcnt(0)
	v_fmac_f32_e32 v21, v4, v22
	s_cbranch_scc0 .LBB0_8
	s_branch .LBB0_10
.LBB0_9:                                ;   in Loop: Header=BB0_6 Depth=1
	v_mov_b32_e32 v21, 0
.LBB0_10:                               ; %._crit_edge
                                        ;   in Loop: Header=BB0_6 Depth=1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_cmp_eq_f32_e64 s0, 1.0, v21
	global_load_b32 v7, v[7:8], off
	v_add_nc_u32_e32 v3, 3, v3
	v_cndmask_b32_e64 v4, v20, 1.0, s0
	v_cmp_neq_f32_e32 vcc_lo, 0, v4
	v_cmp_neq_f32_e64 s14, v4, |v4|
	v_cndmask_b32_e32 v10, 1.0, v21, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_frexp_mant_f32_e64 v12, |v10|
	v_cmp_gt_f32_e32 vcc_lo, 0x3f2aaaab, v12
	v_cndmask_b32_e64 v13, 0, 1, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ldexp_f32 v14, v12, v13
	v_cndmask_b32_e64 v12, s22, 1.0, s0
	v_add_f32_e32 v15, 1.0, v14
	v_add_f32_e32 v23, -1.0, v14
	s_delay_alu instid0(VALU_DEP_3)
	v_cmp_neq_f32_e64 s0, 0, v12
	v_cmp_lt_f32_e64 s15, |v10|, 1.0
	v_cmp_class_f32_e64 s20, v10, 0x204
	v_add_f32_e32 v16, -1.0, v15
	v_rcp_f32_e32 v22, v15
	v_cndmask_b32_e64 v13, 1.0, v21, s0
	s_waitcnt_depctr 0xfff
	v_dual_sub_f32 v17, v14, v16 :: v_dual_mul_f32 v24, v23, v22
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v25, v15, v24
	v_fma_f32 v21, v24, v15, -v25
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_fmac_f32 v21, v24, v17 :: v_dual_add_nc_u32 v14, v11, v0
	v_ashrrev_i32_e32 v15, 31, v14
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_add_f32_e32 v26, v25, v21
	v_add_nc_u32_e32 v16, v9, v0
	v_frexp_mant_f32_e64 v9, |v13|
	v_lshlrev_b64 v[14:15], 2, v[14:15]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_gt_f32_e64 s0, 0x3f2aaaab, v9
	v_add_co_u32 v14, s1, s10, v14
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e64 v15, s1, s11, v15, s1
	v_cndmask_b32_e64 v11, 0, 1, s0
	global_load_b32 v14, v[14:15], off
	v_ldexp_f32 v9, v9, v11
	v_sub_f32_e32 v11, v23, v26
	v_ashrrev_i32_e32 v17, 31, v16
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f32_e32 v15, -1.0, v9
	v_sub_f32_e32 v23, v23, v11
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[16:17], 2, v[16:17]
	v_sub_f32_e32 v25, v26, v25
	v_sub_f32_e32 v23, v23, v26
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v16, s1, s16, v16
	v_add_co_ci_u32_e64 v17, s1, s17, v17, s1
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_sub_f32_e32 v21, v25, v21
	v_cmp_eq_f32_e64 s1, 0, v10
	global_load_b32 v16, v[16:17], off
	v_add_f32_e32 v17, v21, v23
	v_add_f32_e32 v8, v11, v17
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_add_f32 v27, 1.0, v9 :: v_dual_mul_f32 v8, v22, v8
	v_rcp_f32_e32 v28, v27
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_add_f32 v11, -1.0, v27 :: v_dual_add_f32 v22, v24, v8
	v_sub_f32_e32 v9, v9, v11
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v21, v15, v28
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v17, v27, v21
	v_fma_f32 v11, v21, v27, -v17
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v11, v21, v9
	v_sub_f32_e32 v9, v22, v24
	v_dual_mul_f32 v24, v22, v22 :: v_dual_add_f32 v23, v17, v11
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v8, v8, v9
	v_fma_f32 v25, v22, v22, -v24
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_sub_f32_e32 v9, v15, v23
	v_dual_sub_f32 v17, v23, v17 :: v_dual_add_f32 v26, v8, v8
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v15, v15, v9
	v_sub_f32_e32 v11, v17, v11
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_f32_e32 v15, v15, v23
	v_add_f32_e32 v11, v11, v15
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f32_e32 v9, v9, v11
	v_mul_f32_e32 v9, v28, v9
	v_fmac_f32_e32 v25, v22, v26
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f32_e32 v17, v24, v25
	v_fmaak_f32 v15, s13, v17, 0x3e91f4c4
	v_mul_f32_e32 v29, v22, v17
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fmaak_f32 v11, v17, v15, 0x3ecccdef
	v_sub_f32_e32 v15, v17, v24
	v_add_f32_e32 v24, v21, v9
	v_mul_f32_e32 v23, v17, v11
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_sub_f32_e32 v15, v25, v15
	v_sub_f32_e32 v21, v24, v21
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v25, v17, v11, -v23
	v_sub_f32_e32 v9, v9, v21
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fmac_f32_e32 v25, v15, v11
	v_mul_f32_e32 v11, v24, v24
	v_add_f32_e32 v27, v9, v9
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f32_e32 v21, v23, v25
	v_fma_f32 v26, v24, v24, -v11
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_sub_f32 v23, v21, v23 :: v_dual_add_f32 v28, 0x3f2aaaaa, v21
	v_fmac_f32_e32 v26, v24, v27
	v_fma_f32 v27, v17, v22, -v29
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_sub_f32_e32 v23, v25, v23
	v_dual_add_f32 v25, 0xbf2aaaaa, v28 :: v_dual_add_f32 v30, v11, v26
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fmac_f32_e32 v27, v17, v8
	v_ldexp_f32 v8, v8, 1
	v_add_f32_e32 v23, 0x31739010, v23
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_sub_f32_e32 v21, v21, v25
	v_fmaak_f32 v17, s13, v30, 0x3e91f4c4
	v_fmac_f32_e32 v27, v15, v22
	v_sub_f32_e32 v11, v30, v11
	v_add_f32_e32 v21, v23, v21
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fmaak_f32 v15, v30, v17, 0x3ecccdef
	v_add_f32_e32 v25, v29, v27
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_4) | instid1(VALU_DEP_4)
	v_sub_f32_e32 v11, v26, v11
	v_frexp_exp_i32_f32_e32 v17, v10
	v_add_f32_e32 v23, v28, v21
	v_mul_f32_e32 v31, v30, v15
	v_sub_f32_e32 v29, v25, v29
	v_subrev_co_ci_u32_e32 v17, vcc_lo, 0, v17, vcc_lo
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_sub_f32_e32 v28, v28, v23
	v_mul_f32_e32 v32, v25, v23
	v_fma_f32 v26, v30, v15, -v31
	v_cvt_f32_i32_e32 v17, v17
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f32_e32 v21, v21, v28
	v_fma_f32 v28, v25, v23, -v32
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v26, v11, v15
	v_sub_f32_e32 v15, v27, v29
	v_dual_fmac_f32 v28, v25, v21 :: v_dual_add_f32 v21, v31, v26
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_dual_mul_f32 v25, 0x3f317218, v17 :: v_dual_fmac_f32 v28, v15, v23
	v_ldexp_f32 v15, v22, 1
	v_sub_f32_e32 v23, v21, v31
	v_dual_add_f32 v27, 0x3f2aaaaa, v21 :: v_dual_mul_f32 v22, v24, v30
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f32_e32 v29, v32, v28
	v_sub_f32_e32 v23, v26, v23
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f32_e32 v26, 0xbf2aaaaa, v27
	v_fma_f32 v31, v30, v24, -v22
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_dual_add_f32 v33, v15, v29 :: v_dual_sub_f32 v32, v29, v32
	v_add_f32_e32 v23, 0x31739010, v23
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_dual_sub_f32 v21, v21, v26 :: v_dual_sub_f32 v26, v28, v32
	v_fma_f32 v28, 0x3f317218, v17, -v25
	v_add_f32_e32 v8, v8, v26
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v28, 0xb102e308, v17
	s_waitcnt vmcnt(0)
	v_dual_mul_f32 v14, v14, v16 :: v_dual_sub_f32 v15, v33, v15
	v_mul_f32_e32 v7, v14, v7
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v15, v29, v15
	v_frexp_exp_i32_f32_e32 v29, v13
	v_dual_add_f32 v8, v8, v15 :: v_dual_fmac_f32 v31, v30, v9
	v_add_f32_e32 v15, v25, v28
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_subrev_co_ci_u32_e64 v29, vcc_lo, 0, v29, s0
	v_ldexp_f32 v9, v9, 1
	v_fmac_f32_e32 v31, v11, v24
	v_add_f32_e32 v11, v23, v21
	v_sub_f32_e32 v25, v15, v25
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f32_e32 v21, v22, v31
	v_add_f32_e32 v17, v27, v11
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_sub_f32 v25, v28, v25 :: v_dual_sub_f32 v22, v21, v22
	v_sub_f32_e32 v23, v27, v17
	v_add_f32_e32 v27, v33, v8
	v_mul_f32_e32 v26, v21, v17
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_sub_f32_e32 v22, v31, v22
	v_add_f32_e32 v11, v11, v23
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f32_e32 v30, v15, v27
	v_fma_f32 v23, v21, v17, -v26
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v31, v30, v15
	v_fmac_f32_e32 v23, v21, v11
	v_sub_f32_e32 v21, v27, v33
	v_cvt_f32_i32_e32 v11, v29
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_sub_f32_e32 v28, v30, v31
	v_fmac_f32_e32 v23, v22, v17
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_dual_sub_f32 v8, v8, v21 :: v_dual_sub_f32 v21, v27, v31
	v_ldexp_f32 v17, v24, 1
	v_dual_sub_f32 v15, v15, v28 :: v_dual_add_f32 v22, v26, v23
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_add_f32 v27, v25, v8 :: v_dual_mul_f32 v24, 0x3f317218, v11
	v_add_f32_e32 v15, v21, v15
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_f32_e32 v21, v17, v22
	v_sub_f32_e32 v26, v22, v26
	v_sub_f32_e32 v28, v27, v25
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f32_e32 v15, v27, v15
	v_sub_f32_e32 v17, v21, v17
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_sub_f32_e32 v23, v23, v26
	v_sub_f32_e32 v27, v27, v28
	v_fma_f32 v26, 0x3f317218, v11, -v24
	v_add_f32_e32 v29, v30, v15
	v_sub_f32_e32 v17, v22, v17
	v_dual_add_f32 v9, v9, v23 :: v_dual_sub_f32 v8, v8, v28
	v_sub_f32_e32 v22, v25, v27
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_dual_sub_f32 v23, v29, v30 :: v_dual_fmac_f32 v26, 0xb102e308, v11
	v_dual_add_f32 v9, v9, v17 :: v_dual_mul_f32 v30, 0.5, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_dual_add_f32 v8, v8, v22 :: v_dual_sub_f32 v11, v15, v23
	v_add_f32_e32 v15, v24, v26
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f32_e32 v17, v21, v9
	v_trunc_f32_e32 v28, v4
	v_dual_add_f32 v8, v8, v11 :: v_dual_sub_f32 v23, v15, v24
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_f32_e32 v11, v15, v17
	v_sub_f32_e32 v21, v17, v21
	v_cmp_eq_f32_e64 s0, v28, v4
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_dual_add_f32 v22, v29, v8 :: v_dual_sub_f32 v23, v26, v23
	v_dual_sub_f32 v24, v11, v15 :: v_dual_sub_f32 v9, v9, v21
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v25, v22, v29
	v_dual_mul_f32 v27, v4, v22 :: v_dual_sub_f32 v26, v11, v24
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_sub_f32 v17, v17, v24 :: v_dual_sub_f32 v8, v8, v25
	v_fma_f32 v22, v4, v22, -v27
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_sub_f32_e32 v15, v15, v26
	v_cmp_class_f32_e64 vcc_lo, v27, 0x204
	v_fmac_f32_e32 v22, v4, v8
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_add_f32 v8, v23, v9 :: v_dual_add_f32 v15, v17, v15
	v_add_f32_e32 v17, v27, v22
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_sub_f32_e32 v21, v8, v23
	v_add_f32_e32 v15, v8, v15
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v24, v17, v27, vcc_lo
	v_dual_sub_f32 v8, v8, v21 :: v_dual_add_f32 v25, v11, v15
	v_sub_f32_e32 v9, v9, v21
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cmp_eq_f32_e32 vcc_lo, 0x42b17218, v24
	v_dual_sub_f32 v8, v23, v8 :: v_dual_sub_f32 v11, v25, v11
	v_cndmask_b32_e64 v21, 0, 0x37000000, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_dual_add_f32 v8, v9, v8 :: v_dual_sub_f32 v9, v15, v11
	v_cmp_gt_f32_e32 vcc_lo, 0, v4
	v_sub_f32_e32 v23, v24, v21
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_add_f32 v8, v8, v9 :: v_dual_mul_f32 v11, 0x3fb8aa3b, v23
	v_add_f32_e32 v26, v25, v8
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f32 v9, 0x3fb8aa3b, v23, -v11
	v_rndne_f32_e32 v15, v11
	v_sub_f32_e32 v25, v26, v25
	v_mul_f32_e32 v29, v12, v26
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fmac_f32_e32 v9, 0x32a5705f, v23
	v_dual_sub_f32 v11, v11, v15 :: v_dual_sub_f32 v8, v8, v25
	v_cvt_i32_f32_e32 v15, v15
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_cmp_class_f32_e64 s2, v29, 0x204
	v_trunc_f32_e32 v25, v30
	v_add_f32_e32 v9, v11, v9
	v_fma_f32 v11, v12, v26, -v29
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_exp_f32_e32 v9, v9
	v_dual_fmac_f32 v11, v12, v8 :: v_dual_sub_f32 v8, v17, v27
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_add_f32 v17, v29, v11 :: v_dual_sub_f32 v8, v22, v8
	s_waitcnt_depctr 0xfff
	v_ldexp_f32 v9, v9, v15
	v_cndmask_b32_e64 v15, v17, v29, s2
	v_cmp_neq_f32_e64 s2, 0x7f800000, |v24|
	v_dual_sub_f32 v17, v17, v29 :: v_dual_mul_f32 v24, 0.5, v12
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v8, 0, v8, s2
	v_cmp_ngt_f32_e64 s2, 0xc2ce8ed0, v23
	v_dual_sub_f32 v11, v11, v17 :: v_dual_add_f32 v8, v21, v8
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v9, 0, v9, s2
	v_cmp_eq_f32_e64 s2, 0x42b17218, v15
	v_trunc_f32_e32 v21, v12
	v_cndmask_b32_e64 v22, 0, 0x37000000, s2
	v_cmp_nlt_f32_e64 s2, 0x42b17218, v23
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v23, v15, v22
	v_cndmask_b32_e64 v9, 0x7f800000, v9, s2
	v_cmp_neq_f32_e64 s2, v25, v30
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f32_e32 v26, 0x3fb8aa3b, v23
	v_fma_f32 v8, v9, v8, v9
	v_cmp_eq_f32_e64 s3, 0x7f800000, v9
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s2, s0, s2
	v_cndmask_b32_e64 v25, 1.0, v10, s2
	v_fma_f32 v27, 0x3fb8aa3b, v23, -v26
	s_delay_alu instid0(VALU_DEP_3)
	v_cndmask_b32_e64 v8, v8, v9, s3
	s_xor_b32 s3, s14, s15
	v_rndne_f32_e32 v28, v26
	v_cndmask_b32_e64 v9, |v4|, 0, s3
	s_xor_b32 s3, vcc_lo, s1
	v_bfi_b32 v8, 0x7fffffff, v8, v25
	v_cmp_gt_f32_e32 vcc_lo, 0, v10
	v_cndmask_b32_e64 v25, 0x7f800000, 0, s3
	v_dual_fmac_f32 v27, 0x32a5705f, v23 :: v_dual_sub_f32 v26, v26, v28
	s_delay_alu instid0(VALU_DEP_4)
	v_cndmask_b32_e64 v30, 0x7fc00000, v8, s0
	v_cmp_eq_f32_e64 s0, |v10|, 1.0
	v_cndmask_b32_e64 v31, 0, v10, s2
	v_cvt_i32_f32_e32 v16, v28
	v_add_f32_e32 v26, v26, v27
	v_cndmask_b32_e32 v8, v8, v30, vcc_lo
	v_cndmask_b32_e64 v9, v9, |v10|, s0
	v_cmp_class_f32_e64 s0, v4, 0x204
	v_cmp_eq_f32_e32 vcc_lo, v21, v12
	v_bfi_b32 v21, 0x7fffffff, v25, v31
	v_cmp_neq_f32_e64 s14, v12, |v12|
	v_cmp_lt_f32_e64 s15, |v13|, 1.0
	v_cndmask_b32_e64 v8, v8, v9, s0
	s_or_b32 s0, s1, s20
	v_exp_f32_e32 v9, v26
	v_cmp_gt_f32_e64 s2, 0, v12
	v_cmp_eq_f32_e64 s3, 0, v13
	v_cndmask_b32_e64 v8, v8, v21, s0
	v_cmp_o_f32_e64 s0, v10, v4
	s_xor_b32 s14, s14, s15
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_xor_b32 s2, s2, s3
	v_cndmask_b32_e64 v4, 0x7fc00000, v8, s0
	v_cmp_neq_f32_e64 s0, 0x7f800000, |v15|
	s_delay_alu instid0(TRANS32_DEP_1)
	v_ldexp_f32 v8, v9, v16
	v_cndmask_b32_e64 v17, 0x7f800000, 0, s2
	v_cmp_eq_f32_e64 s2, |v13|, 1.0
	v_div_scale_f32 v10, null, v4, v4, v7
	v_cndmask_b32_e64 v9, 0, v11, s0
	v_cmp_ngt_f32_e64 s0, 0xc2ce8ed0, v23
	v_trunc_f32_e32 v11, v24
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_rcp_f32_e32 v15, v10
	v_add_f32_e32 v9, v22, v9
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v8, 0, v8, s0
	v_cmp_nlt_f32_e64 s0, 0x42b17218, v23
	v_cndmask_b32_e64 v8, 0x7f800000, v8, s0
	v_cmp_neq_f32_e64 s0, v11, v24
	s_waitcnt_depctr 0xfff
	v_fma_f32 v16, -v10, v15, 1.0
	v_fma_f32 v9, v8, v9, v8
	v_cmp_eq_f32_e64 s1, 0x7f800000, v8
	s_and_b32 s0, vcc_lo, s0
	s_delay_alu instid0(VALU_DEP_3)
	v_fmac_f32_e32 v15, v16, v15
	v_cndmask_b32_e64 v11, 1.0, v13, s0
	v_cndmask_b32_e64 v16, |v12|, 0, s14
	v_cndmask_b32_e64 v8, v9, v8, s1
	v_div_scale_f32 v9, s1, v7, v4, v7
	v_cndmask_b32_e64 v23, 0, v13, s0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v16, v16, |v13|, s2
	v_bfi_b32 v8, 0x7fffffff, v8, v11
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_mul_f32_e32 v11, v9, v15
	v_cmp_class_f32_e64 s0, v13, 0x204
	v_bfi_b32 v17, 0x7fffffff, v17, v23
	v_cndmask_b32_e32 v22, 0x7fc00000, v8, vcc_lo
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f32 v21, -v10, v11, v9
	v_cmp_gt_f32_e32 vcc_lo, 0, v13
	v_dual_fmac_f32 v11, v21, v15 :: v_dual_cndmask_b32 v8, v8, v22
	v_cmp_class_f32_e64 vcc_lo, v12, 0x204
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f32 v9, -v10, v11, v9
	v_cndmask_b32_e32 v8, v8, v16, vcc_lo
	s_mov_b32 vcc_lo, s1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f32 v9, v9, v15, v11
	s_or_b32 vcc_lo, s3, s0
	v_cndmask_b32_e32 v8, v8, v17, vcc_lo
	v_cmp_o_f32_e32 vcc_lo, v13, v12
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_fixup_f32 v4, v9, v4, v7
	v_cndmask_b32_e32 v7, 0x7fc00000, v8, vcc_lo
	v_cmp_ge_i32_e32 vcc_lo, v3, v18
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_dual_add_f32 v2, v2, v4 :: v_dual_fmac_f32 v19, v7, v14
	s_or_b32 s12, vcc_lo, s12
	s_and_not1_b32 exec_lo, exec_lo, s12
	s_cbranch_execnz .LBB0_6
; %bb.11:                               ; %._crit_edge78.loopexit
	s_or_b32 exec_lo, exec_lo, s12
	v_div_scale_f32 v3, null, v19, v19, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v4, v3
	s_waitcnt_depctr 0xfff
	v_fma_f32 v5, -v3, v4, 1.0
	v_fmac_f32_e32 v4, v5, v4
	v_div_scale_f32 v5, vcc_lo, v2, v19, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v6, v5, v4
	v_fma_f32 v7, -v3, v6, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v6, v7, v4
	v_fma_f32 v3, -v3, v6, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f32 v3, v3, v4, v6
	v_div_fixup_f32 v2, v3, v19, v2
.LBB0_12:                               ; %Flow137
	s_or_b32 exec_lo, exec_lo, s4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v0, v1, v0
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[0:1]
	v_add_co_u32 v3, vcc_lo, s8, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v4, vcc_lo, s9, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s18, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s19, v1, vcc_lo
	global_load_b32 v3, v[3:4], off
	s_waitcnt vmcnt(0)
	v_mul_f32_e32 v2, v2, v3
	global_store_b32 v[0:1], v2, off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 328
		.amdhsa_user_sgpr_count 14
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 34
		.amdhsa_next_free_sgpr 24
		.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	_Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif, .Lfunc_end0-_Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 3272
; NumSgprs: 26
; NumVgprs: 34
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 3
; VGPRBlocks: 4
; NumSGPRsForWavesPerEU: 26
; NumVGPRsForWavesPerEU: 34
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.protected	_Z13factorBKernelPiPfS0_S0_S0_S0_iiiiif ; -- Begin function _Z13factorBKernelPiPfS0_S0_S0_S0_iiiiif
	.globl	_Z13factorBKernelPiPfS0_S0_S0_S0_iiiiif
	.p2align	8
	.type	_Z13factorBKernelPiPfS0_S0_S0_S0_iiiiif,@function
_Z13factorBKernelPiPfS0_S0_S0_S0_iiiiif: ; @_Z13factorBKernelPiPfS0_S0_S0_S0_iiiiif
; %bb.0:
	s_load_b32 s2, s[0:1], 0x54
	v_bfe_u32 v1, v0, 10, 10
	s_load_b256 s[4:11], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s3, s2, 16
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_mad_u64_u32 v[4:5], null, s15, s3, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v5, 31, v4
	v_lshlrev_b64 v[1:2], 2, v[4:5]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v1, vcc_lo, s4, v1
	v_add_co_ci_u32_e32 v2, vcc_lo, s5, v2, vcc_lo
	global_load_b32 v3, v[1:2], off
	s_clause 0x2
	s_load_b32 s3, s[0:1], 0x34
	s_load_b128 s[20:23], s[0:1], 0x3c
	s_load_b128 s[16:19], s[0:1], 0x20
	v_add_nc_u32_e32 v5, 1, v4
	s_mov_b32 s0, exec_lo
	s_waitcnt lgkmcnt(0)
	v_mov_b32_e32 v18, s20
	s_delay_alu instid0(VALU_DEP_2)
	v_cmpx_gt_i32_e64 s3, v5
	s_cbranch_execz .LBB1_2
; %bb.1:
	global_load_b32 v18, v[1:2], off offset:4
.LBB1_2:
	s_or_b32 exec_lo, exec_lo, s0
	v_and_b32_e32 v2, 0x3ff, v0
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v3, 2, v3
	s_and_b32 s0, s2, 0xffff
	s_mov_b32 s1, exec_lo
	s_delay_alu instid0(VALU_DEP_1)
	v_mad_u64_u32 v[0:1], null, s14, s0, v[2:3]
                                        ; implicit-def: $sgpr0
                                        ; implicit-def: $vgpr1
	v_cmpx_ge_i32_e64 v3, v18
	s_xor_b32 s1, exec_lo, s1
; %bb.3:                                ; %.._crit_edge78_crit_edge
	v_mul_lo_u32 v1, v4, s21
	s_mov_b32 s0, 1.0
                                        ; implicit-def: $vgpr18
                                        ; implicit-def: $vgpr3
                                        ; implicit-def: $vgpr4_vgpr5
; %bb.4:                                ; %Flow136
	s_or_saveexec_b32 s4, s1
	v_mov_b32_e32 v2, s0
	s_xor_b32 exec_lo, exec_lo, s4
	s_cbranch_execz .LBB1_12
; %bb.5:                                ; %.lr.ph77
	v_mul_lo_u32 v1, v4, s21
	v_sub_f32_e64 v20, 1.0, s22
	s_cmp_gt_i32 s21, 0
	s_mov_b32 s12, 0
	s_cselect_b32 s5, -1, 0
	s_mov_b32 s13, 0x3e76c4e1
	v_mov_b32_e32 v19, 0x3dcccccd
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v2, 31, v1
	v_lshlrev_b64 v[5:6], 2, v[1:2]
	v_mov_b32_e32 v2, 0x3dcccccd
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v5, vcc_lo, s10, v5
	v_add_co_ci_u32_e32 v6, vcc_lo, s11, v6, vcc_lo
.LBB1_6:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB1_8 Depth 2
	v_ashrrev_i32_e32 v4, 31, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[7:8], 2, v[3:4]
	v_add_co_u32 v7, vcc_lo, s6, v7
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v8, vcc_lo, s7, v8, vcc_lo
	s_and_not1_b32 vcc_lo, exec_lo, s5
	global_load_b64 v[9:10], v[7:8], off offset:-8
	s_waitcnt vmcnt(0)
	v_cvt_i32_f32_e32 v4, v10
	v_cvt_i32_f32_e32 v9, v9
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v11, v4, s21
	v_mul_lo_u32 v9, v9, s21
	s_cbranch_vccnz .LBB1_9
; %bb.7:                                ; %.lr.ph.preheader
                                        ;   in Loop: Header=BB1_6 Depth=1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v10, 31, v9
	v_ashrrev_i32_e32 v12, 31, v11
	v_mov_b32_e32 v21, 0
	s_mov_b32 s0, s21
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[13:14], 2, v[9:10]
	v_lshlrev_b64 v[15:16], 2, v[11:12]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v12, vcc_lo, s16, v13
	v_add_co_ci_u32_e32 v13, vcc_lo, s17, v14, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v14, vcc_lo, s8, v15
	v_add_co_ci_u32_e32 v15, vcc_lo, s9, v16, vcc_lo
	v_dual_mov_b32 v17, v6 :: v_dual_mov_b32 v16, v5
.LBB1_8:                                ; %.lr.ph
                                        ;   Parent Loop BB1_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	global_load_b32 v4, v[14:15], off
	global_load_b32 v10, v[16:17], off
	global_load_b32 v22, v[12:13], off
	v_add_co_u32 v12, vcc_lo, v12, 4
	v_add_co_ci_u32_e32 v13, vcc_lo, 0, v13, vcc_lo
	v_add_co_u32 v16, vcc_lo, v16, 4
	v_add_co_ci_u32_e32 v17, vcc_lo, 0, v17, vcc_lo
	v_add_co_u32 v14, vcc_lo, v14, 4
	v_add_co_ci_u32_e32 v15, vcc_lo, 0, v15, vcc_lo
	s_add_i32 s0, s0, -1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	s_cmp_eq_u32 s0, 0
	s_waitcnt vmcnt(1)
	v_mul_f32_e32 v4, v4, v10
	s_waitcnt vmcnt(0)
	v_fmac_f32_e32 v21, v4, v22
	s_cbranch_scc0 .LBB1_8
	s_branch .LBB1_10
.LBB1_9:                                ;   in Loop: Header=BB1_6 Depth=1
	v_mov_b32_e32 v21, 0
.LBB1_10:                               ; %._crit_edge
                                        ;   in Loop: Header=BB1_6 Depth=1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_cmp_eq_f32_e64 s0, 1.0, v21
	global_load_b32 v7, v[7:8], off
	v_add_nc_u32_e32 v3, 3, v3
	v_cndmask_b32_e64 v4, v20, 1.0, s0
	v_cmp_neq_f32_e32 vcc_lo, 0, v4
	v_cmp_neq_f32_e64 s14, v4, |v4|
	v_cndmask_b32_e32 v10, 1.0, v21, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_frexp_mant_f32_e64 v12, |v10|
	v_cmp_gt_f32_e32 vcc_lo, 0x3f2aaaab, v12
	v_cndmask_b32_e64 v13, 0, 1, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ldexp_f32 v14, v12, v13
	v_cndmask_b32_e64 v12, s22, 1.0, s0
	v_add_f32_e32 v15, 1.0, v14
	v_add_f32_e32 v23, -1.0, v14
	s_delay_alu instid0(VALU_DEP_3)
	v_cmp_neq_f32_e64 s0, 0, v12
	v_cmp_lt_f32_e64 s15, |v10|, 1.0
	v_cmp_class_f32_e64 s20, v10, 0x204
	v_add_f32_e32 v16, -1.0, v15
	v_rcp_f32_e32 v22, v15
	v_cndmask_b32_e64 v13, 1.0, v21, s0
	s_waitcnt_depctr 0xfff
	v_dual_sub_f32 v17, v14, v16 :: v_dual_mul_f32 v24, v23, v22
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v25, v15, v24
	v_fma_f32 v21, v24, v15, -v25
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_fmac_f32 v21, v24, v17 :: v_dual_add_nc_u32 v14, v11, v0
	v_ashrrev_i32_e32 v15, 31, v14
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_add_f32_e32 v26, v25, v21
	v_add_nc_u32_e32 v16, v9, v0
	v_frexp_mant_f32_e64 v9, |v13|
	v_lshlrev_b64 v[14:15], 2, v[14:15]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_gt_f32_e64 s0, 0x3f2aaaab, v9
	v_add_co_u32 v14, s1, s8, v14
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e64 v15, s1, s9, v15, s1
	v_cndmask_b32_e64 v11, 0, 1, s0
	global_load_b32 v14, v[14:15], off
	v_ldexp_f32 v9, v9, v11
	v_sub_f32_e32 v11, v23, v26
	v_ashrrev_i32_e32 v17, 31, v16
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f32_e32 v15, -1.0, v9
	v_sub_f32_e32 v23, v23, v11
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[16:17], 2, v[16:17]
	v_sub_f32_e32 v25, v26, v25
	v_sub_f32_e32 v23, v23, v26
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v16, s1, s16, v16
	v_add_co_ci_u32_e64 v17, s1, s17, v17, s1
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_sub_f32_e32 v21, v25, v21
	v_cmp_eq_f32_e64 s1, 0, v10
	global_load_b32 v16, v[16:17], off
	v_add_f32_e32 v17, v21, v23
	v_add_f32_e32 v8, v11, v17
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_add_f32 v27, 1.0, v9 :: v_dual_mul_f32 v8, v22, v8
	v_rcp_f32_e32 v28, v27
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_add_f32 v11, -1.0, v27 :: v_dual_add_f32 v22, v24, v8
	v_sub_f32_e32 v9, v9, v11
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v21, v15, v28
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v17, v27, v21
	v_fma_f32 v11, v21, v27, -v17
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v11, v21, v9
	v_sub_f32_e32 v9, v22, v24
	v_dual_mul_f32 v24, v22, v22 :: v_dual_add_f32 v23, v17, v11
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v8, v8, v9
	v_fma_f32 v25, v22, v22, -v24
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_sub_f32_e32 v9, v15, v23
	v_dual_sub_f32 v17, v23, v17 :: v_dual_add_f32 v26, v8, v8
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v15, v15, v9
	v_sub_f32_e32 v11, v17, v11
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_f32_e32 v15, v15, v23
	v_add_f32_e32 v11, v11, v15
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f32_e32 v9, v9, v11
	v_mul_f32_e32 v9, v28, v9
	v_fmac_f32_e32 v25, v22, v26
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f32_e32 v17, v24, v25
	v_fmaak_f32 v15, s13, v17, 0x3e91f4c4
	v_mul_f32_e32 v29, v22, v17
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fmaak_f32 v11, v17, v15, 0x3ecccdef
	v_sub_f32_e32 v15, v17, v24
	v_add_f32_e32 v24, v21, v9
	v_mul_f32_e32 v23, v17, v11
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_sub_f32_e32 v15, v25, v15
	v_sub_f32_e32 v21, v24, v21
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v25, v17, v11, -v23
	v_sub_f32_e32 v9, v9, v21
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fmac_f32_e32 v25, v15, v11
	v_mul_f32_e32 v11, v24, v24
	v_add_f32_e32 v27, v9, v9
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f32_e32 v21, v23, v25
	v_fma_f32 v26, v24, v24, -v11
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_sub_f32 v23, v21, v23 :: v_dual_add_f32 v28, 0x3f2aaaaa, v21
	v_fmac_f32_e32 v26, v24, v27
	v_fma_f32 v27, v17, v22, -v29
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_sub_f32_e32 v23, v25, v23
	v_dual_add_f32 v25, 0xbf2aaaaa, v28 :: v_dual_add_f32 v30, v11, v26
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fmac_f32_e32 v27, v17, v8
	v_ldexp_f32 v8, v8, 1
	v_add_f32_e32 v23, 0x31739010, v23
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_sub_f32_e32 v21, v21, v25
	v_fmaak_f32 v17, s13, v30, 0x3e91f4c4
	v_fmac_f32_e32 v27, v15, v22
	v_sub_f32_e32 v11, v30, v11
	v_add_f32_e32 v21, v23, v21
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fmaak_f32 v15, v30, v17, 0x3ecccdef
	v_add_f32_e32 v25, v29, v27
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_4) | instid1(VALU_DEP_4)
	v_sub_f32_e32 v11, v26, v11
	v_frexp_exp_i32_f32_e32 v17, v10
	v_add_f32_e32 v23, v28, v21
	v_mul_f32_e32 v31, v30, v15
	v_sub_f32_e32 v29, v25, v29
	v_subrev_co_ci_u32_e32 v17, vcc_lo, 0, v17, vcc_lo
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_sub_f32_e32 v28, v28, v23
	v_mul_f32_e32 v32, v25, v23
	v_fma_f32 v26, v30, v15, -v31
	v_cvt_f32_i32_e32 v17, v17
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f32_e32 v21, v21, v28
	v_fma_f32 v28, v25, v23, -v32
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v26, v11, v15
	v_sub_f32_e32 v15, v27, v29
	v_dual_fmac_f32 v28, v25, v21 :: v_dual_add_f32 v21, v31, v26
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_dual_mul_f32 v25, 0x3f317218, v17 :: v_dual_fmac_f32 v28, v15, v23
	v_ldexp_f32 v15, v22, 1
	v_sub_f32_e32 v23, v21, v31
	v_dual_add_f32 v27, 0x3f2aaaaa, v21 :: v_dual_mul_f32 v22, v24, v30
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f32_e32 v29, v32, v28
	v_sub_f32_e32 v23, v26, v23
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f32_e32 v26, 0xbf2aaaaa, v27
	v_fma_f32 v31, v30, v24, -v22
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_dual_add_f32 v33, v15, v29 :: v_dual_sub_f32 v32, v29, v32
	v_add_f32_e32 v23, 0x31739010, v23
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_dual_sub_f32 v21, v21, v26 :: v_dual_sub_f32 v26, v28, v32
	v_fma_f32 v28, 0x3f317218, v17, -v25
	v_add_f32_e32 v8, v8, v26
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v28, 0xb102e308, v17
	s_waitcnt vmcnt(0)
	v_dual_mul_f32 v14, v14, v16 :: v_dual_sub_f32 v15, v33, v15
	v_mul_f32_e32 v7, v14, v7
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v15, v29, v15
	v_frexp_exp_i32_f32_e32 v29, v13
	v_dual_add_f32 v8, v8, v15 :: v_dual_fmac_f32 v31, v30, v9
	v_add_f32_e32 v15, v25, v28
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_subrev_co_ci_u32_e64 v29, vcc_lo, 0, v29, s0
	v_ldexp_f32 v9, v9, 1
	v_fmac_f32_e32 v31, v11, v24
	v_add_f32_e32 v11, v23, v21
	v_sub_f32_e32 v25, v15, v25
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f32_e32 v21, v22, v31
	v_add_f32_e32 v17, v27, v11
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_sub_f32 v25, v28, v25 :: v_dual_sub_f32 v22, v21, v22
	v_sub_f32_e32 v23, v27, v17
	v_add_f32_e32 v27, v33, v8
	v_mul_f32_e32 v26, v21, v17
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_sub_f32_e32 v22, v31, v22
	v_add_f32_e32 v11, v11, v23
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f32_e32 v30, v15, v27
	v_fma_f32 v23, v21, v17, -v26
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v31, v30, v15
	v_fmac_f32_e32 v23, v21, v11
	v_sub_f32_e32 v21, v27, v33
	v_cvt_f32_i32_e32 v11, v29
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_sub_f32_e32 v28, v30, v31
	v_fmac_f32_e32 v23, v22, v17
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_dual_sub_f32 v8, v8, v21 :: v_dual_sub_f32 v21, v27, v31
	v_ldexp_f32 v17, v24, 1
	v_dual_sub_f32 v15, v15, v28 :: v_dual_add_f32 v22, v26, v23
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_add_f32 v27, v25, v8 :: v_dual_mul_f32 v24, 0x3f317218, v11
	v_add_f32_e32 v15, v21, v15
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_f32_e32 v21, v17, v22
	v_sub_f32_e32 v26, v22, v26
	v_sub_f32_e32 v28, v27, v25
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f32_e32 v15, v27, v15
	v_sub_f32_e32 v17, v21, v17
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_sub_f32_e32 v23, v23, v26
	v_sub_f32_e32 v27, v27, v28
	v_fma_f32 v26, 0x3f317218, v11, -v24
	v_add_f32_e32 v29, v30, v15
	v_sub_f32_e32 v17, v22, v17
	v_dual_add_f32 v9, v9, v23 :: v_dual_sub_f32 v8, v8, v28
	v_sub_f32_e32 v22, v25, v27
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_dual_sub_f32 v23, v29, v30 :: v_dual_fmac_f32 v26, 0xb102e308, v11
	v_dual_add_f32 v9, v9, v17 :: v_dual_mul_f32 v30, 0.5, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_dual_add_f32 v8, v8, v22 :: v_dual_sub_f32 v11, v15, v23
	v_add_f32_e32 v15, v24, v26
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f32_e32 v17, v21, v9
	v_trunc_f32_e32 v28, v4
	v_dual_add_f32 v8, v8, v11 :: v_dual_sub_f32 v23, v15, v24
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_f32_e32 v11, v15, v17
	v_sub_f32_e32 v21, v17, v21
	v_cmp_eq_f32_e64 s0, v28, v4
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_dual_add_f32 v22, v29, v8 :: v_dual_sub_f32 v23, v26, v23
	v_dual_sub_f32 v24, v11, v15 :: v_dual_sub_f32 v9, v9, v21
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v25, v22, v29
	v_dual_mul_f32 v27, v4, v22 :: v_dual_sub_f32 v26, v11, v24
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_sub_f32 v17, v17, v24 :: v_dual_sub_f32 v8, v8, v25
	v_fma_f32 v22, v4, v22, -v27
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_sub_f32_e32 v15, v15, v26
	v_cmp_class_f32_e64 vcc_lo, v27, 0x204
	v_fmac_f32_e32 v22, v4, v8
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_add_f32 v8, v23, v9 :: v_dual_add_f32 v15, v17, v15
	v_add_f32_e32 v17, v27, v22
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_sub_f32_e32 v21, v8, v23
	v_add_f32_e32 v15, v8, v15
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v24, v17, v27, vcc_lo
	v_dual_sub_f32 v8, v8, v21 :: v_dual_add_f32 v25, v11, v15
	v_sub_f32_e32 v9, v9, v21
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cmp_eq_f32_e32 vcc_lo, 0x42b17218, v24
	v_dual_sub_f32 v8, v23, v8 :: v_dual_sub_f32 v11, v25, v11
	v_cndmask_b32_e64 v21, 0, 0x37000000, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_dual_add_f32 v8, v9, v8 :: v_dual_sub_f32 v9, v15, v11
	v_cmp_gt_f32_e32 vcc_lo, 0, v4
	v_sub_f32_e32 v23, v24, v21
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_add_f32 v8, v8, v9 :: v_dual_mul_f32 v11, 0x3fb8aa3b, v23
	v_add_f32_e32 v26, v25, v8
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f32 v9, 0x3fb8aa3b, v23, -v11
	v_rndne_f32_e32 v15, v11
	v_sub_f32_e32 v25, v26, v25
	v_mul_f32_e32 v29, v12, v26
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fmac_f32_e32 v9, 0x32a5705f, v23
	v_dual_sub_f32 v11, v11, v15 :: v_dual_sub_f32 v8, v8, v25
	v_cvt_i32_f32_e32 v15, v15
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_cmp_class_f32_e64 s2, v29, 0x204
	v_trunc_f32_e32 v25, v30
	v_add_f32_e32 v9, v11, v9
	v_fma_f32 v11, v12, v26, -v29
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_exp_f32_e32 v9, v9
	v_dual_fmac_f32 v11, v12, v8 :: v_dual_sub_f32 v8, v17, v27
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_add_f32 v17, v29, v11 :: v_dual_sub_f32 v8, v22, v8
	s_waitcnt_depctr 0xfff
	v_ldexp_f32 v9, v9, v15
	v_cndmask_b32_e64 v15, v17, v29, s2
	v_cmp_neq_f32_e64 s2, 0x7f800000, |v24|
	v_dual_sub_f32 v17, v17, v29 :: v_dual_mul_f32 v24, 0.5, v12
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v8, 0, v8, s2
	v_cmp_ngt_f32_e64 s2, 0xc2ce8ed0, v23
	v_dual_sub_f32 v11, v11, v17 :: v_dual_add_f32 v8, v21, v8
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v9, 0, v9, s2
	v_cmp_eq_f32_e64 s2, 0x42b17218, v15
	v_trunc_f32_e32 v21, v12
	v_cndmask_b32_e64 v22, 0, 0x37000000, s2
	v_cmp_nlt_f32_e64 s2, 0x42b17218, v23
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v23, v15, v22
	v_cndmask_b32_e64 v9, 0x7f800000, v9, s2
	v_cmp_neq_f32_e64 s2, v25, v30
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f32_e32 v26, 0x3fb8aa3b, v23
	v_fma_f32 v8, v9, v8, v9
	v_cmp_eq_f32_e64 s3, 0x7f800000, v9
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s2, s0, s2
	v_cndmask_b32_e64 v25, 1.0, v10, s2
	v_fma_f32 v27, 0x3fb8aa3b, v23, -v26
	s_delay_alu instid0(VALU_DEP_3)
	v_cndmask_b32_e64 v8, v8, v9, s3
	s_xor_b32 s3, s14, s15
	v_rndne_f32_e32 v28, v26
	v_cndmask_b32_e64 v9, |v4|, 0, s3
	s_xor_b32 s3, vcc_lo, s1
	v_bfi_b32 v8, 0x7fffffff, v8, v25
	v_cmp_gt_f32_e32 vcc_lo, 0, v10
	v_cndmask_b32_e64 v25, 0x7f800000, 0, s3
	v_dual_fmac_f32 v27, 0x32a5705f, v23 :: v_dual_sub_f32 v26, v26, v28
	s_delay_alu instid0(VALU_DEP_4)
	v_cndmask_b32_e64 v30, 0x7fc00000, v8, s0
	v_cmp_eq_f32_e64 s0, |v10|, 1.0
	v_cndmask_b32_e64 v31, 0, v10, s2
	v_cvt_i32_f32_e32 v16, v28
	v_add_f32_e32 v26, v26, v27
	v_cndmask_b32_e32 v8, v8, v30, vcc_lo
	v_cndmask_b32_e64 v9, v9, |v10|, s0
	v_cmp_class_f32_e64 s0, v4, 0x204
	v_cmp_eq_f32_e32 vcc_lo, v21, v12
	v_bfi_b32 v21, 0x7fffffff, v25, v31
	v_cmp_neq_f32_e64 s14, v12, |v12|
	v_cmp_lt_f32_e64 s15, |v13|, 1.0
	v_cndmask_b32_e64 v8, v8, v9, s0
	s_or_b32 s0, s1, s20
	v_exp_f32_e32 v9, v26
	v_cmp_gt_f32_e64 s2, 0, v12
	v_cmp_eq_f32_e64 s3, 0, v13
	v_cndmask_b32_e64 v8, v8, v21, s0
	v_cmp_o_f32_e64 s0, v10, v4
	s_xor_b32 s14, s14, s15
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_xor_b32 s2, s2, s3
	v_cndmask_b32_e64 v4, 0x7fc00000, v8, s0
	v_cmp_neq_f32_e64 s0, 0x7f800000, |v15|
	s_delay_alu instid0(TRANS32_DEP_1)
	v_ldexp_f32 v8, v9, v16
	v_cndmask_b32_e64 v17, 0x7f800000, 0, s2
	v_cmp_eq_f32_e64 s2, |v13|, 1.0
	v_div_scale_f32 v10, null, v4, v4, v7
	v_cndmask_b32_e64 v9, 0, v11, s0
	v_cmp_ngt_f32_e64 s0, 0xc2ce8ed0, v23
	v_trunc_f32_e32 v11, v24
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_rcp_f32_e32 v15, v10
	v_add_f32_e32 v9, v22, v9
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v8, 0, v8, s0
	v_cmp_nlt_f32_e64 s0, 0x42b17218, v23
	v_cndmask_b32_e64 v8, 0x7f800000, v8, s0
	v_cmp_neq_f32_e64 s0, v11, v24
	s_waitcnt_depctr 0xfff
	v_fma_f32 v16, -v10, v15, 1.0
	v_fma_f32 v9, v8, v9, v8
	v_cmp_eq_f32_e64 s1, 0x7f800000, v8
	s_and_b32 s0, vcc_lo, s0
	s_delay_alu instid0(VALU_DEP_3)
	v_fmac_f32_e32 v15, v16, v15
	v_cndmask_b32_e64 v11, 1.0, v13, s0
	v_cndmask_b32_e64 v16, |v12|, 0, s14
	v_cndmask_b32_e64 v8, v9, v8, s1
	v_div_scale_f32 v9, s1, v7, v4, v7
	v_cndmask_b32_e64 v23, 0, v13, s0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v16, v16, |v13|, s2
	v_bfi_b32 v8, 0x7fffffff, v8, v11
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_mul_f32_e32 v11, v9, v15
	v_cmp_class_f32_e64 s0, v13, 0x204
	v_bfi_b32 v17, 0x7fffffff, v17, v23
	v_cndmask_b32_e32 v22, 0x7fc00000, v8, vcc_lo
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f32 v21, -v10, v11, v9
	v_cmp_gt_f32_e32 vcc_lo, 0, v13
	v_dual_fmac_f32 v11, v21, v15 :: v_dual_cndmask_b32 v8, v8, v22
	v_cmp_class_f32_e64 vcc_lo, v12, 0x204
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f32 v9, -v10, v11, v9
	v_cndmask_b32_e32 v8, v8, v16, vcc_lo
	s_mov_b32 vcc_lo, s1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f32 v9, v9, v15, v11
	s_or_b32 vcc_lo, s3, s0
	v_cndmask_b32_e32 v8, v8, v17, vcc_lo
	v_cmp_o_f32_e32 vcc_lo, v13, v12
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_fixup_f32 v4, v9, v4, v7
	v_cndmask_b32_e32 v7, 0x7fc00000, v8, vcc_lo
	v_cmp_ge_i32_e32 vcc_lo, v3, v18
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_dual_add_f32 v2, v2, v4 :: v_dual_fmac_f32 v19, v7, v14
	s_or_b32 s12, vcc_lo, s12
	s_and_not1_b32 exec_lo, exec_lo, s12
	s_cbranch_execnz .LBB1_6
; %bb.11:                               ; %._crit_edge78.loopexit
	s_or_b32 exec_lo, exec_lo, s12
	v_div_scale_f32 v3, null, v19, v19, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v4, v3
	s_waitcnt_depctr 0xfff
	v_fma_f32 v5, -v3, v4, 1.0
	v_fmac_f32_e32 v4, v5, v4
	v_div_scale_f32 v5, vcc_lo, v2, v19, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v6, v5, v4
	v_fma_f32 v7, -v3, v6, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v6, v7, v4
	v_fma_f32 v3, -v3, v6, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f32 v3, v3, v4, v6
	v_div_fixup_f32 v2, v3, v19, v2
.LBB1_12:                               ; %Flow137
	s_or_b32 exec_lo, exec_lo, s4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v0, v1, v0
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[0:1]
	v_add_co_u32 v3, vcc_lo, s10, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v4, vcc_lo, s11, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s18, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s19, v1, vcc_lo
	global_load_b32 v3, v[3:4], off
	s_waitcnt vmcnt(0)
	v_mul_f32_e32 v2, v2, v3
	global_store_b32 v[0:1], v2, off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z13factorBKernelPiPfS0_S0_S0_S0_iiiiif
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 328
		.amdhsa_user_sgpr_count 14
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 34
		.amdhsa_next_free_sgpr 24
		.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	_Z13factorBKernelPiPfS0_S0_S0_S0_iiiiif, .Lfunc_end1-_Z13factorBKernelPiPfS0_S0_S0_S0_iiiiif
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 3272
; NumSgprs: 26
; NumVgprs: 34
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 3
; VGPRBlocks: 4
; NumSGPRsForWavesPerEU: 26
; NumVGPRsForWavesPerEU: 34
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.protected	_Z13factorCKernelPiPfS0_S0_S0_S0_iiiiif ; -- Begin function _Z13factorCKernelPiPfS0_S0_S0_S0_iiiiif
	.globl	_Z13factorCKernelPiPfS0_S0_S0_S0_iiiiif
	.p2align	8
	.type	_Z13factorCKernelPiPfS0_S0_S0_S0_iiiiif,@function
_Z13factorCKernelPiPfS0_S0_S0_S0_iiiiif: ; @_Z13factorCKernelPiPfS0_S0_S0_S0_iiiiif
; %bb.0:
	s_load_b32 s2, s[0:1], 0x54
	v_bfe_u32 v1, v0, 10, 10
	s_load_b256 s[4:11], s[0:1], 0x0
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s3, s2, 16
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_mad_u64_u32 v[5:6], null, s15, s3, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v6, 31, v5
	v_add_nc_u32_e32 v4, 1, v5
	v_lshlrev_b64 v[1:2], 2, v[5:6]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v1, vcc_lo, s4, v1
	v_add_co_ci_u32_e32 v2, vcc_lo, s5, v2, vcc_lo
	global_load_b32 v3, v[1:2], off
	s_clause 0x1
	s_load_b128 s[20:23], s[0:1], 0x38
	s_load_b128 s[16:19], s[0:1], 0x20
	s_mov_b32 s0, exec_lo
	s_waitcnt lgkmcnt(0)
	v_mov_b32_e32 v18, s21
	v_cmpx_gt_i32_e64 s20, v4
	s_cbranch_execz .LBB2_2
; %bb.1:
	global_load_b32 v18, v[1:2], off offset:4
.LBB2_2:
	s_or_b32 exec_lo, exec_lo, s0
	v_and_b32_e32 v4, 0x3ff, v0
	s_and_b32 s0, s2, 0xffff
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v2, 2, v3
	s_mov_b32 s1, exec_lo
	v_mad_u64_u32 v[0:1], null, s14, s0, v[4:5]
                                        ; implicit-def: $sgpr0
                                        ; implicit-def: $vgpr4
	s_delay_alu instid0(VALU_DEP_2)
	v_cmpx_ge_i32_e64 v2, v18
	s_xor_b32 s1, exec_lo, s1
; %bb.3:                                ; %.._crit_edge78_crit_edge
	v_mul_lo_u32 v4, v5, s22
	s_mov_b32 s0, 0x3dcccccd
                                        ; implicit-def: $vgpr18
                                        ; implicit-def: $vgpr2
                                        ; implicit-def: $vgpr5_vgpr6
; %bb.4:                                ; %Flow138
	s_or_saveexec_b32 s4, s1
	v_mov_b32_e32 v19, s0
	v_mov_b32_e32 v1, s0
	s_xor_b32 exec_lo, exec_lo, s4
	s_cbranch_execz .LBB2_12
; %bb.5:                                ; %.lr.ph77
	v_mul_lo_u32 v4, v5, s22
	v_sub_f32_e64 v20, 1.0, s23
	v_mov_b32_e32 v19, 0x3dcccccd
	v_mov_b32_e32 v1, 0x3dcccccd
	s_cmp_gt_i32 s22, 0
	s_mov_b32 s12, 0
	s_cselect_b32 s5, -1, 0
	s_mov_b32 s13, 0x3e76c4e1
	v_ashrrev_i32_e32 v5, 31, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[5:6], 2, v[4:5]
	v_add_co_u32 v5, vcc_lo, s16, v5
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v6, vcc_lo, s17, v6, vcc_lo
.LBB2_6:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB2_8 Depth 2
	v_ashrrev_i32_e32 v3, 31, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[7:8], 2, v[2:3]
	v_add_co_u32 v7, vcc_lo, s6, v7
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v8, vcc_lo, s7, v8, vcc_lo
	s_and_not1_b32 vcc_lo, exec_lo, s5
	global_load_b64 v[9:10], v[7:8], off offset:-8
	s_waitcnt vmcnt(0)
	v_cvt_i32_f32_e32 v3, v9
	v_cvt_i32_f32_e32 v9, v10
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v11, v3, s22
	v_mul_lo_u32 v9, v9, s22
	s_cbranch_vccnz .LBB2_9
; %bb.7:                                ; %.lr.ph.preheader
                                        ;   in Loop: Header=BB2_6 Depth=1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v10, 31, v9
	v_ashrrev_i32_e32 v12, 31, v11
	v_mov_b32_e32 v21, 0
	s_mov_b32 s0, s22
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[13:14], 2, v[9:10]
	v_lshlrev_b64 v[15:16], 2, v[11:12]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v12, vcc_lo, s10, v13
	v_add_co_ci_u32_e32 v13, vcc_lo, s11, v14, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v14, vcc_lo, s8, v15
	v_add_co_ci_u32_e32 v15, vcc_lo, s9, v16, vcc_lo
	v_dual_mov_b32 v17, v6 :: v_dual_mov_b32 v16, v5
.LBB2_8:                                ; %.lr.ph
                                        ;   Parent Loop BB2_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	global_load_b32 v3, v[14:15], off
	global_load_b32 v10, v[12:13], off
	global_load_b32 v22, v[16:17], off
	v_add_co_u32 v16, vcc_lo, v16, 4
	v_add_co_ci_u32_e32 v17, vcc_lo, 0, v17, vcc_lo
	v_add_co_u32 v12, vcc_lo, v12, 4
	v_add_co_ci_u32_e32 v13, vcc_lo, 0, v13, vcc_lo
	v_add_co_u32 v14, vcc_lo, v14, 4
	v_add_co_ci_u32_e32 v15, vcc_lo, 0, v15, vcc_lo
	s_add_i32 s0, s0, -1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	s_cmp_eq_u32 s0, 0
	s_waitcnt vmcnt(1)
	v_mul_f32_e32 v3, v3, v10
	s_waitcnt vmcnt(0)
	v_fmac_f32_e32 v21, v3, v22
	s_cbranch_scc0 .LBB2_8
	s_branch .LBB2_10
.LBB2_9:                                ;   in Loop: Header=BB2_6 Depth=1
	v_mov_b32_e32 v21, 0
.LBB2_10:                               ; %._crit_edge
                                        ;   in Loop: Header=BB2_6 Depth=1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_cmp_eq_f32_e64 s0, 1.0, v21
	global_load_b32 v7, v[7:8], off
	v_add_nc_u32_e32 v2, 3, v2
	v_cndmask_b32_e64 v3, v20, 1.0, s0
	v_cmp_neq_f32_e32 vcc_lo, 0, v3
	v_cmp_neq_f32_e64 s14, v3, |v3|
	v_cndmask_b32_e32 v10, 1.0, v21, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_frexp_mant_f32_e64 v12, |v10|
	v_cmp_gt_f32_e32 vcc_lo, 0x3f2aaaab, v12
	v_cndmask_b32_e64 v13, 0, 1, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ldexp_f32 v14, v12, v13
	v_cndmask_b32_e64 v12, s23, 1.0, s0
	v_add_f32_e32 v15, 1.0, v14
	v_add_f32_e32 v23, -1.0, v14
	s_delay_alu instid0(VALU_DEP_3)
	v_cmp_neq_f32_e64 s0, 0, v12
	v_cmp_lt_f32_e64 s15, |v10|, 1.0
	v_cmp_class_f32_e64 s20, v10, 0x204
	v_add_f32_e32 v16, -1.0, v15
	v_rcp_f32_e32 v22, v15
	v_cndmask_b32_e64 v13, 1.0, v21, s0
	s_waitcnt_depctr 0xfff
	v_dual_sub_f32 v17, v14, v16 :: v_dual_mul_f32 v24, v23, v22
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v25, v15, v24
	v_fma_f32 v21, v24, v15, -v25
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_fmac_f32 v21, v24, v17 :: v_dual_add_nc_u32 v14, v11, v0
	v_ashrrev_i32_e32 v15, 31, v14
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_add_f32_e32 v26, v25, v21
	v_add_nc_u32_e32 v16, v9, v0
	v_frexp_mant_f32_e64 v9, |v13|
	v_lshlrev_b64 v[14:15], 2, v[14:15]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_gt_f32_e64 s0, 0x3f2aaaab, v9
	v_add_co_u32 v14, s1, s8, v14
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e64 v15, s1, s9, v15, s1
	v_cndmask_b32_e64 v11, 0, 1, s0
	global_load_b32 v14, v[14:15], off
	v_ldexp_f32 v9, v9, v11
	v_sub_f32_e32 v11, v23, v26
	v_ashrrev_i32_e32 v17, 31, v16
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f32_e32 v15, -1.0, v9
	v_sub_f32_e32 v23, v23, v11
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[16:17], 2, v[16:17]
	v_sub_f32_e32 v25, v26, v25
	v_sub_f32_e32 v23, v23, v26
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v16, s1, s10, v16
	v_add_co_ci_u32_e64 v17, s1, s11, v17, s1
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_sub_f32_e32 v21, v25, v21
	v_cmp_eq_f32_e64 s1, 0, v10
	global_load_b32 v16, v[16:17], off
	v_add_f32_e32 v17, v21, v23
	v_add_f32_e32 v8, v11, v17
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_add_f32 v27, 1.0, v9 :: v_dual_mul_f32 v8, v22, v8
	v_rcp_f32_e32 v28, v27
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_add_f32 v11, -1.0, v27 :: v_dual_add_f32 v22, v24, v8
	v_sub_f32_e32 v9, v9, v11
	s_waitcnt_depctr 0xfff
	v_mul_f32_e32 v21, v15, v28
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v17, v27, v21
	v_fma_f32 v11, v21, v27, -v17
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v11, v21, v9
	v_sub_f32_e32 v9, v22, v24
	v_dual_mul_f32 v24, v22, v22 :: v_dual_add_f32 v23, v17, v11
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v8, v8, v9
	v_fma_f32 v25, v22, v22, -v24
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_sub_f32_e32 v9, v15, v23
	v_dual_sub_f32 v17, v23, v17 :: v_dual_add_f32 v26, v8, v8
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v15, v15, v9
	v_sub_f32_e32 v11, v17, v11
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_sub_f32_e32 v15, v15, v23
	v_add_f32_e32 v11, v11, v15
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f32_e32 v9, v9, v11
	v_mul_f32_e32 v9, v28, v9
	v_fmac_f32_e32 v25, v22, v26
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_f32_e32 v17, v24, v25
	v_fmaak_f32 v15, s13, v17, 0x3e91f4c4
	v_mul_f32_e32 v29, v22, v17
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fmaak_f32 v11, v17, v15, 0x3ecccdef
	v_sub_f32_e32 v15, v17, v24
	v_add_f32_e32 v24, v21, v9
	v_mul_f32_e32 v23, v17, v11
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_sub_f32_e32 v15, v25, v15
	v_sub_f32_e32 v21, v24, v21
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v25, v17, v11, -v23
	v_sub_f32_e32 v9, v9, v21
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fmac_f32_e32 v25, v15, v11
	v_mul_f32_e32 v11, v24, v24
	v_add_f32_e32 v27, v9, v9
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f32_e32 v21, v23, v25
	v_fma_f32 v26, v24, v24, -v11
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_sub_f32 v23, v21, v23 :: v_dual_add_f32 v28, 0x3f2aaaaa, v21
	v_fmac_f32_e32 v26, v24, v27
	v_fma_f32 v27, v17, v22, -v29
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_sub_f32_e32 v23, v25, v23
	v_dual_add_f32 v25, 0xbf2aaaaa, v28 :: v_dual_add_f32 v30, v11, v26
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fmac_f32_e32 v27, v17, v8
	v_ldexp_f32 v8, v8, 1
	v_add_f32_e32 v23, 0x31739010, v23
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_3) | instid1(VALU_DEP_4)
	v_sub_f32_e32 v21, v21, v25
	v_fmaak_f32 v17, s13, v30, 0x3e91f4c4
	v_fmac_f32_e32 v27, v15, v22
	v_sub_f32_e32 v11, v30, v11
	v_add_f32_e32 v21, v23, v21
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fmaak_f32 v15, v30, v17, 0x3ecccdef
	v_add_f32_e32 v25, v29, v27
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_4) | instid1(VALU_DEP_4)
	v_sub_f32_e32 v11, v26, v11
	v_frexp_exp_i32_f32_e32 v17, v10
	v_add_f32_e32 v23, v28, v21
	v_mul_f32_e32 v31, v30, v15
	v_sub_f32_e32 v29, v25, v29
	v_subrev_co_ci_u32_e32 v17, vcc_lo, 0, v17, vcc_lo
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_sub_f32_e32 v28, v28, v23
	v_mul_f32_e32 v32, v25, v23
	v_fma_f32 v26, v30, v15, -v31
	v_cvt_f32_i32_e32 v17, v17
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f32_e32 v21, v21, v28
	v_fma_f32 v28, v25, v23, -v32
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fmac_f32_e32 v26, v11, v15
	v_sub_f32_e32 v15, v27, v29
	v_dual_fmac_f32 v28, v25, v21 :: v_dual_add_f32 v21, v31, v26
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_dual_mul_f32 v25, 0x3f317218, v17 :: v_dual_fmac_f32 v28, v15, v23
	v_ldexp_f32 v15, v22, 1
	v_sub_f32_e32 v23, v21, v31
	v_dual_add_f32 v27, 0x3f2aaaaa, v21 :: v_dual_mul_f32 v22, v24, v30
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f32_e32 v29, v32, v28
	v_sub_f32_e32 v23, v26, v23
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f32_e32 v26, 0xbf2aaaaa, v27
	v_fma_f32 v31, v30, v24, -v22
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_dual_add_f32 v33, v15, v29 :: v_dual_sub_f32 v32, v29, v32
	v_add_f32_e32 v23, 0x31739010, v23
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_dual_sub_f32 v21, v21, v26 :: v_dual_sub_f32 v26, v28, v32
	v_fma_f32 v28, 0x3f317218, v17, -v25
	v_add_f32_e32 v8, v8, v26
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v28, 0xb102e308, v17
	s_waitcnt vmcnt(0)
	v_dual_mul_f32 v14, v14, v16 :: v_dual_sub_f32 v15, v33, v15
	v_mul_f32_e32 v7, v14, v7
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v15, v29, v15
	v_frexp_exp_i32_f32_e32 v29, v13
	v_dual_add_f32 v8, v8, v15 :: v_dual_fmac_f32 v31, v30, v9
	v_add_f32_e32 v15, v25, v28
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_subrev_co_ci_u32_e64 v29, vcc_lo, 0, v29, s0
	v_ldexp_f32 v9, v9, 1
	v_fmac_f32_e32 v31, v11, v24
	v_add_f32_e32 v11, v23, v21
	v_sub_f32_e32 v25, v15, v25
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f32_e32 v21, v22, v31
	v_add_f32_e32 v17, v27, v11
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_sub_f32 v25, v28, v25 :: v_dual_sub_f32 v22, v21, v22
	v_sub_f32_e32 v23, v27, v17
	v_add_f32_e32 v27, v33, v8
	v_mul_f32_e32 v26, v21, v17
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_sub_f32_e32 v22, v31, v22
	v_add_f32_e32 v11, v11, v23
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f32_e32 v30, v15, v27
	v_fma_f32 v23, v21, v17, -v26
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v31, v30, v15
	v_fmac_f32_e32 v23, v21, v11
	v_sub_f32_e32 v21, v27, v33
	v_cvt_f32_i32_e32 v11, v29
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_sub_f32_e32 v28, v30, v31
	v_fmac_f32_e32 v23, v22, v17
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_dual_sub_f32 v8, v8, v21 :: v_dual_sub_f32 v21, v27, v31
	v_ldexp_f32 v17, v24, 1
	v_dual_sub_f32 v15, v15, v28 :: v_dual_add_f32 v22, v26, v23
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_add_f32 v27, v25, v8 :: v_dual_mul_f32 v24, 0x3f317218, v11
	v_add_f32_e32 v15, v21, v15
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_f32_e32 v21, v17, v22
	v_sub_f32_e32 v26, v22, v26
	v_sub_f32_e32 v28, v27, v25
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_f32_e32 v15, v27, v15
	v_sub_f32_e32 v17, v21, v17
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_sub_f32_e32 v23, v23, v26
	v_sub_f32_e32 v27, v27, v28
	v_fma_f32 v26, 0x3f317218, v11, -v24
	v_add_f32_e32 v29, v30, v15
	v_sub_f32_e32 v17, v22, v17
	v_dual_add_f32 v9, v9, v23 :: v_dual_sub_f32 v8, v8, v28
	v_sub_f32_e32 v22, v25, v27
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_dual_sub_f32 v23, v29, v30 :: v_dual_fmac_f32 v26, 0xb102e308, v11
	v_dual_add_f32 v9, v9, v17 :: v_dual_mul_f32 v30, 0.5, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_dual_add_f32 v8, v8, v22 :: v_dual_sub_f32 v11, v15, v23
	v_add_f32_e32 v15, v24, v26
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_f32_e32 v17, v21, v9
	v_trunc_f32_e32 v28, v3
	v_dual_add_f32 v8, v8, v11 :: v_dual_sub_f32 v23, v15, v24
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_f32_e32 v11, v15, v17
	v_sub_f32_e32 v21, v17, v21
	v_cmp_eq_f32_e64 s0, v28, v3
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_dual_add_f32 v22, v29, v8 :: v_dual_sub_f32 v23, v26, v23
	v_dual_sub_f32 v24, v11, v15 :: v_dual_sub_f32 v9, v9, v21
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_sub_f32_e32 v25, v22, v29
	v_mul_f32_e32 v27, v3, v22
	v_sub_f32_e32 v26, v11, v24
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_dual_sub_f32 v17, v17, v24 :: v_dual_sub_f32 v8, v8, v25
	v_fma_f32 v22, v3, v22, -v27
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_sub_f32_e32 v15, v15, v26
	v_cmp_class_f32_e64 vcc_lo, v27, 0x204
	v_fmac_f32_e32 v22, v3, v8
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_dual_add_f32 v8, v23, v9 :: v_dual_add_f32 v15, v17, v15
	v_add_f32_e32 v17, v27, v22
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_sub_f32_e32 v21, v8, v23
	v_add_f32_e32 v15, v8, v15
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e32 v24, v17, v27, vcc_lo
	v_dual_sub_f32 v8, v8, v21 :: v_dual_add_f32 v25, v11, v15
	v_sub_f32_e32 v9, v9, v21
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cmp_eq_f32_e32 vcc_lo, 0x42b17218, v24
	v_dual_sub_f32 v8, v23, v8 :: v_dual_sub_f32 v11, v25, v11
	v_cndmask_b32_e64 v21, 0, 0x37000000, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_dual_add_f32 v8, v9, v8 :: v_dual_sub_f32 v9, v15, v11
	v_cmp_gt_f32_e32 vcc_lo, 0, v3
	v_sub_f32_e32 v23, v24, v21
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_add_f32 v8, v8, v9 :: v_dual_mul_f32 v11, 0x3fb8aa3b, v23
	v_add_f32_e32 v26, v25, v8
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f32 v9, 0x3fb8aa3b, v23, -v11
	v_rndne_f32_e32 v15, v11
	v_sub_f32_e32 v25, v26, v25
	v_mul_f32_e32 v29, v12, v26
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fmac_f32_e32 v9, 0x32a5705f, v23
	v_dual_sub_f32 v11, v11, v15 :: v_dual_sub_f32 v8, v8, v25
	v_cvt_i32_f32_e32 v15, v15
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_cmp_class_f32_e64 s2, v29, 0x204
	v_trunc_f32_e32 v25, v30
	v_add_f32_e32 v9, v11, v9
	v_fma_f32 v11, v12, v26, -v29
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_exp_f32_e32 v9, v9
	v_dual_fmac_f32 v11, v12, v8 :: v_dual_sub_f32 v8, v17, v27
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_add_f32 v17, v29, v11 :: v_dual_sub_f32 v8, v22, v8
	s_waitcnt_depctr 0xfff
	v_ldexp_f32 v9, v9, v15
	v_cndmask_b32_e64 v15, v17, v29, s2
	v_cmp_neq_f32_e64 s2, 0x7f800000, |v24|
	v_dual_sub_f32 v17, v17, v29 :: v_dual_mul_f32 v24, 0.5, v12
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v8, 0, v8, s2
	v_cmp_ngt_f32_e64 s2, 0xc2ce8ed0, v23
	v_dual_sub_f32 v11, v11, v17 :: v_dual_add_f32 v8, v21, v8
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v9, 0, v9, s2
	v_cmp_eq_f32_e64 s2, 0x42b17218, v15
	v_trunc_f32_e32 v21, v12
	v_cndmask_b32_e64 v22, 0, 0x37000000, s2
	v_cmp_nlt_f32_e64 s2, 0x42b17218, v23
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_sub_f32_e32 v23, v15, v22
	v_cndmask_b32_e64 v9, 0x7f800000, v9, s2
	v_cmp_neq_f32_e64 s2, v25, v30
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f32_e32 v26, 0x3fb8aa3b, v23
	v_fma_f32 v8, v9, v8, v9
	v_cmp_eq_f32_e64 s3, 0x7f800000, v9
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s2, s0, s2
	v_cndmask_b32_e64 v25, 1.0, v10, s2
	v_fma_f32 v27, 0x3fb8aa3b, v23, -v26
	s_delay_alu instid0(VALU_DEP_3)
	v_cndmask_b32_e64 v8, v8, v9, s3
	s_xor_b32 s3, s14, s15
	v_rndne_f32_e32 v28, v26
	v_cndmask_b32_e64 v9, |v3|, 0, s3
	s_xor_b32 s3, vcc_lo, s1
	v_bfi_b32 v8, 0x7fffffff, v8, v25
	v_cmp_gt_f32_e32 vcc_lo, 0, v10
	v_cndmask_b32_e64 v25, 0x7f800000, 0, s3
	v_dual_fmac_f32 v27, 0x32a5705f, v23 :: v_dual_sub_f32 v26, v26, v28
	s_delay_alu instid0(VALU_DEP_4)
	v_cndmask_b32_e64 v30, 0x7fc00000, v8, s0
	v_cmp_eq_f32_e64 s0, |v10|, 1.0
	v_cndmask_b32_e64 v31, 0, v10, s2
	v_cvt_i32_f32_e32 v16, v28
	v_add_f32_e32 v26, v26, v27
	v_cndmask_b32_e32 v8, v8, v30, vcc_lo
	v_cndmask_b32_e64 v9, v9, |v10|, s0
	v_cmp_class_f32_e64 s0, v3, 0x204
	v_cmp_eq_f32_e32 vcc_lo, v21, v12
	v_bfi_b32 v21, 0x7fffffff, v25, v31
	v_cmp_neq_f32_e64 s14, v12, |v12|
	v_cmp_lt_f32_e64 s15, |v13|, 1.0
	v_cndmask_b32_e64 v8, v8, v9, s0
	s_or_b32 s0, s1, s20
	v_exp_f32_e32 v9, v26
	v_cmp_gt_f32_e64 s2, 0, v12
	v_cmp_eq_f32_e64 s3, 0, v13
	v_cndmask_b32_e64 v8, v8, v21, s0
	v_cmp_o_f32_e64 s0, v10, v3
	s_xor_b32 s14, s14, s15
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_xor_b32 s2, s2, s3
	v_cndmask_b32_e64 v3, 0x7fc00000, v8, s0
	v_cmp_neq_f32_e64 s0, 0x7f800000, |v15|
	s_delay_alu instid0(TRANS32_DEP_1)
	v_ldexp_f32 v8, v9, v16
	v_cndmask_b32_e64 v17, 0x7f800000, 0, s2
	v_cmp_eq_f32_e64 s2, |v13|, 1.0
	v_div_scale_f32 v10, null, v3, v3, v7
	v_cndmask_b32_e64 v9, 0, v11, s0
	v_cmp_ngt_f32_e64 s0, 0xc2ce8ed0, v23
	v_trunc_f32_e32 v11, v24
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_rcp_f32_e32 v15, v10
	v_add_f32_e32 v9, v22, v9
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cndmask_b32_e64 v8, 0, v8, s0
	v_cmp_nlt_f32_e64 s0, 0x42b17218, v23
	v_cndmask_b32_e64 v8, 0x7f800000, v8, s0
	v_cmp_neq_f32_e64 s0, v11, v24
	s_waitcnt_depctr 0xfff
	v_fma_f32 v16, -v10, v15, 1.0
	v_fma_f32 v9, v8, v9, v8
	v_cmp_eq_f32_e64 s1, 0x7f800000, v8
	s_and_b32 s0, vcc_lo, s0
	s_delay_alu instid0(VALU_DEP_3)
	v_fmac_f32_e32 v15, v16, v15
	v_cndmask_b32_e64 v11, 1.0, v13, s0
	v_cndmask_b32_e64 v16, |v12|, 0, s14
	v_cndmask_b32_e64 v8, v9, v8, s1
	v_div_scale_f32 v9, s1, v7, v3, v7
	v_cndmask_b32_e64 v23, 0, v13, s0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_cndmask_b32_e64 v16, v16, |v13|, s2
	v_bfi_b32 v8, 0x7fffffff, v8, v11
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_mul_f32_e32 v11, v9, v15
	v_cmp_class_f32_e64 s0, v13, 0x204
	v_bfi_b32 v17, 0x7fffffff, v17, v23
	v_cndmask_b32_e32 v22, 0x7fc00000, v8, vcc_lo
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_fma_f32 v21, -v10, v11, v9
	v_cmp_gt_f32_e32 vcc_lo, 0, v13
	v_dual_fmac_f32 v11, v21, v15 :: v_dual_cndmask_b32 v8, v8, v22
	v_cmp_class_f32_e64 vcc_lo, v12, 0x204
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f32 v9, -v10, v11, v9
	v_cndmask_b32_e32 v8, v8, v16, vcc_lo
	s_mov_b32 vcc_lo, s1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f32 v9, v9, v15, v11
	s_or_b32 vcc_lo, s3, s0
	v_cndmask_b32_e32 v8, v8, v17, vcc_lo
	v_cmp_o_f32_e32 vcc_lo, v13, v12
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_fixup_f32 v3, v9, v3, v7
	v_cndmask_b32_e32 v7, 0x7fc00000, v8, vcc_lo
	v_cmp_ge_i32_e32 vcc_lo, v2, v18
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_f32_e32 v19, v19, v3
	v_fmac_f32_e32 v1, v7, v14
	s_or_b32 s12, vcc_lo, s12
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s12
	s_cbranch_execnz .LBB2_6
; %bb.11:                               ; %Flow137
	s_or_b32 exec_lo, exec_lo, s12
.LBB2_12:                               ; %Flow139
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	s_or_b32 exec_lo, exec_lo, s4
	v_add_nc_u32_e32 v2, v4, v0
	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, s16, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v5, vcc_lo, s17, v3, vcc_lo
	global_load_b32 v0, v[4:5], off
	s_waitcnt vmcnt(0)
	v_mul_f32_e32 v0, v19, v0
	v_div_scale_f32 v4, null, v1, v1, v0
	v_div_scale_f32 v7, vcc_lo, v0, v1, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f32_e32 v5, v4
	s_waitcnt_depctr 0xfff
	v_fma_f32 v6, -v4, v5, 1.0
	v_fmac_f32_e32 v5, v6, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v6, v7, v5
	v_fma_f32 v8, -v4, v6, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fmac_f32_e32 v6, v8, v5
	v_fma_f32 v4, -v4, v6, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f32 v4, v4, v5, v6
	v_div_fixup_f32 v4, v4, v1, v0
	v_add_co_u32 v0, vcc_lo, s18, v2
	v_add_co_ci_u32_e32 v1, vcc_lo, s19, v3, vcc_lo
	global_store_b32 v[0:1], v4, off
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z13factorCKernelPiPfS0_S0_S0_S0_iiiiif
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 328
		.amdhsa_user_sgpr_count 14
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 34
		.amdhsa_next_free_sgpr 24
		.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	_Z13factorCKernelPiPfS0_S0_S0_S0_iiiiif, .Lfunc_end2-_Z13factorCKernelPiPfS0_S0_S0_S0_iiiiif
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 3272
; NumSgprs: 26
; NumVgprs: 34
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 3
; VGPRBlocks: 4
; NumSGPRsForWavesPerEU: 26
; NumVGPRsForWavesPerEU: 34
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .offset:         48
        .size:           4
        .value_kind:     by_value
      - .offset:         52
        .size:           4
        .value_kind:     by_value
      - .offset:         56
        .size:           4
        .value_kind:     by_value
      - .offset:         60
        .size:           4
        .value_kind:     by_value
      - .offset:         64
        .size:           4
        .value_kind:     by_value
      - .offset:         68
        .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:           _Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif
    .private_segment_fixed_size: 0
    .sgpr_count:     26
    .sgpr_spill_count: 0
    .symbol:         _Z13factorAKernelPiPfS0_S0_S0_S0_iiiiif.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     34
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .offset:         48
        .size:           4
        .value_kind:     by_value
      - .offset:         52
        .size:           4
        .value_kind:     by_value
      - .offset:         56
        .size:           4
        .value_kind:     by_value
      - .offset:         60
        .size:           4
        .value_kind:     by_value
      - .offset:         64
        .size:           4
        .value_kind:     by_value
      - .offset:         68
        .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:           _Z13factorBKernelPiPfS0_S0_S0_S0_iiiiif
    .private_segment_fixed_size: 0
    .sgpr_count:     26
    .sgpr_spill_count: 0
    .symbol:         _Z13factorBKernelPiPfS0_S0_S0_S0_iiiiif.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     34
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .offset:         48
        .size:           4
        .value_kind:     by_value
      - .offset:         52
        .size:           4
        .value_kind:     by_value
      - .offset:         56
        .size:           4
        .value_kind:     by_value
      - .offset:         60
        .size:           4
        .value_kind:     by_value
      - .offset:         64
        .size:           4
        .value_kind:     by_value
      - .offset:         68
        .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:           _Z13factorCKernelPiPfS0_S0_S0_S0_iiiiif
    .private_segment_fixed_size: 0
    .sgpr_count:     26
    .sgpr_spill_count: 0
    .symbol:         _Z13factorCKernelPiPfS0_S0_S0_S0_iiiiif.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     34
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
