#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
// For the CUDA runtime routines (prefixed with "cuda_")
#include <cuda_runtime.h>

//#include <helper_cuda.h>

#define DEBUG 0
#define UNKNOWN_NUM 188
#define POLY_NUM 191
#define PARAM_NUM 36

#define ENUM_NUM 16 //16
#define CHECK_NUM 9
#define SOL_MAX_NUM 200

//#define SET_VAL (((value_t)14764175488)<< ENUM_NUM)

#define BLOCK_NUM 32 //2^5
#define THREAD_NUM  256 // 2^8
#define THREADS_SHIFT 13 // (5+8)
typedef long value_t; // to save values of variables.

//typedef unsigned long constpart_t; // the part with no parameters.
typedef unsigned long linearpart_t; // to save 32 unknowns and 1 contants.
typedef unsigned long squarepart_t;

typedef unsigned long oripoly_t;



static inline void binary_print(value_t val, int len) {

    for (int i = 0; i < len; i++) {
        if (val & ((value_t)1 << i)) {
            printf("1");
        } else {
            printf("0");
        }

        if ((i + 1) % 5 == 0) {
            printf(" ");
        }
    }

}


typedef unsigned char UINT8;
typedef unsigned long long UINT64;
typedef UINT64 tKeccakLane;

//#define KeccakReference
#define maxNrRounds 24
#define nrLanes 25
#define index(x, y) (((x)%5)+5*((y)%5))
#define KeccakP1600_stateSizeInBytes    200


static tKeccakLane KeccakRoundConstants[maxNrRounds];
static unsigned int KeccakRhoOffsets[nrLanes];

__constant__ tKeccakLane const_KeccakRoundConstants[maxNrRounds] =
{
    0x0000000000000001,
    0x0000000000008082,
    0x800000000000808a,
    0x8000000080008000,
    0x000000000000808b,
    0x0000000080000001,
    0x8000000080008081,
    0x8000000000008009,
    0x000000000000008a,
    0x0000000000000088,
    0x0000000080008009,
    0x000000008000000a,
    0x000000008000808b,
    0x800000000000008b,
    0x8000000000008089,
    0x8000000000008003,
    0x8000000000008002,
    0x8000000000000080,
    0x000000000000800a,
    0x800000008000000a,
    0x8000000080008081,
    0x8000000000008080,
    0x0000000080000001,
    0x8000000080008008,
};

__constant__ unsigned int const_KeccakRhoOffsets[nrLanes] =
{
     0,  1, 62, 28, 27, 36, 44,  6, 55, 20,  3, 10, 43, 25, 39, 41, 45, 15, 21,  8, 18,  2, 61, 56, 14
};

void KeccakP1600_InitializeRoundConstants(void);
void KeccakP1600_InitializeRhoOffsets(void);
static int LFSR86540(UINT8 *LFSR);
int displayLevel = 10;

 void KeccakP1600_StaticInitialize(void)
{
    if (sizeof(tKeccakLane) != 8) {
        printf("tKeccakLane should be 64-bit wide\n");
        abort();
    }
    KeccakP1600_InitializeRoundConstants();
    KeccakP1600_InitializeRhoOffsets();
}

 void KeccakP1600_InitializeRoundConstants(void)
{
    UINT8 LFSRstate = 0x01;
    unsigned int i, j, bitPosition;

    for(i=0; i<maxNrRounds; i++) {
        KeccakRoundConstants[i] = 0;
        for(j=0; j<7; j++) {
            bitPosition = (1<<j)-1; /* 2^j-1 */
            if (LFSR86540(&LFSRstate))
                KeccakRoundConstants[i] ^= (tKeccakLane)1<<bitPosition;
        }
    }
}

 void KeccakP1600_InitializeRhoOffsets(void)
{
    unsigned int x, y, t, newX, newY;

    KeccakRhoOffsets[index(0, 0)] = 0;
    x = 1;
    y = 0;
    for(t=0; t<24; t++) {
        KeccakRhoOffsets[index(x, y)] = ((t+1)*(t+2)/2) % 64;
        newX = (0*x+1*y) % 5;
        newY = (2*x+3*y) % 5;
        x = newX;
        y = newY;
    }
}

static int LFSR86540(UINT8 *LFSR)
{
    int result = ((*LFSR) & 0x01) != 0;
    if (((*LFSR) & 0x80) != 0)
    /* Primitive polynomial over GF(2): x^8+x^6+x^5+x^4+1 */
        (*LFSR) = ((*LFSR) << 1) ^ 0x71;
    else
        (*LFSR) <<= 1;
    return result;
}

__host__ __device__ void KeccakP1600_Initialize(void *state)
{
    memset(state, 0, 1600/8);
}


/* ---------------------------------------------------------------- */

__host__ __device__ void KeccakP1600_AddByte(void *state, unsigned char byte, unsigned int offset)
{
    assert(offset < 200);
    ((unsigned char *)state)[offset] ^= byte;
}

/* ---------------------------------------------------------------- */

__host__ __device__ void KeccakP1600_AddBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int length)
{
    unsigned int i;

    assert(offset < 200);
    assert(offset+length <= 200);
    for(i=0; i<length; i++)
        ((unsigned char *)state)[offset+i] ^= data[i];
}

/* ---------------------------------------------------------------- */

__host__ __device__ void KeccakP1600_OverwriteBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int length)
{
    assert(offset < 200);
    assert(offset+length <= 200);
    memcpy((unsigned char*)state+offset, data, length);
}

/* ---------------------------------------------------------------- */

__host__ __device__ void KeccakP1600_OverwriteWithZeroes(void *state, unsigned int byteCount)
{
    assert(byteCount <= 200);
    memset(state, 0, byteCount);
}


#define ROL64(a, offset) ((offset != 0) ? ((((tKeccakLane)a) << offset) ^ (((tKeccakLane)a) >> (64-offset))) : a)

static __host__ __device__ void theta(tKeccakLane *A)
{
    unsigned int x, y;
    tKeccakLane C[5]={0,0,0,0,0}, D[5]={0,0,0,0,0};

    for(x=0; x<5; x++) {
        C[x] = 0;
        for(y=0; y<5; y++)
            C[x] ^= A[index(x, y)];
    }
    for(x=0; x<5; x++)
        D[x] = ROL64(C[(x+1)%5], 1) ^ C[(x+4)%5];
    for(x=0; x<5; x++)
        for(y=0; y<5; y++)
            A[index(x, y)] ^= D[x];
}

static void rho(tKeccakLane *A)
{
    unsigned int x, y;

    for(x=0; x<5; x++) for(y=0; y<5; y++)
        A[index(x, y)] = ROL64(A[index(x, y)], KeccakRhoOffsets[index(x, y)]);
}

static __device__ void rho_Device(tKeccakLane *A)
{
    unsigned int x, y;

    for(x=0; x<5; x++) for(y=0; y<5; y++)
        A[index(x, y)] = ROL64(A[index(x, y)], const_KeccakRhoOffsets[index(x, y)]);
}

static __host__ __device__ void pi(tKeccakLane *A)
{
    unsigned int x, y;
    tKeccakLane tempA[25];

    for(x=0; x<5; x++) for(y=0; y<5; y++)
        tempA[index(x, y)] = A[index(x, y)];
    for(x=0; x<5; x++) for(y=0; y<5; y++)
        A[index(0*x+1*y, 2*x+3*y)] = tempA[index(x, y)];
}

static __host__ __device__ void chi(tKeccakLane *A)
{
    unsigned int x, y;
    tKeccakLane C[5];

    for(y=0; y<5; y++) {
        for(x=0; x<5; x++)
            C[x] = A[index(x, y)] ^ ((~A[index(x+1, y)]) & A[index(x+2, y)]);
        for(x=0; x<5; x++)
            A[index(x, y)] = C[x];
    }
}

static void iota(tKeccakLane *A, unsigned int indexRound)
{
    A[index(0, 0)] ^= KeccakRoundConstants[indexRound];
}

static __device__ void iota_Device(tKeccakLane *A, unsigned int indexRound)
{
    A[index(0, 0)] ^= const_KeccakRoundConstants[indexRound];
}

void KeccakP1600Round(tKeccakLane *state, unsigned int indexRound)
{

    theta(state);
    rho(state);
    pi(state);
    chi(state);
    iota(state, indexRound);
}

__device__ void KeccakP1600Round_Device(tKeccakLane *state,unsigned int indexRound) {

	theta(state);
	rho_Device(state);
	pi(state);
	chi(state);
	iota_Device(state, indexRound);

}

void stateInit(tKeccakLane state[25]) {
	KeccakP1600_StaticInitialize();


	FILE *f = fopen("../data/state_files/messaged_state.txt", "r+"); //todo path
	char line[100];

	for (int k = 0; k < 5; k++) {
		fgets(line, 100, f);
		for (int i = 0; i < 5; i++) {
			char hex_s = 0;
			UINT64 tmp_val = 0;
			for (int j = 0; j < 17; j++) {

				if (line[i * 17 + j] <= '9' && line[i * 17 + j] >= '0') {
					hex_s = line[i * 17 + j] - '0';
				} else {
					hex_s = line[i * 17 + j] - 'a' + 10;
				}

				if (j < 16) {
					//printf("%c", line[i*17 + j] );
					tmp_val = (tmp_val << 4) ^ (hex_s);
				}

			}

			state[k * 5 + i] = tmp_val;
			//printf("%08x%08x ", (unsigned int) (state[k * 5 + i] >> 32),(unsigned int) (state[k * 5 + i] & 0xFFFFFFFFLU));
		}
	}

	fclose(f);

}

void getStates(tKeccakLane state[25], oripoly_t var_all[640][4], value_t val,
		value_t solutions[3]) {
	value_t val_sol[4];
	val_sol[3] = solutions[2];
	val_sol[2] = solutions[1];
	val_sol[1] = solutions[0];
	val_sol[0] = val ^ ((value_t) 1 << PARAM_NUM);

	for (int i = 0; i < 640; i++) {
		value_t w[4] = { 0, 0, 0, 0 };
		for (int j = 0; j < 4; j++) {
			w[j] = var_all[i][j] & val_sol[j];

		}

		w[0] = w[0] ^ w[1] ^ w[2] ^ w[3];
		w[0] = (w[0]) ^ (w[0] >> 32);
		w[0] = (w[0]) ^ (w[0] >> 16);
		w[0] = (w[0]) ^ (w[0] >> 8);
		w[0] = (w[0]) ^ (w[0] >> 4);
		w[0] = (w[0]) ^ (w[0] >> 2);
		w[0] = (w[0]) ^ (w[0] >> 1);
		if (w[0] & (value_t) 1) {
			int n = (i / 64 > 4) ? (i / 64 + 5) : i / 64;
			state[n] ^= ((UINT64) 1) << (i % 64);

		}
	}


}

int checkHashValue(tKeccakLane state[25], tKeccakLane hashvalue[4]) {


	tKeccakLane state_copy[25];
	for(int i = 0; i < 25; i++){
		state_copy[i] = state[i];
	}





	for (int i = 0; i < 3; i++) {
		KeccakP1600Round(state, i);
	}



	int result = 0;
	if(state[0] == hashvalue[0] && state[1] == hashvalue[1] && state[2] == hashvalue[2] && ((state[3] ^= hashvalue[3]) & (0x00000000FFFFFFFF)) == 0){
		printf("Find Preimage!!!\nState after XORed with block2:");
		for (int i = 0; i < 25; i++) {
			binary_print(state_copy[i], 64);
			printf(" ");
			printf("%llu ",state_copy[i]);
		}
		printf("\n");


		result = 1;
	}
	return result;
}




__constant__ tKeccakLane const_state[25];
__constant__ tKeccakLane const_hashvalue[4];


__device__ linearpart_t d_linear_mat[ENUM_NUM * POLY_NUM * 3];
__device__ squarepart_t d_square_mat[ENUM_NUM * POLY_NUM];
__device__ value_t d_var_all[2560];



static inline __host__ __device__ int largestpos(value_t val, int len) {

	for (int i = len - 1; i >= 0; i--) {
		if (val & ((value_t) 1 << i)) {
			return i;
		}
	}

	return -1;
}


static inline __host__ __device__ int largestpos_3(value_t val0, value_t val1,
		value_t val2, int len) {
	int p = 0;
	if (len > 128) {
		p = largestpos(val2, len - 128);
		if (p > -1) {
			return p + 128;
		} else {
			p = largestpos(val1, 64);
			if (p > -1) {
				return p + 64;
			} else {
				p = largestpos(val0, 64);

			}
		}
	} else if (len > 64 && len <= 128) {
		p = largestpos(val1, len - 64);
		if (p > -1) {
			return p + 64;
		} else {
			p = largestpos(val0, 64);

		}
	} else {
		p = largestpos(val0, 64);

	}

	return p;
}


static inline value_t gauss_host(linearpart_t working_mat[POLY_NUM][3],
		const int poly_num, const int unknown_num, value_t solutions[SOL_MAX_NUM][3]) {

	int pos_arr[POLY_NUM]; // bear revised
	int rank = 0;

	for (int pi = 0; pi < POLY_NUM; pi++) {

		if (working_mat[pi][0] == 0 && working_mat[pi][1] == 0 && working_mat[pi][2] == 0) {
			continue;
		}


		pos_arr[pi] = largestpos_3(working_mat[pi][0],working_mat[pi][1],working_mat[pi][2], unknown_num + 1);

		rank++;
		if (pos_arr[pi] == 0) {
			return 0;
		}





		for (int j = pi + 1; j < POLY_NUM; j++) {

			if(working_mat[j][pos_arr[pi]/64] & ((linearpart_t)1 << (pos_arr[pi] % 64))){
                working_mat[j][0] ^= (working_mat[pi][0]);
                working_mat[j][1] ^= (working_mat[pi][1]);
                working_mat[j][2] ^= (working_mat[pi][2]);
            }
		}



	}


	// back
	for (int pi = 0; pi < POLY_NUM; pi++) {

		if (working_mat[pi][0] == 0 && working_mat[pi][1] == 0
				&& working_mat[pi][2] == 0) {
			continue;
		}

		for (int j = 0; j < pi; j++) {
			if (working_mat[j][pos_arr[pi] / 64]
					& ((linearpart_t) 1 << (pos_arr[pi] % 64))) {
				working_mat[j][0] ^= (working_mat[pi][0]);
				working_mat[j][1] ^= (working_mat[pi][1]);
				working_mat[j][2] ^= (working_mat[pi][2]);
			}
		}
	}

	if (rank == unknown_num) {

		// only one solution.
		solutions[0][0] = 0;
		solutions[0][1] = 0;
		solutions[0][2] = 0;
		for (int pi = 0; pi < POLY_NUM; pi++) {

			if (working_mat[pi][0] == 0 && working_mat[pi][1] == 0 &&  working_mat[pi][2] == 0) {
				continue;
			}
			if (working_mat[pi][0] & (linearpart_t)1) {
			    solutions[0][(pos_arr[pi]-1) /64 ] ^= ((value_t)1 << (pos_arr[pi]-1) % 64);
			}
		}

		return 1;

	} else {

		// now troubles come
		solutions[0][0] = 0;
		solutions[0][1] = 0;
		solutions[0][2] = 0;
		value_t sol_num = 1;
		bool appear[UNKNOWN_NUM + 1];
		for(int nn = 0; nn < UNKNOWN_NUM + 1; nn++){

			appear[nn] = 0;

		}



		for (int pi = 0; pi < POLY_NUM; pi++) {

			if (working_mat[pi][0] == 0 && working_mat[pi][1] == 0 && working_mat[pi][2] == 0) {
				continue;
			}

			appear[pos_arr[pi]] = true;
			if (working_mat[pi][0] & (linearpart_t)1) {
			    solutions[0][(pos_arr[pi]-1) /64 ] ^= ((value_t)1 << (pos_arr[pi]-1) % 64);
			}
		}

		// duplicate solutions.
		for (int i = 1; i < UNKNOWN_NUM+1; i++) {  // liting revised

			if (appear[i] == false) {


				for (int j = 0; j < sol_num; j++) {
				    // bear revised
					solutions[j + sol_num][0] = solutions[j][0];
					solutions[j + sol_num][1] = solutions[j][1];
					solutions[j + sol_num][2] = solutions[j][2];
					solutions[j + sol_num][(i-1)/64] ^= ((value_t)1 << ((i-1)%64));
				}

				// bear added
                for (int pi = 0; pi < POLY_NUM; pi++) {
				    if (working_mat[pi][0] == 0 && working_mat[pi][1] == 0 && working_mat[pi][2] == 0) {
			            continue;
		            }

				    for (int j = 0; j < sol_num * ((working_mat[pi][i/64] & (((linearpart_t) 1) << (i%64))) != 0); j++) {

				    	solutions[j + sol_num][(pos_arr[pi] - 1)/64] ^= ((value_t) 1 << ((pos_arr[pi] - 1)% 64));
				    }


				}


				sol_num *= 2;

			}
		}

		return sol_num;

	}

}




static inline __device__ value_t gauss(value_t solutions[SOL_MAX_NUM][3], linearpart_t working_mat[POLY_NUM][3],
		const int poly_num, const int unknown_num) {

	// bear revised
	int pos_arr[POLY_NUM]; // bear revised
	int rank = 0;

	for (int pi = 0; pi < POLY_NUM; pi++) {

		if (working_mat[pi][0] == 0 && working_mat[pi][1] == 0
				&& working_mat[pi][2] == 0) {
			continue;
		}

		pos_arr[pi] = largestpos_3(working_mat[pi][0], working_mat[pi][1],working_mat[pi][2],unknown_num + 1);
		rank++;


		if (pos_arr[pi] == 0) {
			return 0;
		}

		for (int j = pi + 1; j < POLY_NUM; j++) {

			if (working_mat[j][pos_arr[pi] / 64]
					& ((linearpart_t) 1 << (pos_arr[pi] % 64))) {
				working_mat[j][0] ^= (working_mat[pi][0]);
				working_mat[j][1] ^= (working_mat[pi][1]);
				working_mat[j][2] ^= (working_mat[pi][2]);
			}
		}

	}

	// back
	for (int pi = 0; pi < POLY_NUM; pi++) {

		if (working_mat[pi][0] == 0 && working_mat[pi][1] == 0
				&& working_mat[pi][2] == 0) {
			continue;
		}

		for (int j = 0; j < pi; j++) {
			if (working_mat[j][pos_arr[pi] / 64]
					& ((linearpart_t) 1 << (pos_arr[pi] % 64))) {
				working_mat[j][0] ^= (working_mat[pi][0]);
				working_mat[j][1] ^= (working_mat[pi][1]);
				working_mat[j][2] ^= (working_mat[pi][2]);
			}
		}
	}

	if (rank == unknown_num) {

		// only one solution.
		solutions[0][0] = 0;
		solutions[0][1] = 0;
		solutions[0][2] = 0;
		for (int pi = 0; pi < POLY_NUM; pi++) {

			if (working_mat[pi][0] == 0 && working_mat[pi][1] == 0
					&& working_mat[pi][2] == 0) {
				continue;
			}
			if (working_mat[pi][0] & (linearpart_t) 1) {
				solutions[0][(pos_arr[pi] - 1) / 64] ^= ((value_t) 1
						<< (pos_arr[pi] - 1) % 64);
			}
		}

		return 1;

	} else {

		// now troubles come
		// now troubles come
		solutions[0][0] = 0;
		solutions[0][1] = 0;
		solutions[0][2] = 0;
		value_t sol_num = 1;
		//liting revised
		bool appear[UNKNOWN_NUM + 1];
		for(int nn = 0; nn < UNKNOWN_NUM + 1; nn++){

			appear[nn] = 0;

		}

		for (int pi = 0; pi < POLY_NUM; pi++) {

			if (working_mat[pi][0] == 0 && working_mat[pi][1] == 0
					&& working_mat[pi][2] == 0) {
				continue;
			}

			appear[pos_arr[pi]] = true;
			if (working_mat[pi][0] & (linearpart_t) 1) {
				solutions[0][(pos_arr[pi] - 1) / 64] ^= ((value_t) 1
						<< (pos_arr[pi] - 1) % 64);
			}
		}

		// duplicate solutions.
		for (int i = 1; i < UNKNOWN_NUM + 1; i++) {  // liting revised

			if (appear[i] == false) {

				for (int j = 0; j < sol_num; j++) {
					// bear revised
					solutions[j + sol_num][0] = solutions[j][0];
					solutions[j + sol_num][1] = solutions[j][1];
					solutions[j + sol_num][2] = solutions[j][2];
					solutions[j + sol_num][(i - 1) / 64] ^= ((value_t) 1
							<< ((i - 1) % 64));
				}

				// bear added
				for (int pi = 0; pi < POLY_NUM; pi++) {
					if (working_mat[pi][0] == 0 && working_mat[pi][1] == 0
							&& working_mat[pi][2] == 0) {
						continue;
					}

					for (int j = 0;j< sol_num* ((working_mat[pi][i / 64]& (((linearpart_t) 1)<< (i % 64))) != 0);j++) {

						solutions[j + sol_num][(pos_arr[pi] - 1) / 64] ^=((value_t) 1 << ((pos_arr[pi] - 1) % 64));
					}

				}

				sol_num *= 2;

			}
		}

		return sol_num;

	}

}





__global__ void solveLinear(const linearpart_t *d_working_mat_copy,
		const squarepart_t *d_const_mat, value_t *d_val, value_t *d_sol_total,value_t* result) {

	int thidx = blockDim.x * blockIdx.x + threadIdx.x;
	value_t val = d_val[thidx];

	linearpart_t working_mat[POLY_NUM][3]; // initialized as the const part of linear matrix. also used as the results of linear part.
	linearpart_t working_mat_copy[POLY_NUM][3];

	squarepart_t const_mat[POLY_NUM];
	d_sol_total[thidx] = 0;



	//copy data from device
	for (int i = 0; i < POLY_NUM; i++) {
		working_mat_copy[i][0] = d_working_mat_copy[thidx * POLY_NUM * 3 + i*3];
		working_mat_copy[i][1] = d_working_mat_copy[thidx * POLY_NUM * 3 + i*3 + 1];
		working_mat_copy[i][2] = d_working_mat_copy[thidx * POLY_NUM * 3 + i*3 + 2];

		const_mat[i] = d_const_mat[thidx * POLY_NUM + i];
	}

	// main loop.
	for (value_t count = 1; count < (1 << ENUM_NUM); count++) {

		// generate the next gray code
		int pos = 64-__ffsll(__brevll(count ^ (count - 1)));

		val = val ^ ((value_t) 1 << pos);


		for (int pi = 0; pi < POLY_NUM; pi++) {
			working_mat_copy[pi][0] ^= d_linear_mat[pos * POLY_NUM * 3 + pi * 3];
			working_mat_copy[pi][1] ^= d_linear_mat[pos * POLY_NUM * 3 + pi * 3 + 1];
			working_mat_copy[pi][2] ^= d_linear_mat[pos * POLY_NUM * 3 + pi * 3 + 2];

			const_mat[pi] ^= d_square_mat[pos * POLY_NUM + pi];

			working_mat[pi][0] = working_mat_copy[pi][0];
			working_mat[pi][1] = working_mat_copy[pi][1];
			working_mat[pi][2] = working_mat_copy[pi][2];


			value_t w = const_mat[pi] & val;


			working_mat[pi][0] ^= (bool)((__popcll((unsigned long long int)w)) & (value_t) 1);


		}

		value_t solutions[SOL_MAX_NUM][3];
		value_t sol_num = 0;


		// gauss
		sol_num = gauss(solutions, working_mat, POLY_NUM, UNKNOWN_NUM);
		d_sol_total[thidx] += sol_num;
		// verify on 3 round keccak.
		tKeccakLane dState[25];


		for(int s = 0;s < sol_num;s++){
			dState[0] = 0;
			dState[1] = 0;
			dState[2] = 0;
			dState[3] = 0;
			dState[4] = 0;
			dState[5] = const_state[5];
			dState[6] = const_state[6];
			dState[7] = const_state[7];
			dState[8] = const_state[8];
			dState[9] = const_state[9];
			dState[10] = 0;
			dState[11] = 0;
			dState[12] = 0;
			dState[13] = 0;
			dState[14] = 0;
			dState[15] = const_state[15];
			dState[16] = const_state[16];
			dState[17] = const_state[17];
			dState[18] = const_state[18];
			dState[19] = const_state[19];

			dState[20] = const_state[20];
			dState[21] = const_state[21];
			dState[22] = const_state[22];
			dState[23] = const_state[23];
			dState[24] = const_state[24];


			value_t val_sol[4];
			val_sol[3] = solutions[s][2];
			val_sol[2] = solutions[s][1];
			val_sol[1] = solutions[s][0];
			val_sol[0] = val ^ ((value_t)1 << PARAM_NUM);

			for(int i = 0; i< 640; i ++){
				value_t w[4] ={0,0,0,0};
				for(int j = 0; j< 4; j++){
					w[j] = d_var_all[i * 4 + j] & val_sol[j];
				}

				w[0] = w[0] ^w[1]^w[2]^w[3];


				if ((bool)((__popcll((unsigned long long int)w[0])) & (value_t) 1)) {
					int n = (i/64 > 4 )?( i/64 + 5 ): i/64 ;
					dState[n] ^= ((UINT64)1) << (i % 64);
				}
			}


			tKeccakLane state_copy[25];
			for(int i = 0; i < 25; i++){
				state_copy[i] = dState[i];
			}



            KeccakP1600Round_Device(dState, 0);

            KeccakP1600Round_Device(dState, 1);
            KeccakP1600Round_Device(dState, 2);

            if(dState[0] == const_hashvalue[0] && dState[1] == const_hashvalue[1] && dState[2] == const_hashvalue[2] && ((dState[3] ^= const_hashvalue[3]) & (0x00000000FFFFFFFF)) == 0){
				printf("Find Preimage!!! val is %lu.\n",val);
				result[0] = val;
				result[1] = val_sol[1];
				result[2] = val_sol[2];
				result[3] = val_sol[3];
				printf("The messaged state :");
				for (int i = 0; i < 25; i++) {
					printf("%llx ", state_copy[i]);
					if(i % 5 == 0){
						printf("\n");
					}

				}
				printf("\n");
			}

		}
	}

}





int main(int argc, char** argv) {

	printf("read middle state\n");
	tKeccakLane state[25];
	stateInit(state);

	printf("read hash value\n");
   	FILE *hashvalue_file = fopen("../../hash_value.txt", "r+");
	tKeccakLane hashvalue[4] = { 0, 0, 0, 0 };
	char line[20];

	for (int i = 0; i < 4; i++) {
		fgets(line, 20, hashvalue_file);

		char hex_s = 0;
		UINT64 tmp_val = 0;
		for (int j = 0; j < 17; j++) {

			if (line[j] <= '9' && line[j] >= '0') {
				hex_s = line[j] - '0';
			}else if(line[j] <= 'z' && line[j] >= 'a'){
                hex_s = line[j] - 'a' + 10;
            }else if(line[j] <= 'Z' && line[j] >= 'A'){
                hex_s = line[j] - 'A' + 10;
            }

			if (j < 16) {
				//printf("%c", line[i*17 + j] );
				tmp_val = (tmp_val << 4) ^ (hex_s);
			}

		}

		hashvalue[i] = tmp_val;
	}
	fclose (hashvalue_file);

	cudaError_t err0 = cudaSuccess;
	err0 = cudaMemcpyToSymbol(const_state, state, 25 * sizeof(tKeccakLane), 0,
			cudaMemcpyHostToDevice);
	if (err0 != cudaSuccess) {
		printf("Failed to copy host to device(error code %s)!\n",
				cudaGetErrorString(err0));
		exit(EXIT_FAILURE);
	}

	err0 = cudaSuccess;
	err0 = cudaMemcpyToSymbol(const_hashvalue, hashvalue, 4 * sizeof(tKeccakLane), 0,
			cudaMemcpyHostToDevice);
	if (err0 != cudaSuccess) {
		printf("Failed to copy host to device(error code %s)!\n",
				cudaGetErrorString(err0));
		exit(EXIT_FAILURE);
	}



	const int para_num = PARAM_NUM;
	const int enum_num = ENUM_NUM;
	//const int set_num = para_num - enum_num;

	value_t set_val = atol(argv[1])<<THREADS_SHIFT;
//	value_t set_val = 0;
	const int unknown_num = UNKNOWN_NUM;
	const int poly_num = POLY_NUM;

	linearpart_t linear_mat[para_num][poly_num][3];
	linearpart_t working_mat[poly_num][3]; // initialized as the const part of linear matrix. also used as the results of linear part.
	linearpart_t working_mat_copy[poly_num][3];
	linearpart_t working_mat_file[poly_num][3];

	squarepart_t square_mat[para_num][poly_num];
	squarepart_t const_mat[poly_num]; // used to compute the const part from square polys.
	oripoly_t var_all[640][4];

//	cudaSetDevice(0);
	cudaSetDevice(atoi(argv[2]));

	//todo
	FILE *in1 = fopen("../data/mat_files/linear_mat.txt", "r+");
	FILE *in2 = fopen("../data/mat_files/square_mat.txt", "r+");
	FILE *in4 = fopen("../data/mat_files/working_mat.txt", "r+");
	FILE *in5 = fopen("../data/mat_files/totalLinear_mat.txt", "r+");

	char c1, c2, c4, c5;
	for (int i = 0; i < para_num; i++) {
		for (int j = 0; j < poly_num; j++) {
			linear_mat[i][j][0] = 0;
			linear_mat[i][j][1] = 0;
			linear_mat[i][j][2] = 0;
			square_mat[i][j] = 0;

			for (int k = 0; k < 192; k++) {
				fscanf(in1, "%c", &c1);
				while (c1 != '0' && c1 != '1') {
					fscanf(in1, "%c", &c1);
				}
				if (c1 == '1') {

					linear_mat[i][j][k / 64] ^= ((linearpart_t) 1 << (k % 64));
				}
			}

			for (int k = 0; k < 64; k++) {
				fscanf(in2, "%c", &c2);
				while (c2 != '0' && c2 != '1') {
					fscanf(in2, "%c", &c2);
				}
				if (c2 == '1') {
					square_mat[i][j] ^=
							((squarepart_t) 1 << (para_num - 1 - k));
				}
			}
		}

	}

	for (int i = 0; i < poly_num; i++) {
		working_mat[i][0] = 0;
		working_mat[i][1] = 0;
		working_mat[i][2] = 0;
		for (int j = 0; j < 192; j++) {
			fscanf(in4, "%c", &c4);
			while (c4 != '0' && c4 != '1') {
				fscanf(in4, "%c", &c4);
			}
			if (c4 == '1') {

				working_mat[i][j / 64] ^= ((linearpart_t) 1 << (j % 64));
			}
		}
		working_mat_file[i][0] = working_mat[i][0];
		working_mat_file[i][1] = working_mat[i][1];
		working_mat_file[i][2] = working_mat[i][2];
	}

	for (int i = 0; i < 640; i++) {
		var_all[i][0] = 0;
		var_all[i][1] = 0;
		var_all[i][2] = 0;
		var_all[i][3] = 0;
		for (int j = 0; j < 256; j++) {

			fscanf(in5, "%c", &c5);
			while (c5 != '0' && c5 != '1') {
				fscanf(in5, "%c", &c5);

			}
			if (c5 == '1') {
				var_all[i][j / 64] ^= ((value_t) 1 << (j % 64));
			}

		}

	}

	fclose(in1);
	fclose(in2);
	fclose(in4);
	fclose(in5);

	printf("finish reading file!\n");

	linearpart_t linear_mat_enum[ENUM_NUM * POLY_NUM * 3];
	squarepart_t square_mat_enum[ENUM_NUM * POLY_NUM];
	value_t var_all_enum[640 * 4];

	for (int i = 0; i < ENUM_NUM; i++) {
		for (int j = 0; j < POLY_NUM; j++) {
			for (int k = 0; k < 3; k++) {
				linear_mat_enum[i * POLY_NUM * 3 + j * 3 + k] =
						linear_mat[i][j][k];

			}
		}
	}

	for (int i = 0; i < ENUM_NUM; i++) {
		for (int j = 0; j < POLY_NUM; j++) {
			square_mat_enum[i * POLY_NUM + j] = square_mat[i][j];
		}
	}

	cudaMemcpyToSymbol(d_linear_mat, linear_mat_enum,
			3 * ENUM_NUM * POLY_NUM * sizeof(linearpart_t));
	cudaMemcpyToSymbol(d_square_mat, square_mat_enum,
			ENUM_NUM * POLY_NUM * sizeof(squarepart_t));

	for (int i = 0; i < 640; i++) {
		for (int j = 0; j < 4; j++) {
			var_all_enum[i * 4 + j] = var_all[i][j];
		}

	}
	cudaMemcpyToSymbol(d_var_all, var_all_enum, 640 * 4 * sizeof(value_t));

	printf("finish copying device memory!\n");

	cudaError_t err = cudaSuccess;
	int thidx = BLOCK_NUM * THREAD_NUM;

	value_t *d_val = NULL;
	err = cudaMalloc((void **) &d_val, thidx * sizeof(value_t));
	if (err != cudaSuccess) {
		printf("Failed to allocate device value (error code %s)!\n",
				cudaGetErrorString(err));
		exit(EXIT_FAILURE);
	}

	value_t *d_sol_total = NULL;
	err = cudaMalloc((void **) &d_sol_total, thidx * 3 * sizeof(value_t));
	if (err != cudaSuccess) {
		printf("Failed to allocate device value (error code %s)!\n",
				cudaGetErrorString(err));
		exit(EXIT_FAILURE);
	}

	linearpart_t *d_working_mat_copy = NULL;
	err = cudaMalloc((void **) &d_working_mat_copy,
			thidx * poly_num * 3 * sizeof(linearpart_t));
	if (err != cudaSuccess) {
		fprintf(stderr,
				"Failed to allocate device working_mat_copy (error code %s)!\n",
				cudaGetErrorString(err));
		exit(EXIT_FAILURE);
	}

	squarepart_t *d_const_mat = NULL;
	err = cudaMalloc((void **) &d_const_mat,
			thidx * poly_num * sizeof(squarepart_t));
	if (err != cudaSuccess) {
		fprintf(stderr,
				"Failed to allocate devices const_mat (error code %s)!\n",
				cudaGetErrorString(err));
		exit(EXIT_FAILURE);
	}

	if (err != cudaSuccess) {
		fprintf(stderr,
				"Failed to copy oripolys from host to device (error code %s)!\n",
				cudaGetErrorString(err));
		exit(EXIT_FAILURE);
	}

	value_t h_result[4] = {0, 0, 0, 0};
	value_t *d_result = NULL;
	err = cudaMalloc((void **) &d_result, 4 *sizeof(value_t));
	if (err != cudaSuccess) {
		fprintf(stderr,
				"Failed to allocate devices result (error code %s)!\n",
				cudaGetErrorString(err));
		exit(EXIT_FAILURE);
	}
	err = cudaMemcpy(d_result, h_result,
	4 * sizeof(value_t),cudaMemcpyHostToDevice);

		if (err != cudaSuccess) {
			fprintf(stderr,
					"Failed to copy result from host to device (error code %s)!\n",
					cudaGetErrorString(err));
			exit(EXIT_FAILURE);
		}


	printf("finish allocate device memory!\n");

//	value_t val_arr[thidx];
//	linearpart_t working_mat_copy_arr[thidx * POLY_NUM * 3];
//	squarepart_t const_mat_arr[thidx * POLY_NUM];
	int s_total_p0 = 0;
	value_t *val_arr = (value_t*)calloc(thidx, sizeof(value_t));
	linearpart_t *working_mat_copy_arr = (linearpart_t*)calloc(thidx * POLY_NUM * 3, sizeof(linearpart_t));
	squarepart_t *const_mat_arr = (squarepart_t*)calloc(thidx * POLY_NUM, sizeof(squarepart_t));
	for (int thi = 0; thi < thidx; thi++) {

		value_t sol_num = 0;
		value_t solutions[SOL_MAX_NUM][3];

		//int sol_total = 0;
		value_t val = (set_val + (value_t) thi) << ENUM_NUM;
		val_arr[thi] = val;
		for (int pi = 0; pi < POLY_NUM; pi++) {
			working_mat[pi][0] = working_mat_file[pi][0];
			working_mat[pi][1] = working_mat_file[pi][1];
			working_mat[pi][2] = working_mat_file[pi][2];

			const_mat[pi] = 0;
		}

		for (int pos = enum_num; pos < para_num; pos++) {

			if (val & ((value_t) 1 << pos)) {

				for (int pi = 0; pi < poly_num; pi++) {
					working_mat[pi][0] ^= linear_mat[pos][pi][0];
					working_mat[pi][1] ^= linear_mat[pos][pi][1];
					working_mat[pi][2] ^= linear_mat[pos][pi][2];
				}

				for (int pi = 0; pi < poly_num; pi++) {
					const_mat[pi] ^= square_mat[pos][pi];

				}

			}

		}


		for (int i = 0; i < poly_num; i++) {
			working_mat_copy[i][0] = working_mat[i][0];
			working_mat_copy[i][1] = working_mat[i][1];
			working_mat_copy[i][2] = working_mat[i][2];

			working_mat_copy_arr[thi * POLY_NUM * 3 + 3 * i] = working_mat_copy[i][0];
			working_mat_copy_arr[thi * POLY_NUM * 3 + 3 * i + 1] = working_mat_copy[i][1];
			working_mat_copy_arr[thi * POLY_NUM * 3 + 3 * i + 2] = working_mat_copy[i][2];

			const_mat_arr[thi * POLY_NUM + i] = const_mat[i];

		}

		for (int pi = 0; pi < poly_num; pi++) {

			value_t w = const_mat[pi] & val;

			w = (w) ^ (w >> 32);
			w = (w) ^ (w >> 16);
			w = (w) ^ (w >> 8);
			w = (w) ^ (w >> 4);
			w = (w) ^ (w >> 2);
			w = (w) ^ (w >> 1);

			if (w & (value_t) 1) {

				working_mat[pi][0] ^= (linearpart_t) 1;
			}

		}

		sol_num = gauss_host(working_mat, POLY_NUM, UNKNOWN_NUM, solutions);

		s_total_p0 += sol_num;
		 for (int s = 0; s < sol_num; s++) {

			tKeccakLane state[25];
			stateInit(state);
			getStates(state, var_all, val, solutions[s]);

			tKeccakLane state_cp[25];
			for(int sn = 0; sn < 25; sn++){
				state_cp[sn] = state[sn];

			}
			if(checkHashValue(state, hashvalue)){
				//todo
				FILE *out = fopen("final_messaged_state_online.txt","a+");
				printf("we have done on GPU!!! val:%lu, sol:%lu %lu %lu\n",val,solutions[s][0],solutions[s][1],solutions[s][2]);
				//fprintf(out,"we have done on GPU!!! val:%lu, sol:%lu %lu %lu\n",val,solutions[s][0],solutions[s][1],solutions[s][2]);

				fprintf(out, "The messaged state:");
								for (int sn = 0; sn < 25; sn++) {
									if (sn % 5 == 0) {
										fprintf(out, "\n");

									}
									fprintf(out, "%016lX ", state_cp[sn]);

								}

				fprintf(out, "\n\nThe output state:");
				for(int sn = 0; sn < 25 ;sn++){

					if(sn % 5 == 0){
						fprintf(out, "\n");

					}
					fprintf(out, "%016lX ", state[sn]);
				}




				fclose(out);
				printf("finish.\n");
				exit(0);
			}



		    }


	}

	printf("finish cpu computing!\n");

	//begin device part
	err = cudaMemcpy(d_val, val_arr, thidx * sizeof(value_t),
			cudaMemcpyHostToDevice);
	if (err != cudaSuccess) {
		printf("Failed to copy value from host to device (error code %s)!\n",
				cudaGetErrorString(err));
		exit(EXIT_FAILURE);
	}

	err = cudaMemcpy(d_working_mat_copy, working_mat_copy_arr,
			thidx * 3 * poly_num * sizeof(linearpart_t), cudaMemcpyHostToDevice);

	if (err != cudaSuccess) {
		fprintf(stderr,
				"Failed to copy working_mat_copy from host to device (error code %s)!\n",
				cudaGetErrorString(err));
		exit(EXIT_FAILURE);
	}

	err = cudaMemcpy(d_const_mat, const_mat_arr,
			thidx * poly_num * sizeof(squarepart_t), cudaMemcpyHostToDevice);

	if (err != cudaSuccess) {
		fprintf(stderr,
				"Failed to copy const_mat from host to device (error code %s)!\n",
				cudaGetErrorString(err));
		exit(EXIT_FAILURE);
	}

	printf("enum num : %d\nblock num : %d\nthread num : %d\n", ENUM_NUM,
			BLOCK_NUM, THREAD_NUM);

	cudaEvent_t start1;
	cudaEventCreate(&start1);
	cudaEvent_t stop1;
	cudaEventCreate(&stop1);
	cudaEventRecord(start1, NULL);

	printf("begin solve linear system!\n");
	solveLinear<<<BLOCK_NUM, THREAD_NUM>>>(d_working_mat_copy, d_const_mat,
			d_val, d_sol_total,d_result);

	cudaEventRecord(stop1, NULL);
	cudaEventSynchronize(stop1);
	float msecTotal1 = 0.0f;
	cudaEventElapsedTime(&msecTotal1, start1, stop1);
	err = cudaGetLastError();

	if (err != cudaSuccess) {
		fprintf(stderr, "Failed to launch solveLinear kernel (error code %s)!\n",
				cudaGetErrorString(err));
		exit(EXIT_FAILURE);
	}
	value_t h_sol_total[thidx];
	err = cudaMemcpy(h_sol_total, d_sol_total, thidx * sizeof(value_t),
				cudaMemcpyDeviceToHost);

	if (err != cudaSuccess) {
		fprintf(stderr,
				"Failed to copy total solution numbers from device to host (error code %s)!\n",
				cudaGetErrorString(err));
			exit(EXIT_FAILURE);
	}

	err = cudaMemcpy(h_result, d_result,4 * sizeof(value_t),
					cudaMemcpyDeviceToHost);

	if (err != cudaSuccess) {
		fprintf(stderr,
					"Failed to copy result from device to host (error code %s)!\n",
					cudaGetErrorString(err));
		exit(EXIT_FAILURE);
	}

	if(h_result[0]!=0 || h_result[1]!=0 || h_result[2]!=0 ||  h_result[3]!=0){
	    FILE *out = fopen("../data/state_files/final_messaged_state_online.txt","a+");
		printf("we have done on GPU!!! val:%lu, sol:%lu %lu %lu\n",h_result[0],h_result[1],h_result[2],h_result[3]);
			//fprintf(out,"we have done on GPU!!! val:%lu, sol:%lu %lu %lu\n",h_result[0],h_result[1],h_result[2],h_result[3]);

		tKeccakLane state[25];
		stateInit(state);
		getStates(state, var_all, h_result[0], h_result+1);

		tKeccakLane state_cp[25];
		for (int sn = 0; sn < 25; sn++) {
			state_cp[sn] = state[sn];

		}

		for (int i = 0; i < 3; i++) {
			KeccakP1600Round(state, i);
		}


		fprintf(out, "The messaged state:");
		for (int sn = 0; sn < 25; sn++) {
			if (sn % 5 == 0) {
				fprintf(out, "\n");

			}
			fprintf(out, "%016lX ", state_cp[sn]);

		}

		fprintf(out, "\n\nThe output state:");
		for (int sn = 0; sn < 25; sn++) {
			if (sn % 5 == 0) {
				fprintf(out, "\n");

			}
			fprintf(out, "%016lX ", state[sn]);

		}


		fclose(out);
		printf("finish.\n");
		exit(0);
		fclose(out);
	}else{
			FILE *out = fopen("../data/mat_files/result.txt","a+");
			long sol_all_threads = s_total_p0;
			for(int i = 0;i < thidx;i++){
				sol_all_threads += h_sol_total[i];
			}
			printf("val : %lu~%lu ,find %lu solutions, none is correct...\n",set_val << ENUM_NUM ,(set_val << ENUM_NUM)+(THREAD_NUM * BLOCK_NUM) * (1 << ENUM_NUM) -1, sol_all_threads);
			fprintf(out, "Part %d finished -- val : %lu~%lu ,find %lu solutions, none is correct...\n",atol(argv[1]), set_val << ENUM_NUM ,(set_val << ENUM_NUM)+(THREAD_NUM * BLOCK_NUM) * (1 << ENUM_NUM) -1, sol_all_threads);
			fclose(out);

	}


	printf("time:%.3lf ms\n---------------------------------------\n", msecTotal1);


	cudaFree(val_arr);
	cudaFree(d_working_mat_copy);
	cudaFree(d_const_mat);
	cudaFree(d_val);
	cudaFree(d_sol_total);
	cudaFree(d_result);
}

	.file	"tmpxft_003199a0_00000000-6_main.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2056:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2056:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z36KeccakP1600_InitializeRoundConstantsv
	.type	_Z36KeccakP1600_InitializeRoundConstantsv, @function
_Z36KeccakP1600_InitializeRoundConstantsv:
.LFB2029:
	.cfi_startproc
	endbr64
	leaq	_ZL20KeccakRoundConstants(%rip), %rdx
	xorl	%eax, %eax
	movl	$48, %ecx
	movl	$1, %r8d
	movq	%rdx, %rdi
	movl	$1, %r9d
	rep stosl
	movq	%rdx, %rax
	movb	$1, %dl
.L7:
	xorl	%esi, %esi
.L6:
	movl	%edx, %ecx
	andl	$1, %ecx
	testb	%dl, %dl
	jns	.L3
	addl	%edx, %edx
	xorl	$113, %edx
	jmp	.L4
.L3:
	addl	%edx, %edx
.L4:
	testb	%cl, %cl
	je	.L5
	movl	%esi, %ecx
	movl	%r8d, %r10d
	movq	%r9, %r11
	sall	%cl, %r10d
	movl	%r10d, %ecx
	decl	%ecx
	salq	%cl, %r11
	xorq	%r11, (%rax)
.L5:
	incl	%esi
	cmpl	$7, %esi
	jne	.L6
	addq	$8, %rax
	cmpq	%rdi, %rax
	jne	.L7
	ret
	.cfi_endproc
.LFE2029:
	.size	_Z36KeccakP1600_InitializeRoundConstantsv, .-_Z36KeccakP1600_InitializeRoundConstantsv
	.globl	_Z32KeccakP1600_InitializeRhoOffsetsv
	.type	_Z32KeccakP1600_InitializeRhoOffsetsv, @function
_Z32KeccakP1600_InitializeRhoOffsetsv:
.LFB2030:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	movl	$1, %esi
	movl	%eax, _ZL16KeccakRhoOffsets(%rip)
	leaq	_ZL16KeccakRhoOffsets(%rip), %r8
	movl	$5, %edi
.L15:
	movl	%ecx, %eax
	incl	%ecx
	leal	(%rdx,%rdx,4), %r9d
	addl	$2, %eax
	addl	%esi, %r9d
	imull	%ecx, %eax
	movl	%r9d, %r9d
	shrl	%eax
	andl	$63, %eax
	movl	%eax, (%r8,%r9,4)
	leal	(%rdx,%rdx,2), %eax
	leal	(%rax,%rsi,2), %eax
	movl	%edx, %esi
	xorl	%edx, %edx
	divl	%edi
	cmpl	$24, %ecx
	jne	.L15
	ret
	.cfi_endproc
.LFE2030:
	.size	_Z32KeccakP1600_InitializeRhoOffsetsv, .-_Z32KeccakP1600_InitializeRhoOffsetsv
	.globl	_Z28KeccakP1600_StaticInitializev
	.type	_Z28KeccakP1600_StaticInitializev, @function
_Z28KeccakP1600_StaticInitializev:
.LFB2028:
	.cfi_startproc
	endbr64
	call	_Z36KeccakP1600_InitializeRoundConstantsv
	jmp	_Z32KeccakP1600_InitializeRhoOffsetsv
	.cfi_endproc
.LFE2028:
	.size	_Z28KeccakP1600_StaticInitializev, .-_Z28KeccakP1600_StaticInitializev
	.globl	_Z22KeccakP1600_InitializePv
	.type	_Z22KeccakP1600_InitializePv, @function
_Z22KeccakP1600_InitializePv:
.LFB2032:
	.cfi_startproc
	endbr64
	movl	$50, %ecx
	xorl	%eax, %eax
	rep stosl
	ret
	.cfi_endproc
.LFE2032:
	.size	_Z22KeccakP1600_InitializePv, .-_Z22KeccakP1600_InitializePv
	.globl	_Z19KeccakP1600_AddBytePvhj
	.type	_Z19KeccakP1600_AddBytePvhj, @function
_Z19KeccakP1600_AddBytePvhj:
.LFB2033:
	.cfi_startproc
	endbr64
	movl	%edx, %edx
	xorb	%sil, (%rdi,%rdx)
	ret
	.cfi_endproc
.LFE2033:
	.size	_Z19KeccakP1600_AddBytePvhj, .-_Z19KeccakP1600_AddBytePvhj
	.globl	_Z20KeccakP1600_AddBytesPvPKhjj
	.type	_Z20KeccakP1600_AddBytesPvPKhjj, @function
_Z20KeccakP1600_AddBytesPvPKhjj:
.LFB2034:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
.L21:
	cmpl	%ecx, %eax
	jnb	.L23
	leal	(%rdx,%rax), %r8d
	movb	(%rsi,%rax), %r9b
	incq	%rax
	xorb	%r9b, (%rdi,%r8)
	jmp	.L21
.L23:
	ret
	.cfi_endproc
.LFE2034:
	.size	_Z20KeccakP1600_AddBytesPvPKhjj, .-_Z20KeccakP1600_AddBytesPvPKhjj
	.globl	_Z26KeccakP1600_OverwriteBytesPvPKhjj
	.type	_Z26KeccakP1600_OverwriteBytesPvPKhjj, @function
_Z26KeccakP1600_OverwriteBytesPvPKhjj:
.LFB2035:
	.cfi_startproc
	endbr64
	movl	%edx, %edx
	movl	%ecx, %ecx
	addq	%rdi, %rdx
	movq	%rdx, %rdi
	rep movsb
	ret
	.cfi_endproc
.LFE2035:
	.size	_Z26KeccakP1600_OverwriteBytesPvPKhjj, .-_Z26KeccakP1600_OverwriteBytesPvPKhjj
	.globl	_Z31KeccakP1600_OverwriteWithZeroesPvj
	.type	_Z31KeccakP1600_OverwriteWithZeroesPvj, @function
_Z31KeccakP1600_OverwriteWithZeroesPvj:
.LFB2036:
	.cfi_startproc
	endbr64
	movl	%esi, %ecx
	xorl	%eax, %eax
	rep stosb
	ret
	.cfi_endproc
.LFE2036:
	.size	_Z31KeccakP1600_OverwriteWithZeroesPvj, .-_Z31KeccakP1600_OverwriteWithZeroesPvj
	.globl	_Z16KeccakP1600RoundPyj
	.type	_Z16KeccakP1600RoundPyj, @function
_Z16KeccakP1600RoundPyj:
.LFB2044:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rdi, %r8
	movl	$10, %ecx
	movl	%esi, %r9d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$264, %rsp
	.cfi_def_cfa_offset 288
	movq	%fs:40, %rax
	movq	%rax, 248(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdi
	leaq	48(%rsp), %rbx
	rep stosl
	leaq	48(%rsp), %rdi
	movl	$10, %ecx
	rep stosl
	xorl	%eax, %eax
	leaq	8(%rsp), %rdi
.L28:
	movq	%r8, %r10
	leaq	(%r8,%rax,8), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
.L27:
	incl	%ecx
	xorq	(%rsi), %rdx
	addq	$40, %rsi
	cmpl	$5, %ecx
	jne	.L27
	movq	%rdx, (%rdi,%rax,8)
	incq	%rax
	cmpq	$5, %rax
	jne	.L28
	movl	$1, %ecx
	movl	$5, %edi
.L29:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%edi
	leal	3(%rcx), %eax
	movl	%edx, %edx
	movq	8(%rsp,%rdx,8), %rsi
	xorl	%edx, %edx
	divl	%edi
	rolq	%rsi
	movl	%edx, %edx
	xorq	8(%rsp,%rdx,8), %rsi
	movq	%rsi, -8(%rbx,%rcx,8)
	incq	%rcx
	cmpq	$6, %rcx
	jne	.L29
	xorl	%eax, %eax
.L30:
	movq	(%rbx,%rax,8), %rsi
	leaq	(%r8,%rax,8), %rdx
	xorl	%ecx, %ecx
.L31:
	incl	%ecx
	xorq	%rsi, (%rdx)
	addq	$40, %rdx
	cmpl	$5, %ecx
	jne	.L31
	incq	%rax
	cmpq	$5, %rax
	jne	.L30
	movq	%r8, %rdi
	xorl	%eax, %eax
	leaq	_ZL16KeccakRhoOffsets(%rip), %rbp
.L33:
	movq	%rdi, %rsi
	movl	%eax, %edx
	leal	25(%rax), %r11d
.L34:
	movl	%edx, %ecx
	addl	$5, %edx
	movl	0(%rbp,%rcx,4), %ecx
	rolq	%cl, (%rsi)
	addq	$40, %rsi
	cmpl	%edx, %r11d
	jne	.L34
	incl	%eax
	addq	$8, %rdi
	cmpl	$5, %eax
	jne	.L33
	movq	%r8, %rsi
	xorl	%eax, %eax
.L35:
	movl	%eax, %edx
	movq	%rsi, %rcx
	leal	25(%rax), %edi
.L36:
	movq	(%rcx), %rbp
	movl	%edx, %r11d
	addl	$5, %edx
	addq	$40, %rcx
	movq	%rbp, 48(%rsp,%r11,8)
	cmpl	%edx, %edi
	jne	.L36
	incl	%eax
	addq	$8, %rsi
	cmpl	$5, %eax
	jne	.L35
	xorl	%esi, %esi
	movl	$5, %r11d
.L37:
	leal	(%rsi,%rsi), %edi
	xorl	%ecx, %ecx
.L38:
	movl	%edi, %eax
	xorl	%edx, %edx
	addl	$3, %edi
	divl	%r11d
	leal	(%rdx,%rdx,4), %edx
	leal	(%rdx,%rcx), %eax
	leal	(%rcx,%rcx,4), %edx
	incl	%ecx
	addl	%esi, %edx
	movl	%edx, %edx
	movq	48(%rsp,%rdx,8), %rdx
	movq	%rdx, (%r8,%rax,8)
	cmpl	$5, %ecx
	jne	.L38
	incl	%esi
	cmpl	$5, %esi
	jne	.L37
	xorl	%r11d, %r11d
	movl	$5, %ebp
.L40:
	movl	$1, %ecx
.L41:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%ebp
	leal	(%rdx,%r11), %eax
	xorl	%edx, %edx
	movq	(%r8,%rax,8), %rsi
	leal	1(%rcx), %eax
	divl	%ebp
	notq	%rsi
	leal	(%rdx,%r11), %eax
	andq	(%r8,%rax,8), %rsi
	xorq	-8(%r10,%rcx,8), %rsi
	movq	%rsi, -8(%rbx,%rcx,8)
	incq	%rcx
	cmpq	$6, %rcx
	jne	.L41
	addl	$5, %r11d
	movq	%r10, %rdi
	movl	$10, %ecx
	movq	%rbx, %rsi
	rep movsl
	addq	$40, %r10
	cmpl	$25, %r11d
	jne	.L40
	leaq	_ZL20KeccakRoundConstants(%rip), %rax
	movq	(%rax,%r9,8), %rax
	xorq	%rax, (%r8)
	movq	248(%rsp), %rax
	subq	%fs:40, %rax
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	addq	$264, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2044:
	.size	_Z16KeccakP1600RoundPyj, .-_Z16KeccakP1600RoundPyj
	.globl	_Z23KeccakP1600Round_DevicePyj
	.type	_Z23KeccakP1600Round_DevicePyj, @function
_Z23KeccakP1600Round_DevicePyj:
.LFB2045:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	$1, 12(%rsp)
	movl	12(%rsp), %edi
	call	exit@PLT
	.cfi_endproc
.LFE2045:
	.size	_Z23KeccakP1600Round_DevicePyj, .-_Z23KeccakP1600Round_DevicePyj
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"r+"
.LC1:
	.string	"../data/state_files/messaged_state.txt"
	.text
	.globl	_Z9stateInitPy
	.type	_Z9stateInitPy, @function
_Z9stateInitPy:
.LFB2046:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%r13d, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdi, %rbx
	subq	$120, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	call	_Z28KeccakP1600_StaticInitializev
	leaq	.LC0(%rip), %rsi
	leaq	.LC1(%rip), %rdi
	call	fopen@PLT
	movq	%rax, %rbp
.L64:
	leaq	4(%rsp), %r12
	movl	$100, %edx
	movq	%rbp, %rcx
	movl	$100, %esi
	movq	%r12, %rdi
	call	__fgets_chk@PLT
	movq	%r12, %rdx
	xorl	%edi, %edi
.L58:
	xorl	%esi, %esi
	xorl	%ecx, %ecx
.L62:
	movb	(%rdx,%rsi), %al
	leal	-48(%rax), %r8d
	subl	$87, %eax
	cmpb	$9, %r8b
	cmovbe	%r8d, %eax
	cmpq	$16, %rsi
	je	.L61
	salq	$4, %rcx
	movsbq	%al, %rax
	xorq	%rax, %rcx
.L61:
	incq	%rsi
	cmpq	$17, %rsi
	jne	.L62
	movq	%rcx, (%rbx,%rdi,8)
	incq	%rdi
	addq	$17, %rdx
	cmpq	$5, %rdi
	jne	.L58
	addl	$5, %r13d
	addq	$40, %rbx
	cmpl	$25, %r13d
	jne	.L64
	movq	%rbp, %rdi
	call	fclose@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L65
	call	__stack_chk_fail@PLT
.L65:
	addq	$120, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2046:
	.size	_Z9stateInitPy, .-_Z9stateInitPy
	.globl	_Z9getStatesPyPA4_mlPl
	.type	_Z9getStatesPyPA4_mlPl, @function
_Z9getStatesPyPA4_mlPl:
.LFB2047:
	.cfi_startproc
	endbr64
	subq	$88, %rsp
	.cfi_def_cfa_offset 96
	btcq	$36, %rdx
	movq	%rsi, %r8
	movq	%rdi, %r9
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	movq	16(%rcx), %rax
	movq	%rdx, 8(%rsp)
	xorl	%esi, %esi
	movl	$1, %r10d
	movq	%rax, 32(%rsp)
	movq	8(%rcx), %rax
	movq	%rax, 24(%rsp)
	movq	(%rcx), %rax
	movq	%rax, 16(%rsp)
	xorl	%eax, %eax
.L76:
	leaq	40(%rsp), %rdi
	movl	$8, %ecx
	xorl	%edx, %edx
	rep stosl
	leaq	40(%rsp), %rdi
.L73:
	movq	8(%rsp,%rdx), %rcx
	andq	(%r8,%rdx), %rcx
	movq	%rcx, (%rdi,%rdx)
	addq	$8, %rdx
	cmpq	$32, %rdx
	jne	.L73
	movq	40(%rsp), %rdx
	xorq	48(%rsp), %rdx
	xorq	56(%rsp), %rdx
	xorq	64(%rsp), %rdx
	movq	%rdx, %rcx
	sarq	$32, %rcx
	xorq	%rcx, %rdx
	movq	%rdx, %rcx
	sarq	$16, %rcx
	xorq	%rdx, %rcx
	movq	%rcx, %rdx
	sarq	$8, %rdx
	xorq	%rcx, %rdx
	movq	%rdx, %rcx
	sarq	$4, %rcx
	xorq	%rdx, %rcx
	movq	%rcx, %rdx
	sarq	$2, %rdx
	xorq	%rcx, %rdx
	movq	%rdx, %rcx
	sarq	%rcx
	xorq	%rcx, %rdx
	andb	$1, %dl
	je	.L74
	movl	%esi, %edx
	sarl	$6, %edx
	cmpl	$319, %esi
	jle	.L75
	addl	$5, %edx
.L75:
	movslq	%edx, %rdx
	movq	%r10, %rdi
	movl	%esi, %ecx
	salq	%cl, %rdi
	xorq	%rdi, (%r9,%rdx,8)
.L74:
	incl	%esi
	addq	$32, %r8
	cmpl	$640, %esi
	jne	.L76
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	je	.L77
	call	__stack_chk_fail@PLT
.L77:
	addq	$88, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2047:
	.size	_Z9getStatesPyPA4_mlPl, .-_Z9getStatesPyPA4_mlPl
	.section	.rodata.str1.1
.LC2:
	.string	"Find Preimage!!!\nState after XORed with block2:"
.LC3:
	.string	"1"
.LC4:
	.string	"0"
.LC5:
	.string	" "
.LC6:
	.string	"%llu "
.LC7:
	.string	"\n"
	.text
	.globl	_Z14checkHashValuePyS_
	.type	_Z14checkHashValuePyS_, @function
_Z14checkHashValuePyS_:
.LFB2048:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$50, %ecx
	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
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdi, %rbx
	movq	%rbx, %rsi
	subq	$216, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 200(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %r12
	movq	%r12, %rdi
	rep movsl
	xorl	%esi, %esi
	movq	%rbx, %rdi
	call	_Z16KeccakP1600RoundPyj
	movl	$1, %esi
	movq	%rbx, %rdi
	call	_Z16KeccakP1600RoundPyj
	movl	$2, %esi
	movq	%rbx, %rdi
	call	_Z16KeccakP1600RoundPyj
	movq	0(%rbp), %rax
	cmpq	%rax, (%rbx)
	je	.L85
.L87:
	xorl	%eax, %eax
	jmp	.L84
.L85:
	movq	8(%rbp), %rax
	cmpq	%rax, 8(%rbx)
	jne	.L87
	movq	16(%rbp), %rax
	cmpq	%rax, 16(%rbx)
	jne	.L87
	movq	24(%rbx), %rax
	xorq	24(%rbp), %rax
	movq	%rax, 24(%rbx)
	movl	%eax, %ebx
	testq	%rbx, %rbx
	jne	.L87
	leaq	.LC2(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC5(%rip), %r14
.L92:
	movq	(%r12,%rbx,8), %r13
	xorl	%ebp, %ebp
	leaq	.LC4(%rip), %r15
.L91:
	btq	%rbp, %r13
	leaq	.LC3(%rip), %rsi
	jc	.L97
	movq	%r15, %rsi
.L97:
	movl	$2, %edi
	xorl	%eax, %eax
	incl	%ebp
	call	__printf_chk@PLT
	movl	%ebp, %eax
	movl	$5, %ecx
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L90
	movq	%r14, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L90:
	cmpl	$64, %ebp
	jne	.L91
	movq	%r14, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	incq	%rbx
	call	__printf_chk@PLT
	movq	%r13, %rdx
	movl	$2, %edi
	xorl	%eax, %eax
	leaq	.LC6(%rip), %rsi
	call	__printf_chk@PLT
	cmpq	$25, %rbx
	jne	.L92
	leaq	.LC7(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$1, %eax
.L84:
	movq	200(%rsp), %rdx
	subq	%fs:40, %rdx
	je	.L93
	call	__stack_chk_fail@PLT
.L93:
	addq	$216, %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
.LFE2048:
	.size	_Z14checkHashValuePyS_, .-_Z14checkHashValuePyS_
	.globl	_Z43__device_stub__Z11solveLinearPKmS0_PlS1_S1_PKmS0_PlS1_S1_
	.type	_Z43__device_stub__Z11solveLinearPKmS0_PlS1_S1_PKmS0_PlS1_S1_, @function
_Z43__device_stub__Z11solveLinearPKmS0_PlS1_S1_PKmS0_PlS1_S1_:
.LFB2078:
	.cfi_startproc
	endbr64
	subq	$168, %rsp
	.cfi_def_cfa_offset 176
	movq	%rdi, 40(%rsp)
	leaq	64(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	76(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	48(%rsp), %rdx
	movq	%rcx, 16(%rsp)
	leaq	56(%rsp), %rcx
	movq	%r8, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 72(%rsp)
	movq	%rax, 112(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 144(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 64(%rsp)
	movq	%rax, 76(%rsp)
	movl	$1, 84(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L98
	pushq	56(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_Z11solveLinearPKmS0_PlS1_S1_(%rip), %rdi
	pushq	56(%rsp)
	.cfi_def_cfa_offset 192
	movq	92(%rsp), %rcx
	movl	100(%rsp), %r8d
	movq	80(%rsp), %rsi
	movl	88(%rsp), %edx
	leaq	128(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 184
	popq	%rdx
	.cfi_def_cfa_offset 176
.L98:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L100
	call	__stack_chk_fail@PLT
.L100:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2078:
	.size	_Z43__device_stub__Z11solveLinearPKmS0_PlS1_S1_PKmS0_PlS1_S1_, .-_Z43__device_stub__Z11solveLinearPKmS0_PlS1_S1_PKmS0_PlS1_S1_
	.globl	_Z11solveLinearPKmS0_PlS1_S1_
	.type	_Z11solveLinearPKmS0_PlS1_S1_, @function
_Z11solveLinearPKmS0_PlS1_S1_:
.LFB2079:
	.cfi_startproc
	endbr64
	jmp	_Z43__device_stub__Z11solveLinearPKmS0_PlS1_S1_PKmS0_PlS1_S1_
	.cfi_endproc
.LFE2079:
	.size	_Z11solveLinearPKmS0_PlS1_S1_, .-_Z11solveLinearPKmS0_PlS1_S1_
	.section	.rodata.str1.1
.LC8:
	.string	"read middle state\n"
.LC9:
	.string	"read hash value\n"
.LC10:
	.string	"../../hash_value.txt"
.LC11:
	.string	"Failed to copy host to device(error code %s)!\n"
.LC12:
	.string	"../data/mat_files/linear_mat.txt"
.LC13:
	.string	"../data/mat_files/square_mat.txt"
.LC14:
	.string	"../data/mat_files/working_mat.txt"
.LC15:
	.string	"../data/mat_files/totalLinear_mat.txt"
.LC16:
	.string	"%c"
.LC17:
	.string	"finish reading file!\n"
.LC18:
	.string	"finish copying device memory!\n"
.LC19:
	.string	"Failed to allocate device value (error code %s)!\n"
.LC20:
	.string	"Failed to allocate device working_mat_copy (error code %s)!\n"
.LC21:
	.string	"Failed to allocate devices const_mat (error code %s)!\n"
.LC22:
	.string	"Failed to allocate devices result (error code %s)!\n"
.LC23:
	.string	"Failed to copy result from host to device (error code %s)!\n"
.LC24:
	.string	"finish allocate device memory!\n"
.LC25:
	.string	"a+"
.LC26:
	.string	"final_messaged_state_online.txt"
.LC27:
	.string	"we have done on GPU!!! val:%lu, sol:%lu %lu %lu\n"
.LC28:
	.string	"The messaged state:"
.LC29:
	.string	"%016lX "
.LC30:
	.string	"\n\nThe output state:"
.LC31:
	.string	"finish.\n"
.LC32:
	.string	"finish cpu computing!\n"
.LC33:
	.string	"Failed to copy value from host to device (error code %s)!\n"
.LC34:
	.string	"Failed to copy working_mat_copy from host to device (error code %s)!\n"
.LC35:
	.string	"Failed to copy const_mat from host to device (error code %s)!\n"
.LC36:
	.string	"enum num : %d\nblock num : %d\nthread num : %d\n"
.LC37:
	.string	"begin solve linear system!\n"
.LC39:
	.string	"Failed to launch solveLinear kernel (error code %s)!\n"
.LC40:
	.string	"Failed to copy total solution numbers from device to host (error code %s)!\n"
.LC41:
	.string	"Failed to copy result from device to host (error code %s)!\n"
.LC42:
	.string	"../data/state_files/final_messaged_state_online.txt"
.LC43:
	.string	"../data/mat_files/result.txt"
.LC44:
	.string	"val : %lu~%lu ,find %lu solutions, none is correct...\n"
.LC45:
	.string	"Part %d finished -- val : %lu~%lu ,find %lu solutions, none is correct...\n"
.LC46:
	.string	"time:%.3lf ms\n---------------------------------------\n"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB2053:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-372736(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3000, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movl	$2, %edi
	xorl	%r15d, %r15d
	movq	%rsi, -375728(%rbp)
	leaq	-375528(%rbp), %r14
	leaq	.LC8(%rip), %rsi
	leaq	-375592(%rbp), %r13
	leaq	-76(%rbp), %rbx
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%r14, %rdi
	call	_Z9stateInitPy
	leaq	.LC9(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC10(%rip), %rdi
	leaq	.LC0(%rip), %rsi
	call	fopen@PLT
	leaq	-375592(%rbp), %rdi
	movl	$8, %ecx
	movq	%rax, %r12
	xorl	%eax, %eax
	rep stosl
.L109:
	movl	$20, %edx
	movl	$20, %esi
	movq	%r12, %rcx
	movq	%rbx, %rdi
	call	__fgets_chk@PLT
	xorl	%edx, %edx
	xorl	%eax, %eax
	xorl	%esi, %esi
.L108:
	movb	(%rbx,%rdx), %cl
	leal	-48(%rcx), %r8d
	cmpb	$9, %r8b
	ja	.L104
	movl	%r8d, %esi
	jmp	.L105
.L104:
	leal	-97(%rcx), %r8d
	cmpb	$25, %r8b
	ja	.L106
	leal	-87(%rcx), %esi
	jmp	.L105
.L106:
	leal	-65(%rcx), %r8d
	cmpb	$25, %r8b
	ja	.L105
	leal	-55(%rcx), %esi
.L105:
	cmpq	$16, %rdx
	je	.L107
	salq	$4, %rax
	movsbq	%sil, %rcx
	xorq	%rcx, %rax
.L107:
	incq	%rdx
	cmpq	$17, %rdx
	jne	.L108
	movq	%rax, 0(%r13,%r15,8)
	incq	%r15
	cmpq	$4, %r15
	jne	.L109
	movq	%r12, %rdi
	call	fclose@PLT
	movl	$1, %r8d
	xorl	%ecx, %ecx
	movq	%r14, %rsi
	leaq	_ZL11const_state(%rip), %rdi
	movl	$200, %edx
	call	cudaMemcpyToSymbol@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L285
	movl	$1, %r8d
	xorl	%ecx, %ecx
	movl	$32, %edx
	movq	%r13, %rsi
	leaq	_ZL15const_hashvalue(%rip), %rdi
	call	cudaMemcpyToSymbol@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L111
.L285:
	call	cudaGetErrorString@PLT
	leaq	.LC11(%rip), %rsi
	movq	%rax, %rdx
	jmp	.L286
.L111:
	movq	-375728(%rbp), %rax
	xorl	%r13d, %r13d
	movq	8(%rax), %rdi
	call	atol@PLT
	movq	%rax, -375736(%rbp)
	movq	-375728(%rbp), %rax
	movq	16(%rax), %rdi
	call	atoi@PLT
	movl	%eax, %edi
	call	cudaSetDevice@PLT
	leaq	.LC0(%rip), %rsi
	leaq	.LC12(%rip), %rdi
	call	fopen@PLT
	leaq	.LC0(%rip), %rsi
	leaq	.LC13(%rip), %rdi
	movq	%rax, -375688(%rbp)
	call	fopen@PLT
	leaq	.LC0(%rip), %rsi
	leaq	.LC14(%rip), %rdi
	movq	%rax, -375696(%rbp)
	call	fopen@PLT
	leaq	.LC0(%rip), %rsi
	leaq	.LC15(%rip), %rdi
	movq	%rax, -375704(%rbp)
	call	fopen@PLT
	movq	%rax, -375712(%rbp)
	leaq	-165104(%rbp), %rax
	movq	%rax, -375744(%rbp)
	leaq	-293456(%rbp), %rax
	movq	%rax, -375752(%rbp)
	movq	-375744(%rbp), %rax
	movq	%rax, -375720(%rbp)
.L112:
	movslq	%r13d, %rax
	movq	-375752(%rbp), %r12
	movq	-375720(%rbp), %rbx
	xorl	%r14d, %r14d
	movq	%rax, -375760(%rbp)
.L121:
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	movq	%rax, (%rbx)
	movq	%rax, 8(%rbx)
	movq	%rax, 16(%rbx)
	movq	%rax, (%r12)
.L114:
	movq	-375688(%rbp), %rdi
	leaq	-375676(%rbp), %rdx
	leaq	.LC16(%rip), %rsi
	xorl	%eax, %eax
	call	__isoc23_fscanf@PLT
	movb	-375676(%rbp), %al
	leal	-48(%rax), %edx
	cmpb	$1, %dl
	ja	.L114
	cmpb	$49, %al
	jne	.L115
	imulq	$573, -375760(%rbp), %rax
	movl	%r15d, %ecx
	movslq	%r14d, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	sarl	$6, %ecx
	movslq	%ecx, %rcx
	addq	%rdx, %rax
	movl	$1, %edx
	addq	%rcx, %rax
	movl	%r15d, %ecx
	salq	%cl, %rdx
	xorq	%rdx, -165104(%rbp,%rax,8)
.L115:
	incl	%r15d
	cmpl	$192, %r15d
	jne	.L114
	movl	$35, %r15d
.L118:
	movq	-375696(%rbp), %rdi
	leaq	-375675(%rbp), %rdx
	leaq	.LC16(%rip), %rsi
	xorl	%eax, %eax
	call	__isoc23_fscanf@PLT
	movb	-375675(%rbp), %al
	leal	-48(%rax), %edx
	cmpb	$1, %dl
	ja	.L118
	cmpb	$49, %al
	jne	.L119
	movl	$1, %eax
	movl	%r15d, %ecx
	salq	%cl, %rax
	xorq	%rax, (%r12)
.L119:
	decl	%r15d
	cmpl	$-29, %r15d
	jne	.L118
	incl	%r14d
	addq	$24, %rbx
	addq	$8, %r12
	cmpl	$191, %r14d
	jne	.L121
	addq	$4584, -375720(%rbp)
	incl	%r13d
	addq	$1528, -375752(%rbp)
	cmpl	$36, %r13d
	jne	.L112
	leaq	-368248(%rbp), %rax
	leaq	-372832(%rbp), %r12
	xorl	%ebx, %ebx
	movq	%rax, -375720(%rbp)
	movq	%rax, %r15
	movq	%r12, %r14
.L127:
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	movq	%rax, (%r14)
	movq	%rax, 8(%r14)
	movq	%rax, 16(%r14)
.L124:
	movq	-375704(%rbp), %rdi
	leaq	-375674(%rbp), %rdx
	leaq	.LC16(%rip), %rsi
	xorl	%eax, %eax
	call	__isoc23_fscanf@PLT
	movb	-375674(%rbp), %al
	leal	-48(%rax), %edx
	cmpb	$1, %dl
	ja	.L124
	cmpb	$49, %al
	jne	.L125
	movl	%r13d, %edx
	movslq	%ebx, %rax
	movl	%r13d, %ecx
	sarl	$6, %edx
	leaq	(%rax,%rax,2), %rax
	movslq	%edx, %rdx
	addq	%rdx, %rax
	movl	$1, %edx
	salq	%cl, %rdx
	xorq	%rdx, -372832(%rbp,%rax,8)
.L125:
	incl	%r13d
	cmpl	$192, %r13d
	jne	.L124
	movq	(%r14), %rax
	incl	%ebx
	addq	$24, %r14
	addq	$24, %r15
	movq	%rax, -24(%r15)
	movq	-16(%r14), %rax
	movq	%rax, -16(%r15)
	movq	-8(%r14), %rax
	movq	%rax, -8(%r15)
	cmpl	$191, %ebx
	jne	.L127
	leaq	-358864(%rbp), %r15
	xorl	%ebx, %ebx
	movq	%r15, %r14
.L132:
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	movq	%rax, (%r15)
	movq	%rax, 8(%r15)
	movq	%rax, 16(%r15)
	movq	%rax, 24(%r15)
.L129:
	movq	-375712(%rbp), %rdi
	leaq	-375673(%rbp), %rdx
	leaq	.LC16(%rip), %rsi
	xorl	%eax, %eax
	call	__isoc23_fscanf@PLT
	movb	-375673(%rbp), %al
	leal	-48(%rax), %edx
	cmpb	$1, %dl
	ja	.L129
	cmpb	$49, %al
	jne	.L130
	movl	%r13d, %eax
	movslq	%ebx, %rdx
	movl	%r13d, %ecx
	sarl	$6, %eax
	cltq
	leaq	(%rax,%rdx,4), %rdx
	movl	$1, %eax
	salq	%cl, %rax
	xorq	%rax, -358864(%rbp,%rdx,8)
.L130:
	incl	%r13d
	cmpl	$256, %r13d
	jne	.L129
	incl	%ebx
	addq	$32, %r15
	cmpl	$640, %ebx
	jne	.L132
	movq	-375688(%rbp), %rdi
	call	fclose@PLT
	movq	-375696(%rbp), %rdi
	call	fclose@PLT
	movq	-375704(%rbp), %rdi
	call	fclose@PLT
	movq	-375712(%rbp), %rdi
	call	fclose@PLT
	leaq	.LC17(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	leaq	-238448(%rbp), %r9
.L133:
	movq	-375744(%rbp), %rbx
	leaq	(%r9,%rax), %rdx
	movl	$1146, %ecx
	movq	%rdx, %rdi
	leaq	(%rax,%rbx), %rsi
	addq	$4584, %rax
	rep movsl
	cmpq	$73344, %rax
	jne	.L133
	movl	$6112, %ecx
	leaq	-317904(%rbp), %rdi
	movl	$73344, %edx
	movl	$1, %r8d
	leaq	-293456(%rbp), %rsi
	rep movsl
	movq	%r9, %rsi
	leaq	_ZL12d_linear_mat(%rip), %rdi
	call	cudaMemcpyToSymbol@PLT
	movl	$24448, %edx
	leaq	-317904(%rbp), %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	leaq	_ZL12d_square_mat(%rip), %rdi
	call	cudaMemcpyToSymbol@PLT
	xorl	%edx, %edx
.L134:
	movq	%rdx, %rax
	movl	$4, %ebx
.L136:
	movq	(%r14,%rax), %rcx
	leaq	-338384(%rbp), %rsi
	movq	%rcx, -338384(%rbp,%rax)
	addq	$8, %rax
	decl	%ebx
	jne	.L136
	addq	$32, %rdx
	cmpq	$20480, %rdx
	jne	.L134
	movl	$1, %r8d
	xorl	%ecx, %ecx
	movl	$20480, %edx
	xorl	%r13d, %r13d
	leaq	_ZL9d_var_all(%rip), %rdi
	call	cudaMemcpyToSymbol@PLT
	leaq	.LC18(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	-375672(%rbp), %rdi
	movl	$65536, %esi
	movq	%r13, -375672(%rbp)
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L138
.L289:
	call	cudaGetErrorString@PLT
	leaq	.LC19(%rip), %rsi
	movq	%rax, %rdx
.L286:
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L288:
	movl	$1, %edi
.L287:
	call	exit@PLT
.L138:
	xorl	%r11d, %r11d
	leaq	-375664(%rbp), %rdi
	movl	$196608, %esi
	movq	%r11, -375664(%rbp)
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	jne	.L289
	xorl	%r10d, %r10d
	leaq	-375656(%rbp), %rdi
	movl	$37552128, %esi
	movq	%r10, -375656(%rbp)
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L140
	call	cudaGetErrorString@PLT
	leaq	.LC20(%rip), %rdx
	movq	%rax, %rcx
	jmp	.L290
.L140:
	xorl	%r9d, %r9d
	leaq	-375648(%rbp), %rdi
	movl	$12517376, %esi
	movq	%r9, -375648(%rbp)
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L141
	call	cudaGetErrorString@PLT
	leaq	.LC21(%rip), %rdx
	movq	%rax, %rcx
	jmp	.L290
.L141:
	movl	%ebx, %eax
	movl	$8, %ecx
	xorl	%r8d, %r8d
	movl	$32, %esi
	leaq	-375560(%rbp), %rdi
	movq	%r8, -375640(%rbp)
	rep stosl
	leaq	-375640(%rbp), %rdi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L142
	call	cudaGetErrorString@PLT
	leaq	.LC22(%rip), %rdx
	movq	%rax, %rcx
	jmp	.L290
.L142:
	movq	-375640(%rbp), %rdi
	movl	$1, %ecx
	movl	$32, %edx
	leaq	-375560(%rbp), %rsi
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L143
	call	cudaGetErrorString@PLT
	leaq	.LC23(%rip), %rdx
	movq	%rax, %rcx
	jmp	.L290
.L143:
	leaq	.LC24(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	call	__printf_chk@PLT
	movl	$8, %esi
	movl	$8192, %edi
	call	calloc@PLT
	movl	$8, %esi
	movl	$4694016, %edi
	movq	%rax, -375696(%rbp)
	call	calloc@PLT
	movl	$1564672, %edi
	movl	$8, %esi
	movq	%rax, -375704(%rbp)
	call	calloc@PLT
	xorl	%edi, %edi
	movq	-375736(%rbp), %r14
	movq	%rax, -375712(%rbp)
	movl	%edi, -375744(%rbp)
	salq	$29, %r14
.L201:
	movq	-375696(%rbp), %rax
	movq	%r12, %rdx
	movq	%r14, (%rax,%r15,8)
	movq	-375720(%rbp), %rax
	leaq	4584(%rax), %rcx
.L144:
	movq	(%rax), %rsi
	addq	$24, %rax
	addq	$24, %rdx
	movq	%rsi, -24(%rdx)
	movq	-16(%rax), %rsi
	movq	%rsi, -16(%rdx)
	movq	-8(%rax), %rsi
	movq	%rsi, -8(%rdx)
	cmpq	%rcx, %rax
	jne	.L144
	leaq	-374360(%rbp), %rdx
	movl	$382, %ecx
	xorl	%eax, %eax
	movq	%rdx, %rdi
	leaq	-269008(%rbp), %rsi
	leaq	4584(%r12), %r8
	rep stosl
	leaq	-91760(%rbp), %rdi
	movl	$16, %ecx
.L146:
	btq	%rcx, %r14
	jc	.L145
.L150:
	incl	%ecx
	addq	$1528, %rsi
	addq	$4584, %rdi
	cmpl	$36, %ecx
	jne	.L146
	imulq	$4584, %r15, %rax
	movq	-375704(%rbp), %rbx
	leaq	4584(%r12), %rcx
	movq	%r12, %rdx
	addq	%rbx, %rax
	jmp	.L151
.L145:
	movq	%rdi, %rdx
	movq	%r12, %rax
.L148:
	movq	(%rdx), %r9
	xorq	%r9, (%rax)
	addq	$24, %rdx
	movq	-16(%rdx), %r9
	xorq	%r9, 8(%rax)
	movq	-8(%rdx), %r9
	xorq	%r9, 16(%rax)
	addq	$24, %rax
	cmpq	%r8, %rax
	jne	.L148
	xorl	%eax, %eax
.L149:
	movq	-374360(%rbp,%rax), %rdx
	xorq	(%rsi,%rax), %rdx
	movq	%rdx, -374360(%rbp,%rax)
	addq	$8, %rax
	cmpq	$1528, %rax
	jne	.L149
	jmp	.L150
.L151:
	movq	8(%rdx), %rdi
	movq	16(%rdx), %rsi
	addq	$24, %rdx
	addq	$24, %rax
	movq	-24(%rdx), %r8
	movq	%rdi, -16(%rax)
	movq	%r8, -24(%rax)
	movq	%rsi, -8(%rax)
	cmpq	%rcx, %rdx
	jne	.L151
	imulq	$1528, %r15, %rax
	movq	-375712(%rbp), %rbx
	movl	$382, %ecx
	movq	%r12, %rdx
	leaq	-374360(%rbp), %rsi
	addq	%rbx, %rax
	movq	%rax, %rdi
	xorl	%eax, %eax
	rep movsl
	leaq	-374360(%rbp), %rdi
.L153:
	movq	(%rdi,%rax,8), %rsi
	andq	%r14, %rsi
	movq	%rsi, %rcx
	sarq	$32, %rcx
	xorq	%rsi, %rcx
	movq	%rcx, %rsi
	sarq	$16, %rsi
	xorq	%rcx, %rsi
	movq	%rsi, %rcx
	sarq	$8, %rcx
	xorq	%rsi, %rcx
	movq	%rcx, %rsi
	sarq	$4, %rsi
	xorq	%rcx, %rsi
	movq	%rsi, %rcx
	sarq	$2, %rcx
	xorq	%rsi, %rcx
	movq	%rcx, %rsi
	sarq	%rsi
	xorq	%rsi, %rcx
	andb	$1, %cl
	je	.L152
	xorq	$1, (%rdx)
.L152:
	incq	%rax
	addq	$24, %rdx
	cmpq	$191, %rax
	jne	.L153
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%r8d, %r8d
	movl	$64, %r10d
	movl	$1, %r11d
.L168:
	movq	(%rsi), %rax
	movq	8(%rsi), %rdx
	movq	16(%rsi), %r9
	movq	%rax, %rcx
	orq	%rdx, %rcx
	orq	%r9, %rcx
	je	.L154
	movl	$1, %ebx
	movl	$60, %ecx
	salq	$60, %rbx
	testq	%rbx, %r9
	jne	.L155
.L156:
	subl	$1, %ecx
	jb	.L292
	btq	%rcx, %r9
	jnc	.L156
	jmp	.L155
.L292:
	movl	$63, %ecx
	testq	%rdx, %rdx
	jns	.L159
	jmp	.L158
.L155:
	subl	$-128, %ecx
	jmp	.L160
.L161:
	btq	%rcx, %rdx
	jc	.L158
.L159:
	subl	$1, %ecx
	jnb	.L161
	movl	$63, %ecx
	testq	%rax, %rax
	jns	.L162
	jmp	.L160
.L158:
	addl	$64, %ecx
	jmp	.L160
.L163:
	btq	%rcx, %rax
	jc	.L160
.L162:
	subl	$1, %ecx
	jnb	.L163
.L160:
	movl	%ecx, -375132(%rbp,%rdi,4)
	incl	%r8d
	testl	%ecx, %ecx
	je	.L222
	movl	%ecx, %eax
	movq	%r11, %rbx
	movl	%edi, %r9d
	cltd
	salq	%cl, %rbx
	idivl	%r10d
	movq	%rbx, %rcx
	movq	%rsi, %rdx
	cltq
.L165:
	cmpl	$191, %r9d
	je	.L154
	movq	%rcx, %rbx
	andq	24(%rdx,%rax,8), %rbx
	je	.L166
	movq	(%rsi), %rbx
	xorq	%rbx, 24(%rdx)
	movq	8(%rsi), %rbx
	xorq	%rbx, 32(%rdx)
	movq	16(%rsi), %rbx
	xorq	%rbx, 40(%rdx)
.L166:
	incl	%r9d
	addq	$24, %rdx
	jmp	.L165
.L154:
	incq	%rdi
	addq	$24, %rsi
	cmpq	$192, %rdi
	jne	.L168
	movq	%r12, %rsi
	xorl	%edi, %edi
	movl	$64, %r11d
.L172:
	cmpq	$0, (%rsi)
	jne	.L224
	cmpq	$0, 8(%rsi)
	je	.L170
.L224:
	movq	%r12, %rcx
	xorl	%r9d, %r9d
	jmp	.L171
.L170:
	cmpq	$0, 16(%rsi)
	jne	.L224
.L176:
	incq	%rdi
	addq	$24, %rsi
	cmpq	$191, %rdi
	jne	.L172
	jmp	.L293
.L175:
	movl	-375128(%rbp,%rdi,4), %r10d
	movl	%r10d, %eax
	cltd
	idivl	%r11d
	cltq
	movq	(%rcx,%rax,8), %rax
	btq	%r10, %rax
	jnc	.L174
	movq	(%rsi), %rax
	xorq	%rax, (%rcx)
	movq	8(%rsi), %rax
	xorq	%rax, 8(%rcx)
	movq	16(%rsi), %rax
	xorq	%rax, 16(%rcx)
.L174:
	incl	%r9d
	addq	$24, %rcx
.L171:
	cmpl	%edi, %r9d
	jne	.L175
	jmp	.L176
.L293:
	xorl	%esi, %esi
	movq	%rsi, -363664(%rbp)
	movq	%rsi, -363656(%rbp)
	movq	%rsi, -363648(%rbp)
	cmpl	$188, %r8d
	jne	.L177
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$64, %r8d
	movl	$1, %r9d
.L179:
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L178
	testb	$1, %al
	je	.L178
	movl	-375128(%rbp,%rsi,4), %eax
	leal	-1(%rax), %ecx
	movl	%ecx, %eax
	cltd
	idivl	%r8d
	movq	%r9, %rdx
	salq	%cl, %rdx
	cltq
	xorq	%rdx, -363664(%rbp,%rax,8)
.L178:
	incq	%rsi
	addq	$24, %rdi
	cmpq	$191, %rsi
	jne	.L179
	movl	$1, %ebx
	jmp	.L164
.L177:
	movl	$189, %ecx
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$64, %r8d
	leaq	-375328(%rbp), %rdx
	movl	$1, %r9d
	movq	%rdx, %rdi
	rep stosb
	xorl	%edi, %edi
.L183:
	movq	(%rsi), %rax
	testq	%rax, %rax
	jne	.L180
	cmpq	$0, 8(%rsi)
	jne	.L180
	cmpq	$0, 16(%rsi)
	je	.L181
.L180:
	movslq	-375128(%rbp,%rdi,4), %rdx
	movb	$1, -375328(%rbp,%rdx)
	movq	%rdx, %rcx
	testb	$1, %al
	je	.L181
	decl	%ecx
	movl	%ecx, %eax
	cltd
	idivl	%r8d
	movq	%r9, %rdx
	salq	%cl, %rdx
	cltq
	xorq	%rdx, -363664(%rbp,%rax,8)
.L181:
	incq	%rdi
	addq	$24, %rsi
	cmpq	$191, %rdi
	jne	.L183
	leaq	-375328(%rbp), %rax
	movl	$1, %esi
	movl	$1, %ebx
	movq	%rax, -375760(%rbp)
.L193:
	movq	-375760(%rbp), %rax
	cmpb	$0, (%rsi,%rax)
	jne	.L184
	imulq	$24, %rbx, %rax
	leal	-1(%rsi), %ecx
	movl	$1, %r8d
	leaq	-363664(%rbp), %rdx
	movl	%ecx, %edi
	salq	%cl, %r8
	xorl	%ecx, %ecx
	sarl	$6, %edi
	addq	%rdx, %rax
	movslq	%edi, %rdi
	movq	%rax, -375688(%rbp)
.L185:
	cmpq	%rbx, %rcx
	jge	.L294
	movq	(%rdx), %r9
	incq	%rcx
	addq	$24, %rdx
	movq	%r9, (%rax)
	movq	-16(%rdx), %r9
	movq	%r9, 8(%rax)
	movq	-8(%rdx), %r9
	movq	%r9, 16(%rax)
	xorq	%r8, (%rax,%rdi,8)
	addq	$24, %rax
	jmp	.L185
.L294:
	movl	%esi, %eax
	movl	%esi, %r11d
	movq	%r12, %r8
	xorl	%r9d, %r9d
	andl	$63, %eax
	sarl	$6, %r11d
	movl	%eax, -375764(%rbp)
	movslq	%r11d, %r11
.L188:
	cmpq	$0, (%r8)
	jne	.L187
	cmpq	$0, 8(%r8)
	jne	.L187
	cmpq	$0, 16(%r8)
	jne	.L187
.L192:
	incq	%r9
	addq	$24, %r8
	cmpq	$191, %r9
	jne	.L188
	addq	%rbx, %rbx
	jmp	.L184
.L187:
	movq	(%r8,%r11,8), %rdi
	movb	-375764(%rbp), %cl
	xorl	%r13d, %r13d
	movq	-375688(%rbp), %r10
	shrq	%cl, %rdi
	andl	$1, %edi
	imulq	%rbx, %rdi
	movq	%rdi, -375752(%rbp)
.L190:
	cmpq	%r13, -375752(%rbp)
	jle	.L192
	movl	-375128(%rbp,%r9,4), %eax
	movl	$64, %edi
	incq	%r13
	leal	-1(%rax), %ecx
	movl	%ecx, %eax
	cltd
	idivl	%edi
	movl	$1, %edx
	salq	%cl, %rdx
	cltq
	xorq	%rdx, (%r10,%rax,8)
	addq	$24, %r10
	jmp	.L190
.L184:
	incq	%rsi
	cmpq	$189, %rsi
	jne	.L193
	jmp	.L164
.L222:
	xorl	%ebx, %ebx
.L164:
	leaq	-375328(%rbp), %rax
	xorl	%r13d, %r13d
	movq	%rax, -375688(%rbp)
.L194:
	cmpq	%r13, %rbx
	jle	.L295
	movq	-375688(%rbp), %rdi
	call	_Z9stateInitPy
	imulq	$24, %r13, %rax
	movq	%r14, %rdx
	movq	-375688(%rbp), %rdi
	leaq	-358864(%rbp), %rsi
	leaq	-363664(%rbp,%rax), %rcx
	call	_Z9getStatesPyPA4_mlPl
	movq	-375688(%rbp), %rsi
	movl	$50, %ecx
	leaq	-375128(%rbp), %rdi
	rep movsl
	movq	-375688(%rbp), %rdi
	leaq	-375592(%rbp), %rsi
	call	_Z14checkHashValuePyS_
	movl	%eax, %edx
	leaq	1(%r13), %rax
	testl	%edx, %edx
	je	.L195
	movslq	%r13d, %r13
	leaq	.LC25(%rip), %rsi
	xorl	%r12d, %r12d
	imulq	$24, %r13, %r13
	leaq	.LC26(%rip), %rdi
	call	fopen@PLT
	movq	%r14, %rdx
	leaq	.LC27(%rip), %rsi
	movl	$2, %edi
	movq	%rax, %rbx
	xorl	%eax, %eax
	leaq	.LC7(%rip), %r15
	movq	-363648(%rbp,%r13), %r9
	movq	-363656(%rbp,%r13), %r8
	movq	-363664(%rbp,%r13), %rcx
	call	__printf_chk@PLT
	movl	$2, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	leaq	.LC28(%rip), %rdx
	call	__fprintf_chk@PLT
.L197:
	imull	$-858993459, %r12d, %eax
	cmpl	$858993459, %eax
	ja	.L196
	movq	%r15, %rdx
	movl	$2, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
.L196:
	leaq	-375128(%rbp), %rax
	leaq	.LC29(%rip), %r13
	movl	$2, %esi
	movq	%rbx, %rdi
	movq	(%rax,%r12,8), %rcx
	movq	%r13, %rdx
	xorl	%eax, %eax
	incq	%r12
	call	__fprintf_chk@PLT
	cmpq	$25, %r12
	jne	.L197
	leaq	.LC30(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	movl	$2, %esi
	leaq	.LC7(%rip), %r15
	call	__fprintf_chk@PLT
.L199:
	imull	$-858993459, %r12d, %eax
	cmpl	$858993459, %eax
	ja	.L198
	movq	%r15, %rdx
	movl	$2, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
.L198:
	movq	-375688(%rbp), %rax
	movq	%r13, %rdx
	movl	$2, %esi
	movq	%rbx, %rdi
	movq	(%rax,%r12,8), %rcx
	xorl	%eax, %eax
	incq	%r12
	call	__fprintf_chk@PLT
	cmpq	$25, %r12
	jne	.L199
	movq	%rbx, %rdi
	jmp	.L291
.L195:
	movq	%rax, %r13
	jmp	.L194
.L295:
	movl	-375744(%rbp), %eax
	incq	%r15
	addq	$65536, %r14
	addl	%ebx, %eax
	movslq	%eax, %rbx
	movl	%ebx, -375744(%rbp)
	cmpq	$8192, %r15
	jne	.L201
	leaq	.LC32(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$1, %ecx
	movl	$65536, %edx
	movq	-375672(%rbp), %rdi
	movq	-375696(%rbp), %rsi
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L202
	call	cudaGetErrorString@PLT
	leaq	.LC33(%rip), %rsi
	movq	%rax, %rdx
	jmp	.L286
.L202:
	movq	-375656(%rbp), %rdi
	movl	$1, %ecx
	movl	$37552128, %edx
	movq	-375704(%rbp), %rsi
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L203
	call	cudaGetErrorString@PLT
	leaq	.LC34(%rip), %rdx
	movq	%rax, %rcx
	jmp	.L290
.L203:
	movq	-375648(%rbp), %rdi
	movl	$1, %ecx
	movl	$12517376, %edx
	movq	-375712(%rbp), %rsi
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L204
	call	cudaGetErrorString@PLT
	leaq	.LC35(%rip), %rdx
	movq	%rax, %rcx
	jmp	.L290
.L204:
	movl	$256, %r8d
	movl	$32, %ecx
	xorl	%eax, %eax
	movl	$16, %edx
	leaq	.LC36(%rip), %rsi
	movl	$2, %edi
	call	__printf_chk@PLT
	leaq	-375632(%rbp), %rdi
	call	cudaEventCreate@PLT
	leaq	-375624(%rbp), %rdi
	call	cudaEventCreate@PLT
	movq	-375632(%rbp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	leaq	.LC37(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$16777217, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$134217729, %edi
	salq	$8, %rdx
	movl	$1, %ecx
	movl	$1, %esi
	salq	$5, %rdi
	movq	%rdx, -375604(%rbp)
	movl	$1, -375596(%rbp)
	movq	%rdi, -375616(%rbp)
	movl	$1, -375608(%rbp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L205
	movq	-375640(%rbp), %r8
	movq	-375664(%rbp), %rcx
	movq	-375672(%rbp), %rdx
	movq	-375648(%rbp), %rsi
	movq	-375656(%rbp), %rdi
	call	_Z43__device_stub__Z11solveLinearPKmS0_PlS1_S1_PKmS0_PlS1_S1_
.L205:
	movq	-375624(%rbp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movq	-375624(%rbp), %rdi
	call	cudaEventSynchronize@PLT
	movq	-375624(%rbp), %rdx
	movq	-375632(%rbp), %rsi
	leaq	-375604(%rbp), %rdi
	movl	$0x00000000, -375604(%rbp)
	call	cudaEventElapsedTime@PLT
	call	cudaGetLastError@PLT
	movl	%eax, %edi
	leaq	-65536(%rsp), %rax
	testl	%edi, %edi
	je	.L207
	call	cudaGetErrorString@PLT
	leaq	.LC39(%rip), %rdx
	movq	%rax, %rcx
	jmp	.L290
.L207:
	cmpq	%rax, %rsp
	je	.L208
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L207
.L208:
	movl	$2, %ecx
	movl	$65536, %edx
	movq	-375664(%rbp), %rsi
	movq	%rsp, %r13
	movq	%r13, %rdi
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L210
	call	cudaGetErrorString@PLT
	leaq	.LC40(%rip), %rdx
	movq	%rax, %rcx
	jmp	.L290
.L210:
	movq	-375640(%rbp), %rsi
	movl	$2, %ecx
	movl	$32, %edx
	leaq	-375560(%rbp), %rdi
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L211
	call	cudaGetErrorString@PLT
	leaq	.LC41(%rip), %rdx
	movq	%rax, %rcx
.L290:
	movq	stderr(%rip), %rdi
	movl	$2, %esi
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
	jmp	.L288
.L211:
	movq	-375560(%rbp), %rax
	orq	-375552(%rbp), %rax
	leaq	.LC25(%rip), %rsi
	orq	-375544(%rbp), %rax
	orq	-375536(%rbp), %rax
	je	.L212
	leaq	.LC42(%rip), %rdi
	leaq	-375128(%rbp), %r12
	xorl	%ebx, %ebx
	call	fopen@PLT
	movq	-375536(%rbp), %r9
	movq	-375544(%rbp), %r8
	leaq	.LC27(%rip), %rsi
	movq	-375552(%rbp), %rcx
	movq	-375560(%rbp), %rdx
	movq	%rax, -375688(%rbp)
	xorl	%eax, %eax
	movl	$2, %edi
	leaq	-363664(%rbp), %r13
	leaq	.LC7(%rip), %r15
	call	__printf_chk@PLT
	movq	%r12, %rdi
	call	_Z9stateInitPy
	movq	-375560(%rbp), %rdx
	leaq	-375552(%rbp), %rcx
	movq	%r12, %rdi
	leaq	-358864(%rbp), %rsi
	call	_Z9getStatesPyPA4_mlPl
	leaq	-363664(%rbp), %rdi
	movl	$50, %ecx
	movq	%r12, %rsi
	rep movsl
	xorl	%esi, %esi
	movq	%r12, %rdi
	call	_Z16KeccakP1600RoundPyj
	movl	$1, %esi
	movq	%r12, %rdi
	call	_Z16KeccakP1600RoundPyj
	movl	$2, %esi
	movq	%r12, %rdi
	call	_Z16KeccakP1600RoundPyj
	movq	-375688(%rbp), %rdi
	leaq	.LC28(%rip), %rdx
	xorl	%eax, %eax
	movl	$2, %esi
	call	__fprintf_chk@PLT
.L214:
	imull	$-858993459, %ebx, %eax
	cmpl	$858993459, %eax
	ja	.L213
	movq	-375688(%rbp), %rdi
	movq	%r15, %rdx
	movl	$2, %esi
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
.L213:
	movq	0(%r13,%rbx,8), %rcx
	movl	$2, %esi
	xorl	%eax, %eax
	incq	%rbx
	movq	-375688(%rbp), %rdi
	leaq	.LC29(%rip), %r14
	movq	%r14, %rdx
	call	__fprintf_chk@PLT
	cmpq	$25, %rbx
	jne	.L214
	movq	-375688(%rbp), %rdi
	leaq	.LC30(%rip), %rdx
	movl	$2, %esi
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	leaq	.LC7(%rip), %r15
	call	__fprintf_chk@PLT
.L216:
	imull	$-858993459, %r13d, %eax
	cmpl	$858993459, %eax
	ja	.L215
	movq	-375688(%rbp), %rdi
	movq	%r15, %rdx
	movl	$2, %esi
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
.L215:
	movq	(%r12,%r13,8), %rcx
	movq	-375688(%rbp), %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	movl	$2, %esi
	incq	%r13
	call	__fprintf_chk@PLT
	cmpq	$25, %r13
	jne	.L216
	movq	-375688(%rbp), %rdi
.L291:
	call	fclose@PLT
	movl	$2, %edi
	leaq	.LC31(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%edi, %edi
	jmp	.L287
.L212:
	leaq	.LC43(%rip), %rdi
	call	fopen@PLT
	movq	%rax, %r12
	xorl	%eax, %eax
.L217:
	addq	0(%r13,%rax,8), %rbx
	incq	%rax
	cmpq	$8192, %rax
	jne	.L217
	movq	-375736(%rbp), %r13
	movq	%rbx, %r8
	movl	$2, %edi
	xorl	%eax, %eax
	leaq	.LC44(%rip), %rsi
	salq	$29, %r13
	leaq	536870911(%r13), %r9
	movq	%r13, %rdx
	movq	%r9, %rcx
	movq	%r9, -375688(%rbp)
	call	__printf_chk@PLT
	movq	-375728(%rbp), %rax
	movq	8(%rax), %rdi
	call	atol@PLT
	movq	%r13, %r8
	movl	$2, %esi
	movq	%r12, %rdi
	movq	%rax, %rcx
	pushq	%rax
	movq	-375688(%rbp), %r9
	xorl	%eax, %eax
	pushq	%rbx
	leaq	.LC45(%rip), %rdx
	call	__fprintf_chk@PLT
	popq	%rdx
	movq	%r12, %rdi
	popq	%rcx
	call	fclose@PLT
	leaq	.LC46(%rip), %rsi
	movb	$1, %al
	movl	$2, %edi
	cvtss2sd	-375604(%rbp), %xmm0
	call	__printf_chk@PLT
	movq	-375696(%rbp), %rdi
	call	cudaFree@PLT
	movq	-375656(%rbp), %rdi
	call	cudaFree@PLT
	movq	-375648(%rbp), %rdi
	call	cudaFree@PLT
	movq	-375672(%rbp), %rdi
	call	cudaFree@PLT
	movq	-375664(%rbp), %rdi
	call	cudaFree@PLT
	movq	-375640(%rbp), %rdi
	call	cudaFree@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	je	.L218
	call	__stack_chk_fail@PLT
.L218:
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2053:
	.size	main, .-main
	.section	.rodata.str1.1
.LC47:
	.string	"_Z11solveLinearPKmS0_PlS1_S1_"
.LC48:
	.string	"const_KeccakRoundConstants"
.LC49:
	.string	"const_KeccakRhoOffsets"
.LC50:
	.string	"const_state"
.LC51:
	.string	"const_hashvalue"
.LC52:
	.string	"d_linear_mat"
.LC53:
	.string	"d_square_mat"
.LC54:
	.string	"d_var_all"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2081:
	.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	.LC47(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z11solveLinearPKmS0_PlS1_S1_(%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	%r8d, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC48(%rip), %rdx
	movl	$192, %r9d
	leaq	_ZL26const_KeccakRoundConstants(%rip), %rsi
	pushq	$1
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	call	__cudaRegisterVar@PLT
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rdx
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$1
	.cfi_def_cfa_offset 32
	leaq	.LC49(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movq	%rdx, %rcx
	movl	$100, %r9d
	leaq	_ZL22const_KeccakRhoOffsets(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rcx
	.cfi_def_cfa_offset 24
	popq	%rsi
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$1
	.cfi_def_cfa_offset 32
	leaq	.LC50(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movq	%rdx, %rcx
	movl	$200, %r9d
	leaq	_ZL11const_state(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rdi
	.cfi_def_cfa_offset 24
	popq	%r8
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$1
	.cfi_def_cfa_offset 32
	leaq	.LC51(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movq	%rdx, %rcx
	movl	$32, %r9d
	leaq	_ZL15const_hashvalue(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%r9
	.cfi_def_cfa_offset 24
	popq	%r10
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC52(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movq	%rdx, %rcx
	movl	$73344, %r9d
	leaq	_ZL12d_linear_mat(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%r11
	.cfi_def_cfa_offset 24
	popq	%rax
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC53(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movq	%rdx, %rcx
	movl	$24448, %r9d
	leaq	_ZL12d_square_mat(%rip), %rsi
	call	__cudaRegisterVar@PLT
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rdx
	.cfi_def_cfa_offset 16
	pushq	$0
	.cfi_def_cfa_offset 24
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC54(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movq	%rdx, %rcx
	movl	$20480, %r9d
	leaq	_ZL9d_var_all(%rip), %rsi
	call	__cudaRegisterVar@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	popq	%rcx
	.cfi_def_cfa_offset 24
	popq	%rsi
	.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
.LFE2081:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.local	_ZL9d_var_all
	.comm	_ZL9d_var_all,20480,32
	.local	_ZL12d_square_mat
	.comm	_ZL12d_square_mat,24448,32
	.local	_ZL12d_linear_mat
	.comm	_ZL12d_linear_mat,73344,32
	.local	_ZL15const_hashvalue
	.comm	_ZL15const_hashvalue,32,32
	.local	_ZL11const_state
	.comm	_ZL11const_state,200,32
	.globl	displayLevel
	.data
	.align 4
	.type	displayLevel, @object
	.size	displayLevel, 4
displayLevel:
	.long	10
	.local	_ZL22const_KeccakRhoOffsets
	.comm	_ZL22const_KeccakRhoOffsets,100,32
	.local	_ZL26const_KeccakRoundConstants
	.comm	_ZL26const_KeccakRoundConstants,192,32
	.local	_ZL16KeccakRhoOffsets
	.comm	_ZL16KeccakRhoOffsets,100,32
	.local	_ZL20KeccakRoundConstants
	.comm	_ZL20KeccakRoundConstants,192,32
	.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 <stdio.h>
#include <stdlib.h>
#include <assert.h>
// For the CUDA runtime routines (prefixed with "cuda_")
#include <hip/hip_runtime.h>

//#include <helper_cuda.h>

#define DEBUG 0
#define UNKNOWN_NUM 188
#define POLY_NUM 191
#define PARAM_NUM 36

#define ENUM_NUM 16 //16
#define CHECK_NUM 9
#define SOL_MAX_NUM 200

//#define SET_VAL (((value_t)14764175488)<< ENUM_NUM)

#define BLOCK_NUM 32 //2^5
#define THREAD_NUM  256 // 2^8
#define THREADS_SHIFT 13 // (5+8)
typedef long value_t; // to save values of variables.

//typedef unsigned long constpart_t; // the part with no parameters.
typedef unsigned long linearpart_t; // to save 32 unknowns and 1 contants.
typedef unsigned long squarepart_t;

typedef unsigned long oripoly_t;



static inline void binary_print(value_t val, int len) {

    for (int i = 0; i < len; i++) {
        if (val & ((value_t)1 << i)) {
            printf("1");
        } else {
            printf("0");
        }

        if ((i + 1) % 5 == 0) {
            printf(" ");
        }
    }

}


typedef unsigned char UINT8;
typedef unsigned long long UINT64;
typedef UINT64 tKeccakLane;

//#define KeccakReference
#define maxNrRounds 24
#define nrLanes 25
#define index(x, y) (((x)%5)+5*((y)%5))
#define KeccakP1600_stateSizeInBytes    200


static tKeccakLane KeccakRoundConstants[maxNrRounds];
static unsigned int KeccakRhoOffsets[nrLanes];

__constant__ tKeccakLane const_KeccakRoundConstants[maxNrRounds] =
{
    0x0000000000000001,
    0x0000000000008082,
    0x800000000000808a,
    0x8000000080008000,
    0x000000000000808b,
    0x0000000080000001,
    0x8000000080008081,
    0x8000000000008009,
    0x000000000000008a,
    0x0000000000000088,
    0x0000000080008009,
    0x000000008000000a,
    0x000000008000808b,
    0x800000000000008b,
    0x8000000000008089,
    0x8000000000008003,
    0x8000000000008002,
    0x8000000000000080,
    0x000000000000800a,
    0x800000008000000a,
    0x8000000080008081,
    0x8000000000008080,
    0x0000000080000001,
    0x8000000080008008,
};

__constant__ unsigned int const_KeccakRhoOffsets[nrLanes] =
{
     0,  1, 62, 28, 27, 36, 44,  6, 55, 20,  3, 10, 43, 25, 39, 41, 45, 15, 21,  8, 18,  2, 61, 56, 14
};

void KeccakP1600_InitializeRoundConstants(void);
void KeccakP1600_InitializeRhoOffsets(void);
static int LFSR86540(UINT8 *LFSR);
int displayLevel = 10;

 void KeccakP1600_StaticInitialize(void)
{
    if (sizeof(tKeccakLane) != 8) {
        printf("tKeccakLane should be 64-bit wide\n");
        abort();
    }
    KeccakP1600_InitializeRoundConstants();
    KeccakP1600_InitializeRhoOffsets();
}

 void KeccakP1600_InitializeRoundConstants(void)
{
    UINT8 LFSRstate = 0x01;
    unsigned int i, j, bitPosition;

    for(i=0; i<maxNrRounds; i++) {
        KeccakRoundConstants[i] = 0;
        for(j=0; j<7; j++) {
            bitPosition = (1<<j)-1; /* 2^j-1 */
            if (LFSR86540(&LFSRstate))
                KeccakRoundConstants[i] ^= (tKeccakLane)1<<bitPosition;
        }
    }
}

 void KeccakP1600_InitializeRhoOffsets(void)
{
    unsigned int x, y, t, newX, newY;

    KeccakRhoOffsets[index(0, 0)] = 0;
    x = 1;
    y = 0;
    for(t=0; t<24; t++) {
        KeccakRhoOffsets[index(x, y)] = ((t+1)*(t+2)/2) % 64;
        newX = (0*x+1*y) % 5;
        newY = (2*x+3*y) % 5;
        x = newX;
        y = newY;
    }
}

static int LFSR86540(UINT8 *LFSR)
{
    int result = ((*LFSR) & 0x01) != 0;
    if (((*LFSR) & 0x80) != 0)
    /* Primitive polynomial over GF(2): x^8+x^6+x^5+x^4+1 */
        (*LFSR) = ((*LFSR) << 1) ^ 0x71;
    else
        (*LFSR) <<= 1;
    return result;
}

__host__ __device__ void KeccakP1600_Initialize(void *state)
{
    memset(state, 0, 1600/8);
}


/* ---------------------------------------------------------------- */

__host__ __device__ void KeccakP1600_AddByte(void *state, unsigned char byte, unsigned int offset)
{
    assert(offset < 200);
    ((unsigned char *)state)[offset] ^= byte;
}

/* ---------------------------------------------------------------- */

__host__ __device__ void KeccakP1600_AddBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int length)
{
    unsigned int i;

    assert(offset < 200);
    assert(offset+length <= 200);
    for(i=0; i<length; i++)
        ((unsigned char *)state)[offset+i] ^= data[i];
}

/* ---------------------------------------------------------------- */

__host__ __device__ void KeccakP1600_OverwriteBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int length)
{
    assert(offset < 200);
    assert(offset+length <= 200);
    memcpy((unsigned char*)state+offset, data, length);
}

/* ---------------------------------------------------------------- */

__host__ __device__ void KeccakP1600_OverwriteWithZeroes(void *state, unsigned int byteCount)
{
    assert(byteCount <= 200);
    memset(state, 0, byteCount);
}


#define ROL64(a, offset) ((offset != 0) ? ((((tKeccakLane)a) << offset) ^ (((tKeccakLane)a) >> (64-offset))) : a)

static __host__ __device__ void theta(tKeccakLane *A)
{
    unsigned int x, y;
    tKeccakLane C[5]={0,0,0,0,0}, D[5]={0,0,0,0,0};

    for(x=0; x<5; x++) {
        C[x] = 0;
        for(y=0; y<5; y++)
            C[x] ^= A[index(x, y)];
    }
    for(x=0; x<5; x++)
        D[x] = ROL64(C[(x+1)%5], 1) ^ C[(x+4)%5];
    for(x=0; x<5; x++)
        for(y=0; y<5; y++)
            A[index(x, y)] ^= D[x];
}

static void rho(tKeccakLane *A)
{
    unsigned int x, y;

    for(x=0; x<5; x++) for(y=0; y<5; y++)
        A[index(x, y)] = ROL64(A[index(x, y)], KeccakRhoOffsets[index(x, y)]);
}

static __device__ void rho_Device(tKeccakLane *A)
{
    unsigned int x, y;

    for(x=0; x<5; x++) for(y=0; y<5; y++)
        A[index(x, y)] = ROL64(A[index(x, y)], const_KeccakRhoOffsets[index(x, y)]);
}

static __host__ __device__ void pi(tKeccakLane *A)
{
    unsigned int x, y;
    tKeccakLane tempA[25];

    for(x=0; x<5; x++) for(y=0; y<5; y++)
        tempA[index(x, y)] = A[index(x, y)];
    for(x=0; x<5; x++) for(y=0; y<5; y++)
        A[index(0*x+1*y, 2*x+3*y)] = tempA[index(x, y)];
}

static __host__ __device__ void chi(tKeccakLane *A)
{
    unsigned int x, y;
    tKeccakLane C[5];

    for(y=0; y<5; y++) {
        for(x=0; x<5; x++)
            C[x] = A[index(x, y)] ^ ((~A[index(x+1, y)]) & A[index(x+2, y)]);
        for(x=0; x<5; x++)
            A[index(x, y)] = C[x];
    }
}

static void iota(tKeccakLane *A, unsigned int indexRound)
{
    A[index(0, 0)] ^= KeccakRoundConstants[indexRound];
}

static __device__ void iota_Device(tKeccakLane *A, unsigned int indexRound)
{
    A[index(0, 0)] ^= const_KeccakRoundConstants[indexRound];
}

void KeccakP1600Round(tKeccakLane *state, unsigned int indexRound)
{

    theta(state);
    rho(state);
    pi(state);
    chi(state);
    iota(state, indexRound);
}

__device__ void KeccakP1600Round_Device(tKeccakLane *state,unsigned int indexRound) {

	theta(state);
	rho_Device(state);
	pi(state);
	chi(state);
	iota_Device(state, indexRound);

}

void stateInit(tKeccakLane state[25]) {
	KeccakP1600_StaticInitialize();


	FILE *f = fopen("../data/state_files/messaged_state.txt", "r+"); //todo path
	char line[100];

	for (int k = 0; k < 5; k++) {
		fgets(line, 100, f);
		for (int i = 0; i < 5; i++) {
			char hex_s = 0;
			UINT64 tmp_val = 0;
			for (int j = 0; j < 17; j++) {

				if (line[i * 17 + j] <= '9' && line[i * 17 + j] >= '0') {
					hex_s = line[i * 17 + j] - '0';
				} else {
					hex_s = line[i * 17 + j] - 'a' + 10;
				}

				if (j < 16) {
					//printf("%c", line[i*17 + j] );
					tmp_val = (tmp_val << 4) ^ (hex_s);
				}

			}

			state[k * 5 + i] = tmp_val;
			//printf("%08x%08x ", (unsigned int) (state[k * 5 + i] >> 32),(unsigned int) (state[k * 5 + i] & 0xFFFFFFFFLU));
		}
	}

	fclose(f);

}

void getStates(tKeccakLane state[25], oripoly_t var_all[640][4], value_t val,
		value_t solutions[3]) {
	value_t val_sol[4];
	val_sol[3] = solutions[2];
	val_sol[2] = solutions[1];
	val_sol[1] = solutions[0];
	val_sol[0] = val ^ ((value_t) 1 << PARAM_NUM);

	for (int i = 0; i < 640; i++) {
		value_t w[4] = { 0, 0, 0, 0 };
		for (int j = 0; j < 4; j++) {
			w[j] = var_all[i][j] & val_sol[j];

		}

		w[0] = w[0] ^ w[1] ^ w[2] ^ w[3];
		w[0] = (w[0]) ^ (w[0] >> 32);
		w[0] = (w[0]) ^ (w[0] >> 16);
		w[0] = (w[0]) ^ (w[0] >> 8);
		w[0] = (w[0]) ^ (w[0] >> 4);
		w[0] = (w[0]) ^ (w[0] >> 2);
		w[0] = (w[0]) ^ (w[0] >> 1);
		if (w[0] & (value_t) 1) {
			int n = (i / 64 > 4) ? (i / 64 + 5) : i / 64;
			state[n] ^= ((UINT64) 1) << (i % 64);

		}
	}


}

int checkHashValue(tKeccakLane state[25], tKeccakLane hashvalue[4]) {


	tKeccakLane state_copy[25];
	for(int i = 0; i < 25; i++){
		state_copy[i] = state[i];
	}





	for (int i = 0; i < 3; i++) {
		KeccakP1600Round(state, i);
	}



	int result = 0;
	if(state[0] == hashvalue[0] && state[1] == hashvalue[1] && state[2] == hashvalue[2] && ((state[3] ^= hashvalue[3]) & (0x00000000FFFFFFFF)) == 0){
		printf("Find Preimage!!!\nState after XORed with block2:");
		for (int i = 0; i < 25; i++) {
			binary_print(state_copy[i], 64);
			printf(" ");
			printf("%llu ",state_copy[i]);
		}
		printf("\n");


		result = 1;
	}
	return result;
}




__constant__ tKeccakLane const_state[25];
__constant__ tKeccakLane const_hashvalue[4];


__device__ linearpart_t d_linear_mat[ENUM_NUM * POLY_NUM * 3];
__device__ squarepart_t d_square_mat[ENUM_NUM * POLY_NUM];
__device__ value_t d_var_all[2560];



static inline __host__ __device__ int largestpos(value_t val, int len) {

	for (int i = len - 1; i >= 0; i--) {
		if (val & ((value_t) 1 << i)) {
			return i;
		}
	}

	return -1;
}


static inline __host__ __device__ int largestpos_3(value_t val0, value_t val1,
		value_t val2, int len) {
	int p = 0;
	if (len > 128) {
		p = largestpos(val2, len - 128);
		if (p > -1) {
			return p + 128;
		} else {
			p = largestpos(val1, 64);
			if (p > -1) {
				return p + 64;
			} else {
				p = largestpos(val0, 64);

			}
		}
	} else if (len > 64 && len <= 128) {
		p = largestpos(val1, len - 64);
		if (p > -1) {
			return p + 64;
		} else {
			p = largestpos(val0, 64);

		}
	} else {
		p = largestpos(val0, 64);

	}

	return p;
}


static inline value_t gauss_host(linearpart_t working_mat[POLY_NUM][3],
		const int poly_num, const int unknown_num, value_t solutions[SOL_MAX_NUM][3]) {

	int pos_arr[POLY_NUM]; // bear revised
	int rank = 0;

	for (int pi = 0; pi < POLY_NUM; pi++) {

		if (working_mat[pi][0] == 0 && working_mat[pi][1] == 0 && working_mat[pi][2] == 0) {
			continue;
		}


		pos_arr[pi] = largestpos_3(working_mat[pi][0],working_mat[pi][1],working_mat[pi][2], unknown_num + 1);

		rank++;
		if (pos_arr[pi] == 0) {
			return 0;
		}





		for (int j = pi + 1; j < POLY_NUM; j++) {

			if(working_mat[j][pos_arr[pi]/64] & ((linearpart_t)1 << (pos_arr[pi] % 64))){
                working_mat[j][0] ^= (working_mat[pi][0]);
                working_mat[j][1] ^= (working_mat[pi][1]);
                working_mat[j][2] ^= (working_mat[pi][2]);
            }
		}



	}


	// back
	for (int pi = 0; pi < POLY_NUM; pi++) {

		if (working_mat[pi][0] == 0 && working_mat[pi][1] == 0
				&& working_mat[pi][2] == 0) {
			continue;
		}

		for (int j = 0; j < pi; j++) {
			if (working_mat[j][pos_arr[pi] / 64]
					& ((linearpart_t) 1 << (pos_arr[pi] % 64))) {
				working_mat[j][0] ^= (working_mat[pi][0]);
				working_mat[j][1] ^= (working_mat[pi][1]);
				working_mat[j][2] ^= (working_mat[pi][2]);
			}
		}
	}

	if (rank == unknown_num) {

		// only one solution.
		solutions[0][0] = 0;
		solutions[0][1] = 0;
		solutions[0][2] = 0;
		for (int pi = 0; pi < POLY_NUM; pi++) {

			if (working_mat[pi][0] == 0 && working_mat[pi][1] == 0 &&  working_mat[pi][2] == 0) {
				continue;
			}
			if (working_mat[pi][0] & (linearpart_t)1) {
			    solutions[0][(pos_arr[pi]-1) /64 ] ^= ((value_t)1 << (pos_arr[pi]-1) % 64);
			}
		}

		return 1;

	} else {

		// now troubles come
		solutions[0][0] = 0;
		solutions[0][1] = 0;
		solutions[0][2] = 0;
		value_t sol_num = 1;
		bool appear[UNKNOWN_NUM + 1];
		for(int nn = 0; nn < UNKNOWN_NUM + 1; nn++){

			appear[nn] = 0;

		}



		for (int pi = 0; pi < POLY_NUM; pi++) {

			if (working_mat[pi][0] == 0 && working_mat[pi][1] == 0 && working_mat[pi][2] == 0) {
				continue;
			}

			appear[pos_arr[pi]] = true;
			if (working_mat[pi][0] & (linearpart_t)1) {
			    solutions[0][(pos_arr[pi]-1) /64 ] ^= ((value_t)1 << (pos_arr[pi]-1) % 64);
			}
		}

		// duplicate solutions.
		for (int i = 1; i < UNKNOWN_NUM+1; i++) {  // liting revised

			if (appear[i] == false) {


				for (int j = 0; j < sol_num; j++) {
				    // bear revised
					solutions[j + sol_num][0] = solutions[j][0];
					solutions[j + sol_num][1] = solutions[j][1];
					solutions[j + sol_num][2] = solutions[j][2];
					solutions[j + sol_num][(i-1)/64] ^= ((value_t)1 << ((i-1)%64));
				}

				// bear added
                for (int pi = 0; pi < POLY_NUM; pi++) {
				    if (working_mat[pi][0] == 0 && working_mat[pi][1] == 0 && working_mat[pi][2] == 0) {
			            continue;
		            }

				    for (int j = 0; j < sol_num * ((working_mat[pi][i/64] & (((linearpart_t) 1) << (i%64))) != 0); j++) {

				    	solutions[j + sol_num][(pos_arr[pi] - 1)/64] ^= ((value_t) 1 << ((pos_arr[pi] - 1)% 64));
				    }


				}


				sol_num *= 2;

			}
		}

		return sol_num;

	}

}




static inline __device__ value_t gauss(value_t solutions[SOL_MAX_NUM][3], linearpart_t working_mat[POLY_NUM][3],
		const int poly_num, const int unknown_num) {

	// bear revised
	int pos_arr[POLY_NUM]; // bear revised
	int rank = 0;

	for (int pi = 0; pi < POLY_NUM; pi++) {

		if (working_mat[pi][0] == 0 && working_mat[pi][1] == 0
				&& working_mat[pi][2] == 0) {
			continue;
		}

		pos_arr[pi] = largestpos_3(working_mat[pi][0], working_mat[pi][1],working_mat[pi][2],unknown_num + 1);
		rank++;


		if (pos_arr[pi] == 0) {
			return 0;
		}

		for (int j = pi + 1; j < POLY_NUM; j++) {

			if (working_mat[j][pos_arr[pi] / 64]
					& ((linearpart_t) 1 << (pos_arr[pi] % 64))) {
				working_mat[j][0] ^= (working_mat[pi][0]);
				working_mat[j][1] ^= (working_mat[pi][1]);
				working_mat[j][2] ^= (working_mat[pi][2]);
			}
		}

	}

	// back
	for (int pi = 0; pi < POLY_NUM; pi++) {

		if (working_mat[pi][0] == 0 && working_mat[pi][1] == 0
				&& working_mat[pi][2] == 0) {
			continue;
		}

		for (int j = 0; j < pi; j++) {
			if (working_mat[j][pos_arr[pi] / 64]
					& ((linearpart_t) 1 << (pos_arr[pi] % 64))) {
				working_mat[j][0] ^= (working_mat[pi][0]);
				working_mat[j][1] ^= (working_mat[pi][1]);
				working_mat[j][2] ^= (working_mat[pi][2]);
			}
		}
	}

	if (rank == unknown_num) {

		// only one solution.
		solutions[0][0] = 0;
		solutions[0][1] = 0;
		solutions[0][2] = 0;
		for (int pi = 0; pi < POLY_NUM; pi++) {

			if (working_mat[pi][0] == 0 && working_mat[pi][1] == 0
					&& working_mat[pi][2] == 0) {
				continue;
			}
			if (working_mat[pi][0] & (linearpart_t) 1) {
				solutions[0][(pos_arr[pi] - 1) / 64] ^= ((value_t) 1
						<< (pos_arr[pi] - 1) % 64);
			}
		}

		return 1;

	} else {

		// now troubles come
		// now troubles come
		solutions[0][0] = 0;
		solutions[0][1] = 0;
		solutions[0][2] = 0;
		value_t sol_num = 1;
		//liting revised
		bool appear[UNKNOWN_NUM + 1];
		for(int nn = 0; nn < UNKNOWN_NUM + 1; nn++){

			appear[nn] = 0;

		}

		for (int pi = 0; pi < POLY_NUM; pi++) {

			if (working_mat[pi][0] == 0 && working_mat[pi][1] == 0
					&& working_mat[pi][2] == 0) {
				continue;
			}

			appear[pos_arr[pi]] = true;
			if (working_mat[pi][0] & (linearpart_t) 1) {
				solutions[0][(pos_arr[pi] - 1) / 64] ^= ((value_t) 1
						<< (pos_arr[pi] - 1) % 64);
			}
		}

		// duplicate solutions.
		for (int i = 1; i < UNKNOWN_NUM + 1; i++) {  // liting revised

			if (appear[i] == false) {

				for (int j = 0; j < sol_num; j++) {
					// bear revised
					solutions[j + sol_num][0] = solutions[j][0];
					solutions[j + sol_num][1] = solutions[j][1];
					solutions[j + sol_num][2] = solutions[j][2];
					solutions[j + sol_num][(i - 1) / 64] ^= ((value_t) 1
							<< ((i - 1) % 64));
				}

				// bear added
				for (int pi = 0; pi < POLY_NUM; pi++) {
					if (working_mat[pi][0] == 0 && working_mat[pi][1] == 0
							&& working_mat[pi][2] == 0) {
						continue;
					}

					for (int j = 0;j< sol_num* ((working_mat[pi][i / 64]& (((linearpart_t) 1)<< (i % 64))) != 0);j++) {

						solutions[j + sol_num][(pos_arr[pi] - 1) / 64] ^=((value_t) 1 << ((pos_arr[pi] - 1) % 64));
					}

				}

				sol_num *= 2;

			}
		}

		return sol_num;

	}

}





__global__ void solveLinear(const linearpart_t *d_working_mat_copy,
		const squarepart_t *d_const_mat, value_t *d_val, value_t *d_sol_total,value_t* result) {

	int thidx = blockDim.x * blockIdx.x + threadIdx.x;
	value_t val = d_val[thidx];

	linearpart_t working_mat[POLY_NUM][3]; // initialized as the const part of linear matrix. also used as the results of linear part.
	linearpart_t working_mat_copy[POLY_NUM][3];

	squarepart_t const_mat[POLY_NUM];
	d_sol_total[thidx] = 0;



	//copy data from device
	for (int i = 0; i < POLY_NUM; i++) {
		working_mat_copy[i][0] = d_working_mat_copy[thidx * POLY_NUM * 3 + i*3];
		working_mat_copy[i][1] = d_working_mat_copy[thidx * POLY_NUM * 3 + i*3 + 1];
		working_mat_copy[i][2] = d_working_mat_copy[thidx * POLY_NUM * 3 + i*3 + 2];

		const_mat[i] = d_const_mat[thidx * POLY_NUM + i];
	}

	// main loop.
	for (value_t count = 1; count < (1 << ENUM_NUM); count++) {

		// generate the next gray code
		int pos = 64-__ffsll(__brevll(count ^ (count - 1)));

		val = val ^ ((value_t) 1 << pos);


		for (int pi = 0; pi < POLY_NUM; pi++) {
			working_mat_copy[pi][0] ^= d_linear_mat[pos * POLY_NUM * 3 + pi * 3];
			working_mat_copy[pi][1] ^= d_linear_mat[pos * POLY_NUM * 3 + pi * 3 + 1];
			working_mat_copy[pi][2] ^= d_linear_mat[pos * POLY_NUM * 3 + pi * 3 + 2];

			const_mat[pi] ^= d_square_mat[pos * POLY_NUM + pi];

			working_mat[pi][0] = working_mat_copy[pi][0];
			working_mat[pi][1] = working_mat_copy[pi][1];
			working_mat[pi][2] = working_mat_copy[pi][2];


			value_t w = const_mat[pi] & val;


			working_mat[pi][0] ^= (bool)((__popcll((unsigned long long int)w)) & (value_t) 1);


		}

		value_t solutions[SOL_MAX_NUM][3];
		value_t sol_num = 0;


		// gauss
		sol_num = gauss(solutions, working_mat, POLY_NUM, UNKNOWN_NUM);
		d_sol_total[thidx] += sol_num;
		// verify on 3 round keccak.
		tKeccakLane dState[25];


		for(int s = 0;s < sol_num;s++){
			dState[0] = 0;
			dState[1] = 0;
			dState[2] = 0;
			dState[3] = 0;
			dState[4] = 0;
			dState[5] = const_state[5];
			dState[6] = const_state[6];
			dState[7] = const_state[7];
			dState[8] = const_state[8];
			dState[9] = const_state[9];
			dState[10] = 0;
			dState[11] = 0;
			dState[12] = 0;
			dState[13] = 0;
			dState[14] = 0;
			dState[15] = const_state[15];
			dState[16] = const_state[16];
			dState[17] = const_state[17];
			dState[18] = const_state[18];
			dState[19] = const_state[19];

			dState[20] = const_state[20];
			dState[21] = const_state[21];
			dState[22] = const_state[22];
			dState[23] = const_state[23];
			dState[24] = const_state[24];


			value_t val_sol[4];
			val_sol[3] = solutions[s][2];
			val_sol[2] = solutions[s][1];
			val_sol[1] = solutions[s][0];
			val_sol[0] = val ^ ((value_t)1 << PARAM_NUM);

			for(int i = 0; i< 640; i ++){
				value_t w[4] ={0,0,0,0};
				for(int j = 0; j< 4; j++){
					w[j] = d_var_all[i * 4 + j] & val_sol[j];
				}

				w[0] = w[0] ^w[1]^w[2]^w[3];


				if ((bool)((__popcll((unsigned long long int)w[0])) & (value_t) 1)) {
					int n = (i/64 > 4 )?( i/64 + 5 ): i/64 ;
					dState[n] ^= ((UINT64)1) << (i % 64);
				}
			}


			tKeccakLane state_copy[25];
			for(int i = 0; i < 25; i++){
				state_copy[i] = dState[i];
			}



            KeccakP1600Round_Device(dState, 0);

            KeccakP1600Round_Device(dState, 1);
            KeccakP1600Round_Device(dState, 2);

            if(dState[0] == const_hashvalue[0] && dState[1] == const_hashvalue[1] && dState[2] == const_hashvalue[2] && ((dState[3] ^= const_hashvalue[3]) & (0x00000000FFFFFFFF)) == 0){
				printf("Find Preimage!!! val is %lu.\n",val);
				result[0] = val;
				result[1] = val_sol[1];
				result[2] = val_sol[2];
				result[3] = val_sol[3];
				printf("The messaged state :");
				for (int i = 0; i < 25; i++) {
					printf("%llx ", state_copy[i]);
					if(i % 5 == 0){
						printf("\n");
					}

				}
				printf("\n");
			}

		}
	}

}





int main(int argc, char** argv) {

	printf("read middle state\n");
	tKeccakLane state[25];
	stateInit(state);

	printf("read hash value\n");
   	FILE *hashvalue_file = fopen("../../hash_value.txt", "r+");
	tKeccakLane hashvalue[4] = { 0, 0, 0, 0 };
	char line[20];

	for (int i = 0; i < 4; i++) {
		fgets(line, 20, hashvalue_file);

		char hex_s = 0;
		UINT64 tmp_val = 0;
		for (int j = 0; j < 17; j++) {

			if (line[j] <= '9' && line[j] >= '0') {
				hex_s = line[j] - '0';
			}else if(line[j] <= 'z' && line[j] >= 'a'){
                hex_s = line[j] - 'a' + 10;
            }else if(line[j] <= 'Z' && line[j] >= 'A'){
                hex_s = line[j] - 'A' + 10;
            }

			if (j < 16) {
				//printf("%c", line[i*17 + j] );
				tmp_val = (tmp_val << 4) ^ (hex_s);
			}

		}

		hashvalue[i] = tmp_val;
	}
	fclose (hashvalue_file);

	hipError_t err0 = hipSuccess;
	err0 = hipMemcpyToSymbol(HIP_SYMBOL(const_state), state, 25 * sizeof(tKeccakLane), 0,
			hipMemcpyHostToDevice);
	if (err0 != hipSuccess) {
		printf("Failed to copy host to device(error code %s)!\n",
				hipGetErrorString(err0));
		exit(EXIT_FAILURE);
	}

	err0 = hipSuccess;
	err0 = hipMemcpyToSymbol(HIP_SYMBOL(const_hashvalue), hashvalue, 4 * sizeof(tKeccakLane), 0,
			hipMemcpyHostToDevice);
	if (err0 != hipSuccess) {
		printf("Failed to copy host to device(error code %s)!\n",
				hipGetErrorString(err0));
		exit(EXIT_FAILURE);
	}



	const int para_num = PARAM_NUM;
	const int enum_num = ENUM_NUM;
	//const int set_num = para_num - enum_num;

	value_t set_val = atol(argv[1])<<THREADS_SHIFT;
//	value_t set_val = 0;
	const int unknown_num = UNKNOWN_NUM;
	const int poly_num = POLY_NUM;

	linearpart_t linear_mat[para_num][poly_num][3];
	linearpart_t working_mat[poly_num][3]; // initialized as the const part of linear matrix. also used as the results of linear part.
	linearpart_t working_mat_copy[poly_num][3];
	linearpart_t working_mat_file[poly_num][3];

	squarepart_t square_mat[para_num][poly_num];
	squarepart_t const_mat[poly_num]; // used to compute the const part from square polys.
	oripoly_t var_all[640][4];

//	cudaSetDevice(0);
	hipSetDevice(atoi(argv[2]));

	//todo
	FILE *in1 = fopen("../data/mat_files/linear_mat.txt", "r+");
	FILE *in2 = fopen("../data/mat_files/square_mat.txt", "r+");
	FILE *in4 = fopen("../data/mat_files/working_mat.txt", "r+");
	FILE *in5 = fopen("../data/mat_files/totalLinear_mat.txt", "r+");

	char c1, c2, c4, c5;
	for (int i = 0; i < para_num; i++) {
		for (int j = 0; j < poly_num; j++) {
			linear_mat[i][j][0] = 0;
			linear_mat[i][j][1] = 0;
			linear_mat[i][j][2] = 0;
			square_mat[i][j] = 0;

			for (int k = 0; k < 192; k++) {
				fscanf(in1, "%c", &c1);
				while (c1 != '0' && c1 != '1') {
					fscanf(in1, "%c", &c1);
				}
				if (c1 == '1') {

					linear_mat[i][j][k / 64] ^= ((linearpart_t) 1 << (k % 64));
				}
			}

			for (int k = 0; k < 64; k++) {
				fscanf(in2, "%c", &c2);
				while (c2 != '0' && c2 != '1') {
					fscanf(in2, "%c", &c2);
				}
				if (c2 == '1') {
					square_mat[i][j] ^=
							((squarepart_t) 1 << (para_num - 1 - k));
				}
			}
		}

	}

	for (int i = 0; i < poly_num; i++) {
		working_mat[i][0] = 0;
		working_mat[i][1] = 0;
		working_mat[i][2] = 0;
		for (int j = 0; j < 192; j++) {
			fscanf(in4, "%c", &c4);
			while (c4 != '0' && c4 != '1') {
				fscanf(in4, "%c", &c4);
			}
			if (c4 == '1') {

				working_mat[i][j / 64] ^= ((linearpart_t) 1 << (j % 64));
			}
		}
		working_mat_file[i][0] = working_mat[i][0];
		working_mat_file[i][1] = working_mat[i][1];
		working_mat_file[i][2] = working_mat[i][2];
	}

	for (int i = 0; i < 640; i++) {
		var_all[i][0] = 0;
		var_all[i][1] = 0;
		var_all[i][2] = 0;
		var_all[i][3] = 0;
		for (int j = 0; j < 256; j++) {

			fscanf(in5, "%c", &c5);
			while (c5 != '0' && c5 != '1') {
				fscanf(in5, "%c", &c5);

			}
			if (c5 == '1') {
				var_all[i][j / 64] ^= ((value_t) 1 << (j % 64));
			}

		}

	}

	fclose(in1);
	fclose(in2);
	fclose(in4);
	fclose(in5);

	printf("finish reading file!\n");

	linearpart_t linear_mat_enum[ENUM_NUM * POLY_NUM * 3];
	squarepart_t square_mat_enum[ENUM_NUM * POLY_NUM];
	value_t var_all_enum[640 * 4];

	for (int i = 0; i < ENUM_NUM; i++) {
		for (int j = 0; j < POLY_NUM; j++) {
			for (int k = 0; k < 3; k++) {
				linear_mat_enum[i * POLY_NUM * 3 + j * 3 + k] =
						linear_mat[i][j][k];

			}
		}
	}

	for (int i = 0; i < ENUM_NUM; i++) {
		for (int j = 0; j < POLY_NUM; j++) {
			square_mat_enum[i * POLY_NUM + j] = square_mat[i][j];
		}
	}

	hipMemcpyToSymbol(HIP_SYMBOL(d_linear_mat), linear_mat_enum,
			3 * ENUM_NUM * POLY_NUM * sizeof(linearpart_t));
	hipMemcpyToSymbol(HIP_SYMBOL(d_square_mat), square_mat_enum,
			ENUM_NUM * POLY_NUM * sizeof(squarepart_t));

	for (int i = 0; i < 640; i++) {
		for (int j = 0; j < 4; j++) {
			var_all_enum[i * 4 + j] = var_all[i][j];
		}

	}
	hipMemcpyToSymbol(HIP_SYMBOL(d_var_all), var_all_enum, 640 * 4 * sizeof(value_t));

	printf("finish copying device memory!\n");

	hipError_t err = hipSuccess;
	int thidx = BLOCK_NUM * THREAD_NUM;

	value_t *d_val = NULL;
	err = hipMalloc((void **) &d_val, thidx * sizeof(value_t));
	if (err != hipSuccess) {
		printf("Failed to allocate device value (error code %s)!\n",
				hipGetErrorString(err));
		exit(EXIT_FAILURE);
	}

	value_t *d_sol_total = NULL;
	err = hipMalloc((void **) &d_sol_total, thidx * 3 * sizeof(value_t));
	if (err != hipSuccess) {
		printf("Failed to allocate device value (error code %s)!\n",
				hipGetErrorString(err));
		exit(EXIT_FAILURE);
	}

	linearpart_t *d_working_mat_copy = NULL;
	err = hipMalloc((void **) &d_working_mat_copy,
			thidx * poly_num * 3 * sizeof(linearpart_t));
	if (err != hipSuccess) {
		fprintf(stderr,
				"Failed to allocate device working_mat_copy (error code %s)!\n",
				hipGetErrorString(err));
		exit(EXIT_FAILURE);
	}

	squarepart_t *d_const_mat = NULL;
	err = hipMalloc((void **) &d_const_mat,
			thidx * poly_num * sizeof(squarepart_t));
	if (err != hipSuccess) {
		fprintf(stderr,
				"Failed to allocate devices const_mat (error code %s)!\n",
				hipGetErrorString(err));
		exit(EXIT_FAILURE);
	}

	if (err != hipSuccess) {
		fprintf(stderr,
				"Failed to copy oripolys from host to device (error code %s)!\n",
				hipGetErrorString(err));
		exit(EXIT_FAILURE);
	}

	value_t h_result[4] = {0, 0, 0, 0};
	value_t *d_result = NULL;
	err = hipMalloc((void **) &d_result, 4 *sizeof(value_t));
	if (err != hipSuccess) {
		fprintf(stderr,
				"Failed to allocate devices result (error code %s)!\n",
				hipGetErrorString(err));
		exit(EXIT_FAILURE);
	}
	err = hipMemcpy(d_result, h_result,
	4 * sizeof(value_t),hipMemcpyHostToDevice);

		if (err != hipSuccess) {
			fprintf(stderr,
					"Failed to copy result from host to device (error code %s)!\n",
					hipGetErrorString(err));
			exit(EXIT_FAILURE);
		}


	printf("finish allocate device memory!\n");

//	value_t val_arr[thidx];
//	linearpart_t working_mat_copy_arr[thidx * POLY_NUM * 3];
//	squarepart_t const_mat_arr[thidx * POLY_NUM];
	int s_total_p0 = 0;
	value_t *val_arr = (value_t*)calloc(thidx, sizeof(value_t));
	linearpart_t *working_mat_copy_arr = (linearpart_t*)calloc(thidx * POLY_NUM * 3, sizeof(linearpart_t));
	squarepart_t *const_mat_arr = (squarepart_t*)calloc(thidx * POLY_NUM, sizeof(squarepart_t));
	for (int thi = 0; thi < thidx; thi++) {

		value_t sol_num = 0;
		value_t solutions[SOL_MAX_NUM][3];

		//int sol_total = 0;
		value_t val = (set_val + (value_t) thi) << ENUM_NUM;
		val_arr[thi] = val;
		for (int pi = 0; pi < POLY_NUM; pi++) {
			working_mat[pi][0] = working_mat_file[pi][0];
			working_mat[pi][1] = working_mat_file[pi][1];
			working_mat[pi][2] = working_mat_file[pi][2];

			const_mat[pi] = 0;
		}

		for (int pos = enum_num; pos < para_num; pos++) {

			if (val & ((value_t) 1 << pos)) {

				for (int pi = 0; pi < poly_num; pi++) {
					working_mat[pi][0] ^= linear_mat[pos][pi][0];
					working_mat[pi][1] ^= linear_mat[pos][pi][1];
					working_mat[pi][2] ^= linear_mat[pos][pi][2];
				}

				for (int pi = 0; pi < poly_num; pi++) {
					const_mat[pi] ^= square_mat[pos][pi];

				}

			}

		}


		for (int i = 0; i < poly_num; i++) {
			working_mat_copy[i][0] = working_mat[i][0];
			working_mat_copy[i][1] = working_mat[i][1];
			working_mat_copy[i][2] = working_mat[i][2];

			working_mat_copy_arr[thi * POLY_NUM * 3 + 3 * i] = working_mat_copy[i][0];
			working_mat_copy_arr[thi * POLY_NUM * 3 + 3 * i + 1] = working_mat_copy[i][1];
			working_mat_copy_arr[thi * POLY_NUM * 3 + 3 * i + 2] = working_mat_copy[i][2];

			const_mat_arr[thi * POLY_NUM + i] = const_mat[i];

		}

		for (int pi = 0; pi < poly_num; pi++) {

			value_t w = const_mat[pi] & val;

			w = (w) ^ (w >> 32);
			w = (w) ^ (w >> 16);
			w = (w) ^ (w >> 8);
			w = (w) ^ (w >> 4);
			w = (w) ^ (w >> 2);
			w = (w) ^ (w >> 1);

			if (w & (value_t) 1) {

				working_mat[pi][0] ^= (linearpart_t) 1;
			}

		}

		sol_num = gauss_host(working_mat, POLY_NUM, UNKNOWN_NUM, solutions);

		s_total_p0 += sol_num;
		 for (int s = 0; s < sol_num; s++) {

			tKeccakLane state[25];
			stateInit(state);
			getStates(state, var_all, val, solutions[s]);

			tKeccakLane state_cp[25];
			for(int sn = 0; sn < 25; sn++){
				state_cp[sn] = state[sn];

			}
			if(checkHashValue(state, hashvalue)){
				//todo
				FILE *out = fopen("final_messaged_state_online.txt","a+");
				printf("we have done on GPU!!! val:%lu, sol:%lu %lu %lu\n",val,solutions[s][0],solutions[s][1],solutions[s][2]);
				//fprintf(out,"we have done on GPU!!! val:%lu, sol:%lu %lu %lu\n",val,solutions[s][0],solutions[s][1],solutions[s][2]);

				fprintf(out, "The messaged state:");
								for (int sn = 0; sn < 25; sn++) {
									if (sn % 5 == 0) {
										fprintf(out, "\n");

									}
									fprintf(out, "%016lX ", state_cp[sn]);

								}

				fprintf(out, "\n\nThe output state:");
				for(int sn = 0; sn < 25 ;sn++){

					if(sn % 5 == 0){
						fprintf(out, "\n");

					}
					fprintf(out, "%016lX ", state[sn]);
				}




				fclose(out);
				printf("finish.\n");
				exit(0);
			}



		    }


	}

	printf("finish cpu computing!\n");

	//begin device part
	err = hipMemcpy(d_val, val_arr, thidx * sizeof(value_t),
			hipMemcpyHostToDevice);
	if (err != hipSuccess) {
		printf("Failed to copy value from host to device (error code %s)!\n",
				hipGetErrorString(err));
		exit(EXIT_FAILURE);
	}

	err = hipMemcpy(d_working_mat_copy, working_mat_copy_arr,
			thidx * 3 * poly_num * sizeof(linearpart_t), hipMemcpyHostToDevice);

	if (err != hipSuccess) {
		fprintf(stderr,
				"Failed to copy working_mat_copy from host to device (error code %s)!\n",
				hipGetErrorString(err));
		exit(EXIT_FAILURE);
	}

	err = hipMemcpy(d_const_mat, const_mat_arr,
			thidx * poly_num * sizeof(squarepart_t), hipMemcpyHostToDevice);

	if (err != hipSuccess) {
		fprintf(stderr,
				"Failed to copy const_mat from host to device (error code %s)!\n",
				hipGetErrorString(err));
		exit(EXIT_FAILURE);
	}

	printf("enum num : %d\nblock num : %d\nthread num : %d\n", ENUM_NUM,
			BLOCK_NUM, THREAD_NUM);

	hipEvent_t start1;
	hipEventCreate(&start1);
	hipEvent_t stop1;
	hipEventCreate(&stop1);
	hipEventRecord(start1, NULL);

	printf("begin solve linear system!\n");
	solveLinear<<<BLOCK_NUM, THREAD_NUM>>>(d_working_mat_copy, d_const_mat,
			d_val, d_sol_total,d_result);

	hipEventRecord(stop1, NULL);
	hipEventSynchronize(stop1);
	float msecTotal1 = 0.0f;
	hipEventElapsedTime(&msecTotal1, start1, stop1);
	err = hipGetLastError();

	if (err != hipSuccess) {
		fprintf(stderr, "Failed to launch solveLinear kernel (error code %s)!\n",
				hipGetErrorString(err));
		exit(EXIT_FAILURE);
	}
	value_t h_sol_total[thidx];
	err = hipMemcpy(h_sol_total, d_sol_total, thidx * sizeof(value_t),
				hipMemcpyDeviceToHost);

	if (err != hipSuccess) {
		fprintf(stderr,
				"Failed to copy total solution numbers from device to host (error code %s)!\n",
				hipGetErrorString(err));
			exit(EXIT_FAILURE);
	}

	err = hipMemcpy(h_result, d_result,4 * sizeof(value_t),
					hipMemcpyDeviceToHost);

	if (err != hipSuccess) {
		fprintf(stderr,
					"Failed to copy result from device to host (error code %s)!\n",
					hipGetErrorString(err));
		exit(EXIT_FAILURE);
	}

	if(h_result[0]!=0 || h_result[1]!=0 || h_result[2]!=0 ||  h_result[3]!=0){
	    FILE *out = fopen("../data/state_files/final_messaged_state_online.txt","a+");
		printf("we have done on GPU!!! val:%lu, sol:%lu %lu %lu\n",h_result[0],h_result[1],h_result[2],h_result[3]);
			//fprintf(out,"we have done on GPU!!! val:%lu, sol:%lu %lu %lu\n",h_result[0],h_result[1],h_result[2],h_result[3]);

		tKeccakLane state[25];
		stateInit(state);
		getStates(state, var_all, h_result[0], h_result+1);

		tKeccakLane state_cp[25];
		for (int sn = 0; sn < 25; sn++) {
			state_cp[sn] = state[sn];

		}

		for (int i = 0; i < 3; i++) {
			KeccakP1600Round(state, i);
		}


		fprintf(out, "The messaged state:");
		for (int sn = 0; sn < 25; sn++) {
			if (sn % 5 == 0) {
				fprintf(out, "\n");

			}
			fprintf(out, "%016lX ", state_cp[sn]);

		}

		fprintf(out, "\n\nThe output state:");
		for (int sn = 0; sn < 25; sn++) {
			if (sn % 5 == 0) {
				fprintf(out, "\n");

			}
			fprintf(out, "%016lX ", state[sn]);

		}


		fclose(out);
		printf("finish.\n");
		exit(0);
		fclose(out);
	}else{
			FILE *out = fopen("../data/mat_files/result.txt","a+");
			long sol_all_threads = s_total_p0;
			for(int i = 0;i < thidx;i++){
				sol_all_threads += h_sol_total[i];
			}
			printf("val : %lu~%lu ,find %lu solutions, none is correct...\n",set_val << ENUM_NUM ,(set_val << ENUM_NUM)+(THREAD_NUM * BLOCK_NUM) * (1 << ENUM_NUM) -1, sol_all_threads);
			fprintf(out, "Part %d finished -- val : %lu~%lu ,find %lu solutions, none is correct...\n",atol(argv[1]), set_val << ENUM_NUM ,(set_val << ENUM_NUM)+(THREAD_NUM * BLOCK_NUM) * (1 << ENUM_NUM) -1, sol_all_threads);
			fclose(out);

	}


	printf("time:%.3lf ms\n---------------------------------------\n", msecTotal1);


	hipFree(val_arr);
	hipFree(d_working_mat_copy);
	hipFree(d_const_mat);
	hipFree(d_val);
	hipFree(d_sol_total);
	hipFree(d_result);
}

	.text
	.file	"main.hip"
	.globl	_Z28KeccakP1600_StaticInitializev # -- Begin function _Z28KeccakP1600_StaticInitializev
	.type	_Z28KeccakP1600_StaticInitializev,@function
_Z28KeccakP1600_StaticInitializev:      # @_Z28KeccakP1600_StaticInitializev
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	_Z36KeccakP1600_InitializeRoundConstantsv
	movl	$0, _ZL16KeccakRhoOffsets(%rip)
	xorl	%eax, %eax
	movl	$1, %esi
	movl	$2, %ecx
	movl	$3435973837, %edx               # imm = 0xCCCCCCCD
.LBB0_1:                                # =>This Inner Loop Header: Depth=1
	leal	-1(%rcx), %edi
	imull	%ecx, %edi
	shrl	%edi
	andl	$63, %edi
	leal	(%rax,%rax,4), %r8d
	addl	%esi, %r8d
	movl	%edi, _ZL16KeccakRhoOffsets(,%r8,4)
	leal	(%rax,%rax,2), %edi
	leal	(%rdi,%rsi,2), %edi
	movq	%rdi, %rsi
	imulq	%rdx, %rsi
	shrq	$34, %rsi
	leal	(%rsi,%rsi,4), %esi
	subl	%esi, %edi
	incl	%ecx
	movl	%eax, %esi
	movl	%edi, %eax
	cmpl	$26, %ecx
	jne	.LBB0_1
# %bb.2:                                # %_Z32KeccakP1600_InitializeRhoOffsetsv.exit
	popq	%rax
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	_Z28KeccakP1600_StaticInitializev, .Lfunc_end0-_Z28KeccakP1600_StaticInitializev
	.cfi_endproc
                                        # -- End function
	.globl	_Z36KeccakP1600_InitializeRoundConstantsv # -- Begin function _Z36KeccakP1600_InitializeRoundConstantsv
	.type	_Z36KeccakP1600_InitializeRoundConstantsv,@function
_Z36KeccakP1600_InitializeRoundConstantsv: # @_Z36KeccakP1600_InitializeRoundConstantsv
	.cfi_startproc
# %bb.0:
	movb	$1, %dl
	xorl	%eax, %eax
.LBB1_1:                                # =>This Loop Header: Depth=1
                                        #     Child Loop BB1_2 Depth 2
	movq	$0, _ZL20KeccakRoundConstants(,%rax,8)
	xorl	%esi, %esi
	xorl	%ecx, %ecx
.LBB1_2:                                #   Parent Loop BB1_1 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	%edx, %edi
	leal	(%rdi,%rdi), %edx
	movzbl	%dl, %r8d
	xorb	$113, %dl
	testb	%dil, %dil
	movzbl	%dl, %edx
	cmovnsl	%r8d, %edx
	testb	$1, %dil
	je	.LBB1_4
# %bb.3:                                #   in Loop: Header=BB1_2 Depth=2
	movl	$-1, %edi
	shll	%cl, %edi
	notb	%dil
	btcq	%rdi, %rsi
	movq	%rsi, _ZL20KeccakRoundConstants(,%rax,8)
.LBB1_4:                                #   in Loop: Header=BB1_2 Depth=2
	incl	%ecx
	cmpl	$7, %ecx
	jne	.LBB1_2
# %bb.5:                                #   in Loop: Header=BB1_1 Depth=1
	incq	%rax
	cmpq	$24, %rax
	jne	.LBB1_1
# %bb.6:
	retq
.Lfunc_end1:
	.size	_Z36KeccakP1600_InitializeRoundConstantsv, .Lfunc_end1-_Z36KeccakP1600_InitializeRoundConstantsv
	.cfi_endproc
                                        # -- End function
	.globl	_Z32KeccakP1600_InitializeRhoOffsetsv # -- Begin function _Z32KeccakP1600_InitializeRhoOffsetsv
	.type	_Z32KeccakP1600_InitializeRhoOffsetsv,@function
_Z32KeccakP1600_InitializeRhoOffsetsv:  # @_Z32KeccakP1600_InitializeRhoOffsetsv
	.cfi_startproc
# %bb.0:
	movl	$0, _ZL16KeccakRhoOffsets(%rip)
	xorl	%eax, %eax
	movl	$1, %esi
	movl	$2, %ecx
	movl	$3435973837, %edx               # imm = 0xCCCCCCCD
.LBB2_1:                                # =>This Inner Loop Header: Depth=1
	leal	-1(%rcx), %edi
	imull	%ecx, %edi
	shrl	%edi
	andl	$63, %edi
	leal	(%rax,%rax,4), %r8d
	addl	%esi, %r8d
	movl	%edi, _ZL16KeccakRhoOffsets(,%r8,4)
	leal	(%rax,%rax,2), %edi
	leal	(%rdi,%rsi,2), %edi
	movq	%rdi, %rsi
	imulq	%rdx, %rsi
	shrq	$34, %rsi
	leal	(%rsi,%rsi,4), %esi
	subl	%esi, %edi
	incl	%ecx
	movl	%eax, %esi
	movl	%edi, %eax
	cmpl	$26, %ecx
	jne	.LBB2_1
# %bb.2:
	retq
.Lfunc_end2:
	.size	_Z32KeccakP1600_InitializeRhoOffsetsv, .Lfunc_end2-_Z32KeccakP1600_InitializeRhoOffsetsv
	.cfi_endproc
                                        # -- End function
	.globl	_Z22KeccakP1600_InitializePv    # -- Begin function _Z22KeccakP1600_InitializePv
	.type	_Z22KeccakP1600_InitializePv,@function
_Z22KeccakP1600_InitializePv:           # @_Z22KeccakP1600_InitializePv
	.cfi_startproc
# %bb.0:
	movl	$200, %edx
	xorl	%esi, %esi
	jmp	memset@PLT                      # TAILCALL
.Lfunc_end3:
	.size	_Z22KeccakP1600_InitializePv, .Lfunc_end3-_Z22KeccakP1600_InitializePv
	.cfi_endproc
                                        # -- End function
	.globl	_Z19KeccakP1600_AddBytePvhj     # -- Begin function _Z19KeccakP1600_AddBytePvhj
	.type	_Z19KeccakP1600_AddBytePvhj,@function
_Z19KeccakP1600_AddBytePvhj:            # @_Z19KeccakP1600_AddBytePvhj
	.cfi_startproc
# %bb.0:
	movl	%edx, %eax
	xorb	%sil, (%rdi,%rax)
	retq
.Lfunc_end4:
	.size	_Z19KeccakP1600_AddBytePvhj, .Lfunc_end4-_Z19KeccakP1600_AddBytePvhj
	.cfi_endproc
                                        # -- End function
	.globl	_Z20KeccakP1600_AddBytesPvPKhjj # -- Begin function _Z20KeccakP1600_AddBytesPvPKhjj
	.type	_Z20KeccakP1600_AddBytesPvPKhjj,@function
_Z20KeccakP1600_AddBytesPvPKhjj:        # @_Z20KeccakP1600_AddBytesPvPKhjj
	.cfi_startproc
# %bb.0:
	testl	%ecx, %ecx
	je	.LBB5_3
# %bb.1:                                # %.lr.ph.preheader
	movl	%ecx, %eax
	movl	%edx, %ecx
	xorl	%edx, %edx
.LBB5_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movb	(%rsi,%rdx), %r8b
	leal	(%rcx,%rdx), %r9d
	xorb	%r8b, (%rdi,%r9)
	incq	%rdx
	cmpq	%rdx, %rax
	jne	.LBB5_2
.LBB5_3:                                # %._crit_edge
	retq
.Lfunc_end5:
	.size	_Z20KeccakP1600_AddBytesPvPKhjj, .Lfunc_end5-_Z20KeccakP1600_AddBytesPvPKhjj
	.cfi_endproc
                                        # -- End function
	.globl	_Z26KeccakP1600_OverwriteBytesPvPKhjj # -- Begin function _Z26KeccakP1600_OverwriteBytesPvPKhjj
	.type	_Z26KeccakP1600_OverwriteBytesPvPKhjj,@function
_Z26KeccakP1600_OverwriteBytesPvPKhjj:  # @_Z26KeccakP1600_OverwriteBytesPvPKhjj
	.cfi_startproc
# %bb.0:
	movl	%edx, %eax
	addq	%rax, %rdi
	movl	%ecx, %edx
	jmp	memcpy@PLT                      # TAILCALL
.Lfunc_end6:
	.size	_Z26KeccakP1600_OverwriteBytesPvPKhjj, .Lfunc_end6-_Z26KeccakP1600_OverwriteBytesPvPKhjj
	.cfi_endproc
                                        # -- End function
	.globl	_Z31KeccakP1600_OverwriteWithZeroesPvj # -- Begin function _Z31KeccakP1600_OverwriteWithZeroesPvj
	.type	_Z31KeccakP1600_OverwriteWithZeroesPvj,@function
_Z31KeccakP1600_OverwriteWithZeroesPvj: # @_Z31KeccakP1600_OverwriteWithZeroesPvj
	.cfi_startproc
# %bb.0:
	movl	%esi, %edx
	xorl	%esi, %esi
	jmp	memset@PLT                      # TAILCALL
.Lfunc_end7:
	.size	_Z31KeccakP1600_OverwriteWithZeroesPvj, .Lfunc_end7-_Z31KeccakP1600_OverwriteWithZeroesPvj
	.cfi_endproc
                                        # -- End function
	.globl	_Z16KeccakP1600RoundPyj         # -- Begin function _Z16KeccakP1600RoundPyj
	.type	_Z16KeccakP1600RoundPyj,@function
_Z16KeccakP1600RoundPyj:                # @_Z16KeccakP1600RoundPyj
	.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	$120, %rsp
	.cfi_def_cfa_offset 176
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rsp)
	movaps	%xmm0, -80(%rsp)
	xorl	%eax, %eax
	movq	%rax, -48(%rsp)
	movq	%rax, -96(%rsp)
	movaps	%xmm0, -112(%rsp)
	movaps	%xmm0, -128(%rsp)
.LBB8_1:                                # =>This Inner Loop Header: Depth=1
	movq	40(%rdi,%rax,8), %rcx
	xorq	(%rdi,%rax,8), %rcx
	xorq	80(%rdi,%rax,8), %rcx
	xorq	120(%rdi,%rax,8), %rcx
	xorq	160(%rdi,%rax,8), %rcx
	movq	%rcx, -80(%rsp,%rax,8)
	incq	%rax
	cmpq	$5, %rax
	jne	.LBB8_1
# %bb.2:                                # %.preheader25.i.preheader
	movl	$4294967293, %edx               # imm = 0xFFFFFFFD
	xorl	%eax, %eax
	movl	$4, %ecx
.LBB8_3:                                # %.preheader25.i
                                        # =>This Inner Loop Header: Depth=1
	leaq	1(%rax), %r8
	cmpq	$4, %rax
	movl	$0, %r9d
	cmovneq	%r8, %r9
	movq	-80(%rsp,%r9,8), %r9
	rolq	%r9
	testq	%rax, %rax
	leal	2(%rdx,%rax), %r10d
	cmoveq	%rcx, %r10
	xorq	-80(%rsp,%r10,8), %r9
	movq	%r9, -128(%rsp,%rax,8)
	movq	%r8, %rax
	cmpq	$5, %r8
	jne	.LBB8_3
# %bb.4:                                # %.preheader.i.preheader
	xorl	%eax, %eax
	movq	%rdi, %rcx
.LBB8_5:                                # %.preheader.i
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB8_6 Depth 2
	movq	-128(%rsp,%rax,8), %r8
	xorl	%r9d, %r9d
.LBB8_6:                                #   Parent Loop BB8_5 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	xorq	%r8, (%rcx,%r9)
	addq	$40, %r9
	cmpq	$200, %r9
	jne	.LBB8_6
# %bb.7:                                #   in Loop: Header=BB8_5 Depth=1
	incq	%rax
	addq	$8, %rcx
	cmpq	$5, %rax
	jne	.LBB8_5
# %bb.8:                                # %_ZL5thetaPy.exit
	movl	$_ZL16KeccakRhoOffsets, %r8d
	xorl	%r9d, %r9d
	movq	%rdi, %r10
.LBB8_9:                                # %.preheader.i5
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB8_10 Depth 2
	xorl	%r11d, %r11d
.LBB8_10:                               #   Parent Loop BB8_9 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	(%r8,%r11), %eax
	movq	(%r10,%r11,2), %rbx
	movq	%rbx, %r14
	movl	%eax, %ecx
	shlq	%cl, %r14
	negb	%cl
	movq	%rbx, %r15
	shrq	%cl, %r15
	xorq	%r14, %r15
	testl	%eax, %eax
	cmoveq	%rbx, %r15
	movq	%r15, (%r10,%r11,2)
	addq	$20, %r11
	cmpq	$100, %r11
	jne	.LBB8_10
# %bb.11:                               #   in Loop: Header=BB8_9 Depth=1
	incq	%r9
	addq	$8, %r10
	addq	$4, %r8
	cmpq	$5, %r9
	jne	.LBB8_9
# %bb.12:                               # %_ZL3rhoPy.exit
	leaq	-80(%rsp), %rax
	xorl	%ecx, %ecx
	movq	%rdi, %r8
.LBB8_13:                               # %.preheader22.i
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB8_14 Depth 2
	xorl	%r9d, %r9d
.LBB8_14:                               #   Parent Loop BB8_13 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	(%r8,%r9), %r10
	movq	%r10, (%rax,%r9)
	addq	$40, %r9
	cmpq	$200, %r9
	jne	.LBB8_14
# %bb.15:                               #   in Loop: Header=BB8_13 Depth=1
	incq	%rcx
	addq	$8, %rax
	addq	$8, %r8
	cmpq	$5, %rcx
	jne	.LBB8_13
# %bb.16:                               # %.preheader.i12.preheader
	xorl	%eax, %eax
	leaq	-80(%rsp), %rcx
	movl	$3435973837, %r8d               # imm = 0xCCCCCCCD
	xorl	%r9d, %r9d
	xorl	%r10d, %r10d
.LBB8_17:                               # %.preheader.i12
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB8_18 Depth 2
	movl	%eax, %r11d
	movl	%r9d, %ebx
	movq	%rdi, %r14
	xorl	%r15d, %r15d
.LBB8_18:                               #   Parent Loop BB8_17 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	%r11d, %r12d
	imulq	%r8, %r12
	shrq	$34, %r12
	leal	(%r12,%r12,4), %r12d
	leal	(%r12,%r12,4), %ebp
	movl	%ebx, %r12d
	subl	%ebp, %r12d
	movq	(%rcx,%r15,8), %r13
	movq	%r13, (%r14,%r12,8)
	addq	$5, %r15
	addq	$8, %r14
	addl	$15, %ebx
	addl	$3, %r11d
	cmpq	$25, %r15
	jne	.LBB8_18
# %bb.19:                               #   in Loop: Header=BB8_17 Depth=1
	incq	%r10
	addl	$10, %r9d
	addl	$2, %eax
	addq	$8, %rcx
	cmpq	$5, %r10
	jne	.LBB8_17
# %bb.20:                               # %_ZL2piPy.exit
	xorl	%eax, %eax
	movl	$3435973837, %ecx               # imm = 0xCCCCCCCD
	movq	%rdi, %r8
	xorl	%r9d, %r9d
.LBB8_21:                               # %.preheader20.i
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB8_22 Depth 2
	leaq	(%r9,%r9,4), %r11
	movl	%r9d, %r10d
	imulq	%rcx, %r10
	shrq	$34, %r10
	imull	$-25, %r10d, %r10d
	addl	%r11d, %r10d
	shlq	$3, %r10
	leaq	(%rdi,%r11,8), %r11
	xorl	%ebx, %ebx
.LBB8_22:                               #   Parent Loop BB8_21 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	leaq	1(%rbx), %r14
	cmpq	$4, %rbx
	movl	$0, %r15d
	cmovneq	%r14, %r15
	movq	(%r11,%r15,8), %r15
	notq	%r15
	cmpq	$3, %rbx
	movl	$2, %r12d
	cmovael	%edx, %r12d
	addl	%eax, %r12d
	addl	%ebx, %r12d
	andq	(%rdi,%r12,8), %r15
	xorq	(%r8,%rbx,8), %r15
	movq	%r15, -80(%rsp,%rbx,8)
	movq	%r14, %rbx
	cmpq	$5, %r14
	jne	.LBB8_22
# %bb.23:                               # %.preheader.i24
                                        #   in Loop: Header=BB8_21 Depth=1
	movq	-48(%rsp), %r11
	movq	%r11, 32(%rdi,%r10)
	movaps	-80(%rsp), %xmm0
	movaps	-64(%rsp), %xmm1
	movups	%xmm1, 16(%rdi,%r10)
	movups	%xmm0, (%rdi,%r10)
	incq	%r9
	addq	$5, %rax
	addq	$40, %r8
	cmpq	$5, %r9
	jne	.LBB8_21
# %bb.24:                               # %_ZL3chiPy.exit
	movl	%esi, %eax
	movq	_ZL20KeccakRoundConstants(,%rax,8), %rax
	xorq	%rax, (%rdi)
	addq	$120, %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_end8:
	.size	_Z16KeccakP1600RoundPyj, .Lfunc_end8-_Z16KeccakP1600RoundPyj
	.cfi_endproc
                                        # -- End function
	.globl	_Z9stateInitPy                  # -- Begin function _Z9stateInitPy
	.type	_Z9stateInitPy,@function
_Z9stateInitPy:                         # @_Z9stateInitPy
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	subq	$104, %rsp
	.cfi_def_cfa_offset 144
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdi, %rbx
	callq	_Z28KeccakP1600_StaticInitializev
	movl	$.L.str, %edi
	movl	$.L.str.1, %esi
	callq	fopen
	movq	%rax, %r14
	xorl	%r12d, %r12d
	movq	%rsp, %r15
.LBB9_1:                                # =>This Loop Header: Depth=1
                                        #     Child Loop BB9_2 Depth 2
                                        #       Child Loop BB9_3 Depth 3
	movq	%r15, %rdi
	movl	$100, %esi
	movq	%r14, %rdx
	callq	fgets
	leaq	(%r12,%r12,4), %rax
	leaq	(%rbx,%rax,8), %rax
	movq	%r15, %rcx
	xorl	%edx, %edx
.LBB9_2:                                # %.preheader
                                        #   Parent Loop BB9_1 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB9_3 Depth 3
	movq	$-17, %rsi
	xorl	%r8d, %r8d
.LBB9_3:                                #   Parent Loop BB9_1 Depth=1
                                        #     Parent Loop BB9_2 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movq	%r8, %rdi
	movb	17(%rcx,%rsi), %r8b
	leal	-48(%r8), %r10d
	movl	$208, %r9d
	cmpb	$10, %r10b
	jb	.LBB9_5
# %bb.4:                                #   in Loop: Header=BB9_3 Depth=3
	movl	$169, %r9d
.LBB9_5:                                #   in Loop: Header=BB9_3 Depth=3
	addb	%r8b, %r9b
	movq	%rdi, %r10
	shlq	$4, %r10
	movsbq	%r9b, %r8
	xorq	%r10, %r8
	incq	%rsi
	cmoveq	%rdi, %r8
	jne	.LBB9_3
# %bb.6:                                #   in Loop: Header=BB9_2 Depth=2
	movq	%rdi, (%rax,%rdx,8)
	incq	%rdx
	addq	$17, %rcx
	cmpq	$5, %rdx
	jne	.LBB9_2
# %bb.7:                                #   in Loop: Header=BB9_1 Depth=1
	incq	%r12
	cmpq	$5, %r12
	jne	.LBB9_1
# %bb.8:
	movq	%r14, %rdi
	callq	fclose
	addq	$104, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end9:
	.size	_Z9stateInitPy, .Lfunc_end9-_Z9stateInitPy
	.cfi_endproc
                                        # -- End function
	.globl	_Z9getStatesPyPA4_mlPl          # -- Begin function _Z9getStatesPyPA4_mlPl
	.type	_Z9getStatesPyPA4_mlPl,@function
_Z9getStatesPyPA4_mlPl:                 # @_Z9getStatesPyPA4_mlPl
	.cfi_startproc
# %bb.0:
	movq	16(%rcx), %rax
	movq	%rax, -16(%rsp)
	movq	8(%rcx), %rax
	movq	%rax, -24(%rsp)
	movq	(%rcx), %rax
	movq	%rax, -32(%rsp)
	btcq	$36, %rdx
	movq	%rdx, -40(%rsp)
	xorl	%ecx, %ecx
	xorps	%xmm0, %xmm0
.LBB10_1:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB10_2 Depth 2
	movaps	%xmm0, -56(%rsp)
	movaps	%xmm0, -72(%rsp)
	xorl	%eax, %eax
.LBB10_2:                               #   Parent Loop BB10_1 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	-40(%rsp,%rax,8), %rdx
	andq	(%rsi,%rax,8), %rdx
	movq	%rdx, -72(%rsp,%rax,8)
	incq	%rax
	cmpq	$4, %rax
	jne	.LBB10_2
# %bb.3:                                #   in Loop: Header=BB10_1 Depth=1
	movq	-64(%rsp), %rax
	xorq	-72(%rsp), %rax
	xorq	-56(%rsp), %rax
	xorq	-48(%rsp), %rax
	movq	%rax, %rdx
	sarq	$32, %rdx
	xorq	%rax, %rdx
	movq	%rdx, %rax
	sarq	$16, %rax
	xorq	%rdx, %rax
	movq	%rax, %rdx
	sarq	$8, %rdx
	xorq	%rax, %rdx
	movq	%rdx, %rax
	sarq	$4, %rax
	xorq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$2, %rdx
	xorl	%eax, %edx
	movl	%edx, %eax
	shrl	%eax
	xorl	%edx, %eax
	testb	$1, %al
	je	.LBB10_5
# %bb.4:                                #   in Loop: Header=BB10_1 Depth=1
	movl	%ecx, %eax
	shrl	$6, %eax
	leal	5(%rax), %edx
	cmpq	$320, %rcx                      # imm = 0x140
	cmovbl	%eax, %edx
	movl	$1, %eax
	shlq	%cl, %rax
	xorq	%rax, (%rdi,%rdx,8)
.LBB10_5:                               #   in Loop: Header=BB10_1 Depth=1
	incq	%rcx
	addq	$32, %rsi
	cmpq	$640, %rcx                      # imm = 0x280
	jne	.LBB10_1
# %bb.6:
	retq
.Lfunc_end10:
	.size	_Z9getStatesPyPA4_mlPl, .Lfunc_end10-_Z9getStatesPyPA4_mlPl
	.cfi_endproc
                                        # -- End function
	.globl	_Z14checkHashValuePyS_          # -- Begin function _Z14checkHashValuePyS_
	.type	_Z14checkHashValuePyS_,@function
_Z14checkHashValuePyS_:                 # @_Z14checkHashValuePyS_
	.cfi_startproc
# %bb.0:                                # %.preheader.preheader
	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	$200, %rsp
	.cfi_def_cfa_offset 256
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsp, %rdi
	movl	$200, %edx
	movq	%rbx, %rsi
	callq	memcpy@PLT
	xorl	%ebp, %ebp
.LBB11_1:                               # %.preheader
                                        # =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%ebp, %esi
	callq	_Z16KeccakP1600RoundPyj
	incl	%ebp
	cmpl	$3, %ebp
	jne	.LBB11_1
# %bb.2:
	movq	(%rbx), %rcx
	xorl	%eax, %eax
	cmpq	(%r14), %rcx
	jne	.LBB11_13
# %bb.3:
	movq	8(%rbx), %rcx
	cmpq	8(%r14), %rcx
	jne	.LBB11_13
# %bb.4:
	movq	16(%rbx), %rcx
	cmpq	16(%r14), %rcx
	jne	.LBB11_13
# %bb.5:
	movq	24(%rbx), %rcx
	xorq	24(%r14), %rcx
	movq	%rcx, 24(%rbx)
	testl	%ecx, %ecx
	jne	.LBB11_13
# %bb.6:
	movl	$.L.str.2, %edi
	xorl	%eax, %eax
	callq	printf
	movabsq	$-3689348814741910323, %r12     # imm = 0xCCCCCCCCCCCCCCCD
	xorl	%r13d, %r13d
.LBB11_7:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB11_8 Depth 2
	movq	(%rsp,%r13,8), %rbx
	movl	$1, %r14d
	xorl	%ebp, %ebp
.LBB11_8:                               #   Parent Loop BB11_7 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	%r14, %rax
	mulq	%r12
	movq	%rdx, %r15
	shrl	$2, %r15d
	btq	%rbp, %rbx
	movl	$0, %edi
	adcl	$48, %edi
	callq	putchar@PLT
	leal	(%r15,%r15,4), %eax
	decb	%al
	cmpb	%bpl, %al
	jne	.LBB11_10
# %bb.9:                                #   in Loop: Header=BB11_8 Depth=2
	movl	$32, %edi
	callq	putchar@PLT
.LBB11_10:                              #   in Loop: Header=BB11_8 Depth=2
	incq	%rbp
	incq	%r14
	cmpq	$64, %rbp
	jne	.LBB11_8
# %bb.11:                               # %_ZL12binary_printli.exit
                                        #   in Loop: Header=BB11_7 Depth=1
	movl	$32, %edi
	callq	putchar@PLT
	movl	$.L.str.4, %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	printf
	incq	%r13
	cmpq	$25, %r13
	jne	.LBB11_7
# %bb.12:
	movl	$10, %edi
	callq	putchar@PLT
	movl	$1, %eax
.LBB11_13:
	addq	$200, %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_end11:
	.size	_Z14checkHashValuePyS_, .Lfunc_end11-_Z14checkHashValuePyS_
	.cfi_endproc
                                        # -- End function
	.globl	_Z26__device_stub__solveLinearPKmS0_PlS1_S1_ # -- Begin function _Z26__device_stub__solveLinearPKmS0_PlS1_S1_
	.type	_Z26__device_stub__solveLinearPKmS0_PlS1_S1_,@function
_Z26__device_stub__solveLinearPKmS0_PlS1_S1_: # @_Z26__device_stub__solveLinearPKmS0_PlS1_S1_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	24(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z11solveLinearPKmS0_PlS1_S1_, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end12:
	.size	_Z26__device_stub__solveLinearPKmS0_PlS1_S1_, .Lfunc_end12-_Z26__device_stub__solveLinearPKmS0_PlS1_S1_
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function main
.LCPI13_0:
	.zero	16
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$375736, %rsp                   # imm = 0x5BBB8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	$.Lstr, %edi
	callq	puts@PLT
	leaq	-1472(%rbp), %rdi
	callq	_Z9stateInitPy
	movl	$.Lstr.1, %edi
	callq	puts@PLT
	movl	$.L.str.8, %edi
	movl	$.L.str.1, %esi
	callq	fopen
	movq	%rax, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -240(%rbp)
	movaps	%xmm0, -256(%rbp)
	xorl	%r15d, %r15d
	leaq	-288(%rbp), %r14
.LBB13_1:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB13_2 Depth 2
	movq	%r14, %rdi
	movl	$20, %esi
	movq	%rbx, %rdx
	callq	fgets
	movq	$-17, %rax
	xorl	%edx, %edx
	xorl	%esi, %esi
.LBB13_2:                               #   Parent Loop BB13_1 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	%rsi, %rcx
	movb	-271(%rbp,%rax), %sil
	leal	-48(%rsi), %edi
	cmpb	$10, %dil
	jb	.LBB13_6
# %bb.3:                                #   in Loop: Header=BB13_2 Depth=2
	leal	-97(%rsi), %edi
	cmpb	$25, %dil
	ja	.LBB13_5
# %bb.4:                                #   in Loop: Header=BB13_2 Depth=2
	addb	$-87, %sil
	movl	%esi, %edi
	jmp	.LBB13_6
.LBB13_5:                               #   in Loop: Header=BB13_2 Depth=2
	leal	-65(%rsi), %edi
	addb	$-55, %sil
	cmpb	$26, %dil
	movzbl	%dl, %edx
	movzbl	%sil, %edi
	cmovael	%edx, %edi
.LBB13_6:                               #   in Loop: Header=BB13_2 Depth=2
	movq	%rcx, %rdx
	shlq	$4, %rdx
	movzbl	%dil, %esi
	xorq	%rdx, %rsi
	movl	%edi, %edx
	incq	%rax
	cmoveq	%rcx, %rsi
	jne	.LBB13_2
# %bb.7:                                #   in Loop: Header=BB13_1 Depth=1
	movq	%rcx, -256(%rbp,%r15,8)
	incq	%r15
	cmpq	$4, %r15
	jne	.LBB13_1
# %bb.8:
	movq	%rbx, %rdi
	callq	fclose
	leaq	-1472(%rbp), %rsi
	movl	$const_state, %edi
	movl	$200, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	hipMemcpyToSymbol
	testl	%eax, %eax
	jne	.LBB13_167
# %bb.9:
	leaq	-256(%rbp), %rsi
	movl	$const_hashvalue, %edi
	movl	$32, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	hipMemcpyToSymbol
	testl	%eax, %eax
	jne	.LBB13_167
# %bb.10:
	movq	8(%r12), %rdi
	callq	atol
	movq	%rax, -96(%rbp)                 # 8-byte Spill
	movq	%r12, -216(%rbp)                # 8-byte Spill
	movq	16(%r12), %rdi
	callq	atoi
	movl	%eax, %edi
	callq	hipSetDevice
	movl	$.L.str.10, %edi
	movl	$.L.str.1, %esi
	callq	fopen
	movq	%rax, %rbx
	movl	$.L.str.11, %edi
	movl	$.L.str.1, %esi
	callq	fopen
	movq	%rax, %r14
	movl	$.L.str.12, %edi
	movl	$.L.str.1, %esi
	callq	fopen
	movq	%rax, -104(%rbp)                # 8-byte Spill
	movl	$.L.str.13, %edi
	movl	$.L.str.1, %esi
	callq	fopen
	movq	%rax, -168(%rbp)                # 8-byte Spill
	leaq	-44(%rbp), %r13
	leaq	-43(%rbp), %r15
	xorl	%ecx, %ecx
.LBB13_11:                              # %.preheader426
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB13_12 Depth 2
                                        #       Child Loop BB13_13 Depth 3
                                        #         Child Loop BB13_14 Depth 4
                                        #       Child Loop BB13_19 Depth 3
                                        #         Child Loop BB13_20 Depth 4
	imulq	$4584, %rcx, %rax               # imm = 0x11E8
	addq	%rbp, %rax
	addq	$-375776, %rax                  # imm = 0xFFFA4420
	movq	%rax, -80(%rbp)                 # 8-byte Spill
	movq	%rcx, -224(%rbp)                # 8-byte Spill
	imulq	$1528, %rcx, %rax               # imm = 0x5F8
	addq	%rbp, %rax
	addq	$-137408, %rax                  # imm = 0xFFFDE740
	movq	%rax, -112(%rbp)                # 8-byte Spill
	xorl	%edx, %edx
.LBB13_12:                              #   Parent Loop BB13_11 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB13_13 Depth 3
                                        #         Child Loop BB13_14 Depth 4
                                        #       Child Loop BB13_19 Depth 3
                                        #         Child Loop BB13_20 Depth 4
	leaq	(%rdx,%rdx,2), %rax
	movq	-112(%rbp), %rcx                # 8-byte Reload
	movq	%rdx, -72(%rbp)                 # 8-byte Spill
	leaq	(%rcx,%rdx,8), %rdx
	xorl	%r12d, %r12d
	movq	-80(%rbp), %rcx                 # 8-byte Reload
	leaq	(%rcx,%rax,8), %rax
	movq	%r12, 16(%rax)
	xorps	%xmm0, %xmm0
	movq	%rax, -56(%rbp)                 # 8-byte Spill
	movups	%xmm0, (%rax)
	movq	%rdx, -64(%rbp)                 # 8-byte Spill
	movq	%r12, (%rdx)
.LBB13_13:                              #   Parent Loop BB13_11 Depth=1
                                        #     Parent Loop BB13_12 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB13_14 Depth 4
	movl	$.L.str.14, %esi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movb	-44(%rbp), %al
	leal	-50(%rax), %ecx
	cmpb	$-3, %cl
	ja	.LBB13_15
.LBB13_14:                              # %.lr.ph
                                        #   Parent Loop BB13_11 Depth=1
                                        #     Parent Loop BB13_12 Depth=2
                                        #       Parent Loop BB13_13 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	movl	$.L.str.14, %esi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movb	-44(%rbp), %al
	leal	-50(%rax), %ecx
	cmpb	$-2, %cl
	jb	.LBB13_14
.LBB13_15:                              # %._crit_edge
                                        #   in Loop: Header=BB13_13 Depth=3
	cmpb	$49, %al
	jne	.LBB13_17
# %bb.16:                               #   in Loop: Header=BB13_13 Depth=3
	movl	$1, %eax
	movl	%r12d, %ecx
	shlq	%cl, %rax
	movl	%r12d, %ecx
	shrl	$6, %ecx
	movq	-56(%rbp), %rdx                 # 8-byte Reload
	xorq	%rax, (%rdx,%rcx,8)
.LBB13_17:                              #   in Loop: Header=BB13_13 Depth=3
	incl	%r12d
	cmpl	$192, %r12d
	jne	.LBB13_13
# %bb.18:                               # %.preheader425.preheader
                                        #   in Loop: Header=BB13_12 Depth=2
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 # 8-byte Spill
	xorl	%r12d, %r12d
.LBB13_19:                              # %.preheader425
                                        #   Parent Loop BB13_11 Depth=1
                                        #     Parent Loop BB13_12 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB13_20 Depth 4
	movl	$.L.str.14, %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movb	-43(%rbp), %al
	leal	-50(%rax), %ecx
	cmpb	$-3, %cl
	ja	.LBB13_21
.LBB13_20:                              # %.lr.ph440
                                        #   Parent Loop BB13_11 Depth=1
                                        #     Parent Loop BB13_12 Depth=2
                                        #       Parent Loop BB13_19 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	movl	$.L.str.14, %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movb	-43(%rbp), %al
	leal	-50(%rax), %ecx
	cmpb	$-2, %cl
	jb	.LBB13_20
.LBB13_21:                              # %._crit_edge441
                                        #   in Loop: Header=BB13_19 Depth=3
	cmpb	$49, %al
	jne	.LBB13_23
# %bb.22:                               #   in Loop: Header=BB13_19 Depth=3
	movb	$35, %al
	subb	%r12b, %al
	movq	-56(%rbp), %rdx                 # 8-byte Reload
	btcq	%rax, %rdx
	movq	-64(%rbp), %rax                 # 8-byte Reload
	movq	%rdx, %rcx
	movq	%rdx, -56(%rbp)                 # 8-byte Spill
	movq	%rdx, (%rax)
.LBB13_23:                              #   in Loop: Header=BB13_19 Depth=3
	incq	%r12
	cmpq	$64, %r12
	jne	.LBB13_19
# %bb.24:                               #   in Loop: Header=BB13_12 Depth=2
	movq	-72(%rbp), %rdx                 # 8-byte Reload
	incq	%rdx
	cmpq	$191, %rdx
	jne	.LBB13_12
# %bb.25:                               #   in Loop: Header=BB13_11 Depth=1
	movq	-224(%rbp), %rcx                # 8-byte Reload
	incq	%rcx
	cmpq	$36, %rcx
	jne	.LBB13_11
# %bb.26:                               # %.preheader424.preheader
	leaq	-42(%rbp), %r15
	xorl	%eax, %eax
	movq	-104(%rbp), %r13                # 8-byte Reload
.LBB13_27:                              # %.preheader424
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB13_28 Depth 2
                                        #       Child Loop BB13_29 Depth 3
	movq	%rax, -64(%rbp)                 # 8-byte Spill
	leaq	(%rax,%rax,2), %rax
	movq	%rax, -72(%rbp)                 # 8-byte Spill
	leaq	-6064(,%rax,8), %rax
	addq	%rbp, %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	%rax, -56(%rbp)                 # 8-byte Spill
	movq	$0, 16(%rax)
	xorl	%r12d, %r12d
.LBB13_28:                              #   Parent Loop BB13_27 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB13_29 Depth 3
	movl	$.L.str.14, %esi
	movq	%r13, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movb	-42(%rbp), %al
	leal	-50(%rax), %ecx
	cmpb	$-3, %cl
	ja	.LBB13_30
.LBB13_29:                              # %.lr.ph447
                                        #   Parent Loop BB13_27 Depth=1
                                        #     Parent Loop BB13_28 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movl	$.L.str.14, %esi
	movq	%r13, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movb	-42(%rbp), %al
	leal	-50(%rax), %ecx
	cmpb	$-2, %cl
	jb	.LBB13_29
.LBB13_30:                              # %._crit_edge448
                                        #   in Loop: Header=BB13_28 Depth=2
	cmpb	$49, %al
	jne	.LBB13_32
# %bb.31:                               #   in Loop: Header=BB13_28 Depth=2
	movl	$1, %eax
	movl	%r12d, %ecx
	shlq	%cl, %rax
	movl	%r12d, %ecx
	shrl	$6, %ecx
	movq	-56(%rbp), %rdx                 # 8-byte Reload
	xorq	%rax, (%rdx,%rcx,8)
.LBB13_32:                              #   in Loop: Header=BB13_28 Depth=2
	incl	%r12d
	cmpl	$192, %r12d
	movq	-104(%rbp), %r13                # 8-byte Reload
	jne	.LBB13_28
# %bb.33:                               #   in Loop: Header=BB13_27 Depth=1
	movq	-56(%rbp), %rdx                 # 8-byte Reload
	movq	(%rdx), %rax
	movq	-72(%rbp), %rcx                 # 8-byte Reload
	movq	%rax, -16992(%rbp,%rcx,8)
	movq	8(%rdx), %rax
	movq	%rax, -16984(%rbp,%rcx,8)
	movq	16(%rdx), %rax
	movq	%rax, -16976(%rbp,%rcx,8)
	movq	-64(%rbp), %rax                 # 8-byte Reload
	incq	%rax
	cmpq	$191, %rax
	jne	.LBB13_27
# %bb.34:                               # %.preheader423.preheader
	leaq	-41(%rbp), %r15
	xorl	%eax, %eax
	movq	-168(%rbp), %r13                # 8-byte Reload
.LBB13_35:                              # %.preheader423
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB13_36 Depth 2
                                        #       Child Loop BB13_37 Depth 3
	movq	%rax, -64(%rbp)                 # 8-byte Spill
	shlq	$5, %rax
	addq	%rbp, %rax
	addq	$-37472, %rax                   # imm = 0xFFFF6DA0
	xorps	%xmm0, %xmm0
	movaps	%xmm0, 16(%rax)
	movq	%rax, -56(%rbp)                 # 8-byte Spill
	movaps	%xmm0, (%rax)
	xorl	%r12d, %r12d
.LBB13_36:                              #   Parent Loop BB13_35 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB13_37 Depth 3
	movl	$.L.str.14, %esi
	movq	%r13, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movb	-41(%rbp), %al
	leal	-50(%rax), %ecx
	cmpb	$-3, %cl
	ja	.LBB13_38
.LBB13_37:                              # %.lr.ph453
                                        #   Parent Loop BB13_35 Depth=1
                                        #     Parent Loop BB13_36 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movl	$.L.str.14, %esi
	movq	%r13, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movb	-41(%rbp), %al
	leal	-50(%rax), %ecx
	cmpb	$-2, %cl
	jb	.LBB13_37
.LBB13_38:                              # %._crit_edge454
                                        #   in Loop: Header=BB13_36 Depth=2
	cmpb	$49, %al
	jne	.LBB13_40
# %bb.39:                               #   in Loop: Header=BB13_36 Depth=2
	movl	$1, %eax
	movl	%r12d, %ecx
	shlq	%cl, %rax
	movl	%r12d, %ecx
	shrl	$6, %ecx
	movq	-56(%rbp), %rdx                 # 8-byte Reload
	xorq	%rax, (%rdx,%rcx,8)
.LBB13_40:                              #   in Loop: Header=BB13_36 Depth=2
	incl	%r12d
	cmpl	$256, %r12d                     # imm = 0x100
	movq	-168(%rbp), %r13                # 8-byte Reload
	jne	.LBB13_36
# %bb.41:                               #   in Loop: Header=BB13_35 Depth=1
	movq	-64(%rbp), %rax                 # 8-byte Reload
	incq	%rax
	cmpq	$640, %rax                      # imm = 0x280
	jne	.LBB13_35
# %bb.42:
	movq	%rbx, %rdi
	callq	fclose
	movq	%r14, %rdi
	callq	fclose
	movq	-104(%rbp), %rdi                # 8-byte Reload
	callq	fclose
	movq	%r13, %rdi
	callq	fclose
	movl	$.Lstr.2, %edi
	callq	puts@PLT
	xorl	%ebx, %ebx
.LBB13_43:                              # %.preheader422
                                        # =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%rbp), %rdi
	addq	$-210752, %rdi                  # imm = 0xFFFCC8C0
	leaq	(%rbx,%rbp), %rsi
	addq	$-375776, %rsi                  # imm = 0xFFFA4420
	movl	$4584, %edx                     # imm = 0x11E8
	callq	memcpy@PLT
	addq	$4584, %rbx                     # imm = 0x11E8
	cmpq	$73344, %rbx                    # imm = 0x11E80
	jne	.LBB13_43
# %bb.44:                               # %.preheader419.preheader
	xorl	%ebx, %ebx
.LBB13_45:                              # %.preheader419
                                        # =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%rbp), %rdi
	addq	$-82400, %rdi                   # imm = 0xFFFEBE20
	leaq	(%rbx,%rbp), %rsi
	addq	$-137408, %rsi                  # imm = 0xFFFDE740
	movl	$1528, %edx                     # imm = 0x5F8
	callq	memcpy@PLT
	addq	$1528, %rbx                     # imm = 0x5F8
	cmpq	$24448, %rbx                    # imm = 0x5F80
	jne	.LBB13_45
# %bb.46:
	xorl	%ebx, %ebx
	leaq	-210752(%rbp), %rsi
	movl	$d_linear_mat, %edi
	movl	$73344, %edx                    # imm = 0x11E80
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	hipMemcpyToSymbol
	leaq	-82400(%rbp), %rsi
	movl	$d_square_mat, %edi
	movl	$24448, %edx                    # imm = 0x5F80
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	hipMemcpyToSymbol
.LBB13_47:                              # %.preheader418
                                        # =>This Inner Loop Header: Depth=1
	movaps	-37472(%rbp,%rbx), %xmm0
	movaps	-37456(%rbp,%rbx), %xmm1
	movaps	%xmm1, -57936(%rbp,%rbx)
	movaps	%xmm0, -57952(%rbp,%rbx)
	addq	$32, %rbx
	cmpq	$20480, %rbx                    # imm = 0x5000
	jne	.LBB13_47
# %bb.48:
	leaq	-57952(%rbp), %rsi
	movl	$d_var_all, %edi
	movl	$20480, %edx                    # imm = 0x5000
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	hipMemcpyToSymbol
	movl	$.Lstr.3, %edi
	callq	puts@PLT
	leaq	-152(%rbp), %rdi
	movq	$0, (%rdi)
	movl	$65536, %esi                    # imm = 0x10000
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB13_168
# %bb.49:
	leaq	-144(%rbp), %rdi
	movq	$0, (%rdi)
	movl	$196608, %esi                   # imm = 0x30000
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB13_168
# %bb.50:
	leaq	-136(%rbp), %rdi
	movq	$0, (%rdi)
	movl	$37552128, %esi                 # imm = 0x23D0000
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB13_169
# %bb.51:
	leaq	-128(%rbp), %rdi
	movq	$0, (%rdi)
	movl	$12517376, %esi                 # imm = 0xBF0000
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB13_170
# %bb.52:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -192(%rbp)
	movaps	%xmm0, -208(%rbp)
	leaq	-88(%rbp), %rdi
	movq	$0, (%rdi)
	movl	$32, %esi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB13_171
# %bb.53:
	movq	-88(%rbp), %rdi
	leaq	-208(%rbp), %rsi
	movl	$32, %edx
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB13_172
# %bb.54:
	movl	$.Lstr.4, %edi
	callq	puts@PLT
	movl	$8192, %edi                     # imm = 0x2000
	movl	$8, %esi
	callq	calloc
	movq	%rax, -64(%rbp)                 # 8-byte Spill
	movl	$4694016, %edi                  # imm = 0x47A000
	movl	$8, %esi
	callq	calloc
	movq	%rax, %r15
	movl	$1564672, %edi                  # imm = 0x17E000
	movl	$8, %esi
	callq	calloc
	movq	%rax, -72(%rbp)                 # 8-byte Spill
	shlq	$29, -96(%rbp)                  # 8-byte Folded Spill
	xorl	%ecx, %ecx
	leaq	-1264(%rbp), %r13
	movq	%r15, -112(%rbp)                # 8-byte Spill
	movl	$0, -80(%rbp)                   # 4-byte Folded Spill
.LBB13_55:                              # =>This Loop Header: Depth=1
                                        #     Child Loop BB13_56 Depth 2
                                        #     Child Loop BB13_58 Depth 2
                                        #       Child Loop BB13_60 Depth 3
                                        #       Child Loop BB13_62 Depth 3
                                        #     Child Loop BB13_65 Depth 2
                                        #     Child Loop BB13_67 Depth 2
                                        #     Child Loop BB13_71 Depth 2
                                        #       Child Loop BB13_75 Depth 3
                                        #       Child Loop BB13_79 Depth 3
                                        #       Child Loop BB13_84 Depth 3
                                        #       Child Loop BB13_91 Depth 3
                                        #     Child Loop BB13_97 Depth 2
                                        #       Child Loop BB13_101 Depth 3
                                        #     Child Loop BB13_114 Depth 2
                                        #     Child Loop BB13_122 Depth 2
                                        #       Child Loop BB13_125 Depth 3
                                        #       Child Loop BB13_127 Depth 3
                                        #         Child Loop BB13_133 Depth 4
                                        #     Child Loop BB13_109 Depth 2
                                        #     Child Loop BB13_139 Depth 2
	imulq	$1528, %rcx, %r14               # imm = 0x5F8
	addq	-72(%rbp), %r14                 # 8-byte Folded Reload
	movq	%rcx, %rbx
	shlq	$16, %rbx
	addq	-96(%rbp), %rbx                 # 8-byte Folded Reload
	movq	-64(%rbp), %rax                 # 8-byte Reload
	movq	%rcx, -56(%rbp)                 # 8-byte Spill
	movq	%rbx, (%rax,%rcx,8)
	movl	$1528, %edx                     # imm = 0x5F8
	leaq	-7600(%rbp), %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	movl	$16, %eax
.LBB13_56:                              #   Parent Loop BB13_55 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	-17008(%rbp,%rax), %rcx
	movq	%rcx, -6080(%rbp,%rax)
	movups	-17000(%rbp,%rax), %xmm0
	movups	%xmm0, -6072(%rbp,%rax)
	addq	$24, %rax
	cmpq	$4600, %rax                     # imm = 0x11F8
	jne	.LBB13_56
# %bb.57:                               # %.preheader417.preheader
                                        #   in Loop: Header=BB13_55 Depth=1
	movl	$16, %eax
	leaq	-112960(%rbp), %rcx
	leaq	-302416(%rbp), %rdx
.LBB13_58:                              # %.preheader417
                                        #   Parent Loop BB13_55 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB13_60 Depth 3
                                        #       Child Loop BB13_62 Depth 3
	btq	%rax, %rbx
	jae	.LBB13_63
# %bb.59:                               # %.preheader413.preheader
                                        #   in Loop: Header=BB13_58 Depth=2
	xorl	%esi, %esi
.LBB13_60:                              # %.preheader413
                                        #   Parent Loop BB13_55 Depth=1
                                        #     Parent Loop BB13_58 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movq	-16(%rdx,%rsi), %rdi
	xorq	%rdi, -6064(%rbp,%rsi)
	movq	-8(%rdx,%rsi), %rdi
	xorq	%rdi, -6056(%rbp,%rsi)
	movq	(%rdx,%rsi), %rdi
	xorq	%rdi, -6048(%rbp,%rsi)
	addq	$24, %rsi
	cmpq	$4584, %rsi                     # imm = 0x11E8
	jne	.LBB13_60
# %bb.61:                               # %.preheader412.preheader
                                        #   in Loop: Header=BB13_58 Depth=2
	xorl	%esi, %esi
.LBB13_62:                              # %.preheader412
                                        #   Parent Loop BB13_55 Depth=1
                                        #     Parent Loop BB13_58 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movq	(%rcx,%rsi,8), %rdi
	xorq	%rdi, -7600(%rbp,%rsi,8)
	incq	%rsi
	cmpq	$191, %rsi
	jne	.LBB13_62
.LBB13_63:                              # %.loopexit
                                        #   in Loop: Header=BB13_58 Depth=2
	incq	%rax
	addq	$4584, %rdx                     # imm = 0x11E8
	addq	$1528, %rcx                     # imm = 0x5F8
	cmpq	$36, %rax
	jne	.LBB13_58
# %bb.64:                               # %.preheader416
                                        #   in Loop: Header=BB13_55 Depth=1
	movl	$1528, %edx                     # imm = 0x5F8
	movq	%r14, %rdi
	leaq	-7600(%rbp), %rsi
	callq	memcpy@PLT
	movl	$16, %eax
.LBB13_65:                              #   Parent Loop BB13_55 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movups	-6080(%rbp,%rax), %xmm0
	movq	-6064(%rbp,%rax), %rcx
	movups	%xmm0, -16(%r15,%rax)
	movq	%rcx, (%r15,%rax)
	addq	$24, %rax
	cmpq	$4600, %rax                     # imm = 0x11F8
	jne	.LBB13_65
# %bb.66:                               # %.preheader415.preheader
                                        #   in Loop: Header=BB13_55 Depth=1
	leaq	-6064(%rbp), %rax
	xorl	%ecx, %ecx
.LBB13_67:                              # %.preheader415
                                        #   Parent Loop BB13_55 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	-7600(%rbp,%rcx,8), %rdx
	andq	%rbx, %rdx
	movq	%rdx, %rsi
	sarq	$32, %rsi
	xorq	%rdx, %rsi
	movq	%rsi, %rdx
	sarq	$16, %rdx
	xorq	%rsi, %rdx
	movq	%rdx, %rsi
	sarq	$8, %rsi
	xorq	%rdx, %rsi
	movq	%rsi, %rdx
	sarq	$4, %rdx
	xorq	%rsi, %rdx
	movq	%rdx, %rsi
	shrq	$2, %rsi
	xorl	%edx, %esi
	movl	%esi, %edx
	shrl	%edx
	xorl	%esi, %edx
	testb	$1, %dl
	je	.LBB13_69
# %bb.68:                               #   in Loop: Header=BB13_67 Depth=2
	xorb	$1, (%rax)
.LBB13_69:                              #   in Loop: Header=BB13_67 Depth=2
	incq	%rcx
	addq	$24, %rax
	cmpq	$191, %rcx
	jne	.LBB13_67
# %bb.70:                               #   in Loop: Header=BB13_55 Depth=1
	xorl	%edi, %edi
	movl	$190, %edx
	leaq	-6040(%rbp), %rsi
	xorl	%r9d, %r9d
	xorl	%eax, %eax
.LBB13_71:                              #   Parent Loop BB13_55 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB13_75 Depth 3
                                        #       Child Loop BB13_79 Depth 3
                                        #       Child Loop BB13_84 Depth 3
                                        #       Child Loop BB13_91 Depth 3
	leaq	(%rdi,%rdi,2), %rcx
	movq	-6064(%rbp,%rcx,8), %r10
	movq	-6056(%rbp,%rcx,8), %r11
	movq	-6048(%rbp,%rcx,8), %r14
	movq	%r10, %r8
	orq	%r11, %r8
	jne	.LBB13_74
# %bb.72:                               #   in Loop: Header=BB13_71 Depth=2
	testq	%r14, %r14
	je	.LBB13_94
# %bb.73:                               #   in Loop: Header=BB13_71 Depth=2
	xorl	%r11d, %r11d
.LBB13_74:                              # %._crit_edge.i
                                        #   in Loop: Header=BB13_71 Depth=2
	leaq	-6064(,%rcx,8), %r8
	addq	%rbp, %r8
	movl	$61, %r12d
	movl	$-189, %ecx
.LBB13_75:                              #   Parent Loop BB13_55 Depth=1
                                        #     Parent Loop BB13_71 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	testq	%r12, %r12
	je	.LBB13_78
# %bb.76:                               #   in Loop: Header=BB13_75 Depth=3
	decq	%r12
	incl	%ecx
	btq	%r12, %r14
	jae	.LBB13_75
# %bb.77:                               # %_ZL10largestposli.exit.i.i
                                        #   in Loop: Header=BB13_71 Depth=2
	testl	%r12d, %r12d
	jns	.LBB13_82
.LBB13_78:                              # %_ZL10largestposli.exit.thread.i.i.preheader
                                        #   in Loop: Header=BB13_71 Depth=2
	movl	$64, %r14d
	movl	$-128, %ecx
.LBB13_79:                              # %_ZL10largestposli.exit.thread.i.i
                                        #   Parent Loop BB13_55 Depth=1
                                        #     Parent Loop BB13_71 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	testq	%r14, %r14
	je	.LBB13_83
# %bb.80:                               #   in Loop: Header=BB13_79 Depth=3
	decq	%r14
	incl	%ecx
	btq	%r14, %r11
	jae	.LBB13_79
# %bb.81:                               # %_ZL10largestposli.exit31.i.i
                                        #   in Loop: Header=BB13_71 Depth=2
	testl	%r14d, %r14d
	js	.LBB13_83
.LBB13_82:                              #   in Loop: Header=BB13_71 Depth=2
	negl	%ecx
	jmp	.LBB13_88
.LBB13_83:                              # %_ZL10largestposli.exit31.thread.i.i.preheader
                                        #   in Loop: Header=BB13_71 Depth=2
	movl	$64, %ecx
.LBB13_84:                              # %_ZL10largestposli.exit31.thread.i.i
                                        #   Parent Loop BB13_55 Depth=1
                                        #     Parent Loop BB13_71 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	testq	%rcx, %rcx
	je	.LBB13_87
# %bb.85:                               #   in Loop: Header=BB13_84 Depth=3
	decq	%rcx
	btq	%rcx, %r10
	jae	.LBB13_84
# %bb.86:                               # %_ZL12largestpos_3llli.exit.i
                                        #   in Loop: Header=BB13_71 Depth=2
	movl	%ecx, -1264(%rbp,%rdi,4)
	incl	%eax
	testl	%ecx, %ecx
	jne	.LBB13_89
	jmp	.LBB13_95
.LBB13_87:                              #   in Loop: Header=BB13_71 Depth=2
	movl	$-1, %ecx
.LBB13_88:                              # %_ZL12largestpos_3llli.exit.thread.i
                                        #   in Loop: Header=BB13_71 Depth=2
	movl	%ecx, -1264(%rbp,%rdi,4)
	incl	%eax
.LBB13_89:                              # %.preheader183.i
                                        #   in Loop: Header=BB13_71 Depth=2
	cmpq	$189, %rdi
	ja	.LBB13_94
# %bb.90:                               # %.lr.ph.i
                                        #   in Loop: Header=BB13_71 Depth=2
	leal	63(%rcx), %r9d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r9d
	movl	%r9d, %r10d
	andl	$-64, %r9d
	subl	%r9d, %ecx
	movl	$1, %r9d
                                        # kill: def $cl killed $cl killed $rcx
	shlq	%cl, %r9
	sarl	$6, %r10d
	movslq	%r10d, %rcx
	movq	%rsi, %r10
	movq	%rdx, %r11
.LBB13_91:                              #   Parent Loop BB13_55 Depth=1
                                        #     Parent Loop BB13_71 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	testq	%r9, (%r10,%rcx,8)
	je	.LBB13_93
# %bb.92:                               #   in Loop: Header=BB13_91 Depth=3
	movq	(%r8), %r14
	xorq	%r14, (%r10)
	movq	8(%r8), %r14
	xorq	%r14, 8(%r10)
	movq	16(%r8), %r14
	xorq	%r14, 16(%r10)
.LBB13_93:                              #   in Loop: Header=BB13_91 Depth=3
	addq	$24, %r10
	decq	%r11
	jne	.LBB13_91
.LBB13_94:                              # %.loopexit184.i
                                        #   in Loop: Header=BB13_71 Depth=2
	cmpq	$190, %rdi
	leaq	1(%rdi), %rcx
	setae	%r9b
	decq	%rdx
	addq	$24, %rsi
	movq	%rcx, %rdi
	cmpq	$191, %rcx
	jne	.LBB13_71
.LBB13_95:                              #   in Loop: Header=BB13_55 Depth=1
	testb	$1, %r9b
	je	.LBB13_141
# %bb.96:                               # %.preheader182.i.preheader
                                        #   in Loop: Header=BB13_55 Depth=1
	xorl	%edx, %edx
.LBB13_97:                              # %.preheader182.i
                                        #   Parent Loop BB13_55 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB13_101 Depth 3
	cmpq	$1, %rdx
	movq	%rdx, %rcx
	adcq	$0, %rcx
	leaq	(%rdx,%rdx,2), %rdi
	cmpq	$0, -6064(%rbp,%rdi,8)
	jne	.LBB13_99
# %bb.98:                               #   in Loop: Header=BB13_97 Depth=2
	cmpq	$0, -6056(%rbp,%rdi,8)
	je	.LBB13_105
.LBB13_99:                              #   in Loop: Header=BB13_97 Depth=2
	testq	%rdx, %rdx
	je	.LBB13_104
.LBB13_100:                             # %.lr.ph190.i
                                        #   in Loop: Header=BB13_97 Depth=2
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %rsi
	leaq	-6064(,%rdi,8), %rdi
	addq	%rbp, %rdi
	movl	-1264(%rbp,%rdx,4), %ecx
	leal	63(%rcx), %r8d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r8d
	movl	%r8d, %r9d
	andl	$-64, %r8d
	subl	%r8d, %ecx
	movl	$1, %r8d
                                        # kill: def $cl killed $cl killed $rcx
	shlq	%cl, %r8
	sarl	$6, %r9d
	movslq	%r9d, %rcx
	leaq	-6064(,%rcx,8), %rcx
	addq	%rbp, %rcx
	xorl	%r9d, %r9d
.LBB13_101:                             #   Parent Loop BB13_55 Depth=1
                                        #     Parent Loop BB13_97 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	testq	%r8, (%rcx,%r9)
	je	.LBB13_103
# %bb.102:                              #   in Loop: Header=BB13_101 Depth=3
	movq	(%rdi), %r10
	xorq	%r10, -6064(%rbp,%r9)
	movq	8(%rdi), %r10
	xorq	%r10, -6056(%rbp,%r9)
	movq	16(%rdi), %r10
	xorq	%r10, -6048(%rbp,%r9)
.LBB13_103:                             #   in Loop: Header=BB13_101 Depth=3
	addq	$24, %r9
	cmpq	%r9, %rsi
	jne	.LBB13_101
.LBB13_104:                             # %.loopexit181.i
                                        #   in Loop: Header=BB13_97 Depth=2
	incq	%rdx
	cmpq	$191, %rdx
	jne	.LBB13_97
	jmp	.LBB13_107
.LBB13_105:                             #   in Loop: Header=BB13_97 Depth=2
	testq	%rdx, %rdx
	je	.LBB13_104
# %bb.106:                              #   in Loop: Header=BB13_97 Depth=2
	cmpq	$0, -6048(%rbp,%rdi,8)
	jne	.LBB13_100
	jmp	.LBB13_104
.LBB13_107:                             #   in Loop: Header=BB13_55 Depth=1
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -12400(%rbp)
	movq	$0, -12384(%rbp)
	cmpl	$188, %eax
	jne	.LBB13_113
# %bb.108:                              # %.preheader414.preheader
                                        #   in Loop: Header=BB13_55 Depth=1
	leaq	-6064(%rbp), %rax
	xorl	%edx, %edx
.LBB13_109:                             # %.preheader414
                                        #   Parent Loop BB13_55 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	testb	$1, (%rax)
	je	.LBB13_111
# %bb.110:                              #   in Loop: Header=BB13_109 Depth=2
	movl	-1264(%rbp,%rdx,4), %ecx
	leal	-1(%rcx), %esi
	leal	62(%rcx), %edi
	testl	%esi, %esi
	cmovnsl	%esi, %edi
	movl	%edi, %esi
	andl	$-64, %esi
	negl	%esi
	addl	%esi, %ecx
	decl	%ecx
	movl	$1, %esi
                                        # kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rsi
	sarl	$6, %edi
	movslq	%edi, %rcx
	xorq	%rsi, -12400(%rbp,%rcx,8)
.LBB13_111:                             # %.thread.i
                                        #   in Loop: Header=BB13_109 Depth=2
	incq	%rdx
	addq	$24, %rax
	cmpq	$191, %rdx
	jne	.LBB13_109
# %bb.112:                              # %_ZL10gauss_hostPA3_miiPA3_l.exit.thread
                                        #   in Loop: Header=BB13_55 Depth=1
	incl	-80(%rbp)                       # 4-byte Folded Spill
	movl	$1, %r14d
	jmp	.LBB13_138
.LBB13_113:                             # %.preheader180.preheader.i
                                        #   in Loop: Header=BB13_55 Depth=1
	movl	$189, %edx
	leaq	-496(%rbp), %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	leaq	-6048(%rbp), %rax
	xorl	%edx, %edx
.LBB13_114:                             # %.preheader180.i
                                        #   Parent Loop BB13_55 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	-16(%rax), %rsi
	testq	%rsi, %rsi
	je	.LBB13_117
# %bb.115:                              #   in Loop: Header=BB13_114 Depth=2
	movslq	-1264(%rbp,%rdx,4), %rcx
	movb	$1, -496(%rbp,%rcx)
	testb	$1, %sil
	je	.LBB13_120
# %bb.116:                              #   in Loop: Header=BB13_114 Depth=2
	leal	-1(%rcx), %esi
	leal	62(%rcx), %edi
	testl	%esi, %esi
	cmovnsl	%esi, %edi
	movl	%edi, %esi
	andl	$-64, %esi
	negl	%esi
	addl	%esi, %ecx
	decl	%ecx
	movl	$1, %esi
                                        # kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rsi
	sarl	$6, %edi
	movslq	%edi, %rcx
	xorq	%rsi, -12400(%rbp,%rcx,8)
	jmp	.LBB13_120
.LBB13_117:                             #   in Loop: Header=BB13_114 Depth=2
	cmpq	$0, -8(%rax)
	jne	.LBB13_119
# %bb.118:                              #   in Loop: Header=BB13_114 Depth=2
	cmpq	$0, (%rax)
	je	.LBB13_120
.LBB13_119:                             # %.thread175.i
                                        #   in Loop: Header=BB13_114 Depth=2
	movslq	-1264(%rbp,%rdx,4), %rcx
	movb	$1, -496(%rbp,%rcx)
.LBB13_120:                             #   in Loop: Header=BB13_114 Depth=2
	incq	%rdx
	addq	$24, %rax
	cmpq	$191, %rdx
	jne	.LBB13_114
# %bb.121:                              # %.preheader179.i.preheader
                                        #   in Loop: Header=BB13_55 Depth=1
	movl	$1, %eax
	xorl	%edx, %edx
	movl	$1, %r14d
.LBB13_122:                             # %.preheader179.i
                                        #   Parent Loop BB13_55 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB13_125 Depth 3
                                        #       Child Loop BB13_127 Depth 3
                                        #         Child Loop BB13_133 Depth 4
	cmpb	$0, -496(%rbp,%rax)
	jne	.LBB13_136
# %bb.123:                              # %.preheader178.i
                                        #   in Loop: Header=BB13_122 Depth=2
	testq	%r14, %r14
	jle	.LBB13_126
# %bb.124:                              # %.lr.ph196.i
                                        #   in Loop: Header=BB13_122 Depth=2
	movq	%rdx, %rsi
	shrq	$3, %rsi
	andq	$-8, %rsi
	leal	-1(%rax), %ecx
	movl	$1, %edi
                                        # kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rdi
	leaq	(,%r14,8), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	addq	%rcx, %rsi
	leaq	-12400(%rbp), %r8
	movq	%r14, %r9
.LBB13_125:                             #   Parent Loop BB13_55 Depth=1
                                        #     Parent Loop BB13_122 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movq	(%r8), %r10
	movq	%r10, (%r8,%rcx)
	movq	8(%r8), %r10
	movq	%r10, 8(%r8,%rcx)
	movq	16(%r8), %r10
	movq	%r10, 16(%r8,%rcx)
	xorq	%rdi, (%r8,%rsi)
	addq	$24, %r8
	decq	%r9
	jne	.LBB13_125
.LBB13_126:                             # %.preheader.i
                                        #   in Loop: Header=BB13_122 Depth=2
	movl	%eax, %esi
	movl	$1, %edi
	movl	%eax, %ecx
	shlq	%cl, %rdi
	shrl	$6, %esi
	leaq	(%r14,%r14,2), %rcx
	leaq	-12400(,%rcx,8), %r8
	addq	%rbp, %r8
	xorl	%r9d, %r9d
.LBB13_127:                             #   Parent Loop BB13_55 Depth=1
                                        #     Parent Loop BB13_122 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB13_133 Depth 4
	leaq	(%r9,%r9,2), %rcx
	cmpq	$0, -6064(%rbp,%rcx,8)
	jne	.LBB13_130
# %bb.128:                              #   in Loop: Header=BB13_127 Depth=3
	cmpq	$0, -6056(%rbp,%rcx,8)
	jne	.LBB13_130
# %bb.129:                              #   in Loop: Header=BB13_127 Depth=3
	cmpq	$0, -6048(%rbp,%rcx,8)
	je	.LBB13_134
.LBB13_130:                             #   in Loop: Header=BB13_127 Depth=3
	testq	%r14, %r14
	jle	.LBB13_134
# %bb.131:                              #   in Loop: Header=BB13_127 Depth=3
	leaq	-6064(,%rcx,8), %rcx
	addq	%rbp, %rcx
	movq	(%rcx,%rsi,8), %rcx
	andq	%rdi, %rcx
	je	.LBB13_134
# %bb.132:                              # %.lr.ph199.i
                                        #   in Loop: Header=BB13_127 Depth=3
	movl	-1264(%rbp,%r9,4), %ecx
	leal	-1(%rcx), %r10d
	leal	62(%rcx), %r11d
	testl	%r10d, %r10d
	cmovnsl	%r10d, %r11d
	movl	%r11d, %r10d
	andl	$-64, %r10d
	negl	%r10d
	addl	%r10d, %ecx
	decl	%ecx
	movl	$1, %r10d
                                        # kill: def $cl killed $cl killed $ecx
	shlq	%cl, %r10
	sarl	$6, %r11d
	movslq	%r11d, %rcx
	leaq	(%r8,%rcx,8), %rcx
	movq	%r14, %r11
.LBB13_133:                             #   Parent Loop BB13_55 Depth=1
                                        #     Parent Loop BB13_122 Depth=2
                                        #       Parent Loop BB13_127 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	xorq	%r10, (%rcx)
	addq	$24, %rcx
	decq	%r11
	jne	.LBB13_133
.LBB13_134:                             # %.loopexit177.i
                                        #   in Loop: Header=BB13_127 Depth=3
	incq	%r9
	cmpq	$191, %r9
	jne	.LBB13_127
# %bb.135:                              #   in Loop: Header=BB13_122 Depth=2
	addq	%r14, %r14
.LBB13_136:                             #   in Loop: Header=BB13_122 Depth=2
	incq	%rax
	incq	%rdx
	cmpq	$189, %rax
	jne	.LBB13_122
# %bb.137:                              # %_ZL10gauss_hostPA3_miiPA3_l.exit
                                        #   in Loop: Header=BB13_55 Depth=1
	addl	%r14d, -80(%rbp)                # 4-byte Folded Spill
	testq	%r14, %r14
	jle	.LBB13_141
.LBB13_138:                             # %.lr.ph473.preheader
                                        #   in Loop: Header=BB13_55 Depth=1
	leaq	-12400(%rbp), %r12
.LBB13_139:                             # %.lr.ph473
                                        #   Parent Loop BB13_55 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	callq	_Z9stateInitPy
	movq	%r13, %rdi
	leaq	-37472(%rbp), %rsi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	callq	_Z9getStatesPyPA4_mlPl
	movl	$200, %edx
	leaq	-496(%rbp), %rdi
	movq	%r13, %rsi
	callq	memcpy@PLT
	movq	%r13, %rdi
	leaq	-256(%rbp), %rsi
	callq	_Z14checkHashValuePyS_
	testl	%eax, %eax
	jne	.LBB13_157
# %bb.140:                              #   in Loop: Header=BB13_139 Depth=2
	addq	$24, %r12
	decq	%r14
	jne	.LBB13_139
.LBB13_141:                             # %._crit_edge474
                                        #   in Loop: Header=BB13_55 Depth=1
	movq	-56(%rbp), %rcx                 # 8-byte Reload
	incq	%rcx
	addq	$4584, %r15                     # imm = 0x11E8
	cmpq	$8192, %rcx                     # imm = 0x2000
	jne	.LBB13_55
# %bb.142:
	movl	$.Lstr.5, %edi
	callq	puts@PLT
	movq	-152(%rbp), %rdi
	movl	$65536, %edx                    # imm = 0x10000
	movq	-64(%rbp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB13_173
# %bb.143:
	movq	-136(%rbp), %rdi
	movl	$37552128, %edx                 # imm = 0x23D0000
	movq	-112(%rbp), %rsi                # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB13_176
# %bb.144:
	movq	-128(%rbp), %rdi
	movl	$12517376, %edx                 # imm = 0xBF0000
	movq	-72(%rbp), %rsi                 # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB13_177
# %bb.145:
	movl	$.L.str.35, %edi
	movl	$16, %esi
	movl	$32, %edx
	movl	$256, %ecx                      # imm = 0x100
	xorl	%eax, %eax
	callq	printf
	leaq	-496(%rbp), %rbx
	movq	%rbx, %rdi
	callq	hipEventCreate
	leaq	-120(%rbp), %rdi
	callq	hipEventCreate
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	movl	$.Lstr.6, %edi
	callq	puts@PLT
	movabsq	$4294967328, %rdi               # imm = 0x100000020
	leaq	224(%rdi), %rdx
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB13_147
# %bb.146:
	movq	-136(%rbp), %rdi
	movq	-128(%rbp), %rsi
	movq	-152(%rbp), %rdx
	movq	-144(%rbp), %rcx
	movq	-88(%rbp), %r8
	callq	_Z26__device_stub__solveLinearPKmS0_PlS1_S1_
.LBB13_147:
	movq	-120(%rbp), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	movq	-120(%rbp), %rdi
	callq	hipEventSynchronize
	leaq	-156(%rbp), %rdi
	movl	$0, (%rdi)
	movq	-496(%rbp), %rsi
	movq	-120(%rbp), %rdx
	callq	hipEventElapsedTime
	callq	hipGetLastError
	testl	%eax, %eax
	jne	.LBB13_178
# %bb.148:
	movq	%rsp, %r12
	movq	%rsp, %rbx
	addq	$-65536, %rbx                   # imm = 0xFFFF0000
	movq	%rbx, %rsp
	movq	-144(%rbp), %rsi
	movl	$65536, %edx                    # imm = 0x10000
	movq	%rbx, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB13_179
# %bb.149:
	movq	-88(%rbp), %rsi
	leaq	-208(%rbp), %rdi
	movl	$32, %edx
	movl	$2, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB13_180
# %bb.150:
	cmpq	$0, -208(%rbp)
	jne	.LBB13_182
# %bb.151:
	cmpq	$0, -200(%rbp)
	jne	.LBB13_182
# %bb.152:
	cmpq	$0, -192(%rbp)
	jne	.LBB13_182
# %bb.153:
	cmpq	$0, -184(%rbp)
	jne	.LBB13_182
# %bb.154:
	movl	$.L.str.41, %edi
	movl	$.L.str.25, %esi
	callq	fopen
	movq	%rax, %r14
	movslq	-80(%rbp), %r15                 # 4-byte Folded Reload
	xorl	%eax, %eax
.LBB13_155:                             # =>This Inner Loop Header: Depth=1
	addq	(%rbx,%rax,8), %r15
	incq	%rax
	cmpq	$8192, %rax                     # imm = 0x2000
	jne	.LBB13_155
# %bb.156:
	movq	-96(%rbp), %r13                 # 8-byte Reload
	movq	%r13, %rbx
	orq	$536870911, %rbx                # imm = 0x1FFFFFFF
	movl	$.L.str.42, %edi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	printf
	movq	-216(%rbp), %rax                # 8-byte Reload
	movq	8(%rax), %rdi
	callq	atol
	movl	$.L.str.43, %esi
	movq	%r14, %rdi
	movq	%rax, %rdx
	movq	%r13, %rcx
	movq	%rbx, %r8
	movq	%r15, %r9
	xorl	%eax, %eax
	callq	fprintf
	movq	%r14, %rdi
	callq	fclose
	cvtss2sd	-156(%rbp), %xmm0
	movl	$.L.str.44, %edi
	movb	$1, %al
	callq	printf
	movq	-64(%rbp), %rdi                 # 8-byte Reload
	callq	hipFree
	movq	-136(%rbp), %rdi
	callq	hipFree
	movq	-128(%rbp), %rdi
	callq	hipFree
	movq	-152(%rbp), %rdi
	callq	hipFree
	movq	-144(%rbp), %rdi
	callq	hipFree
	movq	-88(%rbp), %rdi
	callq	hipFree
	movq	%r12, %rsp
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa %rsp, 8
	retq
.LBB13_157:
	.cfi_def_cfa %rbp, 16
	movl	$.L.str.24, %edi
	movl	$.L.str.25, %esi
	callq	fopen
	movq	%rax, %r14
	movq	(%r12), %rdx
	movq	8(%r12), %rcx
	movq	16(%r12), %r8
	xorl	%r15d, %r15d
	movl	$.L.str.26, %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.27, %edi
	movl	$19, %esi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	fwrite@PLT
	xorl	%ebx, %ebx
.LBB13_158:                             # =>This Inner Loop Header: Depth=1
	movzbl	%bl, %eax
	imull	$205, %eax, %eax
	shrl	$10, %eax
	leal	(%rax,%rax,4), %eax
	addb	%r15b, %al
	jne	.LBB13_160
# %bb.159:                              #   in Loop: Header=BB13_158 Depth=1
	movl	$10, %edi
	movq	%r14, %rsi
	callq	fputc@PLT
.LBB13_160:                             #   in Loop: Header=BB13_158 Depth=1
	movq	-496(%rbp,%rbx,8), %rdx
	movl	$.L.str.28, %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	fprintf
	incq	%rbx
	decb	%r15b
	cmpq	$25, %rbx
	jne	.LBB13_158
# %bb.161:
	movl	$.L.str.29, %edi
	movl	$19, %esi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	fwrite@PLT
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
.LBB13_162:                             # =>This Inner Loop Header: Depth=1
	movzbl	%r15b, %eax
	imull	$205, %eax, %eax
	shrl	$10, %eax
	leal	(%rax,%rax,4), %eax
	addb	%bl, %al
	jne	.LBB13_164
# %bb.163:                              #   in Loop: Header=BB13_162 Depth=1
	movl	$10, %edi
	movq	%r14, %rsi
	callq	fputc@PLT
.LBB13_164:                             #   in Loop: Header=BB13_162 Depth=1
	movq	-1264(%rbp,%r15,8), %rdx
	movl	$.L.str.28, %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	fprintf
	incq	%r15
	decb	%bl
	cmpq	$25, %r15
	jne	.LBB13_162
# %bb.165:
	movq	%r14, %rdi
.LBB13_166:
	callq	fclose
	movl	$.Lstr.8, %edi
	callq	puts@PLT
	xorl	%edi, %edi
	callq	exit
.LBB13_167:
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.9, %edi
	jmp	.LBB13_174
.LBB13_168:
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.17, %edi
	jmp	.LBB13_174
.LBB13_169:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.18, %esi
	jmp	.LBB13_181
.LBB13_170:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.19, %esi
	jmp	.LBB13_181
.LBB13_171:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.21, %esi
	jmp	.LBB13_181
.LBB13_172:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.22, %esi
	jmp	.LBB13_181
.LBB13_173:
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.32, %edi
.LBB13_174:
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	printf
	jmp	.LBB13_175
.LBB13_176:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.33, %esi
	jmp	.LBB13_181
.LBB13_177:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.34, %esi
	jmp	.LBB13_181
.LBB13_178:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.37, %esi
	jmp	.LBB13_181
.LBB13_179:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.38, %esi
	jmp	.LBB13_181
.LBB13_180:
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.39, %esi
.LBB13_181:
	movq	%rbx, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	fprintf
.LBB13_175:
	movl	$1, %edi
	callq	exit
.LBB13_182:                             # %.preheader.preheader
	leaq	-200(%rbp), %r15
	movl	$.L.str.40, %edi
	movl	$.L.str.25, %esi
	callq	fopen
	movq	%rax, %rbx
	movq	-8(%r15), %rsi
	movq	(%r15), %rdx
	movq	8(%r15), %rcx
	movq	16(%r15), %r8
	xorl	%r14d, %r14d
	movl	$.L.str.26, %edi
	xorl	%eax, %eax
	callq	printf
	leaq	-12400(%rbp), %r12
	movq	%r12, %rdi
	callq	_Z9stateInitPy
	movq	-8(%r15), %rdx
	leaq	-37472(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r15, %rcx
	callq	_Z9getStatesPyPA4_mlPl
	leaq	-1264(%rbp), %rdi
	movl	$200, %edx
	movq	%r12, %rsi
	callq	memcpy@PLT
.LBB13_183:                             # %.preheader
                                        # =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_Z16KeccakP1600RoundPyj
	incl	%r14d
	cmpl	$3, %r14d
	jne	.LBB13_183
# %bb.184:
	movl	$.L.str.27, %edi
	movl	$19, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	fwrite@PLT
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
.LBB13_185:                             # =>This Inner Loop Header: Depth=1
	movzbl	%r15b, %eax
	imull	$205, %eax, %eax
	shrl	$10, %eax
	leal	(%rax,%rax,4), %eax
	addb	%r14b, %al
	jne	.LBB13_187
# %bb.186:                              #   in Loop: Header=BB13_185 Depth=1
	movl	$10, %edi
	movq	%rbx, %rsi
	callq	fputc@PLT
.LBB13_187:                             #   in Loop: Header=BB13_185 Depth=1
	movq	-1264(%rbp,%r15,8), %rdx
	movl	$.L.str.28, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	fprintf
	incq	%r15
	decb	%r14b
	cmpq	$25, %r15
	jne	.LBB13_185
# %bb.188:
	movl	$.L.str.29, %edi
	movl	$19, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	fwrite@PLT
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
.LBB13_189:                             # =>This Inner Loop Header: Depth=1
	movzbl	%r15b, %eax
	imull	$205, %eax, %eax
	shrl	$10, %eax
	leal	(%rax,%rax,4), %eax
	addb	%r14b, %al
	jne	.LBB13_191
# %bb.190:                              #   in Loop: Header=BB13_189 Depth=1
	movl	$10, %edi
	movq	%rbx, %rsi
	callq	fputc@PLT
.LBB13_191:                             #   in Loop: Header=BB13_189 Depth=1
	movq	-12400(%rbp,%r15,8), %rdx
	movl	$.L.str.28, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	fprintf
	incq	%r15
	decb	%r14b
	cmpq	$25, %r15
	jne	.LBB13_189
# %bb.192:
	movq	%rbx, %rdi
	jmp	.LBB13_166
.Lfunc_end13:
	.size	main, .Lfunc_end13-main
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB14_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB14_2:
	subq	$32, %rsp
	.cfi_adjust_cfa_offset 32
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z11solveLinearPKmS0_PlS1_S1_, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	addq	$32, %rsp
	.cfi_adjust_cfa_offset -32
	movl	$const_KeccakRoundConstants, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movl	$192, %r9d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	pushq	$0
	.cfi_adjust_cfa_offset 8
	pushq	$1
	.cfi_adjust_cfa_offset 8
	callq	__hipRegisterVar
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
	movl	$const_KeccakRhoOffsets, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movl	$100, %r9d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	pushq	$0
	.cfi_adjust_cfa_offset 8
	pushq	$1
	.cfi_adjust_cfa_offset 8
	callq	__hipRegisterVar
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
	movl	$const_state, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movl	$200, %r9d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	pushq	$0
	.cfi_adjust_cfa_offset 8
	pushq	$1
	.cfi_adjust_cfa_offset 8
	callq	__hipRegisterVar
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
	movl	$const_hashvalue, %esi
	movl	$.L__unnamed_5, %edx
	movl	$.L__unnamed_5, %ecx
	movl	$32, %r9d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	pushq	$0
	.cfi_adjust_cfa_offset 8
	pushq	$1
	.cfi_adjust_cfa_offset 8
	callq	__hipRegisterVar
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
	movl	$d_linear_mat, %esi
	movl	$.L__unnamed_6, %edx
	movl	$.L__unnamed_6, %ecx
	movl	$73344, %r9d                    # imm = 0x11E80
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	pushq	$0
	.cfi_adjust_cfa_offset 8
	pushq	$0
	.cfi_adjust_cfa_offset 8
	callq	__hipRegisterVar
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
	movl	$d_square_mat, %esi
	movl	$.L__unnamed_7, %edx
	movl	$.L__unnamed_7, %ecx
	movl	$24448, %r9d                    # imm = 0x5F80
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	pushq	$0
	.cfi_adjust_cfa_offset 8
	pushq	$0
	.cfi_adjust_cfa_offset 8
	callq	__hipRegisterVar
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
	movl	$d_var_all, %esi
	movl	$.L__unnamed_8, %edx
	movl	$.L__unnamed_8, %ecx
	movl	$20480, %r9d                    # imm = 0x5000
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	pushq	$0
	.cfi_adjust_cfa_offset 8
	pushq	$0
	.cfi_adjust_cfa_offset 8
	callq	__hipRegisterVar
	addq	$16, %rsp
	.cfi_adjust_cfa_offset -16
	movl	$__hip_module_dtor, %edi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end14:
	.size	__hip_module_ctor, .Lfunc_end14-__hip_module_ctor
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_dtor
	.type	__hip_module_dtor,@function
__hip_module_dtor:                      # @__hip_module_dtor
	.cfi_startproc
# %bb.0:
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB15_2
# %bb.1:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__hipUnregisterFatBinary
	movq	$0, __hip_gpubin_handle(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
.LBB15_2:
	retq
.Lfunc_end15:
	.size	__hip_module_dtor, .Lfunc_end15-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	const_KeccakRoundConstants,@object # @const_KeccakRoundConstants
	.local	const_KeccakRoundConstants
	.comm	const_KeccakRoundConstants,192,16
	.type	const_KeccakRhoOffsets,@object  # @const_KeccakRhoOffsets
	.local	const_KeccakRhoOffsets
	.comm	const_KeccakRhoOffsets,100,16
	.type	displayLevel,@object            # @displayLevel
	.data
	.globl	displayLevel
	.p2align	2, 0x0
displayLevel:
	.long	10                              # 0xa
	.size	displayLevel, 4

	.type	_ZL20KeccakRoundConstants,@object # @_ZL20KeccakRoundConstants
	.local	_ZL20KeccakRoundConstants
	.comm	_ZL20KeccakRoundConstants,192,16
	.type	_ZL16KeccakRhoOffsets,@object   # @_ZL16KeccakRhoOffsets
	.local	_ZL16KeccakRhoOffsets
	.comm	_ZL16KeccakRhoOffsets,100,16
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"../data/state_files/messaged_state.txt"
	.size	.L.str, 39

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"r+"
	.size	.L.str.1, 3

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"Find Preimage!!!\nState after XORed with block2:"
	.size	.L.str.2, 48

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"%llu "
	.size	.L.str.4, 6

	.type	const_state,@object             # @const_state
	.local	const_state
	.comm	const_state,200,16
	.type	const_hashvalue,@object         # @const_hashvalue
	.local	const_hashvalue
	.comm	const_hashvalue,32,16
	.type	d_linear_mat,@object            # @d_linear_mat
	.local	d_linear_mat
	.comm	d_linear_mat,73344,16
	.type	d_square_mat,@object            # @d_square_mat
	.local	d_square_mat
	.comm	d_square_mat,24448,16
	.type	d_var_all,@object               # @d_var_all
	.local	d_var_all
	.comm	d_var_all,20480,16
	.type	_Z11solveLinearPKmS0_PlS1_S1_,@object # @_Z11solveLinearPKmS0_PlS1_S1_
	.section	.rodata,"a",@progbits
	.globl	_Z11solveLinearPKmS0_PlS1_S1_
	.p2align	3, 0x0
_Z11solveLinearPKmS0_PlS1_S1_:
	.quad	_Z26__device_stub__solveLinearPKmS0_PlS1_S1_
	.size	_Z11solveLinearPKmS0_PlS1_S1_, 8

	.type	.L.str.8,@object                # @.str.8
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.8:
	.asciz	"../../hash_value.txt"
	.size	.L.str.8, 21

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"Failed to copy host to device(error code %s)!\n"
	.size	.L.str.9, 47

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"../data/mat_files/linear_mat.txt"
	.size	.L.str.10, 33

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	"../data/mat_files/square_mat.txt"
	.size	.L.str.11, 33

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	"../data/mat_files/working_mat.txt"
	.size	.L.str.12, 34

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	"../data/mat_files/totalLinear_mat.txt"
	.size	.L.str.13, 38

	.type	.L.str.14,@object               # @.str.14
.L.str.14:
	.asciz	"%c"
	.size	.L.str.14, 3

	.type	.L.str.17,@object               # @.str.17
.L.str.17:
	.asciz	"Failed to allocate device value (error code %s)!\n"
	.size	.L.str.17, 50

	.type	.L.str.18,@object               # @.str.18
.L.str.18:
	.asciz	"Failed to allocate device working_mat_copy (error code %s)!\n"
	.size	.L.str.18, 61

	.type	.L.str.19,@object               # @.str.19
.L.str.19:
	.asciz	"Failed to allocate devices const_mat (error code %s)!\n"
	.size	.L.str.19, 55

	.type	.L.str.21,@object               # @.str.21
.L.str.21:
	.asciz	"Failed to allocate devices result (error code %s)!\n"
	.size	.L.str.21, 52

	.type	.L.str.22,@object               # @.str.22
.L.str.22:
	.asciz	"Failed to copy result from host to device (error code %s)!\n"
	.size	.L.str.22, 60

	.type	.L.str.24,@object               # @.str.24
.L.str.24:
	.asciz	"final_messaged_state_online.txt"
	.size	.L.str.24, 32

	.type	.L.str.25,@object               # @.str.25
.L.str.25:
	.asciz	"a+"
	.size	.L.str.25, 3

	.type	.L.str.26,@object               # @.str.26
.L.str.26:
	.asciz	"we have done on GPU!!! val:%lu, sol:%lu %lu %lu\n"
	.size	.L.str.26, 49

	.type	.L.str.27,@object               # @.str.27
.L.str.27:
	.asciz	"The messaged state:"
	.size	.L.str.27, 20

	.type	.L.str.28,@object               # @.str.28
.L.str.28:
	.asciz	"%016lX "
	.size	.L.str.28, 8

	.type	.L.str.29,@object               # @.str.29
.L.str.29:
	.asciz	"\n\nThe output state:"
	.size	.L.str.29, 20

	.type	.L.str.32,@object               # @.str.32
.L.str.32:
	.asciz	"Failed to copy value from host to device (error code %s)!\n"
	.size	.L.str.32, 59

	.type	.L.str.33,@object               # @.str.33
.L.str.33:
	.asciz	"Failed to copy working_mat_copy from host to device (error code %s)!\n"
	.size	.L.str.33, 70

	.type	.L.str.34,@object               # @.str.34
.L.str.34:
	.asciz	"Failed to copy const_mat from host to device (error code %s)!\n"
	.size	.L.str.34, 63

	.type	.L.str.35,@object               # @.str.35
.L.str.35:
	.asciz	"enum num : %d\nblock num : %d\nthread num : %d\n"
	.size	.L.str.35, 46

	.type	.L.str.37,@object               # @.str.37
.L.str.37:
	.asciz	"Failed to launch solveLinear kernel (error code %s)!\n"
	.size	.L.str.37, 54

	.type	.L.str.38,@object               # @.str.38
.L.str.38:
	.asciz	"Failed to copy total solution numbers from device to host (error code %s)!\n"
	.size	.L.str.38, 76

	.type	.L.str.39,@object               # @.str.39
.L.str.39:
	.asciz	"Failed to copy result from device to host (error code %s)!\n"
	.size	.L.str.39, 60

	.type	.L.str.40,@object               # @.str.40
.L.str.40:
	.asciz	"../data/state_files/final_messaged_state_online.txt"
	.size	.L.str.40, 52

	.type	.L.str.41,@object               # @.str.41
.L.str.41:
	.asciz	"../data/mat_files/result.txt"
	.size	.L.str.41, 29

	.type	.L.str.42,@object               # @.str.42
.L.str.42:
	.asciz	"val : %lu~%lu ,find %lu solutions, none is correct...\n"
	.size	.L.str.42, 55

	.type	.L.str.43,@object               # @.str.43
.L.str.43:
	.asciz	"Part %d finished -- val : %lu~%lu ,find %lu solutions, none is correct...\n"
	.size	.L.str.43, 75

	.type	.L.str.44,@object               # @.str.44
.L.str.44:
	.asciz	"time:%.3lf ms\n---------------------------------------\n"
	.size	.L.str.44, 55

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z11solveLinearPKmS0_PlS1_S1_"
	.size	.L__unnamed_1, 30

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"const_KeccakRoundConstants"
	.size	.L__unnamed_2, 27

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"const_KeccakRhoOffsets"
	.size	.L__unnamed_3, 23

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"const_state"
	.size	.L__unnamed_4, 12

	.type	.L__unnamed_5,@object           # @4
.L__unnamed_5:
	.asciz	"const_hashvalue"
	.size	.L__unnamed_5, 16

	.type	.L__unnamed_6,@object           # @5
.L__unnamed_6:
	.asciz	"d_linear_mat"
	.size	.L__unnamed_6, 13

	.type	.L__unnamed_7,@object           # @6
.L__unnamed_7:
	.asciz	"d_square_mat"
	.size	.L__unnamed_7, 13

	.type	.L__unnamed_8,@object           # @7
.L__unnamed_8:
	.asciz	"d_var_all"
	.size	.L__unnamed_8, 10

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

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

	.type	.Lstr,@object                   # @str
	.section	.rodata.str1.1,"aMS",@progbits,1
.Lstr:
	.asciz	"read middle state"
	.size	.Lstr, 18

	.type	.Lstr.1,@object                 # @str.1
.Lstr.1:
	.asciz	"read hash value"
	.size	.Lstr.1, 16

	.type	.Lstr.2,@object                 # @str.2
.Lstr.2:
	.asciz	"finish reading file!"
	.size	.Lstr.2, 21

	.type	.Lstr.3,@object                 # @str.3
.Lstr.3:
	.asciz	"finish copying device memory!"
	.size	.Lstr.3, 30

	.type	.Lstr.4,@object                 # @str.4
.Lstr.4:
	.asciz	"finish allocate device memory!"
	.size	.Lstr.4, 31

	.type	.Lstr.5,@object                 # @str.5
.Lstr.5:
	.asciz	"finish cpu computing!"
	.size	.Lstr.5, 22

	.type	.Lstr.6,@object                 # @str.6
.Lstr.6:
	.asciz	"begin solve linear system!"
	.size	.Lstr.6, 27

	.type	.Lstr.8,@object                 # @str.8
.Lstr.8:
	.asciz	"finish."
	.size	.Lstr.8, 8

	.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 _Z26__device_stub__solveLinearPKmS0_PlS1_S1_
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym const_KeccakRoundConstants
	.addrsig_sym const_KeccakRhoOffsets
	.addrsig_sym const_state
	.addrsig_sym const_hashvalue
	.addrsig_sym d_linear_mat
	.addrsig_sym d_square_mat
	.addrsig_sym d_var_all
	.addrsig_sym _Z11solveLinearPKmS0_PlS1_S1_
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.p2align	2                               ; -- Begin function __ockl_printf_append_string_n
	.type	__ockl_printf_append_string_n,@function
__ockl_printf_append_string_n:          ; @__ockl_printf_append_string_n
; %bb.0:
	s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
	v_dual_mov_b32 v8, v3 :: v_dual_mov_b32 v7, v2
	v_or_b32_e32 v2, 2, v0
	v_cmp_eq_u32_e64 s0, 0, v6
	s_mov_b32 s11, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_cndmask_b32_e64 v10, v2, v0, s0
	s_mov_b32 s0, exec_lo
	v_cmpx_ne_u64_e32 0, v[7:8]
	s_xor_b32 s10, exec_lo, s0
	s_cbranch_execz .LBB0_87
; %bb.1:
	s_load_b64 s[2:3], s[8:9], 0x50
	v_dual_mov_b32 v11, 2 :: v_dual_and_b32 v6, 2, v10
	v_mov_b32_e32 v30, 0
	v_and_b32_e32 v0, -3, v10
	v_mbcnt_lo_u32_b32 v33, -1, 0
	v_mov_b32_e32 v12, 1
	s_mov_b32 s12, 0
.LBB0_2:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
                                        ;     Child Loop BB0_21 Depth 2
                                        ;     Child Loop BB0_29 Depth 2
                                        ;     Child Loop BB0_37 Depth 2
                                        ;     Child Loop BB0_45 Depth 2
                                        ;     Child Loop BB0_53 Depth 2
                                        ;     Child Loop BB0_61 Depth 2
                                        ;     Child Loop BB0_69 Depth 2
                                        ;     Child Loop BB0_75 Depth 2
                                        ;     Child Loop BB0_84 Depth 2
	v_cmp_gt_u64_e32 vcc_lo, 56, v[4:5]
                                        ; implicit-def: $vgpr2_vgpr3
                                        ; implicit-def: $sgpr4
	s_mov_b32 s0, exec_lo
	v_dual_cndmask_b32 v32, 0, v5 :: v_dual_cndmask_b32 v31, 56, v4
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_gt_u32_e32 8, v31
	s_xor_b32 s1, exec_lo, s0
	s_cbranch_execz .LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	s_waitcnt vmcnt(0)
	v_mov_b32_e32 v2, 0
	v_mov_b32_e32 v3, 0
	s_mov_b32 s6, exec_lo
	v_cmpx_ne_u32_e32 0, v31
	s_cbranch_execz .LBB0_7
; %bb.4:                                ; %.preheader31.preheader
                                        ;   in Loop: Header=BB0_2 Depth=1
	v_mov_b32_e32 v2, 0
	v_lshlrev_b64 v[9:10], 3, v[31:32]
	v_dual_mov_b32 v3, 0 :: v_dual_mov_b32 v14, v8
	v_mov_b32_e32 v13, v7
	s_mov_b64 s[4:5], 0
	s_mov_b32 s7, 0
.LBB0_5:                                ; %.preheader31
                                        ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	flat_load_u8 v10, v[13:14]
	v_mov_b32_e32 v16, s11
	v_add_co_u32 v13, vcc_lo, v13, 1
	v_add_co_ci_u32_e32 v14, vcc_lo, 0, v14, vcc_lo
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_and_b32_e32 v15, 0xffff, v10
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[15:16], s4, v[15:16]
	s_add_u32 s4, s4, 8
	s_addc_u32 s5, s5, 0
	v_cmp_eq_u32_e64 s0, s4, v9
	v_or_b32_e32 v3, v16, v3
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_or_b32_e32 v2, v15, v2
	s_or_b32 s7, s0, s7
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s7
	s_cbranch_execnz .LBB0_5
; %bb.6:                                ; %Flow232
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s7
.LBB0_7:                                ; %Flow234
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s6
	s_mov_b32 s4, 0
.LBB0_8:                                ; %Flow236
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_saveexec_b32 s0, s1
	v_dual_mov_b32 v15, s4 :: v_dual_mov_b32 v10, v8
	v_mov_b32_e32 v9, v7
	s_xor_b32 exec_lo, exec_lo, s0
	s_cbranch_execz .LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	s_waitcnt vmcnt(0)
	s_clause 0x5
	flat_load_u8 v2, v[7:8]
	flat_load_u8 v3, v[7:8] offset:1
	flat_load_u8 v9, v[7:8] offset:2
	flat_load_u8 v10, v[7:8] offset:3
	flat_load_u8 v13, v[7:8] offset:5
	flat_load_u8 v14, v[7:8] offset:4
	v_mov_b32_e32 v16, v30
	s_waitcnt vmcnt(5) lgkmcnt(0)
	v_and_b32_e32 v2, 0xffff, v2
	s_waitcnt vmcnt(4)
	v_lshlrev_b32_e32 v3, 8, v3
	s_clause 0x1
	flat_load_u8 v15, v[7:8] offset:7
	flat_load_d16_hi_u8 v16, v[7:8] offset:6
	s_waitcnt vmcnt(5)
	v_lshlrev_b32_e32 v9, 16, v9
	s_waitcnt vmcnt(4)
	v_lshlrev_b32_e32 v10, 24, v10
	v_or_b32_e32 v2, v3, v2
	s_waitcnt vmcnt(3)
	v_lshlrev_b32_e32 v3, 8, v13
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_or3_b32 v2, v2, v9, v10
	s_waitcnt vmcnt(2)
	v_or3_b32 v3, 0, v14, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_or3_b32 v2, v2, 0, 0
	v_or3_b32 v2, v2, 0, 0
	s_waitcnt vmcnt(1) lgkmcnt(1)
	v_lshlrev_b32_e32 v9, 24, v15
	v_add_nc_u32_e32 v15, -8, v31
	s_waitcnt vmcnt(0) lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_2)
	v_or3_b32 v3, v3, v16, v9
	v_add_co_u32 v9, vcc_lo, v7, 8
	v_add_co_ci_u32_e32 v10, vcc_lo, 0, v8, vcc_lo
.LBB0_10:                               ; %.loopexit32
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s0
                                        ; implicit-def: $vgpr13_vgpr14
                                        ; implicit-def: $sgpr1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s0, exec_lo
	v_cmpx_gt_u32_e32 8, v15
	s_xor_b32 s6, exec_lo, s0
	s_cbranch_execz .LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	v_mov_b32_e32 v13, 0
	v_mov_b32_e32 v14, 0
	s_mov_b32 s7, exec_lo
	v_cmpx_ne_u32_e32 0, v15
	s_cbranch_execz .LBB0_15
; %bb.12:                               ; %.preheader29.preheader
                                        ;   in Loop: Header=BB0_2 Depth=1
	v_mov_b32_e32 v13, 0
	v_mov_b32_e32 v14, 0
	s_mov_b64 s[0:1], 0
	s_mov_b32 s13, 0
	s_mov_b64 s[4:5], 0
.LBB0_13:                               ; %.preheader29
                                        ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	v_add_co_u32 v16, vcc_lo, v9, s4
	v_add_co_ci_u32_e32 v17, vcc_lo, s5, v10, vcc_lo
	s_add_u32 s4, s4, 1
	s_addc_u32 s5, s5, 0
	v_cmp_eq_u32_e32 vcc_lo, s4, v15
	flat_load_u8 v16, v[16:17]
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_dual_mov_b32 v17, s11 :: v_dual_and_b32 v16, 0xffff, v16
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[16:17], s0, v[16:17]
	s_add_u32 s0, s0, 8
	s_addc_u32 s1, s1, 0
	s_or_b32 s13, vcc_lo, s13
	v_or_b32_e32 v14, v17, v14
	s_delay_alu instid0(VALU_DEP_2)
	v_or_b32_e32 v13, v16, v13
	s_and_not1_b32 exec_lo, exec_lo, s13
	s_cbranch_execnz .LBB0_13
; %bb.14:                               ; %Flow227
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s13
.LBB0_15:                               ; %Flow229
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s7
	s_mov_b32 s1, 0
                                        ; implicit-def: $vgpr15
.LBB0_16:                               ; %Flow231
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_saveexec_b32 s0, s6
	v_mov_b32_e32 v17, s1
	s_xor_b32 exec_lo, exec_lo, s0
	s_cbranch_execz .LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	s_clause 0x5
	flat_load_u8 v13, v[9:10]
	flat_load_u8 v14, v[9:10] offset:1
	flat_load_u8 v16, v[9:10] offset:2
	flat_load_u8 v17, v[9:10] offset:3
	flat_load_u8 v18, v[9:10] offset:5
	flat_load_u8 v19, v[9:10] offset:4
	s_waitcnt vmcnt(5) lgkmcnt(0)
	v_dual_mov_b32 v20, v30 :: v_dual_and_b32 v13, 0xffff, v13
	s_clause 0x1
	flat_load_u8 v21, v[9:10] offset:7
	flat_load_d16_hi_u8 v20, v[9:10] offset:6
	s_waitcnt vmcnt(6)
	v_lshlrev_b32_e32 v14, 8, v14
	s_waitcnt vmcnt(5)
	v_lshlrev_b32_e32 v16, 16, v16
	s_waitcnt vmcnt(4)
	v_lshlrev_b32_e32 v17, 24, v17
	v_add_co_u32 v9, vcc_lo, v9, 8
	v_or_b32_e32 v13, v14, v13
	s_waitcnt vmcnt(3)
	v_lshlrev_b32_e32 v14, 8, v18
	v_add_co_ci_u32_e32 v10, vcc_lo, 0, v10, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_or3_b32 v13, v13, v16, v17
	s_waitcnt vmcnt(2)
	v_or3_b32 v14, 0, v19, v14
	v_add_nc_u32_e32 v17, -8, v15
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_or3_b32 v13, v13, 0, 0
	v_or3_b32 v13, v13, 0, 0
	s_waitcnt vmcnt(1) lgkmcnt(1)
	v_lshlrev_b32_e32 v16, 24, v21
	s_waitcnt vmcnt(0) lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_or3_b32 v14, v14, v20, v16
.LBB0_18:                               ; %.loopexit30
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s0
                                        ; implicit-def: $sgpr1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s0, exec_lo
	v_cmpx_gt_u32_e32 8, v17
	s_xor_b32 s6, exec_lo, s0
	s_cbranch_execz .LBB0_24
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	v_mov_b32_e32 v15, 0
	v_mov_b32_e32 v16, 0
	s_mov_b32 s7, exec_lo
	v_cmpx_ne_u32_e32 0, v17
	s_cbranch_execz .LBB0_23
; %bb.20:                               ; %.preheader27.preheader
                                        ;   in Loop: Header=BB0_2 Depth=1
	v_mov_b32_e32 v15, 0
	v_mov_b32_e32 v16, 0
	s_mov_b64 s[0:1], 0
	s_mov_b32 s13, 0
	s_mov_b64 s[4:5], 0
.LBB0_21:                               ; %.preheader27
                                        ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	v_add_co_u32 v18, vcc_lo, v9, s4
	v_add_co_ci_u32_e32 v19, vcc_lo, s5, v10, vcc_lo
	s_add_u32 s4, s4, 1
	s_addc_u32 s5, s5, 0
	v_cmp_eq_u32_e32 vcc_lo, s4, v17
	flat_load_u8 v18, v[18:19]
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_dual_mov_b32 v19, s11 :: v_dual_and_b32 v18, 0xffff, v18
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[18:19], s0, v[18:19]
	s_add_u32 s0, s0, 8
	s_addc_u32 s1, s1, 0
	s_or_b32 s13, vcc_lo, s13
	v_or_b32_e32 v16, v19, v16
	s_delay_alu instid0(VALU_DEP_2)
	v_or_b32_e32 v15, v18, v15
	s_and_not1_b32 exec_lo, exec_lo, s13
	s_cbranch_execnz .LBB0_21
; %bb.22:                               ; %Flow222
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s13
.LBB0_23:                               ; %Flow224
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s7
	s_mov_b32 s1, 0
                                        ; implicit-def: $vgpr17
.LBB0_24:                               ; %Flow226
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_saveexec_b32 s0, s6
	v_mov_b32_e32 v19, s1
	s_xor_b32 exec_lo, exec_lo, s0
	s_cbranch_execz .LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_2 Depth=1
	s_clause 0x5
	flat_load_u8 v15, v[9:10]
	flat_load_u8 v16, v[9:10] offset:1
	flat_load_u8 v18, v[9:10] offset:2
	flat_load_u8 v19, v[9:10] offset:3
	flat_load_u8 v20, v[9:10] offset:5
	flat_load_u8 v21, v[9:10] offset:4
	s_waitcnt vmcnt(5) lgkmcnt(0)
	v_dual_mov_b32 v22, v30 :: v_dual_and_b32 v15, 0xffff, v15
	s_clause 0x1
	flat_load_u8 v23, v[9:10] offset:7
	flat_load_d16_hi_u8 v22, v[9:10] offset:6
	s_waitcnt vmcnt(6)
	v_lshlrev_b32_e32 v16, 8, v16
	s_waitcnt vmcnt(5)
	v_lshlrev_b32_e32 v18, 16, v18
	s_waitcnt vmcnt(4)
	v_lshlrev_b32_e32 v19, 24, v19
	v_add_co_u32 v9, vcc_lo, v9, 8
	v_or_b32_e32 v15, v16, v15
	s_waitcnt vmcnt(3)
	v_lshlrev_b32_e32 v16, 8, v20
	v_add_co_ci_u32_e32 v10, vcc_lo, 0, v10, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_or3_b32 v15, v15, v18, v19
	s_waitcnt vmcnt(2)
	v_or3_b32 v16, 0, v21, v16
	v_add_nc_u32_e32 v19, -8, v17
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_or3_b32 v15, v15, 0, 0
	v_or3_b32 v15, v15, 0, 0
	s_waitcnt vmcnt(1) lgkmcnt(1)
	v_lshlrev_b32_e32 v18, 24, v23
	s_waitcnt vmcnt(0) lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_or3_b32 v16, v16, v22, v18
.LBB0_26:                               ; %.loopexit28
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s0
                                        ; implicit-def: $vgpr17_vgpr18
                                        ; implicit-def: $sgpr1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s0, exec_lo
	v_cmpx_gt_u32_e32 8, v19
	s_xor_b32 s6, exec_lo, s0
	s_cbranch_execz .LBB0_32
; %bb.27:                               ;   in Loop: Header=BB0_2 Depth=1
	v_mov_b32_e32 v17, 0
	v_mov_b32_e32 v18, 0
	s_mov_b32 s7, exec_lo
	v_cmpx_ne_u32_e32 0, v19
	s_cbranch_execz .LBB0_31
; %bb.28:                               ; %.preheader25.preheader
                                        ;   in Loop: Header=BB0_2 Depth=1
	v_mov_b32_e32 v17, 0
	v_mov_b32_e32 v18, 0
	s_mov_b64 s[0:1], 0
	s_mov_b32 s13, 0
	s_mov_b64 s[4:5], 0
.LBB0_29:                               ; %.preheader25
                                        ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	v_add_co_u32 v20, vcc_lo, v9, s4
	v_add_co_ci_u32_e32 v21, vcc_lo, s5, v10, vcc_lo
	s_add_u32 s4, s4, 1
	s_addc_u32 s5, s5, 0
	v_cmp_eq_u32_e32 vcc_lo, s4, v19
	flat_load_u8 v20, v[20:21]
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_dual_mov_b32 v21, s11 :: v_dual_and_b32 v20, 0xffff, v20
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[20:21], s0, v[20:21]
	s_add_u32 s0, s0, 8
	s_addc_u32 s1, s1, 0
	s_or_b32 s13, vcc_lo, s13
	v_or_b32_e32 v18, v21, v18
	s_delay_alu instid0(VALU_DEP_2)
	v_or_b32_e32 v17, v20, v17
	s_and_not1_b32 exec_lo, exec_lo, s13
	s_cbranch_execnz .LBB0_29
; %bb.30:                               ; %Flow217
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s13
.LBB0_31:                               ; %Flow219
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s7
	s_mov_b32 s1, 0
                                        ; implicit-def: $vgpr19
.LBB0_32:                               ; %Flow221
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_saveexec_b32 s0, s6
	v_mov_b32_e32 v21, s1
	s_xor_b32 exec_lo, exec_lo, s0
	s_cbranch_execz .LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_2 Depth=1
	s_clause 0x5
	flat_load_u8 v17, v[9:10]
	flat_load_u8 v18, v[9:10] offset:1
	flat_load_u8 v20, v[9:10] offset:2
	flat_load_u8 v21, v[9:10] offset:3
	flat_load_u8 v22, v[9:10] offset:5
	flat_load_u8 v23, v[9:10] offset:4
	s_waitcnt vmcnt(5) lgkmcnt(0)
	v_dual_mov_b32 v24, v30 :: v_dual_and_b32 v17, 0xffff, v17
	s_clause 0x1
	flat_load_u8 v25, v[9:10] offset:7
	flat_load_d16_hi_u8 v24, v[9:10] offset:6
	s_waitcnt vmcnt(6)
	v_lshlrev_b32_e32 v18, 8, v18
	s_waitcnt vmcnt(5)
	v_lshlrev_b32_e32 v20, 16, v20
	s_waitcnt vmcnt(4)
	v_lshlrev_b32_e32 v21, 24, v21
	v_add_co_u32 v9, vcc_lo, v9, 8
	v_or_b32_e32 v17, v18, v17
	s_waitcnt vmcnt(3)
	v_lshlrev_b32_e32 v18, 8, v22
	v_add_co_ci_u32_e32 v10, vcc_lo, 0, v10, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_or3_b32 v17, v17, v20, v21
	s_waitcnt vmcnt(2)
	v_or3_b32 v18, 0, v23, v18
	v_add_nc_u32_e32 v21, -8, v19
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_or3_b32 v17, v17, 0, 0
	v_or3_b32 v17, v17, 0, 0
	s_waitcnt vmcnt(1) lgkmcnt(1)
	v_lshlrev_b32_e32 v20, 24, v25
	s_waitcnt vmcnt(0) lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_or3_b32 v18, v18, v24, v20
.LBB0_34:                               ; %.loopexit26
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s0
                                        ; implicit-def: $sgpr1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s0, exec_lo
	v_cmpx_gt_u32_e32 8, v21
	s_xor_b32 s6, exec_lo, s0
	s_cbranch_execz .LBB0_40
; %bb.35:                               ;   in Loop: Header=BB0_2 Depth=1
	v_mov_b32_e32 v19, 0
	v_mov_b32_e32 v20, 0
	s_mov_b32 s7, exec_lo
	v_cmpx_ne_u32_e32 0, v21
	s_cbranch_execz .LBB0_39
; %bb.36:                               ; %.preheader23.preheader
                                        ;   in Loop: Header=BB0_2 Depth=1
	v_mov_b32_e32 v19, 0
	v_mov_b32_e32 v20, 0
	s_mov_b64 s[0:1], 0
	s_mov_b32 s13, 0
	s_mov_b64 s[4:5], 0
.LBB0_37:                               ; %.preheader23
                                        ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	v_add_co_u32 v22, vcc_lo, v9, s4
	v_add_co_ci_u32_e32 v23, vcc_lo, s5, v10, vcc_lo
	s_add_u32 s4, s4, 1
	s_addc_u32 s5, s5, 0
	v_cmp_eq_u32_e32 vcc_lo, s4, v21
	flat_load_u8 v22, v[22:23]
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_dual_mov_b32 v23, s11 :: v_dual_and_b32 v22, 0xffff, v22
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[22:23], s0, v[22:23]
	s_add_u32 s0, s0, 8
	s_addc_u32 s1, s1, 0
	s_or_b32 s13, vcc_lo, s13
	v_or_b32_e32 v20, v23, v20
	s_delay_alu instid0(VALU_DEP_2)
	v_or_b32_e32 v19, v22, v19
	s_and_not1_b32 exec_lo, exec_lo, s13
	s_cbranch_execnz .LBB0_37
; %bb.38:                               ; %Flow212
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s13
.LBB0_39:                               ; %Flow214
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s7
	s_mov_b32 s1, 0
                                        ; implicit-def: $vgpr21
.LBB0_40:                               ; %Flow216
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_saveexec_b32 s0, s6
	v_mov_b32_e32 v23, s1
	s_xor_b32 exec_lo, exec_lo, s0
	s_cbranch_execz .LBB0_42
; %bb.41:                               ;   in Loop: Header=BB0_2 Depth=1
	s_clause 0x5
	flat_load_u8 v19, v[9:10]
	flat_load_u8 v20, v[9:10] offset:1
	flat_load_u8 v22, v[9:10] offset:2
	flat_load_u8 v23, v[9:10] offset:3
	flat_load_u8 v24, v[9:10] offset:5
	flat_load_u8 v25, v[9:10] offset:4
	s_waitcnt vmcnt(5) lgkmcnt(0)
	v_dual_mov_b32 v26, v30 :: v_dual_and_b32 v19, 0xffff, v19
	s_clause 0x1
	flat_load_u8 v27, v[9:10] offset:7
	flat_load_d16_hi_u8 v26, v[9:10] offset:6
	s_waitcnt vmcnt(6)
	v_lshlrev_b32_e32 v20, 8, v20
	s_waitcnt vmcnt(5)
	v_lshlrev_b32_e32 v22, 16, v22
	s_waitcnt vmcnt(4)
	v_lshlrev_b32_e32 v23, 24, v23
	v_add_co_u32 v9, vcc_lo, v9, 8
	v_or_b32_e32 v19, v20, v19
	s_waitcnt vmcnt(3)
	v_lshlrev_b32_e32 v20, 8, v24
	v_add_co_ci_u32_e32 v10, vcc_lo, 0, v10, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_or3_b32 v19, v19, v22, v23
	s_waitcnt vmcnt(2)
	v_or3_b32 v20, 0, v25, v20
	v_add_nc_u32_e32 v23, -8, v21
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_or3_b32 v19, v19, 0, 0
	v_or3_b32 v19, v19, 0, 0
	s_waitcnt vmcnt(1) lgkmcnt(1)
	v_lshlrev_b32_e32 v22, 24, v27
	s_waitcnt vmcnt(0) lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_or3_b32 v20, v20, v26, v22
.LBB0_42:                               ; %.loopexit24
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s0
                                        ; implicit-def: $vgpr21_vgpr22
                                        ; implicit-def: $sgpr1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s0, exec_lo
	v_cmpx_gt_u32_e32 8, v23
	s_xor_b32 s6, exec_lo, s0
	s_cbranch_execz .LBB0_48
; %bb.43:                               ;   in Loop: Header=BB0_2 Depth=1
	v_mov_b32_e32 v21, 0
	v_mov_b32_e32 v22, 0
	s_mov_b32 s7, exec_lo
	v_cmpx_ne_u32_e32 0, v23
	s_cbranch_execz .LBB0_47
; %bb.44:                               ; %.preheader21.preheader
                                        ;   in Loop: Header=BB0_2 Depth=1
	v_mov_b32_e32 v21, 0
	v_mov_b32_e32 v22, 0
	s_mov_b64 s[0:1], 0
	s_mov_b32 s13, 0
	s_mov_b64 s[4:5], 0
.LBB0_45:                               ; %.preheader21
                                        ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	v_add_co_u32 v24, vcc_lo, v9, s4
	v_add_co_ci_u32_e32 v25, vcc_lo, s5, v10, vcc_lo
	s_add_u32 s4, s4, 1
	s_addc_u32 s5, s5, 0
	v_cmp_eq_u32_e32 vcc_lo, s4, v23
	flat_load_u8 v24, v[24:25]
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_dual_mov_b32 v25, s11 :: v_dual_and_b32 v24, 0xffff, v24
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[24:25], s0, v[24:25]
	s_add_u32 s0, s0, 8
	s_addc_u32 s1, s1, 0
	s_or_b32 s13, vcc_lo, s13
	v_or_b32_e32 v22, v25, v22
	s_delay_alu instid0(VALU_DEP_2)
	v_or_b32_e32 v21, v24, v21
	s_and_not1_b32 exec_lo, exec_lo, s13
	s_cbranch_execnz .LBB0_45
; %bb.46:                               ; %Flow207
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s13
.LBB0_47:                               ; %Flow209
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s7
	s_mov_b32 s1, 0
                                        ; implicit-def: $vgpr23
.LBB0_48:                               ; %Flow211
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_saveexec_b32 s0, s6
	v_mov_b32_e32 v25, s1
	s_xor_b32 exec_lo, exec_lo, s0
	s_cbranch_execz .LBB0_50
; %bb.49:                               ;   in Loop: Header=BB0_2 Depth=1
	s_clause 0x5
	flat_load_u8 v21, v[9:10]
	flat_load_u8 v22, v[9:10] offset:1
	flat_load_u8 v24, v[9:10] offset:2
	flat_load_u8 v25, v[9:10] offset:3
	flat_load_u8 v26, v[9:10] offset:5
	flat_load_u8 v27, v[9:10] offset:4
	s_waitcnt vmcnt(5) lgkmcnt(0)
	v_dual_mov_b32 v28, v30 :: v_dual_and_b32 v21, 0xffff, v21
	s_clause 0x1
	flat_load_u8 v29, v[9:10] offset:7
	flat_load_d16_hi_u8 v28, v[9:10] offset:6
	s_waitcnt vmcnt(6)
	v_lshlrev_b32_e32 v22, 8, v22
	s_waitcnt vmcnt(5)
	v_lshlrev_b32_e32 v24, 16, v24
	s_waitcnt vmcnt(4)
	v_lshlrev_b32_e32 v25, 24, v25
	v_add_co_u32 v9, vcc_lo, v9, 8
	v_or_b32_e32 v21, v22, v21
	s_waitcnt vmcnt(3)
	v_lshlrev_b32_e32 v22, 8, v26
	v_add_co_ci_u32_e32 v10, vcc_lo, 0, v10, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_or3_b32 v21, v21, v24, v25
	s_waitcnt vmcnt(2)
	v_or3_b32 v22, 0, v27, v22
	v_add_nc_u32_e32 v25, -8, v23
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_or3_b32 v21, v21, 0, 0
	v_or3_b32 v21, v21, 0, 0
	s_waitcnt vmcnt(1) lgkmcnt(1)
	v_lshlrev_b32_e32 v24, 24, v29
	s_waitcnt vmcnt(0) lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_or3_b32 v22, v22, v28, v24
.LBB0_50:                               ; %.loopexit22
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s0, exec_lo
	v_cmpx_gt_u32_e32 8, v25
	s_xor_b32 s4, exec_lo, s0
	s_cbranch_execz .LBB0_56
; %bb.51:                               ;   in Loop: Header=BB0_2 Depth=1
	v_mov_b32_e32 v23, 0
	v_mov_b32_e32 v24, 0
	s_mov_b32 s5, exec_lo
	v_cmpx_ne_u32_e32 0, v25
	s_cbranch_execz .LBB0_55
; %bb.52:                               ; %.preheader.preheader
                                        ;   in Loop: Header=BB0_2 Depth=1
	v_mov_b32_e32 v23, 0
	v_mov_b32_e32 v24, 0
	s_mov_b64 s[0:1], 0
	s_mov_b32 s6, 0
.LBB0_53:                               ; %.preheader
                                        ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	flat_load_u8 v26, v[9:10]
	v_mov_b32_e32 v27, s11
	v_add_nc_u32_e32 v25, -1, v25
	v_add_co_u32 v9, vcc_lo, v9, 1
	v_add_co_ci_u32_e32 v10, vcc_lo, 0, v10, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_cmp_eq_u32_e32 vcc_lo, 0, v25
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_and_b32_e32 v26, 0xffff, v26
	v_lshlrev_b64 v[26:27], s0, v[26:27]
	s_add_u32 s0, s0, 8
	s_addc_u32 s1, s1, 0
	s_or_b32 s6, vcc_lo, s6
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_or_b32_e32 v24, v27, v24
	v_or_b32_e32 v23, v26, v23
	s_and_not1_b32 exec_lo, exec_lo, s6
	s_cbranch_execnz .LBB0_53
; %bb.54:                               ; %Flow202
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s6
.LBB0_55:                               ; %Flow204
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s5
                                        ; implicit-def: $vgpr9_vgpr10
.LBB0_56:                               ; %Flow206
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_and_not1_saveexec_b32 s0, s4
	s_cbranch_execz .LBB0_58
; %bb.57:                               ;   in Loop: Header=BB0_2 Depth=1
	s_clause 0x5
	flat_load_u8 v23, v[9:10]
	flat_load_u8 v24, v[9:10] offset:1
	flat_load_u8 v25, v[9:10] offset:2
	flat_load_u8 v26, v[9:10] offset:3
	flat_load_u8 v27, v[9:10] offset:5
	flat_load_u8 v28, v[9:10] offset:4
	v_mov_b32_e32 v29, v30
	s_clause 0x1
	flat_load_u8 v34, v[9:10] offset:7
	flat_load_d16_hi_u8 v29, v[9:10] offset:6
	s_waitcnt vmcnt(7) lgkmcnt(0)
	v_and_b32_e32 v9, 0xffff, v23
	s_waitcnt vmcnt(6)
	v_lshlrev_b32_e32 v10, 8, v24
	s_waitcnt vmcnt(5)
	v_lshlrev_b32_e32 v23, 16, v25
	s_waitcnt vmcnt(3)
	v_lshlrev_b32_e32 v24, 8, v27
	v_or_b32_e32 v9, v10, v9
	v_lshlrev_b32_e32 v10, 24, v26
	s_delay_alu instid0(VALU_DEP_1)
	v_or3_b32 v9, v9, v23, v10
	s_waitcnt vmcnt(2)
	v_or3_b32 v10, 0, v28, v24
	s_waitcnt vmcnt(1)
	v_lshlrev_b32_e32 v23, 24, v34
	v_or3_b32 v9, v9, 0, 0
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_or3_b32 v24, v10, v29, v23
	v_or3_b32 v23, v9, 0, 0
.LBB0_58:                               ; %.loopexit
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s0
	v_mov_b32_e32 v29, v33
	v_mov_b32_e32 v9, 0
	v_mov_b32_e32 v10, 0
	;;#ASMSTART
	;;#ASMEND
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_readfirstlane_b32 s0, v29
	v_cmp_eq_u32_e64 s0, s0, v29
	s_delay_alu instid0(VALU_DEP_1)
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB0_64
; %bb.59:                               ;   in Loop: Header=BB0_2 Depth=1
	s_waitcnt lgkmcnt(0)
	global_load_b64 v[27:28], v30, s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	s_clause 0x1
	global_load_b64 v[9:10], v30, s[2:3] offset:40
	global_load_b64 v[25:26], v30, s[2:3]
	s_mov_b32 s4, exec_lo
	s_waitcnt vmcnt(1)
	v_and_b32_e32 v10, v10, v28
	v_and_b32_e32 v9, v9, v27
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v10, v10, 24
	v_mul_hi_u32 v34, v9, 24
	v_mul_lo_u32 v9, v9, 24
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v10, v34, v10
	s_waitcnt vmcnt(0)
	v_add_co_u32 v9, vcc_lo, v25, v9
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v10, vcc_lo, v26, v10, vcc_lo
	global_load_b64 v[25:26], v[9:10], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[9:10], v30, v[25:28], s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmpx_ne_u64_e64 v[9:10], v[27:28]
	s_cbranch_execz .LBB0_63
; %bb.60:                               ; %.preheader3.i.i19.preheader
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_mov_b32 s5, 0
.LBB0_61:                               ; %.preheader3.i.i19
                                        ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_sleep 1
	s_clause 0x1
	global_load_b64 v[25:26], v30, s[2:3] offset:40
	global_load_b64 v[34:35], v30, s[2:3]
	v_dual_mov_b32 v28, v10 :: v_dual_mov_b32 v27, v9
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_and_b32_e32 v25, v25, v27
	s_waitcnt vmcnt(0)
	v_mad_u64_u32 v[9:10], null, v25, 24, v[34:35]
	v_and_b32_e32 v34, v26, v28
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[25:26], null, v34, 24, v[10:11]
	v_mov_b32_e32 v10, v25
	global_load_b64 v[25:26], v[9:10], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[9:10], v30, v[25:28], s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmp_eq_u64_e32 vcc_lo, v[9:10], v[27:28]
	s_or_b32 s5, vcc_lo, s5
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s5
	s_cbranch_execnz .LBB0_61
; %bb.62:                               ; %Flow199
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s5
.LBB0_63:                               ; %Flow201
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s4
.LBB0_64:                               ; %.loopexit4.i.i14
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s1
	s_waitcnt lgkmcnt(0)
	s_clause 0x1
	global_load_b64 v[34:35], v30, s[2:3] offset:40
	global_load_b128 v[25:28], v30, s[2:3]
	v_readfirstlane_b32 s4, v9
	v_readfirstlane_b32 s5, v10
	s_mov_b32 s15, exec_lo
	s_waitcnt vmcnt(1)
	v_readfirstlane_b32 s6, v34
	v_readfirstlane_b32 s7, v35
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b64 s[6:7], s[4:5], s[6:7]
	s_mul_i32 s1, s7, 24
	s_mul_hi_u32 s13, s6, 24
	s_mul_i32 s14, s6, 24
	s_and_saveexec_b32 s16, s0
	s_cbranch_execz .LBB0_66
; %bb.65:                               ;   in Loop: Header=BB0_2 Depth=1
	s_add_i32 s17, s13, s1
	s_waitcnt vmcnt(0)
	v_add_co_u32 v34, vcc_lo, v25, s14
	v_add_co_ci_u32_e32 v35, vcc_lo, s17, v26, vcc_lo
	v_dual_mov_b32 v9, s15 :: v_dual_mov_b32 v10, v30
	global_store_b128 v[34:35], v[9:12], off offset:8
.LBB0_66:                               ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s16
	v_cmp_lt_u64_e32 vcc_lo, 56, v[4:5]
	v_or_b32_e32 v9, 0, v1
	v_or_b32_e32 v10, v0, v6
	v_lshl_add_u32 v34, v31, 2, 28
	s_lshl_b64 s[6:7], s[6:7], 12
	s_delay_alu instid0(VALU_DEP_2)
	v_dual_cndmask_b32 v1, v9, v1 :: v_dual_cndmask_b32 v0, v10, v0
	v_lshlrev_b64 v[9:10], 6, v[29:30]
	s_waitcnt vmcnt(0)
	v_add_co_u32 v27, vcc_lo, v27, s6
	v_and_b32_e32 v34, 0x1e0, v34
	v_add_co_ci_u32_e32 v28, vcc_lo, s7, v28, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v9, vcc_lo, v27, v9
	v_and_or_b32 v0, 0xffffff1f, v0, v34
	s_delay_alu instid0(VALU_DEP_3)
	v_add_co_ci_u32_e32 v10, vcc_lo, v28, v10, vcc_lo
	s_clause 0x3
	global_store_b128 v[9:10], v[0:3], off
	global_store_b128 v[9:10], v[13:16], off offset:16
	global_store_b128 v[9:10], v[17:20], off offset:32
	global_store_b128 v[9:10], v[21:24], off offset:48
	s_and_saveexec_b32 s6, s0
	s_cbranch_execz .LBB0_74
; %bb.67:                               ;   in Loop: Header=BB0_2 Depth=1
	s_clause 0x1
	global_load_b64 v[17:18], v30, s[2:3] offset:32 glc
	global_load_b64 v[0:1], v30, s[2:3] offset:40
	v_dual_mov_b32 v15, s4 :: v_dual_mov_b32 v16, s5
	s_waitcnt vmcnt(0)
	v_readfirstlane_b32 s16, v0
	v_readfirstlane_b32 s17, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b64 s[16:17], s[16:17], s[4:5]
	s_mul_i32 s7, s17, 24
	s_mul_hi_u32 s15, s16, 24
	s_mul_i32 s16, s16, 24
	s_add_i32 s15, s15, s7
	v_add_co_u32 v13, vcc_lo, v25, s16
	v_add_co_ci_u32_e32 v14, vcc_lo, s15, v26, vcc_lo
	s_mov_b32 s7, exec_lo
	global_store_b64 v[13:14], v[17:18], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[2:3], v30, v[15:18], s[2:3] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmpx_ne_u64_e64 v[2:3], v[17:18]
	s_cbranch_execz .LBB0_70
; %bb.68:                               ; %.preheader1.i.i17.preheader
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_mov_b32 s15, 0
.LBB0_69:                               ; %.preheader1.i.i17
                                        ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	v_dual_mov_b32 v0, s4 :: v_dual_mov_b32 v1, s5
	s_sleep 1
	global_store_b64 v[13:14], v[2:3], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[0:1], v30, v[0:3], s[2:3] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[0:1], v[2:3]
	v_dual_mov_b32 v3, v1 :: v_dual_mov_b32 v2, v0
	s_or_b32 s15, vcc_lo, s15
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s15
	s_cbranch_execnz .LBB0_69
.LBB0_70:                               ; %Flow197
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s7
	global_load_b64 v[0:1], v30, s[2:3] offset:16
	s_mov_b32 s15, exec_lo
	s_mov_b32 s7, exec_lo
	v_mbcnt_lo_u32_b32 v2, s15, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_eq_u32_e32 0, v2
	s_cbranch_execz .LBB0_72
; %bb.71:                               ;   in Loop: Header=BB0_2 Depth=1
	s_bcnt1_i32_b32 s15, s15
	s_delay_alu instid0(SALU_CYCLE_1)
	v_mov_b32_e32 v29, s15
	s_waitcnt vmcnt(0)
	global_atomic_add_u64 v[0:1], v[29:30], off offset:8
.LBB0_72:                               ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s7
	s_waitcnt vmcnt(0)
	global_load_b64 v[2:3], v[0:1], off offset:16
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[2:3]
	s_cbranch_vccnz .LBB0_74
; %bb.73:                               ;   in Loop: Header=BB0_2 Depth=1
	global_load_b32 v29, v[0:1], off offset:24
	s_waitcnt vmcnt(0)
	v_readfirstlane_b32 s7, v29
	s_waitcnt_vscnt null, 0x0
	global_store_b64 v[2:3], v[29:30], off
	s_and_b32 m0, s7, 0xff
	s_sendmsg sendmsg(MSG_INTERRUPT)
.LBB0_74:                               ; %Flow198
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s6
	s_add_i32 s13, s13, s1
	v_add_co_u32 v0, vcc_lo, v25, s14
	v_add_co_ci_u32_e32 v1, vcc_lo, s13, v26, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, v0, 20
	v_add_co_ci_u32_e32 v1, vcc_lo, 0, v1, vcc_lo
.LBB0_75:                               ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	v_mov_b32_e32 v2, 1
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB0_77
; %bb.76:                               ;   in Loop: Header=BB0_75 Depth=2
	global_load_b32 v2, v[0:1], off glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_and_b32_e32 v2, 1, v2
.LBB0_77:                               ;   in Loop: Header=BB0_75 Depth=2
	s_or_b32 exec_lo, exec_lo, s1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_readfirstlane_b32 s1, v2
	s_cmp_eq_u32 s1, 0
	s_cbranch_scc1 .LBB0_79
; %bb.78:                               ;   in Loop: Header=BB0_75 Depth=2
	s_mov_b32 s1, 0
	s_sleep 1
	s_branch .LBB0_80
.LBB0_79:                               ;   in Loop: Header=BB0_75 Depth=2
	s_mov_b32 s1, -1
.LBB0_80:                               ; %Flow192
                                        ;   in Loop: Header=BB0_75 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s1
	s_cbranch_vccnz .LBB0_75
; %bb.81:                               ;   in Loop: Header=BB0_2 Depth=1
	global_load_b128 v[0:3], v[9:10], off
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB0_85
; %bb.82:                               ;   in Loop: Header=BB0_2 Depth=1
	s_clause 0x2
	global_load_b64 v[2:3], v30, s[2:3] offset:40
	global_load_b64 v[9:10], v30, s[2:3] offset:24 glc
	global_load_b64 v[15:16], v30, s[2:3]
	s_waitcnt vmcnt(2)
	v_add_co_u32 v17, vcc_lo, v2, 1
	v_add_co_ci_u32_e32 v18, vcc_lo, 0, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v13, vcc_lo, v17, s4
	v_add_co_ci_u32_e32 v14, vcc_lo, s5, v18, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[13:14]
	v_dual_cndmask_b32 v14, v14, v18 :: v_dual_cndmask_b32 v13, v13, v17
	v_and_b32_e32 v3, v14, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_and_b32_e32 v2, v13, v2
	v_mul_lo_u32 v3, v3, 24
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_hi_u32 v17, v2, 24
	v_mul_lo_u32 v2, v2, 24
	v_add_nc_u32_e32 v3, v17, v3
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_co_u32 v2, vcc_lo, v15, v2
	v_mov_b32_e32 v15, v9
	v_add_co_ci_u32_e32 v3, vcc_lo, v16, v3, vcc_lo
	v_mov_b32_e32 v16, v10
	global_store_b64 v[2:3], v[9:10], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[15:16], v30, v[13:16], s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_ne_u64_e32 vcc_lo, v[15:16], v[9:10]
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB0_85
; %bb.83:                               ; %.preheader.i.i16.preheader
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_mov_b32 s0, 0
.LBB0_84:                               ; %.preheader.i.i16
                                        ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_sleep 1
	global_store_b64 v[2:3], v[15:16], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[9:10], v30, v[13:16], s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[9:10], v[15:16]
	v_dual_mov_b32 v16, v10 :: v_dual_mov_b32 v15, v9
	s_or_b32 s0, vcc_lo, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s0
	s_cbranch_execnz .LBB0_84
.LBB0_85:                               ; %__ockl_hostcall_preview.exit20
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	v_sub_co_u32 v4, vcc_lo, v4, v31
	v_sub_co_ci_u32_e32 v5, vcc_lo, v5, v32, vcc_lo
	v_add_co_u32 v7, s0, v7, v31
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e64 v8, s0, v8, v32, s0
	v_cmp_eq_u64_e32 vcc_lo, 0, v[4:5]
	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 .LBB0_2
; %bb.86:                               ; %Flow237
	s_or_b32 exec_lo, exec_lo, s12
                                        ; implicit-def: $vgpr10
.LBB0_87:                               ; %Flow253
	s_and_not1_saveexec_b32 s1, s10
	s_cbranch_execz .LBB0_116
; %bb.88:
	s_load_b64 s[2:3], s[8:9], 0x50
	s_waitcnt vmcnt(0)
	v_mbcnt_lo_u32_b32 v2, -1, 0
	;;#ASMSTART
	;;#ASMEND
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_readfirstlane_b32 s0, v2
	v_mov_b32_e32 v8, 0
	v_mov_b32_e32 v9, 0
	v_cmp_eq_u32_e64 s0, s0, v2
	s_delay_alu instid0(VALU_DEP_1)
	s_and_saveexec_b32 s4, s0
	s_cbranch_execz .LBB0_94
; %bb.89:
	v_mov_b32_e32 v0, 0
	s_mov_b32 s5, exec_lo
	s_waitcnt lgkmcnt(0)
	global_load_b64 v[5:6], v0, s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	s_clause 0x1
	global_load_b64 v[3:4], v0, s[2:3] offset:40
	global_load_b64 v[7:8], v0, s[2:3]
	s_waitcnt vmcnt(1)
	v_and_b32_e32 v3, v3, v5
	v_and_b32_e32 v4, v4, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_hi_u32 v9, v3, 24
	v_mul_lo_u32 v4, v4, 24
	v_mul_lo_u32 v3, v3, 24
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v4, v9, v4
	s_waitcnt vmcnt(0)
	v_add_co_u32 v3, vcc_lo, v7, v3
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v4, vcc_lo, v8, v4, vcc_lo
	global_load_b64 v[3:4], v[3:4], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[8:9], v0, v[3:6], s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmpx_ne_u64_e64 v[8:9], v[5:6]
	s_cbranch_execz .LBB0_93
; %bb.90:                               ; %.preheader3.i.i.preheader
	s_mov_b32 s6, 0
.LBB0_91:                               ; %.preheader3.i.i
                                        ; =>This Inner Loop Header: Depth=1
	s_sleep 1
	s_clause 0x1
	global_load_b64 v[3:4], v0, s[2:3] offset:40
	global_load_b64 v[11:12], v0, s[2:3]
	v_dual_mov_b32 v5, v8 :: v_dual_mov_b32 v6, v9
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_and_b32_e32 v3, v3, v5
	v_and_b32_e32 v4, v4, v6
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[7:8], null, v3, 24, v[11:12]
	v_mov_b32_e32 v3, v8
	s_delay_alu instid0(VALU_DEP_1)
	v_mad_u64_u32 v[8:9], null, v4, 24, v[3:4]
	global_load_b64 v[3:4], v[7:8], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[8:9], v0, v[3:6], s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmp_eq_u64_e32 vcc_lo, v[8:9], v[5:6]
	s_or_b32 s6, vcc_lo, s6
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s6
	s_cbranch_execnz .LBB0_91
; %bb.92:                               ; %Flow249
	s_or_b32 exec_lo, exec_lo, s6
.LBB0_93:                               ; %Flow251
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s5
.LBB0_94:                               ; %.loopexit4.i.i
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s4
	v_mov_b32_e32 v3, 0
	v_readfirstlane_b32 s4, v8
	v_readfirstlane_b32 s5, v9
	s_mov_b32 s11, exec_lo
	s_waitcnt lgkmcnt(0)
	s_clause 0x1
	global_load_b64 v[11:12], v3, s[2:3] offset:40
	global_load_b128 v[4:7], v3, s[2:3]
	s_waitcnt vmcnt(1)
	v_readfirstlane_b32 s6, v11
	v_readfirstlane_b32 s7, v12
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b64 s[6:7], s[4:5], s[6:7]
	s_mul_i32 s8, s7, 24
	s_mul_hi_u32 s9, s6, 24
	s_mul_i32 s10, s6, 24
	s_and_saveexec_b32 s12, s0
	s_cbranch_execz .LBB0_96
; %bb.95:
	s_add_i32 s13, s9, s8
	s_waitcnt vmcnt(0)
	v_add_co_u32 v8, vcc_lo, v4, s10
	v_add_co_ci_u32_e32 v9, vcc_lo, s13, v5, vcc_lo
	v_dual_mov_b32 v11, s11 :: v_dual_mov_b32 v12, v3
	v_dual_mov_b32 v13, 2 :: v_dual_mov_b32 v14, 1
	global_store_b128 v[8:9], v[11:14], off offset:8
.LBB0_96:
	s_or_b32 exec_lo, exec_lo, s12
	s_lshl_b64 s[6:7], s[6:7], 12
	v_lshlrev_b64 v[8:9], 6, v[2:3]
	s_waitcnt vmcnt(0)
	v_add_co_u32 v2, vcc_lo, v6, s6
	v_add_co_ci_u32_e32 v7, vcc_lo, s7, v7, vcc_lo
	s_mov_b32 s12, 0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_u32 v6, vcc_lo, v2, v8
	s_mov_b32 s13, s12
	s_mov_b32 s14, s12
	s_mov_b32 s15, s12
	v_and_or_b32 v0, 0xffffff1f, v10, 32
	v_add_co_ci_u32_e32 v7, vcc_lo, v7, v9, vcc_lo
	v_mov_b32_e32 v2, v3
	v_dual_mov_b32 v8, s12 :: v_dual_mov_b32 v11, s15
	v_dual_mov_b32 v9, s13 :: v_dual_mov_b32 v10, s14
	s_clause 0x3
	global_store_b128 v[6:7], v[0:3], off
	global_store_b128 v[6:7], v[8:11], off offset:16
	global_store_b128 v[6:7], v[8:11], off offset:32
	global_store_b128 v[6:7], v[8:11], off offset:48
	s_and_saveexec_b32 s6, s0
	s_cbranch_execz .LBB0_104
; %bb.97:
	v_mov_b32_e32 v10, 0
	s_mov_b32 s7, exec_lo
	s_clause 0x1
	global_load_b64 v[13:14], v10, s[2:3] offset:32 glc
	global_load_b64 v[0:1], v10, s[2:3] offset:40
	v_dual_mov_b32 v11, s4 :: v_dual_mov_b32 v12, s5
	s_waitcnt vmcnt(0)
	v_and_b32_e32 v1, s5, v1
	v_and_b32_e32 v0, s4, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v1, v1, 24
	v_mul_hi_u32 v2, v0, 24
	v_mul_lo_u32 v0, v0, 24
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v1, v2, v1
	v_add_co_u32 v8, vcc_lo, v4, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v9, vcc_lo, v5, v1, vcc_lo
	global_store_b64 v[8:9], v[13:14], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[2:3], v10, v[11:14], s[2:3] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmpx_ne_u64_e64 v[2:3], v[13:14]
	s_cbranch_execz .LBB0_100
; %bb.98:                               ; %.preheader1.i.i.preheader
	s_mov_b32 s11, 0
.LBB0_99:                               ; %.preheader1.i.i
                                        ; =>This Inner Loop Header: Depth=1
	v_dual_mov_b32 v0, s4 :: v_dual_mov_b32 v1, s5
	s_sleep 1
	global_store_b64 v[8:9], v[2:3], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[0:1], v10, v[0:3], s[2:3] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[0:1], v[2:3]
	v_dual_mov_b32 v3, v1 :: v_dual_mov_b32 v2, v0
	s_or_b32 s11, vcc_lo, s11
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s11
	s_cbranch_execnz .LBB0_99
.LBB0_100:                              ; %Flow247
	s_or_b32 exec_lo, exec_lo, s7
	v_mov_b32_e32 v3, 0
	s_mov_b32 s11, exec_lo
	s_mov_b32 s7, exec_lo
	v_mbcnt_lo_u32_b32 v2, s11, 0
	global_load_b64 v[0:1], v3, s[2:3] offset:16
	v_cmpx_eq_u32_e32 0, v2
	s_cbranch_execz .LBB0_102
; %bb.101:
	s_bcnt1_i32_b32 s11, s11
	s_delay_alu instid0(SALU_CYCLE_1)
	v_mov_b32_e32 v2, s11
	s_waitcnt vmcnt(0)
	global_atomic_add_u64 v[0:1], v[2:3], off offset:8
.LBB0_102:
	s_or_b32 exec_lo, exec_lo, s7
	s_waitcnt vmcnt(0)
	global_load_b64 v[2:3], v[0:1], off offset:16
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[2:3]
	s_cbranch_vccnz .LBB0_104
; %bb.103:
	global_load_b32 v0, v[0:1], off offset:24
	v_mov_b32_e32 v1, 0
	s_waitcnt vmcnt(0)
	v_readfirstlane_b32 s7, v0
	s_waitcnt_vscnt null, 0x0
	global_store_b64 v[2:3], v[0:1], off
	s_and_b32 m0, s7, 0xff
	s_sendmsg sendmsg(MSG_INTERRUPT)
.LBB0_104:                              ; %Flow248
	s_or_b32 exec_lo, exec_lo, s6
	s_add_i32 s9, s9, s8
	v_add_co_u32 v0, vcc_lo, v4, s10
	v_add_co_ci_u32_e32 v1, vcc_lo, s9, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, v0, 20
	v_add_co_ci_u32_e32 v1, vcc_lo, 0, v1, vcc_lo
.LBB0_105:                              ; =>This Inner Loop Header: Depth=1
	v_mov_b32_e32 v2, 1
	s_and_saveexec_b32 s6, s0
	s_cbranch_execz .LBB0_107
; %bb.106:                              ;   in Loop: Header=BB0_105 Depth=1
	global_load_b32 v2, v[0:1], off glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_and_b32_e32 v2, 1, v2
.LBB0_107:                              ;   in Loop: Header=BB0_105 Depth=1
	s_or_b32 exec_lo, exec_lo, s6
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_readfirstlane_b32 s6, v2
	s_cmp_eq_u32 s6, 0
	s_cbranch_scc1 .LBB0_109
; %bb.108:                              ;   in Loop: Header=BB0_105 Depth=1
	s_mov_b32 s6, 0
	s_sleep 1
	s_branch .LBB0_110
.LBB0_109:                              ;   in Loop: Header=BB0_105 Depth=1
	s_mov_b32 s6, -1
.LBB0_110:                              ; %Flow242
                                        ;   in Loop: Header=BB0_105 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s6
	s_cbranch_vccnz .LBB0_105
; %bb.111:
	global_load_b128 v[0:3], v[6:7], off
	s_and_saveexec_b32 s6, s0
	s_cbranch_execz .LBB0_115
; %bb.112:
	v_mov_b32_e32 v8, 0
	s_clause 0x2
	global_load_b64 v[4:5], v8, s[2:3] offset:40
	global_load_b64 v[9:10], v8, s[2:3] offset:24 glc
	global_load_b64 v[6:7], v8, s[2:3]
	s_waitcnt vmcnt(2)
	v_add_co_u32 v11, vcc_lo, v4, 1
	v_add_co_ci_u32_e32 v12, vcc_lo, 0, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, v11, s4
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v12, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[2:3]
	v_dual_cndmask_b32 v3, v3, v12 :: v_dual_cndmask_b32 v2, v2, v11
	v_and_b32_e32 v5, v3, v5
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_and_b32_e32 v4, v2, v4
	v_mul_lo_u32 v5, v5, 24
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mul_hi_u32 v11, v4, 24
	v_mul_lo_u32 v4, v4, 24
	v_add_nc_u32_e32 v5, v11, v5
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_co_u32 v6, vcc_lo, v6, v4
	v_mov_b32_e32 v4, v9
	v_add_co_ci_u32_e32 v7, vcc_lo, v7, v5, vcc_lo
	v_mov_b32_e32 v5, v10
	global_store_b64 v[6:7], v[9:10], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[4:5], v8, v[2:5], s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_ne_u64_e32 vcc_lo, v[4:5], v[9:10]
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB0_115
; %bb.113:                              ; %.preheader.i.i.preheader
	s_mov_b32 s0, 0
.LBB0_114:                              ; %.preheader.i.i
                                        ; =>This Inner Loop Header: Depth=1
	s_sleep 1
	global_store_b64 v[6:7], v[4:5], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[9:10], v8, v[2:5], s[2:3] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[9:10], v[4:5]
	v_dual_mov_b32 v4, v9 :: v_dual_mov_b32 v5, v10
	s_or_b32 s0, vcc_lo, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s0
	s_cbranch_execnz .LBB0_114
.LBB0_115:                              ; %__ockl_hostcall_preview.exit
	s_or_b32 exec_lo, exec_lo, s6
.LBB0_116:                              ; %Flow254
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s1
	s_waitcnt vmcnt(0) lgkmcnt(0)
	s_setpc_b64 s[30:31]
.Lfunc_end0:
	.size	__ockl_printf_append_string_n, .Lfunc_end0-__ockl_printf_append_string_n
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Function info:
; codeLenInByte = 5708
; NumSgprs: 34
; NumVgprs: 36
; ScratchSize: 0
; MemoryBound: 0
	.text
	.protected	_Z11solveLinearPKmS0_PlS1_S1_ ; -- Begin function _Z11solveLinearPKmS0_PlS1_S1_
	.globl	_Z11solveLinearPKmS0_PlS1_S1_
	.p2align	8
	.type	_Z11solveLinearPKmS0_PlS1_S1_,@function
_Z11solveLinearPKmS0_PlS1_S1_:          ; @_Z11solveLinearPKmS0_PlS1_S1_
; %bb.0:
	s_mov_b64 s[18:19], s[0:1]
	s_clause 0x1
	s_load_b32 s8, s[0:1], 0x34
	s_load_b256 s[0:7], s[0:1], 0x0
	s_add_u32 s34, s18, 40
	s_addc_u32 s35, s19, 0
	s_load_b64 s[72:73], s[18:19], 0x20
	v_mov_b32_e32 v6, 0
	s_movk_i32 s32, 0x4150
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	v_mov_b32_e32 v7, v6
	s_waitcnt lgkmcnt(0)
	s_and_b32 s8, s8, 0xffff
	v_mad_u64_u32 v[1:2], null, s15, s8, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v2, 31, v1
	v_mul_lo_u32 v0, 0x23d, v1
	v_lshlrev_b64 v[2:3], 3, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, s4, v2
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v3, vcc_lo
	v_add_co_u32 v88, vcc_lo, s6, v2
	v_add_co_ci_u32_e32 v89, vcc_lo, s7, v3, vcc_lo
	global_load_b64 v[84:85], v[4:5], off
	v_mul_lo_u32 v4, 0xbf, v1
	v_ashrrev_i32_e32 v1, 31, v0
	global_store_b64 v[88:89], v[6:7], off
	v_lshlrev_b64 v[0:1], 3, v[0:1]
	v_ashrrev_i32_e32 v5, 31, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[2:3], 3, v[4:5]
	v_add_co_u32 v4, vcc_lo, v0, s0
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v1, vcc_lo
	s_mov_b32 s0, 0
	v_add_co_u32 v0, vcc_lo, s2, v2
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v3, vcc_lo
	v_add_co_u32 v2, vcc_lo, v4, 16
	v_add_co_ci_u32_e32 v3, vcc_lo, 0, v5, vcc_lo
	s_movk_i32 s1, 0xee18
.LBB1_1:                                ; =>This Inner Loop Header: Depth=1
	s_clause 0x1
	global_load_b128 v[4:7], v[2:3], off offset:-16
	global_load_b64 v[8:9], v[2:3], off
	global_load_b64 v[10:11], v[0:1], off
	v_add_nc_u32_e64 v12, 0x1500, s1
	v_add_co_u32 v0, vcc_lo, v0, 8
	v_add_co_ci_u32_e32 v1, vcc_lo, 0, v1, vcc_lo
	v_add_co_u32 v2, vcc_lo, v2, 24
	v_add_co_ci_u32_e32 v3, vcc_lo, 0, v3, vcc_lo
	v_add_nc_u32_e32 v13, 0x11e8, v12
	s_add_i32 s1, s1, 24
	v_add_nc_u32_e32 v12, 0x11f8, v12
	s_add_i32 s2, s0, 0x26f0
	s_add_i32 s0, s0, 8
	s_cmp_eq_u32 s1, 0
	s_waitcnt vmcnt(2)
	scratch_store_b128 v13, v[4:7], off
	s_waitcnt vmcnt(1)
	scratch_store_b64 v12, v[8:9], off
	s_waitcnt vmcnt(0)
	scratch_store_b64 off, v[10:11], s2
	s_cbranch_scc0 .LBB1_1
; %bb.2:                                ; %.preheader269
	s_getpc_b64 s[0:1]
	s_add_u32 s0, s0, const_state@rel32@lo+76
	s_addc_u32 s1, s1, const_state@rel32@hi+84
	s_getpc_b64 s[2:3]
	s_add_u32 s2, s2, const_state@rel32@lo+44
	s_addc_u32 s3, s3, const_state@rel32@hi+52
	s_getpc_b64 s[4:5]
	s_add_u32 s4, s4, .str@rel32@lo+4
	s_addc_u32 s5, s5, .str@rel32@hi+12
	s_getpc_b64 s[6:7]
	s_add_u32 s6, s6, const_state@rel32@lo+124
	s_addc_u32 s7, s7, const_state@rel32@hi+132
	s_getpc_b64 s[8:9]
	s_add_u32 s8, s8, const_state@rel32@lo+188
	s_addc_u32 s9, s9, const_state@rel32@hi+196
	s_getpc_b64 s[10:11]
	s_add_u32 s10, s10, const_KeccakRoundConstants@rel32@lo+4
	s_addc_u32 s11, s11, const_KeccakRoundConstants@rel32@hi+12
	s_getpc_b64 s[12:13]
	s_add_u32 s12, s12, const_hashvalue@rel32@lo+4
	s_addc_u32 s13, s13, const_hashvalue@rel32@hi+12
	s_cmp_lg_u64 s[4:5], 0
	s_clause 0x2
	s_load_b64 s[74:75], s[0:1], 0x0
	s_load_b256 s[20:27], s[2:3], 0x0
	s_load_b512 s[36:51], s[6:7], 0x0
	s_cselect_b32 s33, 30, 0
	s_getpc_b64 s[4:5]
	s_add_u32 s4, s4, .str.1@rel32@lo+4
	s_addc_u32 s5, s5, .str.1@rel32@hi+12
	s_clause 0x1
	s_load_b128 s[64:67], s[10:11], 0x0
	s_load_b64 s[76:77], s[10:11], 0x10
	s_load_b256 s[52:59], s[12:13], 0x0
	s_cmp_lg_u64 s[4:5], 0
	s_load_b128 s[60:63], s[8:9], 0x0
	s_cselect_b32 s81, 21, 0
	s_getpc_b64 s[4:5]
	s_add_u32 s4, s4, .str.2@rel32@lo+4
	s_addc_u32 s5, s5, .str.2@rel32@hi+12
	v_dual_mov_b32 v38, 0 :: v_dual_mov_b32 v93, 0x3fb0
	s_cmp_lg_u64 s[4:5], 0
	v_add_nc_u32_e64 v91, 0x310, 16
	s_cselect_b32 s84, 6, 0
	s_getpc_b64 s[0:1]
	s_add_u32 s0, s0, .str.3@rel32@lo+4
	s_addc_u32 s1, s1, .str.3@rel32@hi+12
	v_or_b32_e64 v92, 0x310, 8
	s_cmp_lg_u64 s[0:1], 0
	v_dual_mov_b32 v94, 0x2cf0 :: v_dual_mov_b32 v41, 2
	s_cselect_b32 s0, -1, 0
	v_mov_b32_e32 v42, 1
	v_cndmask_b32_e64 v0, 0, 1, s0
	v_mov_b32_e32 v90, 0x310
	v_mbcnt_lo_u32_b32 v95, -1, 0
	v_mov_b32_e32 v36, 33
	s_mov_b32 s28, 0
	v_lshlrev_b32_e32 v47, 1, v0
	s_add_i32 s85, 0x310, 24
	s_mov_b64 s[78:79], 1
	s_movk_i32 s80, 0x2cf0
                                        ; implicit-def: $vgpr48_vgpr49_vgpr50_vgpr51_vgpr52_vgpr53_vgpr54_vgpr55_vgpr56_vgpr57_vgpr58_vgpr59_vgpr60_vgpr61_vgpr62_vgpr63
	s_mov_b32 s68, 0
                                        ; implicit-def: $vgpr58_vgpr59_vgpr60_vgpr61_vgpr62_vgpr63_vgpr64_vgpr65_vgpr66_vgpr67_vgpr68_vgpr69_vgpr70_vgpr71_vgpr72_vgpr73
                                        ; implicit-def: $vgpr68_vgpr69_vgpr70_vgpr71_vgpr72_vgpr73_vgpr74_vgpr75_vgpr76_vgpr77_vgpr78_vgpr79_vgpr80_vgpr81_vgpr82_vgpr83
.LBB1_3:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB1_4 Depth 2
                                        ;     Child Loop BB1_6 Depth 2
                                        ;       Child Loop BB1_10 Depth 3
                                        ;       Child Loop BB1_16 Depth 3
                                        ;       Child Loop BB1_22 Depth 3
                                        ;       Child Loop BB1_35 Depth 3
                                        ;     Child Loop BB1_45 Depth 2
                                        ;       Child Loop BB1_53 Depth 3
                                        ;     Child Loop BB1_59 Depth 2
                                        ;     Child Loop BB1_61 Depth 2
                                        ;     Child Loop BB1_70 Depth 2
                                        ;       Child Loop BB1_73 Depth 3
                                        ;       Child Loop BB1_75 Depth 3
                                        ;         Child Loop BB1_82 Depth 4
                                        ;     Child Loop BB1_88 Depth 2
                                        ;     Child Loop BB1_95 Depth 2
                                        ;       Child Loop BB1_96 Depth 3
                                        ;         Child Loop BB1_97 Depth 4
                                        ;       Child Loop BB1_102 Depth 3
                                        ;       Child Loop BB1_104 Depth 3
                                        ;       Child Loop BB1_106 Depth 3
                                        ;       Child Loop BB1_108 Depth 3
                                        ;         Child Loop BB1_109 Depth 4
                                        ;       Child Loop BB1_112 Depth 3
                                        ;         Child Loop BB1_113 Depth 4
                                        ;       Child Loop BB1_118 Depth 3
                                        ;         Child Loop BB1_119 Depth 4
                                        ;       Child Loop BB1_122 Depth 3
                                        ;         Child Loop BB1_123 Depth 4
                                        ;       Child Loop BB1_126 Depth 3
                                        ;         Child Loop BB1_127 Depth 4
                                        ;         Child Loop BB1_129 Depth 4
                                        ;       Child Loop BB1_132 Depth 3
                                        ;       Child Loop BB1_134 Depth 3
                                        ;       Child Loop BB1_136 Depth 3
                                        ;         Child Loop BB1_137 Depth 4
                                        ;       Child Loop BB1_140 Depth 3
                                        ;         Child Loop BB1_141 Depth 4
                                        ;       Child Loop BB1_146 Depth 3
                                        ;         Child Loop BB1_147 Depth 4
                                        ;       Child Loop BB1_150 Depth 3
                                        ;         Child Loop BB1_151 Depth 4
                                        ;       Child Loop BB1_154 Depth 3
                                        ;         Child Loop BB1_155 Depth 4
                                        ;         Child Loop BB1_157 Depth 4
                                        ;       Child Loop BB1_160 Depth 3
                                        ;       Child Loop BB1_162 Depth 3
                                        ;       Child Loop BB1_164 Depth 3
                                        ;         Child Loop BB1_165 Depth 4
                                        ;       Child Loop BB1_168 Depth 3
                                        ;         Child Loop BB1_169 Depth 4
                                        ;       Child Loop BB1_174 Depth 3
                                        ;         Child Loop BB1_175 Depth 4
                                        ;       Child Loop BB1_178 Depth 3
                                        ;         Child Loop BB1_179 Depth 4
                                        ;       Child Loop BB1_182 Depth 3
                                        ;         Child Loop BB1_183 Depth 4
                                        ;         Child Loop BB1_185 Depth 4
                                        ;       Child Loop BB1_192 Depth 3
                                        ;       Child Loop BB1_200 Depth 3
                                        ;       Child Loop BB1_206 Depth 3
                                        ;       Child Loop BB1_215 Depth 3
                                        ;       Child Loop BB1_219 Depth 3
                                        ;       Child Loop BB1_227 Depth 3
                                        ;       Child Loop BB1_233 Depth 3
                                        ;       Child Loop BB1_242 Depth 3
                                        ;       Child Loop BB1_246 Depth 3
                                        ;       Child Loop BB1_254 Depth 3
                                        ;       Child Loop BB1_260 Depth 3
                                        ;       Child Loop BB1_269 Depth 3
                                        ;       Child Loop BB1_271 Depth 3
                                        ;         Child Loop BB1_274 Depth 4
                                        ;         Child Loop BB1_282 Depth 4
                                        ;         Child Loop BB1_288 Depth 4
                                        ;         Child Loop BB1_297 Depth 4
                                        ;         Child Loop BB1_301 Depth 4
                                        ;         Child Loop BB1_309 Depth 4
                                        ;         Child Loop BB1_315 Depth 4
                                        ;         Child Loop BB1_324 Depth 4
                                        ;         Child Loop BB1_329 Depth 4
                                        ;         Child Loop BB1_337 Depth 4
                                        ;         Child Loop BB1_343 Depth 4
                                        ;         Child Loop BB1_352 Depth 4
                                        ;       Child Loop BB1_358 Depth 3
                                        ;       Child Loop BB1_366 Depth 3
                                        ;       Child Loop BB1_372 Depth 3
                                        ;       Child Loop BB1_381 Depth 3
	s_add_u32 s0, s78, -1
	s_addc_u32 s1, s79, -1
	s_mov_b32 s4, s28
	s_xor_b64 s[0:1], s[0:1], s[78:79]
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_4) | instid1(SALU_CYCLE_1)
	s_clz_i32_u64 s2, s[0:1]
	s_getpc_b64 s[0:1]
	s_add_u32 s0, s0, d_square_mat@rel32@lo+4
	s_addc_u32 s1, s1, d_square_mat@rel32@hi+12
	s_xor_b32 s5, s2, 63
	s_mul_i32 s6, s5, 0x5f8
	s_lshl_b64 s[2:3], 1, s5
	s_mul_hi_u32 s7, s5, 0x5f8
	s_add_u32 s0, s6, s0
	s_addc_u32 s1, s7, s1
	s_mul_hi_u32 s8, s5, 0x11e8
	s_mulk_i32 s5, 0x11e8
	v_xor_b32_e32 v85, s3, v85
	v_xor_b32_e32 v84, s2, v84
	s_getpc_b64 s[6:7]
	s_add_u32 s6, s6, d_linear_mat@rel32@lo+20
	s_addc_u32 s7, s7, d_linear_mat@rel32@hi+28
	s_add_u32 s2, s5, s6
	s_addc_u32 s3, s8, s7
	s_mov_b32 s5, s28
.LBB1_4:                                ;   Parent Loop BB1_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_add_i32 s6, s4, 0x26f0
	global_load_b64 v[8:9], v38, s[0:1]
	scratch_load_b64 v[10:11], off, s6
	s_clause 0x1
	global_load_b64 v[12:13], v38, s[2:3]
	global_load_b128 v[0:3], v38, s[2:3] offset:-16
	s_add_i32 s7, s5, 0x1500
	v_add_nc_u32_e64 v14, 0x1500, s5
	scratch_load_b128 v[4:7], off, s7
	v_add_nc_u32_e64 v17, 0x310, s5
	s_add_i32 s8, s5, 0x310
	s_add_i32 s5, s5, 24
	v_add_nc_u32_e32 v16, 16, v14
	s_add_u32 s0, s0, 8
	s_addc_u32 s1, s1, 0
	s_add_u32 s2, s2, 24
	s_addc_u32 s3, s3, 0
	scratch_load_b64 v[14:15], v16, off
	s_add_i32 s4, s4, 8
	v_add_nc_u32_e32 v17, 16, v17
	s_cmpk_eq_i32 s5, 0x11e8
	s_waitcnt vmcnt(4)
	v_xor_b32_e32 v8, v10, v8
	v_xor_b32_e32 v9, v11, v9
	s_waitcnt vmcnt(1)
	v_xor_b32_e32 v0, v4, v0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_and_b32_e32 v10, v8, v84
	v_and_b32_e32 v11, v9, v85
	v_xor_b32_e32 v1, v5, v1
	v_xor_b32_e32 v3, v7, v3
	v_xor_b32_e32 v2, v6, v2
	v_bcnt_u32_b32 v10, v10, 0
	s_waitcnt vmcnt(0)
	v_xor_b32_e32 v5, v15, v13
	scratch_store_b128 off, v[0:3], s7
	v_bcnt_u32_b32 v4, v11, v10
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_and_b32_e32 v6, 1, v4
	v_xor_b32_e32 v4, v14, v12
	v_xor_b32_e32 v0, v6, v0
	scratch_store_b64 off, v[8:9], s6
	scratch_store_b64 v16, v[4:5], off
	s_clause 0x1
	scratch_store_b64 v17, v[4:5], off
	scratch_store_b128 off, v[0:3], s8
	s_cbranch_scc0 .LBB1_4
; %bb.5:                                ;   in Loop: Header=BB1_3 Depth=1
	v_mov_b32_e32 v6, 0
	s_mov_b32 s4, 0
	s_mov_b32 s0, -1
	s_mov_b32 s1, 0
	s_mov_b32 s3, s85
	s_mov_b32 s6, 0
                                        ; implicit-def: $sgpr2
                                        ; implicit-def: $sgpr5
.LBB1_6:                                ;   Parent Loop BB1_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB1_10 Depth 3
                                        ;       Child Loop BB1_16 Depth 3
                                        ;       Child Loop BB1_22 Depth 3
                                        ;       Child Loop BB1_35 Depth 3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mul_i32 s9, s6, 24
	s_mov_b32 s10, -1
	s_add_i32 s7, s9, 0x310
	s_mov_b32 s8, exec_lo
	s_clause 0x1
	scratch_load_b128 v[0:3], off, s7
	scratch_load_b64 v[4:5], off, s7 offset:16
	s_mov_b32 s7, 0
	s_waitcnt vmcnt(1)
	v_or_b32_e32 v8, v1, v3
	v_or_b32_e32 v7, v0, v2
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_eq_u64_e32 0, v[7:8]
	s_cbranch_execz .LBB1_8
; %bb.7:                                ;   in Loop: Header=BB1_6 Depth=2
	s_waitcnt vmcnt(0)
	v_cmp_ne_u64_e32 vcc_lo, 0, v[4:5]
	v_mov_b32_e32 v2, 0
	v_mov_b32_e32 v3, 0
	s_mov_b32 s7, exec_lo
	s_or_not1_b32 s10, vcc_lo, exec_lo
.LBB1_8:                                ; %Flow1143
                                        ;   in Loop: Header=BB1_6 Depth=2
	s_or_b32 exec_lo, exec_lo, s8
	s_and_saveexec_b32 s8, s10
	s_cbranch_execz .LBB1_40
; %bb.9:                                ; %._crit_edge.i
                                        ;   in Loop: Header=BB1_6 Depth=2
	v_add_nc_u32_e64 v7, 0x310, s9
	s_mov_b32 s11, 61
	s_mov_b32 s10, 0
                                        ; implicit-def: $sgpr12
.LBB1_10:                               ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_or_b32 s12, s12, exec_lo
	s_cmp_eq_u32 s11, 0
	s_cbranch_scc1 .LBB1_12
; %bb.11:                               ;   in Loop: Header=BB1_10 Depth=3
	s_add_i32 s11, s11, -1
	s_and_not1_b32 s12, s12, exec_lo
	s_waitcnt vmcnt(0)
	v_lshrrev_b64 v[8:9], s11, v[4:5]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_and_b32_e32 v8, 1, v8
	v_cmp_eq_u32_e32 vcc_lo, 1, v8
	s_and_b32 s13, vcc_lo, exec_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 s12, s12, s13
	s_branch .LBB1_13
.LBB1_12:                               ;   in Loop: Header=BB1_10 Depth=3
	s_mov_b32 s11, -1
.LBB1_13:                               ; %Flow1140
                                        ;   in Loop: Header=BB1_10 Depth=3
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_mov_b32_e32 v8, s11
	s_and_b32 s13, exec_lo, s12
	s_or_b32 s10, s13, s10
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s10
	s_cbranch_execnz .LBB1_10
; %bb.14:                               ; %_ZL10largestposli.exit.i.i
                                        ;   in Loop: Header=BB1_6 Depth=2
	s_or_b32 exec_lo, exec_lo, s10
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s10, exec_lo
                                        ; implicit-def: $vgpr4
	v_cmpx_gt_i32_e32 0, v8
	s_xor_b32 s10, exec_lo, s10
	s_cbranch_execz .LBB1_30
; %bb.15:                               ; %.preheader35.i.i.preheader
                                        ;   in Loop: Header=BB1_6 Depth=2
	s_mov_b32 s12, 64
	s_mov_b32 s11, 0
                                        ; implicit-def: $sgpr13
.LBB1_16:                               ; %.preheader35.i.i
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_or_b32 s13, s13, exec_lo
	s_cmp_eq_u32 s12, 0
	s_cbranch_scc1 .LBB1_18
; %bb.17:                               ;   in Loop: Header=BB1_16 Depth=3
	s_add_i32 s12, s12, -1
	s_and_not1_b32 s13, s13, exec_lo
	s_waitcnt vmcnt(0)
	v_lshrrev_b64 v[4:5], s12, v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_and_b32_e32 v4, 1, v4
	v_cmp_eq_u32_e32 vcc_lo, 1, v4
	s_and_b32 s14, vcc_lo, exec_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 s13, s13, s14
	s_branch .LBB1_19
.LBB1_18:                               ;   in Loop: Header=BB1_16 Depth=3
	s_mov_b32 s12, -1
.LBB1_19:                               ; %Flow1136
                                        ;   in Loop: Header=BB1_16 Depth=3
	s_waitcnt vmcnt(0)
	v_mov_b32_e32 v5, s12
	s_and_b32 s14, exec_lo, s13
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 s11, s14, s11
	s_and_not1_b32 exec_lo, exec_lo, s11
	s_cbranch_execnz .LBB1_16
; %bb.20:                               ; %_ZL10largestposli.exit29.i.i
                                        ;   in Loop: Header=BB1_6 Depth=2
	s_or_b32 exec_lo, exec_lo, s11
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s11, exec_lo
                                        ; implicit-def: $vgpr4
	v_cmpx_gt_i32_e32 0, v5
	s_xor_b32 s11, exec_lo, s11
	s_cbranch_execz .LBB1_27
; %bb.21:                               ; %.preheader.i.i.preheader
                                        ;   in Loop: Header=BB1_6 Depth=2
	s_mov_b32 s13, 64
	s_mov_b32 s12, 0
                                        ; implicit-def: $sgpr14
.LBB1_22:                               ; %.preheader.i.i
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_or_b32 s14, s14, exec_lo
	s_cmp_eq_u32 s13, 0
	s_cbranch_scc1 .LBB1_24
; %bb.23:                               ;   in Loop: Header=BB1_22 Depth=3
	s_add_i32 s13, s13, -1
	s_and_not1_b32 s14, s14, exec_lo
	v_lshrrev_b64 v[2:3], s13, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_and_b32_e32 v2, 1, v2
	v_cmp_eq_u32_e32 vcc_lo, 1, v2
	s_and_b32 s15, vcc_lo, exec_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 s14, s14, s15
	s_branch .LBB1_25
.LBB1_24:                               ;   in Loop: Header=BB1_22 Depth=3
	s_mov_b32 s13, -1
.LBB1_25:                               ; %Flow1130
                                        ;   in Loop: Header=BB1_22 Depth=3
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_mov_b32_e32 v4, s13
	s_and_b32 s15, exec_lo, s14
	s_or_b32 s12, s15, s12
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s12
	s_cbranch_execnz .LBB1_22
; %bb.26:                               ; %Flow1131
                                        ;   in Loop: Header=BB1_6 Depth=2
	s_or_b32 exec_lo, exec_lo, s12
.LBB1_27:                               ; %Flow1133
                                        ;   in Loop: Header=BB1_6 Depth=2
	s_and_not1_saveexec_b32 s11, s11
; %bb.28:                               ;   in Loop: Header=BB1_6 Depth=2
	v_add_nc_u32_e32 v4, 64, v5
; %bb.29:                               ; %Flow1134
                                        ;   in Loop: Header=BB1_6 Depth=2
	s_or_b32 exec_lo, exec_lo, s11
.LBB1_30:                               ; %Flow1138
                                        ;   in Loop: Header=BB1_6 Depth=2
	s_and_not1_saveexec_b32 s10, s10
	s_cbranch_execz .LBB1_32
; %bb.31:                               ;   in Loop: Header=BB1_6 Depth=2
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v4, 0x80, v8
.LBB1_32:                               ; %_ZL12largestpos_3llli.exit.i
                                        ;   in Loop: Header=BB1_6 Depth=2
	s_or_b32 exec_lo, exec_lo, s10
	s_lshl_b32 s10, s6, 2
	v_add_nc_u32_e32 v6, 1, v6
	s_add_i32 s10, s10, 16
	s_mov_b32 s11, 0
	s_waitcnt vmcnt(0)
	scratch_store_b32 off, v4, s10
	s_mov_b32 s10, exec_lo
	v_cmpx_ne_u32_e32 0, v4
	s_cbranch_execz .LBB1_39
; %bb.33:                               ; %.preheader179.i
                                        ;   in Loop: Header=BB1_6 Depth=2
	s_cmpk_gt_u32 s6, 0xbd
	s_cbranch_scc1 .LBB1_38
; %bb.34:                               ; %.lr.ph.i
                                        ;   in Loop: Header=BB1_6 Depth=2
	v_ashrrev_i32_e32 v0, 31, v4
	v_add_nc_u32_e32 v2, s9, v91
	s_mov_b32 s9, s0
	s_mov_b32 s11, s3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshrrev_b32_e32 v0, 26, v0
	v_add_nc_u32_e32 v0, v4, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_and_b32_e32 v1, 0xffffffc0, v0
	v_ashrrev_i32_e32 v3, 6, v0
	v_sub_nc_u32_e32 v1, v4, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b32_e32 v3, 3, v3
	v_lshlrev_b64 v[0:1], v1, 1
.LBB1_35:                               ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_delay_alu instid0(VALU_DEP_2)
	v_add_nc_u32_e32 v4, s11, v3
	s_mov_b32 s12, exec_lo
	scratch_load_b64 v[4:5], v4, off
	s_waitcnt vmcnt(0)
	v_and_b32_e32 v5, v5, v1
	v_and_b32_e32 v4, v4, v0
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_ne_u64_e32 0, v[4:5]
	s_cbranch_execz .LBB1_37
; %bb.36:                               ;   in Loop: Header=BB1_35 Depth=3
	scratch_load_b64 v[4:5], v7, off
	scratch_load_b128 v[8:11], off, s11
	s_add_i32 s14, s11, 8
	s_add_i32 s13, s11, 16
	s_waitcnt vmcnt(0)
	v_xor_b32_e32 v5, v9, v5
	v_xor_b32_e32 v4, v8, v4
	scratch_load_b64 v[8:9], off, s13
	scratch_store_b64 off, v[4:5], s11
	scratch_load_b64 v[4:5], v7, off offset:8
	s_waitcnt vmcnt(0)
	v_xor_b32_e32 v5, v11, v5
	v_xor_b32_e32 v4, v10, v4
	scratch_store_b64 off, v[4:5], s14
	scratch_load_b64 v[4:5], v2, off
	s_waitcnt vmcnt(0)
	v_xor_b32_e32 v5, v9, v5
	v_xor_b32_e32 v4, v8, v4
	scratch_store_b64 off, v[4:5], s13
.LBB1_37:                               ;   in Loop: Header=BB1_35 Depth=3
	s_or_b32 exec_lo, exec_lo, s12
	s_add_i32 s9, s9, 1
	s_add_i32 s11, s11, 24
	s_cmpk_lt_u32 s9, 0xbd
	s_cbranch_scc1 .LBB1_35
.LBB1_38:                               ; %Flow1128
                                        ;   in Loop: Header=BB1_6 Depth=2
	s_mov_b32 s11, exec_lo
.LBB1_39:                               ; %Flow1145
                                        ;   in Loop: Header=BB1_6 Depth=2
	s_or_b32 exec_lo, exec_lo, s10
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	s_and_not1_b32 s7, s7, exec_lo
	s_and_b32 s9, s11, exec_lo
	s_or_b32 s7, s7, s9
.LBB1_40:                               ; %Flow1144
                                        ;   in Loop: Header=BB1_6 Depth=2
	s_or_b32 exec_lo, exec_lo, s8
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 s5, s5, exec_lo
	s_and_b32 s4, s4, exec_lo
	s_mov_b32 s8, -1
	s_or_b32 s5, s5, s4
                                        ; implicit-def: $sgpr4
	s_and_saveexec_b32 s9, s7
	s_cbranch_execz .LBB1_42
; %bb.41:                               ; %.loopexit180.i
                                        ;   in Loop: Header=BB1_6 Depth=2
	s_add_i32 s7, s6, 1
	s_cmpk_gt_u32 s6, 0xbd
	s_cselect_b32 s4, -1, 0
	s_add_i32 s3, s3, 24
	s_add_i32 s0, s0, 1
	s_cmpk_eq_i32 s7, 0xbf
	s_cselect_b32 s6, -1, 0
	s_and_not1_b32 s5, s5, exec_lo
	s_and_b32 s8, s4, exec_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 s5, s5, s8
	s_or_not1_b32 s8, s6, exec_lo
	s_mov_b32 s6, s7
.LBB1_42:                               ; %Flow1146
                                        ;   in Loop: Header=BB1_6 Depth=2
	s_or_b32 exec_lo, exec_lo, s9
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s7, exec_lo, s8
	s_or_b32 s1, s7, s1
	s_and_not1_b32 s2, s2, exec_lo
	s_and_b32 s7, s5, exec_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 s2, s2, s7
	s_and_not1_b32 exec_lo, exec_lo, s1
	s_cbranch_execnz .LBB1_6
; %bb.43:                               ;   in Loop: Header=BB1_3 Depth=1
	s_or_b32 exec_lo, exec_lo, s1
	v_mov_b32_e32 v78, 0
	v_mov_b32_e32 v79, 0
	s_and_saveexec_b32 s1, s2
	s_cbranch_execz .LBB1_93
; %bb.44:                               ; %.preheader178.i.preheader
                                        ;   in Loop: Header=BB1_3 Depth=1
	s_mov_b32 s0, 0
.LBB1_45:                               ; %.preheader178.i
                                        ;   Parent Loop BB1_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB1_53 Depth 3
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_mul_i32 s2, s0, 24
	s_add_i32 s3, s2, 0x310
	v_add_nc_u32_e64 v2, 0x310, s2
	scratch_load_b64 v[0:1], off, s3
	s_mov_b32 s2, 0
	s_mov_b32 s3, exec_lo
	s_waitcnt vmcnt(0)
	v_cmp_ne_u64_e64 s4, 0, v[0:1]
	v_cmpx_eq_u64_e32 0, v[0:1]
	s_cbranch_execz .LBB1_47
; %bb.46:                               ;   in Loop: Header=BB1_45 Depth=2
	scratch_load_b64 v[0:1], v2, off offset:8
	s_and_not1_b32 s4, s4, exec_lo
	s_mov_b32 s2, exec_lo
	s_waitcnt vmcnt(0)
	v_cmp_ne_u64_e32 vcc_lo, 0, v[0:1]
	s_and_b32 s5, vcc_lo, exec_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 s4, s4, s5
.LBB1_47:                               ; %Flow1121
                                        ;   in Loop: Header=BB1_45 Depth=2
	s_or_b32 exec_lo, exec_lo, s3
	s_mov_b32 s3, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_saveexec_b32 s5, s4
	s_xor_b32 s4, exec_lo, s5
; %bb.48:                               ;   in Loop: Header=BB1_45 Depth=2
	s_cmp_lg_u32 s0, 0
	s_cselect_b32 s3, -1, 0
	s_and_not1_b32 s2, s2, exec_lo
	s_and_b32 s3, s3, exec_lo
; %bb.49:                               ; %Flow1122
                                        ;   in Loop: Header=BB1_45 Depth=2
	s_or_b32 exec_lo, exec_lo, s4
	s_and_saveexec_b32 s4, s2
	s_cbranch_execz .LBB1_51
; %bb.50:                               ;   in Loop: Header=BB1_45 Depth=2
	scratch_load_b64 v[0:1], v2, off offset:16
	s_cmp_lg_u32 s0, 0
	s_cselect_b32 s2, -1, 0
	s_and_not1_b32 s3, s3, exec_lo
	s_waitcnt vmcnt(0)
	v_cmp_ne_u64_e32 vcc_lo, 0, v[0:1]
	s_and_b32 s2, s2, vcc_lo
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s2, s2, exec_lo
	s_or_b32 s3, s3, s2
.LBB1_51:                               ; %Flow1123
                                        ;   in Loop: Header=BB1_45 Depth=2
	s_or_b32 exec_lo, exec_lo, s4
	s_and_saveexec_b32 s2, s3
	s_cbranch_execz .LBB1_56
; %bb.52:                               ; %.lr.ph186.i
                                        ;   in Loop: Header=BB1_45 Depth=2
	s_lshl_b32 s3, s0, 2
	v_readfirstlane_b32 s4, v90
	s_add_i32 s3, s3, 16
	scratch_load_b32 v0, off, s3
	s_max_u32 s3, s0, 1
	s_mov_b32 s4, s4
	s_waitcnt vmcnt(0)
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshrrev_b32_e32 v1, 26, v1
	v_add_nc_u32_e32 v1, v0, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_and_b32_e32 v3, 0xffffffc0, v1
	v_sub_nc_u32_e32 v0, v0, v3
	v_ashrrev_i32_e32 v3, 6, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[0:1], v0, 1
	v_lshlrev_b32_e32 v3, 3, v3
.LBB1_53:                               ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_45 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_delay_alu instid0(VALU_DEP_1)
	v_add_nc_u32_e32 v4, s4, v3
	s_mov_b32 s5, exec_lo
	scratch_load_b64 v[4:5], v4, off
	s_waitcnt vmcnt(0)
	v_and_b32_e32 v5, v5, v1
	v_and_b32_e32 v4, v4, v0
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_ne_u64_e32 0, v[4:5]
	s_cbranch_execz .LBB1_55
; %bb.54:                               ;   in Loop: Header=BB1_53 Depth=3
	scratch_load_b64 v[4:5], v2, off
	scratch_load_b128 v[7:10], off, s4
	s_add_i32 s7, s4, 8
	s_add_i32 s6, s4, 16
	s_waitcnt vmcnt(0)
	v_xor_b32_e32 v5, v8, v5
	v_xor_b32_e32 v4, v7, v4
	scratch_load_b64 v[7:8], off, s6
	scratch_store_b64 off, v[4:5], s4
	scratch_load_b64 v[4:5], v2, off offset:8
	s_waitcnt vmcnt(0)
	v_xor_b32_e32 v5, v10, v5
	v_xor_b32_e32 v4, v9, v4
	scratch_store_b64 off, v[4:5], s7
	scratch_load_b64 v[4:5], v2, off offset:16
	s_waitcnt vmcnt(0)
	v_xor_b32_e32 v5, v8, v5
	v_xor_b32_e32 v4, v7, v4
	scratch_store_b64 off, v[4:5], s6
.LBB1_55:                               ;   in Loop: Header=BB1_53 Depth=3
	s_or_b32 exec_lo, exec_lo, s5
	s_add_i32 s3, s3, -1
	s_add_i32 s4, s4, 24
	s_cmp_lg_u32 s3, 0
	s_cbranch_scc1 .LBB1_53
.LBB1_56:                               ; %Flow1124
                                        ;   in Loop: Header=BB1_45 Depth=2
	s_or_b32 exec_lo, exec_lo, s2
	s_add_i32 s0, s0, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmpk_eq_i32 s0, 0xbf
	s_cbranch_scc0 .LBB1_45
; %bb.57:                               ;   in Loop: Header=BB1_3 Depth=1
	v_mov_b32_e32 v0, v38
	v_mov_b32_e32 v1, v38
	v_mov_b32_e32 v2, v38
	v_mov_b32_e32 v3, v38
	v_mov_b32_e32 v39, v38
	s_movk_i32 s0, 0x2cf0
	s_clause 0x1
	scratch_store_b128 off, v[0:3], s0
	scratch_store_b64 off, v[38:39], s0 offset:16
                                        ; implicit-def: $vgpr78_vgpr79
	s_mov_b32 s0, exec_lo
	v_cmpx_ne_u32_e32 0xbc, v6
	s_xor_b32 s4, exec_lo, s0
	s_cbranch_execz .LBB1_86
; %bb.58:                               ;   in Loop: Header=BB1_3 Depth=1
	s_mov_b32 s0, 0
.LBB1_59:                               ;   Parent Loop BB1_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_i32 s2, s0, 0x3fb0
	s_add_i32 s0, s0, 1
	scratch_store_b8 off, v38, s2
	s_cmpk_lg_i32 s0, 0xbd
	s_cbranch_scc1 .LBB1_59
; %bb.60:                               ; %.preheader176.i.preheader
                                        ;   in Loop: Header=BB1_3 Depth=1
	v_mov_b32_e32 v2, v92
	s_mov_b32 s0, 0
.LBB1_61:                               ; %.preheader176.i
                                        ;   Parent Loop BB1_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	scratch_load_b64 v[0:1], v2, off offset:-8
	s_mov_b32 s2, exec_lo
	s_waitcnt vmcnt(0)
	v_cmp_ne_u64_e64 s3, 0, v[0:1]
	v_cmpx_eq_u64_e32 0, v[0:1]
	s_cbranch_execz .LBB1_65
; %bb.62:                               ;   in Loop: Header=BB1_61 Depth=2
	scratch_load_b64 v[3:4], v2, off
	s_mov_b32 s6, exec_lo
	s_waitcnt vmcnt(0)
	v_cmp_ne_u64_e64 s5, 0, v[3:4]
	v_cmpx_eq_u64_e32 0, v[3:4]
	s_cbranch_execz .LBB1_64
; %bb.63:                               ;   in Loop: Header=BB1_61 Depth=2
	v_add_nc_u32_e32 v1, 8, v2
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_4) | instid1(SALU_CYCLE_1)
	s_and_not1_b32 s5, s5, exec_lo
	scratch_load_b64 v[3:4], v1, off
	s_waitcnt vmcnt(0)
	v_cmp_ne_u64_e32 vcc_lo, 0, v[3:4]
	s_and_b32 s7, vcc_lo, exec_lo
	s_or_b32 s5, s5, s7
.LBB1_64:                               ; %Flow1113
                                        ;   in Loop: Header=BB1_61 Depth=2
	s_or_b32 exec_lo, exec_lo, s6
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	s_and_not1_b32 s3, s3, exec_lo
	s_and_b32 s5, s5, exec_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 s3, s3, s5
.LBB1_65:                               ; %Flow1112
                                        ;   in Loop: Header=BB1_61 Depth=2
	s_or_b32 exec_lo, exec_lo, s2
	s_delay_alu instid0(VALU_DEP_2)
	s_and_saveexec_b32 s2, s3
	s_cbranch_execz .LBB1_68
; %bb.66:                               ;   in Loop: Header=BB1_61 Depth=2
	s_add_i32 s3, s0, 16
	v_and_b32_e32 v0, 1, v0
	scratch_load_b32 v1, off, s3
	v_cmp_eq_u32_e32 vcc_lo, 1, v0
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v3, 0x3fb0, v1
	scratch_store_b8 v3, v42, off
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB1_68
; %bb.67:                               ;   in Loop: Header=BB1_61 Depth=2
	v_add_nc_u32_e32 v3, -1, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v0, 31, v3
	v_lshrrev_b32_e32 v0, 26, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v4, v3, v0
	v_ashrrev_i32_e32 v0, 6, v4
	v_and_b32_e32 v4, 0xffffffc0, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshl_add_u32 v5, v0, 3, 0x2cf0
	v_sub_nc_u32_e32 v3, v3, v4
	scratch_load_b64 v[0:1], v5, off
	v_lshlrev_b64 v[3:4], v3, 1
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v1, v1, v4
	v_xor_b32_e32 v0, v0, v3
	scratch_store_b64 v5, v[0:1], off
.LBB1_68:                               ;   in Loop: Header=BB1_61 Depth=2
	s_or_b32 exec_lo, exec_lo, s2
	v_add_nc_u32_e32 v2, 24, v2
	s_add_i32 s0, s0, 4
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmpk_lg_i32 s0, 0x2fc
	s_cbranch_scc1 .LBB1_61
; %bb.69:                               ; %.preheader175.i.preheader
                                        ;   in Loop: Header=BB1_3 Depth=1
	v_mov_b32_e32 v78, 1
	v_mov_b32_e32 v79, 0
	s_mov_b32 s5, 1
	s_mov_b32 s6, 0
.LBB1_70:                               ; %.preheader175.i
                                        ;   Parent Loop BB1_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB1_73 Depth 3
                                        ;       Child Loop BB1_75 Depth 3
                                        ;         Child Loop BB1_82 Depth 4
	s_add_i32 s0, s5, 0x3fb0
	s_mov_b32 s7, exec_lo
	scratch_load_u8 v0, off, s0
	s_waitcnt vmcnt(0)
	v_cmpx_eq_u16_e32 0, v0
	s_cbranch_execz .LBB1_85
; %bb.71:                               ; %.preheader174.i
                                        ;   in Loop: Header=BB1_70 Depth=2
	v_cmp_lt_i64_e32 vcc_lo, 0, v[78:79]
	s_and_saveexec_b32 s8, vcc_lo
	s_cbranch_execz .LBB1_74
; %bb.72:                               ; %.lr.ph192.i
                                        ;   in Loop: Header=BB1_70 Depth=2
	v_mul_lo_u32 v2, v78, 24
	s_lshr_b32 s0, s6, 3
	v_readfirstlane_b32 s9, v94
	s_and_b32 s0, s0, 0x1ffffff8
	s_add_i32 s2, s5, -1
	s_mov_b32 s10, 0
	s_lshl_b64 s[2:3], 1, s2
	s_mov_b32 s9, s9
	v_dual_mov_b32 v0, v78 :: v_dual_add_nc_u32 v3, s0, v2
	v_mov_b32_e32 v1, v79
.LBB1_73:                               ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_70 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	scratch_load_b64 v[4:5], off, s9
	v_add_nc_u32_e32 v6, s9, v2
	s_add_i32 s0, s9, 8
	s_delay_alu instid0(VALU_DEP_1)
	v_add_nc_u32_e32 v7, 8, v6
	s_waitcnt vmcnt(0)
	scratch_store_b64 v6, v[4:5], off
	scratch_load_b64 v[4:5], off, s0
	s_add_i32 s0, s9, 16
	v_add_nc_u32_e32 v6, 16, v6
	s_waitcnt vmcnt(0)
	scratch_store_b64 v7, v[4:5], off
	scratch_load_b64 v[4:5], off, s0
	v_add_nc_u32_e32 v7, s9, v3
	v_add_co_u32 v0, s0, v0, -1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v1, s0, -1, v1, s0
	s_add_i32 s9, s9, 24
	v_cmp_eq_u64_e64 s0, 0, v[0:1]
	s_delay_alu instid0(VALU_DEP_1)
	s_or_b32 s10, s0, s10
	s_waitcnt vmcnt(0)
	scratch_store_b64 v6, v[4:5], off
	scratch_load_b64 v[4:5], v7, off
	s_waitcnt vmcnt(0)
	v_xor_b32_e32 v5, s3, v5
	v_xor_b32_e32 v4, s2, v4
	scratch_store_b64 v7, v[4:5], off
	s_and_not1_b32 exec_lo, exec_lo, s10
	s_cbranch_execnz .LBB1_73
.LBB1_74:                               ; %Flow1106
                                        ;   in Loop: Header=BB1_70 Depth=2
	s_or_b32 exec_lo, exec_lo, s8
	v_mad_u64_u32 v[0:1], null, v78, 24, s[80:81]
	s_lshr_b32 s0, s5, 6
	s_lshl_b64 s[2:3], 1, s5
	s_mov_b32 s8, 0
	s_lshl_b32 s9, s0, 3
.LBB1_75:                               ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_70 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB1_82 Depth 4
	s_mul_i32 s10, s8, 24
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_i32 s0, s10, 0x310
	scratch_load_b64 v[1:2], off, s0
	s_waitcnt vmcnt(0)
	v_cmp_ne_u64_e64 s11, 0, v[1:2]
	v_cmp_eq_u64_e64 s0, 0, v[1:2]
	v_add_nc_u32_e64 v1, 0x310, s10
	s_delay_alu instid0(VALU_DEP_2)
	s_and_saveexec_b32 s10, s0
	s_cbranch_execz .LBB1_79
; %bb.76:                               ;   in Loop: Header=BB1_75 Depth=3
	scratch_load_b64 v[2:3], v1, off offset:8
	s_mov_b32 s13, exec_lo
	s_waitcnt vmcnt(0)
	v_cmp_ne_u64_e64 s12, 0, v[2:3]
	v_cmpx_eq_u64_e32 0, v[2:3]
	s_cbranch_execz .LBB1_78
; %bb.77:                               ;   in Loop: Header=BB1_75 Depth=3
	scratch_load_b64 v[2:3], v1, off offset:16
	s_and_not1_b32 s12, s12, exec_lo
	s_waitcnt vmcnt(0)
	v_cmp_ne_u64_e64 s0, 0, v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s0, s0, exec_lo
	s_or_b32 s12, s12, s0
.LBB1_78:                               ; %Flow1104
                                        ;   in Loop: Header=BB1_75 Depth=3
	s_or_b32 exec_lo, exec_lo, s13
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	s_and_not1_b32 s0, s11, exec_lo
	s_and_b32 s11, s12, exec_lo
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 s11, s0, s11
.LBB1_79:                               ; %Flow1103
                                        ;   in Loop: Header=BB1_75 Depth=3
	s_or_b32 exec_lo, exec_lo, s10
	s_and_saveexec_b32 s10, s11
	s_cbranch_execz .LBB1_83
; %bb.80:                               ;   in Loop: Header=BB1_75 Depth=3
	v_add_nc_u32_e32 v1, s9, v1
	scratch_load_b64 v[1:2], v1, off
	s_waitcnt vmcnt(0)
	v_and_b32_e32 v2, s3, v2
	v_and_b32_e32 v1, s2, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_ne_u64_e64 s0, 0, v[1:2]
	s_and_b32 s0, vcc_lo, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_b32 exec_lo, exec_lo, s0
	s_cbranch_execz .LBB1_83
; %bb.81:                               ; %.lr.ph195.i
                                        ;   in Loop: Header=BB1_75 Depth=3
	s_lshl_b32 s0, s8, 2
	s_mov_b32 s11, 0
	s_add_i32 s0, s0, 16
	scratch_load_b32 v1, off, s0
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v1, -1, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v2, 31, v1
	v_lshrrev_b32_e32 v2, 26, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v2, v1, v2
	v_and_b32_e32 v3, 0xffffffc0, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_sub_nc_u32_e32 v1, v1, v3
	v_ashrrev_i32_e32 v3, 6, v2
	v_lshlrev_b64 v[1:2], v1, 1
	s_delay_alu instid0(VALU_DEP_2)
	v_lshl_add_u32 v5, v3, 3, v0
	v_dual_mov_b32 v3, v78 :: v_dual_mov_b32 v4, v79
.LBB1_82:                               ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_70 Depth=2
                                        ;       Parent Loop BB1_75 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	scratch_load_b64 v[6:7], v5, off
	v_add_co_u32 v3, s0, v3, -1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v4, s0, -1, v4, s0
	v_cmp_eq_u64_e64 s0, 0, v[3:4]
	s_delay_alu instid0(VALU_DEP_1)
	s_or_b32 s11, s0, s11
	s_waitcnt vmcnt(0)
	v_xor_b32_e32 v7, v7, v2
	v_xor_b32_e32 v6, v6, v1
	scratch_store_b64 v5, v[6:7], off
	v_add_nc_u32_e32 v5, 24, v5
	s_and_not1_b32 exec_lo, exec_lo, s11
	s_cbranch_execnz .LBB1_82
.LBB1_83:                               ; %.loopexit173.i
                                        ;   in Loop: Header=BB1_75 Depth=3
	s_or_b32 exec_lo, exec_lo, s10
	s_add_i32 s8, s8, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmpk_eq_i32 s8, 0xbf
	s_cbranch_scc0 .LBB1_75
; %bb.84:                               ;   in Loop: Header=BB1_70 Depth=2
	v_lshlrev_b64 v[78:79], 1, v[78:79]
.LBB1_85:                               ; %Flow1107
                                        ;   in Loop: Header=BB1_70 Depth=2
	s_or_b32 exec_lo, exec_lo, s7
	s_add_i32 s5, s5, 1
	s_add_i32 s6, s6, 1
	s_cmpk_eq_i32 s5, 0xbd
	s_cbranch_scc0 .LBB1_70
.LBB1_86:                               ; %Flow1116
                                        ;   in Loop: Header=BB1_3 Depth=1
	s_and_not1_saveexec_b32 s0, s4
	s_cbranch_execz .LBB1_92
; %bb.87:                               ; %.preheader268.preheader
                                        ;   in Loop: Header=BB1_3 Depth=1
	v_mov_b32_e32 v0, 0x310
	s_mov_b32 s2, 0
.LBB1_88:                               ; %.preheader268
                                        ;   Parent Loop BB1_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	scratch_load_b64 v[1:2], v0, off
	s_mov_b32 s3, exec_lo
	s_waitcnt vmcnt(0)
	v_and_b32_e32 v1, 1, v1
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_eq_u32_e32 1, v1
	s_cbranch_execz .LBB1_90
; %bb.89:                               ; %._crit_edge212.i
                                        ;   in Loop: Header=BB1_88 Depth=2
	s_add_i32 s4, s2, 16
	scratch_load_b32 v1, off, s4
	s_waitcnt vmcnt(0)
	v_add_nc_u32_e32 v3, -1, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v1, 31, v3
	v_lshrrev_b32_e32 v1, 26, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v4, v3, v1
	v_ashrrev_i32_e32 v1, 6, v4
	v_and_b32_e32 v4, 0xffffffc0, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshl_add_u32 v5, v1, 3, 0x2cf0
	v_sub_nc_u32_e32 v3, v3, v4
	scratch_load_b64 v[1:2], v5, off
	v_lshlrev_b64 v[3:4], v3, 1
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v2, v4, v2
	v_xor_b32_e32 v1, v3, v1
	scratch_store_b64 v5, v[1:2], off
.LBB1_90:                               ;   in Loop: Header=BB1_88 Depth=2
	s_or_b32 exec_lo, exec_lo, s3
	v_add_nc_u32_e32 v0, 24, v0
	s_add_i32 s2, s2, 4
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmpk_eq_i32 s2, 0x2fc
	s_cbranch_scc0 .LBB1_88
; %bb.91:                               ; %Flow1114
                                        ;   in Loop: Header=BB1_3 Depth=1
	v_mov_b32_e32 v78, 1
	v_mov_b32_e32 v79, 0
.LBB1_92:                               ; %Flow1117
                                        ;   in Loop: Header=BB1_3 Depth=1
	s_or_b32 exec_lo, exec_lo, s0
.LBB1_93:                               ; %Flow1125
                                        ;   in Loop: Header=BB1_3 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s1
	global_load_b64 v[0:1], v[88:89], off
	s_mov_b32 s86, exec_lo
	s_waitcnt vmcnt(0)
	v_add_co_u32 v0, vcc_lo, v0, v78
	v_add_co_ci_u32_e32 v1, vcc_lo, v1, v79, vcc_lo
	global_store_b64 v[88:89], v[0:1], off
	v_cmpx_lt_i64_e32 0, v[78:79]
	s_cbranch_execz .LBB1_385
; %bb.94:                               ; %.lr.ph
                                        ;   in Loop: Header=BB1_3 Depth=1
	v_xor_b32_e32 v80, 16, v85
	s_mov_b32 s87, 0
	s_mov_b32 s82, 0
.LBB1_95:                               ;   Parent Loop BB1_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB1_96 Depth 3
                                        ;         Child Loop BB1_97 Depth 4
                                        ;       Child Loop BB1_102 Depth 3
                                        ;       Child Loop BB1_104 Depth 3
                                        ;       Child Loop BB1_106 Depth 3
                                        ;       Child Loop BB1_108 Depth 3
                                        ;         Child Loop BB1_109 Depth 4
                                        ;       Child Loop BB1_112 Depth 3
                                        ;         Child Loop BB1_113 Depth 4
                                        ;       Child Loop BB1_118 Depth 3
                                        ;         Child Loop BB1_119 Depth 4
                                        ;       Child Loop BB1_122 Depth 3
                                        ;         Child Loop BB1_123 Depth 4
                                        ;       Child Loop BB1_126 Depth 3
                                        ;         Child Loop BB1_127 Depth 4
                                        ;         Child Loop BB1_129 Depth 4
                                        ;       Child Loop BB1_132 Depth 3
                                        ;       Child Loop BB1_134 Depth 3
                                        ;       Child Loop BB1_136 Depth 3
                                        ;         Child Loop BB1_137 Depth 4
                                        ;       Child Loop BB1_140 Depth 3
                                        ;         Child Loop BB1_141 Depth 4
                                        ;       Child Loop BB1_146 Depth 3
                                        ;         Child Loop BB1_147 Depth 4
                                        ;       Child Loop BB1_150 Depth 3
                                        ;         Child Loop BB1_151 Depth 4
                                        ;       Child Loop BB1_154 Depth 3
                                        ;         Child Loop BB1_155 Depth 4
                                        ;         Child Loop BB1_157 Depth 4
                                        ;       Child Loop BB1_160 Depth 3
                                        ;       Child Loop BB1_162 Depth 3
                                        ;       Child Loop BB1_164 Depth 3
                                        ;         Child Loop BB1_165 Depth 4
                                        ;       Child Loop BB1_168 Depth 3
                                        ;         Child Loop BB1_169 Depth 4
                                        ;       Child Loop BB1_174 Depth 3
                                        ;         Child Loop BB1_175 Depth 4
                                        ;       Child Loop BB1_178 Depth 3
                                        ;         Child Loop BB1_179 Depth 4
                                        ;       Child Loop BB1_182 Depth 3
                                        ;         Child Loop BB1_183 Depth 4
                                        ;         Child Loop BB1_185 Depth 4
                                        ;       Child Loop BB1_192 Depth 3
                                        ;       Child Loop BB1_200 Depth 3
                                        ;       Child Loop BB1_206 Depth 3
                                        ;       Child Loop BB1_215 Depth 3
                                        ;       Child Loop BB1_219 Depth 3
                                        ;       Child Loop BB1_227 Depth 3
                                        ;       Child Loop BB1_233 Depth 3
                                        ;       Child Loop BB1_242 Depth 3
                                        ;       Child Loop BB1_246 Depth 3
                                        ;       Child Loop BB1_254 Depth 3
                                        ;       Child Loop BB1_260 Depth 3
                                        ;       Child Loop BB1_269 Depth 3
                                        ;       Child Loop BB1_271 Depth 3
                                        ;         Child Loop BB1_274 Depth 4
                                        ;         Child Loop BB1_282 Depth 4
                                        ;         Child Loop BB1_288 Depth 4
                                        ;         Child Loop BB1_297 Depth 4
                                        ;         Child Loop BB1_301 Depth 4
                                        ;         Child Loop BB1_309 Depth 4
                                        ;         Child Loop BB1_315 Depth 4
                                        ;         Child Loop BB1_324 Depth 4
                                        ;         Child Loop BB1_329 Depth 4
                                        ;         Child Loop BB1_337 Depth 4
                                        ;         Child Loop BB1_343 Depth 4
                                        ;         Child Loop BB1_352 Depth 4
                                        ;       Child Loop BB1_358 Depth 3
                                        ;       Child Loop BB1_366 Depth 3
                                        ;       Child Loop BB1_372 Depth 3
                                        ;       Child Loop BB1_381 Depth 3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mul_i32 s0, s82, 24
	s_waitcnt lgkmcnt(0)
	v_dual_mov_b32 v6, s20 :: v_dual_mov_b32 v7, s21
	s_addk_i32 s0, 0x2cf0
	s_clause 0x1
	scratch_load_b128 v[0:3], off, s0
	scratch_load_b64 v[45:46], off, s0 offset:16
	v_dual_mov_b32 v4, v38 :: v_dual_mov_b32 v9, s23
	v_dual_mov_b32 v5, v38 :: v_dual_mov_b32 v8, s22
	v_dual_mov_b32 v28, s46 :: v_dual_mov_b32 v29, s47
	v_dual_mov_b32 v30, s48 :: v_dual_mov_b32 v31, s49
	v_dual_mov_b32 v39, s62 :: v_dual_mov_b32 v40, s63
	s_mov_b32 s71, s68
	v_dual_mov_b32 v10, s24 :: v_dual_mov_b32 v11, s25
	v_dual_mov_b32 v32, s50 :: v_dual_mov_b32 v33, s51
	v_dual_mov_b32 v34, s60 :: v_dual_mov_b32 v35, s61
	s_mov_b32 s69, s68
	s_mov_b32 s70, s68
	v_dual_mov_b32 v16, v38 :: v_dual_mov_b32 v21, s39
	v_dual_mov_b32 v17, v38 :: v_dual_mov_b32 v20, s38
	v_dual_mov_b32 v22, s40 :: v_dual_mov_b32 v23, s41
	v_dual_mov_b32 v24, s42 :: v_dual_mov_b32 v25, s43
	v_dual_mov_b32 v26, s44 :: v_dual_mov_b32 v27, s45
	v_dual_mov_b32 v99, s71 :: v_dual_mov_b32 v98, s70
	s_movk_i32 s0, 0x3fb0
	s_mov_b32 s3, 0
	v_dual_mov_b32 v97, s69 :: v_dual_mov_b32 v96, s68
	v_dual_mov_b32 v12, s26 :: v_dual_mov_b32 v13, s27
	v_dual_mov_b32 v14, s74 :: v_dual_mov_b32 v15, s75
	v_dual_mov_b32 v18, s36 :: v_dual_mov_b32 v19, s37
	s_clause 0x9
	scratch_store_b128 off, v[4:7], s0 offset:32
	scratch_store_b128 off, v[8:11], s0 offset:48
	scratch_store_b128 off, v[20:23], s0 offset:128
	scratch_store_b128 off, v[24:27], s0 offset:144
	scratch_store_b128 off, v[96:99], s0
	scratch_store_b128 off, v[96:99], s0 offset:16
	scratch_store_b128 off, v[12:15], s0 offset:64
	scratch_store_b128 off, v[96:99], s0 offset:80
	scratch_store_b128 off, v[96:99], s0 offset:96
	scratch_store_b128 off, v[16:19], s0 offset:112
	s_getpc_b64 s[4:5]
	s_add_u32 s4, s4, d_var_all@rel32@lo+4
	s_addc_u32 s5, s5, d_var_all@rel32@hi+12
	s_clause 0x2
	scratch_store_b128 off, v[28:31], s0 offset:160
	scratch_store_b128 off, v[32:35], s0 offset:176
	scratch_store_b64 off, v[39:40], s0 offset:192
	s_waitcnt vmcnt(1)
	v_dual_mov_b32 v87, v1 :: v_dual_mov_b32 v86, v0
	v_dual_mov_b32 v44, v3 :: v_dual_mov_b32 v43, v2
.LBB1_96:                               ; %.preheader263
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB1_97 Depth 4
	v_mov_b32_e32 v4, 0
	v_mov_b32_e32 v5, 0
	s_mov_b64 s[6:7], 0
	s_mov_b64 s[8:9], s[4:5]
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_mov_b32 v11, v5 :: v_dual_mov_b32 v10, v4
	v_dual_mov_b32 v9, v5 :: v_dual_mov_b32 v8, v4
	v_dual_mov_b32 v7, v5 :: v_dual_mov_b32 v6, v4
.LBB1_97:                               ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_96 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	global_load_b64 v[12:13], v38, s[8:9]
	s_cmp_eq_u32 s6, 1
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s6, 2
	v_cndmask_b32_e32 v14, v80, v1, vcc_lo
	v_cndmask_b32_e32 v15, v84, v0, vcc_lo
	s_cselect_b32 s0, -1, 0
	s_cmp_eq_u32 s6, 3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cndmask_b32_e64 v14, v14, v3, s0
	v_cndmask_b32_e64 v15, v15, v2, s0
	s_cselect_b32 s1, -1, 0
	s_cmp_eq_u32 s6, 0
	s_waitcnt vmcnt(1)
	v_cndmask_b32_e64 v14, v14, v46, s1
	v_cndmask_b32_e64 v15, v15, v45, s1
	s_cselect_b32 s2, -1, 0
	s_add_u32 s6, s6, 1
	s_addc_u32 s7, s7, 0
	s_add_u32 s8, s8, 8
	s_addc_u32 s9, s9, 0
	s_cmp_eq_u32 s6, 4
	s_waitcnt vmcnt(0)
	v_and_b32_e32 v12, v12, v15
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v10, v10, v12 :: v_dual_and_b32 v13, v13, v14
	v_cndmask_b32_e64 v5, v5, v13, s2
	v_cndmask_b32_e32 v11, v11, v13, vcc_lo
	v_cndmask_b32_e64 v4, v4, v12, s2
	v_cndmask_b32_e64 v9, v9, v13, s0
	v_cndmask_b32_e64 v8, v8, v12, s0
	v_cndmask_b32_e64 v7, v7, v13, s1
	v_cndmask_b32_e64 v6, v6, v12, s1
	s_cbranch_scc0 .LBB1_97
; %bb.98:                               ;   in Loop: Header=BB1_96 Depth=3
	v_xor_b32_e32 v4, v4, v10
	v_xor_b32_e32 v5, v5, v11
	s_mov_b32 s0, exec_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v4, v4, v8
	v_xor_b32_e32 v5, v5, v9
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v4, v4, v6
	v_xor_b32_e32 v5, v5, v7
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_bcnt_u32_b32 v4, v4, 0
	v_bcnt_u32_b32 v4, v5, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_and_b32_e32 v4, 1, v4
	v_cmpx_eq_u32_e32 1, v4
	s_cbranch_execz .LBB1_100
; %bb.99:                               ;   in Loop: Header=BB1_96 Depth=3
	s_lshr_b32 s1, s3, 6
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_4) | instid1(SALU_CYCLE_1)
	s_add_i32 s2, s1, 5
	s_cmpk_gt_u32 s3, 0x13f
	s_cselect_b32 s1, s2, s1
	s_lshl_b64 s[6:7], 1, s3
	s_lshl_b32 s1, s1, 3
	s_addk_i32 s1, 0x3fb0
	scratch_load_b64 v[4:5], off, s1
	s_waitcnt vmcnt(0)
	v_xor_b32_e32 v5, s7, v5
	v_xor_b32_e32 v4, s6, v4
	scratch_store_b64 off, v[4:5], s1
.LBB1_100:                              ;   in Loop: Header=BB1_96 Depth=3
	s_or_b32 exec_lo, exec_lo, s0
	s_add_i32 s3, s3, 1
	s_add_u32 s4, s4, 32
	s_addc_u32 s5, s5, 0
	s_cmpk_eq_i32 s3, 0x280
	s_cbranch_scc0 .LBB1_96
; %bb.101:                              ;   in Loop: Header=BB1_95 Depth=2
	s_mov_b32 s0, 0
.LBB1_102:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_3) | instid1(SALU_CYCLE_1)
	s_add_i32 s1, s0, 0x3fb0
	scratch_load_b64 v[0:1], off, s1
	s_add_i32 s1, s0, 0x4080
	s_add_i32 s0, s0, 8
	s_cmpk_lg_i32 s0, 0xc8
	s_waitcnt vmcnt(0)
	scratch_store_b64 off, v[0:1], s1
	s_cbranch_scc1 .LBB1_102
; %bb.103:                              ; %.preheader267.preheader
                                        ;   in Loop: Header=BB1_95 Depth=2
	v_mov_b32_e32 v0, 0
	v_mov_b32_e32 v1, 0
	s_mov_b32 s2, 0
	s_mov_b32 s3, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_mov_b32 v3, v1 :: v_dual_mov_b32 v2, v0
	v_dual_mov_b32 v5, v1 :: v_dual_mov_b32 v4, v0
	v_dual_mov_b32 v7, v1 :: v_dual_mov_b32 v6, v0
	v_dual_mov_b32 v9, v1 :: v_dual_mov_b32 v8, v0
.LBB1_104:                              ; %.preheader267
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	v_readfirstlane_b32 s0, v93
	s_add_i32 s1, s2, 0x3fb0
	scratch_load_b64 v[10:11], off, s1
	s_add_i32 s0, s0, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_i32 s1, s0, 40
	s_add_i32 s4, s0, 0x50
	s_add_i32 s5, s0, 0x78
	s_addk_i32 s0, 0xa0
	s_clause 0x3
	scratch_load_b64 v[12:13], off, s1
	scratch_load_b64 v[14:15], off, s4
	scratch_load_b64 v[16:17], off, s5
	scratch_load_b64 v[18:19], off, s0
	s_cmp_eq_u32 s3, 4
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s3, 3
	s_cselect_b32 s0, -1, 0
	s_cmp_eq_u32 s3, 2
	s_cselect_b32 s1, -1, 0
	s_cmp_eq_u32 s3, 1
	s_waitcnt vmcnt(3)
	v_xor_b32_e32 v11, v13, v11
	v_xor_b32_e32 v10, v12, v10
	s_waitcnt vmcnt(2)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v11, v11, v15
	v_xor_b32_e32 v10, v10, v14
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v11, v11, v17
	v_xor_b32_e32 v10, v10, v16
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v11, v11, v19
	v_xor_b32_e32 v10, v10, v18
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_cndmask_b32 v9, v9, v11 :: v_dual_cndmask_b32 v8, v8, v10
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s3, 0
	v_dual_cndmask_b32 v3, v3, v11 :: v_dual_cndmask_b32 v2, v2, v10
	s_cselect_b32 vcc_lo, -1, 0
	v_cndmask_b32_e64 v7, v7, v11, s0
	v_cndmask_b32_e64 v6, v6, v10, s0
	v_cndmask_b32_e64 v5, v5, v11, s1
	v_cndmask_b32_e64 v4, v4, v10, s1
	v_dual_cndmask_b32 v1, v1, v11 :: v_dual_cndmask_b32 v0, v0, v10
	s_add_i32 s3, s3, 1
	s_add_i32 s2, s2, 8
	s_cmp_lg_u32 s3, 5
	s_cbranch_scc1 .LBB1_104
; %bb.105:                              ; %.preheader25.i.i.preheader
                                        ;   in Loop: Header=BB1_95 Depth=2
	v_mov_b32_e32 v10, 0
	v_mov_b32_e32 v11, 0
	s_mov_b32 s3, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_mov_b32 v13, v11 :: v_dual_mov_b32 v12, v10
	v_dual_mov_b32 v15, v11 :: v_dual_mov_b32 v14, v10
	v_dual_mov_b32 v17, v11 :: v_dual_mov_b32 v16, v10
	v_dual_mov_b32 v19, v11 :: v_dual_mov_b32 v18, v10
.LBB1_106:                              ; %.preheader25.i.i
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_add_i32 s4, s3, 1
	s_cmp_lg_u32 s3, 4
	s_cselect_b32 s1, s4, 0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s1, 1
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s1, 2
	v_dual_cndmask_b32 v20, v1, v3 :: v_dual_cndmask_b32 v21, v0, v2
	s_cselect_b32 s0, -1, 0
	s_cmp_eq_u32 s1, 3
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s1, 4
	v_cndmask_b32_e64 v20, v20, v5, s0
	v_cndmask_b32_e64 v21, v21, v4, s0
	s_cselect_b32 s0, -1, 0
	s_add_i32 s1, s3, -1
	s_cmp_lg_u32 s3, 0
	v_cndmask_b32_e32 v20, v20, v7, vcc_lo
	s_cselect_b32 s1, s1, 4
	v_cndmask_b32_e32 v22, v21, v6, vcc_lo
	s_cmp_eq_u32 s1, 1
	s_cselect_b32 vcc_lo, -1, 0
	v_cndmask_b32_e64 v21, v20, v9, s0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v20, v22, v8, s0
	v_dual_cndmask_b32 v22, v1, v3 :: v_dual_cndmask_b32 v23, v0, v2
	s_cmp_eq_u32 s1, 2
	v_lshrrev_b32_e32 v24, 31, v21
	s_cselect_b32 s0, -1, 0
	s_cmp_eq_u32 s1, 3
	v_cndmask_b32_e64 v22, v22, v5, s0
	v_cndmask_b32_e64 v23, v23, v4, s0
	s_cselect_b32 vcc_lo, -1, 0
	v_lshlrev_b64 v[20:21], 1, v[20:21]
	s_cmp_eq_u32 s1, 4
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_dual_cndmask_b32 v22, v22, v7 :: v_dual_cndmask_b32 v23, v23, v6
	s_cselect_b32 s0, -1, 0
	s_cmp_eq_u32 s3, 4
	v_or_b32_e32 v20, v20, v24
	s_delay_alu instid0(VALU_DEP_2)
	v_cndmask_b32_e64 v22, v22, v9, s0
	v_cndmask_b32_e64 v23, v23, v8, s0
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s3, 3
	s_cselect_b32 s0, -1, 0
	s_cmp_eq_u32 s3, 2
	v_xor_b32_e32 v21, v21, v22
	v_xor_b32_e32 v20, v20, v23
	s_cselect_b32 s1, -1, 0
	s_cmp_eq_u32 s3, 1
	s_cselect_b32 s2, -1, 0
	s_cmp_eq_u32 s3, 0
	v_dual_cndmask_b32 v19, v19, v21 :: v_dual_cndmask_b32 v18, v18, v20
	s_cselect_b32 vcc_lo, -1, 0
	v_cndmask_b32_e64 v17, v17, v21, s0
	v_cndmask_b32_e32 v11, v11, v21, vcc_lo
	v_cndmask_b32_e64 v15, v15, v21, s1
	v_cndmask_b32_e64 v13, v13, v21, s2
	v_cndmask_b32_e64 v16, v16, v20, s0
	v_cndmask_b32_e64 v14, v14, v20, s1
	v_cndmask_b32_e64 v12, v12, v20, s2
	v_cndmask_b32_e32 v10, v10, v20, vcc_lo
	s_cmp_lg_u32 s4, 5
	s_mov_b32 s3, s4
	s_cbranch_scc1 .LBB1_106
; %bb.107:                              ; %.preheader.i.i103.preheader
                                        ;   in Loop: Header=BB1_95 Depth=2
	v_mov_b32_e32 v0, 0x3fb0
	s_mov_b32 s0, 0
.LBB1_108:                              ; %.preheader.i.i103
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB1_109 Depth 4
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s0, 1
	s_mov_b32 s1, 0
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s0, 2
	v_dual_cndmask_b32 v1, v11, v13 :: v_dual_cndmask_b32 v2, v10, v12
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s0, 3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v1, v1, v15 :: v_dual_cndmask_b32 v2, v2, v14
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s0, 4
	v_dual_cndmask_b32 v1, v1, v17 :: v_dual_cndmask_b32 v2, v2, v16
	s_cselect_b32 vcc_lo, -1, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_cndmask_b32 v1, v1, v19 :: v_dual_cndmask_b32 v2, v2, v18
.LBB1_109:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_108 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	v_add_nc_u32_e32 v5, s1, v0
	s_add_i32 s1, s1, 40
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmpk_lg_i32 s1, 0xc8
	scratch_load_b64 v[3:4], v5, off
	s_waitcnt vmcnt(0)
	v_xor_b32_e32 v4, v4, v1
	v_xor_b32_e32 v3, v3, v2
	scratch_store_b64 v5, v[3:4], off
	s_cbranch_scc1 .LBB1_109
; %bb.110:                              ;   in Loop: Header=BB1_108 Depth=3
	v_add_nc_u32_e32 v0, 8, v0
	s_add_i32 s0, s0, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_lg_u32 s0, 5
	s_cbranch_scc1 .LBB1_108
; %bb.111:                              ; %.preheader.i5.i.preheader
                                        ;   in Loop: Header=BB1_95 Depth=2
	v_mov_b32_e32 v2, 0x3fb0
	s_mov_b32 s4, 0
	s_getpc_b64 s[0:1]
	s_add_u32 s0, s0, const_KeccakRhoOffsets@rel32@lo+4
	s_addc_u32 s1, s1, const_KeccakRhoOffsets@rel32@hi+12
.LBB1_112:                              ; %.preheader.i5.i
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB1_113 Depth 4
	v_mov_b32_e32 v3, v2
	s_mov_b64 s[2:3], 0
.LBB1_113:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_112 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	scratch_load_b64 v[0:1], v3, off
	s_add_u32 s6, s0, s2
	s_addc_u32 s7, s1, s3
	s_load_b32 s5, s[6:7], 0x0
	s_waitcnt lgkmcnt(0)
	s_cmp_eq_u32 s5, 0
	s_cbranch_scc1 .LBB1_115
; %bb.114:                              ;   in Loop: Header=BB1_113 Depth=4
	s_sub_i32 s6, 64, s5
	s_waitcnt vmcnt(0)
	v_lshlrev_b64 v[4:5], s5, v[0:1]
	v_lshrrev_b64 v[0:1], s6, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v1, v1, v5
	v_xor_b32_e32 v0, v0, v4
.LBB1_115:                              ;   in Loop: Header=BB1_113 Depth=4
	s_waitcnt vmcnt(0)
	scratch_store_b64 v3, v[0:1], off
	v_add_nc_u32_e32 v3, 40, v3
	s_add_u32 s2, s2, 20
	s_addc_u32 s3, s3, 0
	s_cmpk_lg_i32 s2, 0x64
	s_cbranch_scc1 .LBB1_113
; %bb.116:                              ;   in Loop: Header=BB1_112 Depth=3
	s_add_i32 s4, s4, 1
	v_add_nc_u32_e32 v2, 8, v2
	s_add_u32 s0, s0, 4
	s_addc_u32 s1, s1, 0
	s_cmp_lg_u32 s4, 5
	s_cbranch_scc1 .LBB1_112
; %bb.117:                              ; %_ZL10rho_DevicePy.exit.i
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_mov_b32 s0, 0
	s_mov_b32 s1, 0
.LBB1_118:                              ; %.preheader22.i.i
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB1_119 Depth 4
	v_add_nc_u32_e64 v0, 0x3fb0, s0
	v_add_nc_u32_e64 v1, s0, 16
	s_mov_b32 s2, 0
.LBB1_119:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_118 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	s_delay_alu instid0(VALU_DEP_2) | instid1(SALU_CYCLE_1)
	v_add_nc_u32_e32 v2, s2, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_add_nc_u32_e32 v4, s2, v1
	s_add_i32 s2, s2, 40
	s_cmpk_lg_i32 s2, 0xc8
	scratch_load_b64 v[2:3], v2, off
	s_waitcnt vmcnt(0)
	scratch_store_b64 v4, v[2:3], off
	s_cbranch_scc1 .LBB1_119
; %bb.120:                              ;   in Loop: Header=BB1_118 Depth=3
	s_add_i32 s1, s1, 1
	s_add_i32 s0, s0, 8
	s_cmp_lg_u32 s1, 5
	s_cbranch_scc1 .LBB1_118
; %bb.121:                              ; %.preheader.i8.i.preheader
                                        ;   in Loop: Header=BB1_95 Depth=2
	v_readfirstlane_b32 s1, v93
	v_mov_b32_e32 v0, 16
	s_mov_b32 s0, 0
	s_mov_b32 s2, 0
	s_delay_alu instid0(VALU_DEP_2)
	s_mov_b32 s1, s1
.LBB1_122:                              ; %.preheader.i8.i
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB1_123 Depth 4
	s_mov_b32 s3, 0
	s_mov_b32 s4, s0
	s_mov_b32 s5, s1
.LBB1_123:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_122 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	v_add_nc_u32_e32 v1, s3, v0
	s_mul_hi_u32 s6, s4, 0xcccccccd
	s_add_i32 s3, s3, 40
	s_lshr_b32 s6, s6, 2
	s_add_i32 s4, s4, 3
	scratch_load_b64 v[1:2], v1, off
	s_mulk_i32 s6, 0xff38
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_i32 s6, s5, s6
	s_addk_i32 s5, 0x80
	s_cmpk_lg_i32 s3, 0xc8
	s_waitcnt vmcnt(0)
	scratch_store_b64 off, v[1:2], s6
	s_cbranch_scc1 .LBB1_123
; %bb.124:                              ;   in Loop: Header=BB1_122 Depth=3
	v_add_nc_u32_e32 v0, 8, v0
	s_add_i32 s2, s2, 1
	s_addk_i32 s1, 0x50
	s_add_i32 s0, s0, 2
	s_cmp_lg_u32 s2, 5
	s_cbranch_scc1 .LBB1_122
; %bb.125:                              ; %_ZL2piPy.exit.i
                                        ;   in Loop: Header=BB1_95 Depth=2
	v_readfirstlane_b32 s0, v93
	s_mov_b32 s3, 0
	s_delay_alu instid0(VALU_DEP_1)
	s_mov_b32 s2, s0
.LBB1_126:                              ; %.preheader20.i.i
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB1_127 Depth 4
                                        ;         Child Loop BB1_129 Depth 4
	s_mul_i32 s0, s3, 40
	s_mov_b32 s4, s2
	v_add_nc_u32_e64 v0, 0x3fb0, s0
	s_mov_b32 s5, 0
.LBB1_127:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_126 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	s_add_i32 s6, s5, 1
	s_cmp_lg_u32 s5, 4
	s_cselect_b32 s0, s6, 0
	s_lshl_b32 s0, s0, 3
	s_cmp_gt_u32 s5, 2
	v_add_nc_u32_e32 v1, s0, v0
	s_cselect_b32 s0, 0xffffffe8, 16
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_i32 s0, s4, s0
	s_cmp_eq_u32 s5, 4
	scratch_load_b64 v[1:2], v1, off
	s_clause 0x1
	scratch_load_b64 v[3:4], off, s0
	scratch_load_b64 v[5:6], off, s4
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s5, 3
	s_cselect_b32 s0, -1, 0
	s_cmp_eq_u32 s5, 2
	s_cselect_b32 s1, -1, 0
	s_cmp_eq_u32 s5, 1
	s_waitcnt vmcnt(2)
	v_not_b32_e32 v2, v2
	v_not_b32_e32 v1, v1
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_and_b32_e32 v2, v4, v2
	v_and_b32_e32 v1, v3, v1
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v2, v2, v6
	v_xor_b32_e32 v1, v1, v5
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_cndmask_b32 v77, v77, v2 :: v_dual_cndmask_b32 v76, v76, v1
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s5, 0
	v_dual_cndmask_b32 v71, v71, v2 :: v_dual_cndmask_b32 v70, v70, v1
	s_cselect_b32 vcc_lo, -1, 0
	v_cndmask_b32_e64 v75, v75, v2, s0
	v_cndmask_b32_e64 v74, v74, v1, s0
	v_cndmask_b32_e64 v73, v73, v2, s1
	v_cndmask_b32_e64 v72, v72, v1, s1
	v_dual_cndmask_b32 v69, v69, v2 :: v_dual_cndmask_b32 v68, v68, v1
	s_add_i32 s4, s4, 8
	s_cmp_lg_u32 s6, 5
	s_mov_b32 s5, s6
	s_cbranch_scc1 .LBB1_127
; %bb.128:                              ; %.preheader.i11.i.preheader
                                        ;   in Loop: Header=BB1_126 Depth=3
	s_mov_b32 s0, 0
	s_mov_b32 s1, s2
.LBB1_129:                              ; %.preheader.i11.i
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_126 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	s_cmp_eq_u32 s0, 1
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s0, 2
	v_dual_cndmask_b32 v0, v69, v71 :: v_dual_cndmask_b32 v1, v68, v70
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s0, 3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v0, v0, v73 :: v_dual_cndmask_b32 v1, v1, v72
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s0, 4
	v_cndmask_b32_e32 v0, v0, v75, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v2, v1, v74, vcc_lo
	s_cselect_b32 vcc_lo, -1, 0
	s_add_i32 s0, s0, 1
	v_dual_cndmask_b32 v1, v0, v77 :: v_dual_cndmask_b32 v0, v2, v76
	scratch_store_b64 off, v[0:1], s1
	s_add_i32 s1, s1, 8
	s_cmp_lg_u32 s0, 5
	s_cbranch_scc1 .LBB1_129
; %bb.130:                              ;   in Loop: Header=BB1_126 Depth=3
	s_add_i32 s3, s3, 1
	s_add_i32 s2, s2, 40
	s_cmp_lg_u32 s3, 5
	s_cbranch_scc1 .LBB1_126
; %bb.131:                              ; %_Z23KeccakP1600Round_DevicePyj.exit
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_movk_i32 s0, 0x3fb0
	v_mov_b32_e32 v0, 0
	scratch_load_b64 v[6:7], off, s0
	v_mov_b32_e32 v1, 0
	s_mov_b32 s2, 0
	s_mov_b32 s3, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_mov_b32 v3, v1 :: v_dual_mov_b32 v2, v0
	v_dual_mov_b32 v5, v1 :: v_dual_mov_b32 v4, v0
	v_dual_mov_b32 v9, v1 :: v_dual_mov_b32 v8, v0
	s_waitcnt vmcnt(0)
	v_xor_b32_e32 v11, s65, v7
	v_xor_b32_e32 v10, s64, v6
	v_dual_mov_b32 v7, v1 :: v_dual_mov_b32 v6, v0
	scratch_store_b64 off, v[10:11], s0
.LBB1_132:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	v_readfirstlane_b32 s0, v93
	s_add_i32 s1, s2, 0x3fb0
	scratch_load_b64 v[10:11], off, s1
	s_add_i32 s0, s0, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_i32 s1, s0, 40
	s_add_i32 s4, s0, 0x50
	s_add_i32 s5, s0, 0x78
	s_addk_i32 s0, 0xa0
	s_clause 0x3
	scratch_load_b64 v[12:13], off, s1
	scratch_load_b64 v[14:15], off, s4
	scratch_load_b64 v[16:17], off, s5
	scratch_load_b64 v[18:19], off, s0
	s_cmp_eq_u32 s3, 4
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s3, 3
	s_cselect_b32 s0, -1, 0
	s_cmp_eq_u32 s3, 2
	s_cselect_b32 s1, -1, 0
	s_cmp_eq_u32 s3, 1
	s_waitcnt vmcnt(3)
	v_xor_b32_e32 v11, v13, v11
	v_xor_b32_e32 v10, v12, v10
	s_waitcnt vmcnt(2)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v11, v11, v15
	v_xor_b32_e32 v10, v10, v14
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v11, v11, v17
	v_xor_b32_e32 v10, v10, v16
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v11, v11, v19
	v_xor_b32_e32 v10, v10, v18
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_cndmask_b32 v9, v9, v11 :: v_dual_cndmask_b32 v8, v8, v10
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s3, 0
	v_dual_cndmask_b32 v3, v3, v11 :: v_dual_cndmask_b32 v2, v2, v10
	s_cselect_b32 vcc_lo, -1, 0
	v_cndmask_b32_e64 v7, v7, v11, s0
	v_cndmask_b32_e64 v6, v6, v10, s0
	v_cndmask_b32_e64 v5, v5, v11, s1
	v_cndmask_b32_e64 v4, v4, v10, s1
	v_dual_cndmask_b32 v1, v1, v11 :: v_dual_cndmask_b32 v0, v0, v10
	s_add_i32 s3, s3, 1
	s_add_i32 s2, s2, 8
	s_cmp_lg_u32 s3, 5
	s_cbranch_scc1 .LBB1_132
; %bb.133:                              ; %.preheader25.i.i114.preheader
                                        ;   in Loop: Header=BB1_95 Depth=2
	v_mov_b32_e32 v10, 0
	v_mov_b32_e32 v11, 0
	s_mov_b32 s3, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_mov_b32 v13, v11 :: v_dual_mov_b32 v12, v10
	v_dual_mov_b32 v15, v11 :: v_dual_mov_b32 v14, v10
	v_dual_mov_b32 v17, v11 :: v_dual_mov_b32 v16, v10
	v_dual_mov_b32 v19, v11 :: v_dual_mov_b32 v18, v10
.LBB1_134:                              ; %.preheader25.i.i114
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_add_i32 s4, s3, 1
	s_cmp_lg_u32 s3, 4
	s_cselect_b32 s1, s4, 0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s1, 1
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s1, 2
	v_dual_cndmask_b32 v20, v1, v3 :: v_dual_cndmask_b32 v21, v0, v2
	s_cselect_b32 s0, -1, 0
	s_cmp_eq_u32 s1, 3
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s1, 4
	v_cndmask_b32_e64 v20, v20, v5, s0
	v_cndmask_b32_e64 v21, v21, v4, s0
	s_cselect_b32 s0, -1, 0
	s_add_i32 s1, s3, -1
	s_cmp_lg_u32 s3, 0
	v_cndmask_b32_e32 v20, v20, v7, vcc_lo
	s_cselect_b32 s1, s1, 4
	v_cndmask_b32_e32 v22, v21, v6, vcc_lo
	s_cmp_eq_u32 s1, 1
	s_cselect_b32 vcc_lo, -1, 0
	v_cndmask_b32_e64 v21, v20, v9, s0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v20, v22, v8, s0
	v_dual_cndmask_b32 v22, v1, v3 :: v_dual_cndmask_b32 v23, v0, v2
	s_cmp_eq_u32 s1, 2
	v_lshrrev_b32_e32 v24, 31, v21
	s_cselect_b32 s0, -1, 0
	s_cmp_eq_u32 s1, 3
	v_cndmask_b32_e64 v22, v22, v5, s0
	v_cndmask_b32_e64 v23, v23, v4, s0
	s_cselect_b32 vcc_lo, -1, 0
	v_lshlrev_b64 v[20:21], 1, v[20:21]
	s_cmp_eq_u32 s1, 4
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_dual_cndmask_b32 v22, v22, v7 :: v_dual_cndmask_b32 v23, v23, v6
	s_cselect_b32 s0, -1, 0
	s_cmp_eq_u32 s3, 4
	v_or_b32_e32 v20, v20, v24
	s_delay_alu instid0(VALU_DEP_2)
	v_cndmask_b32_e64 v22, v22, v9, s0
	v_cndmask_b32_e64 v23, v23, v8, s0
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s3, 3
	s_cselect_b32 s0, -1, 0
	s_cmp_eq_u32 s3, 2
	v_xor_b32_e32 v21, v21, v22
	v_xor_b32_e32 v20, v20, v23
	s_cselect_b32 s1, -1, 0
	s_cmp_eq_u32 s3, 1
	s_cselect_b32 s2, -1, 0
	s_cmp_eq_u32 s3, 0
	v_dual_cndmask_b32 v19, v19, v21 :: v_dual_cndmask_b32 v18, v18, v20
	s_cselect_b32 vcc_lo, -1, 0
	v_cndmask_b32_e64 v17, v17, v21, s0
	v_cndmask_b32_e32 v11, v11, v21, vcc_lo
	v_cndmask_b32_e64 v15, v15, v21, s1
	v_cndmask_b32_e64 v13, v13, v21, s2
	v_cndmask_b32_e64 v16, v16, v20, s0
	v_cndmask_b32_e64 v14, v14, v20, s1
	v_cndmask_b32_e64 v12, v12, v20, s2
	v_cndmask_b32_e32 v10, v10, v20, vcc_lo
	s_cmp_lg_u32 s4, 5
	s_mov_b32 s3, s4
	s_cbranch_scc1 .LBB1_134
; %bb.135:                              ; %.preheader.i.i118.preheader
                                        ;   in Loop: Header=BB1_95 Depth=2
	v_mov_b32_e32 v0, 0x3fb0
	s_mov_b32 s0, 0
.LBB1_136:                              ; %.preheader.i.i118
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB1_137 Depth 4
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s0, 1
	s_mov_b32 s1, 0
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s0, 2
	v_dual_cndmask_b32 v1, v11, v13 :: v_dual_cndmask_b32 v2, v10, v12
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s0, 3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v1, v1, v15 :: v_dual_cndmask_b32 v2, v2, v14
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s0, 4
	v_dual_cndmask_b32 v1, v1, v17 :: v_dual_cndmask_b32 v2, v2, v16
	s_cselect_b32 vcc_lo, -1, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_cndmask_b32 v1, v1, v19 :: v_dual_cndmask_b32 v2, v2, v18
.LBB1_137:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_136 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	v_add_nc_u32_e32 v5, s1, v0
	s_add_i32 s1, s1, 40
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmpk_lg_i32 s1, 0xc8
	scratch_load_b64 v[3:4], v5, off
	s_waitcnt vmcnt(0)
	v_xor_b32_e32 v4, v4, v1
	v_xor_b32_e32 v3, v3, v2
	scratch_store_b64 v5, v[3:4], off
	s_cbranch_scc1 .LBB1_137
; %bb.138:                              ;   in Loop: Header=BB1_136 Depth=3
	v_add_nc_u32_e32 v0, 8, v0
	s_add_i32 s0, s0, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_lg_u32 s0, 5
	s_cbranch_scc1 .LBB1_136
; %bb.139:                              ; %.preheader.i5.i124.preheader
                                        ;   in Loop: Header=BB1_95 Depth=2
	v_mov_b32_e32 v2, 0x3fb0
	s_mov_b32 s4, 0
	s_getpc_b64 s[0:1]
	s_add_u32 s0, s0, const_KeccakRhoOffsets@rel32@lo+4
	s_addc_u32 s1, s1, const_KeccakRhoOffsets@rel32@hi+12
.LBB1_140:                              ; %.preheader.i5.i124
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB1_141 Depth 4
	v_mov_b32_e32 v3, v2
	s_mov_b64 s[2:3], 0
.LBB1_141:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_140 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	scratch_load_b64 v[0:1], v3, off
	s_add_u32 s6, s0, s2
	s_addc_u32 s7, s1, s3
	s_load_b32 s5, s[6:7], 0x0
	s_waitcnt lgkmcnt(0)
	s_cmp_eq_u32 s5, 0
	s_cbranch_scc1 .LBB1_143
; %bb.142:                              ;   in Loop: Header=BB1_141 Depth=4
	s_sub_i32 s6, 64, s5
	s_waitcnt vmcnt(0)
	v_lshlrev_b64 v[4:5], s5, v[0:1]
	v_lshrrev_b64 v[0:1], s6, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v1, v1, v5
	v_xor_b32_e32 v0, v0, v4
.LBB1_143:                              ;   in Loop: Header=BB1_141 Depth=4
	s_waitcnt vmcnt(0)
	scratch_store_b64 v3, v[0:1], off
	v_add_nc_u32_e32 v3, 40, v3
	s_add_u32 s2, s2, 20
	s_addc_u32 s3, s3, 0
	s_cmpk_lg_i32 s2, 0x64
	s_cbranch_scc1 .LBB1_141
; %bb.144:                              ;   in Loop: Header=BB1_140 Depth=3
	s_add_i32 s4, s4, 1
	v_add_nc_u32_e32 v2, 8, v2
	s_add_u32 s0, s0, 4
	s_addc_u32 s1, s1, 0
	s_cmp_lg_u32 s4, 5
	s_cbranch_scc1 .LBB1_140
; %bb.145:                              ; %_ZL10rho_DevicePy.exit.i130
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_mov_b32 s0, 0
	s_mov_b32 s1, 0
.LBB1_146:                              ; %.preheader22.i.i131
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB1_147 Depth 4
	v_add_nc_u32_e64 v0, 0x3fb0, s0
	v_add_nc_u32_e64 v1, s0, 16
	s_mov_b32 s2, 0
.LBB1_147:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_146 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	s_delay_alu instid0(VALU_DEP_2) | instid1(SALU_CYCLE_1)
	v_add_nc_u32_e32 v2, s2, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_add_nc_u32_e32 v4, s2, v1
	s_add_i32 s2, s2, 40
	s_cmpk_lg_i32 s2, 0xc8
	scratch_load_b64 v[2:3], v2, off
	s_waitcnt vmcnt(0)
	scratch_store_b64 v4, v[2:3], off
	s_cbranch_scc1 .LBB1_147
; %bb.148:                              ;   in Loop: Header=BB1_146 Depth=3
	s_add_i32 s1, s1, 1
	s_add_i32 s0, s0, 8
	s_cmp_lg_u32 s1, 5
	s_cbranch_scc1 .LBB1_146
; %bb.149:                              ; %.preheader.i8.i136.preheader
                                        ;   in Loop: Header=BB1_95 Depth=2
	v_readfirstlane_b32 s1, v93
	v_mov_b32_e32 v0, 16
	s_mov_b32 s0, 0
	s_mov_b32 s2, 0
	s_delay_alu instid0(VALU_DEP_2)
	s_mov_b32 s1, s1
.LBB1_150:                              ; %.preheader.i8.i136
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB1_151 Depth 4
	s_mov_b32 s3, 0
	s_mov_b32 s4, s0
	s_mov_b32 s5, s1
.LBB1_151:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_150 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	v_add_nc_u32_e32 v1, s3, v0
	s_mul_hi_u32 s6, s4, 0xcccccccd
	s_add_i32 s3, s3, 40
	s_lshr_b32 s6, s6, 2
	s_add_i32 s4, s4, 3
	scratch_load_b64 v[1:2], v1, off
	s_mulk_i32 s6, 0xff38
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_i32 s6, s5, s6
	s_addk_i32 s5, 0x80
	s_cmpk_lg_i32 s3, 0xc8
	s_waitcnt vmcnt(0)
	scratch_store_b64 off, v[1:2], s6
	s_cbranch_scc1 .LBB1_151
; %bb.152:                              ;   in Loop: Header=BB1_150 Depth=3
	v_add_nc_u32_e32 v0, 8, v0
	s_add_i32 s2, s2, 1
	s_addk_i32 s1, 0x50
	s_add_i32 s0, s0, 2
	s_cmp_lg_u32 s2, 5
	s_cbranch_scc1 .LBB1_150
; %bb.153:                              ; %_ZL2piPy.exit.i141
                                        ;   in Loop: Header=BB1_95 Depth=2
	v_readfirstlane_b32 s0, v93
	s_mov_b32 s3, 0
	s_delay_alu instid0(VALU_DEP_1)
	s_mov_b32 s2, s0
.LBB1_154:                              ; %.preheader20.i.i142
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB1_155 Depth 4
                                        ;         Child Loop BB1_157 Depth 4
	s_mul_i32 s0, s3, 40
	s_mov_b32 s4, s2
	v_add_nc_u32_e64 v0, 0x3fb0, s0
	s_mov_b32 s5, 0
.LBB1_155:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_154 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	s_add_i32 s6, s5, 1
	s_cmp_lg_u32 s5, 4
	s_cselect_b32 s0, s6, 0
	s_lshl_b32 s0, s0, 3
	s_cmp_gt_u32 s5, 2
	v_add_nc_u32_e32 v1, s0, v0
	s_cselect_b32 s0, 0xffffffe8, 16
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_i32 s0, s4, s0
	s_cmp_eq_u32 s5, 4
	scratch_load_b64 v[1:2], v1, off
	s_clause 0x1
	scratch_load_b64 v[3:4], off, s0
	scratch_load_b64 v[5:6], off, s4
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s5, 3
	s_cselect_b32 s0, -1, 0
	s_cmp_eq_u32 s5, 2
	s_cselect_b32 s1, -1, 0
	s_cmp_eq_u32 s5, 1
	s_waitcnt vmcnt(2)
	v_not_b32_e32 v2, v2
	v_not_b32_e32 v1, v1
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_and_b32_e32 v2, v4, v2
	v_and_b32_e32 v1, v3, v1
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v2, v2, v6
	v_xor_b32_e32 v1, v1, v5
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_cndmask_b32 v67, v67, v2 :: v_dual_cndmask_b32 v66, v66, v1
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s5, 0
	v_dual_cndmask_b32 v61, v61, v2 :: v_dual_cndmask_b32 v60, v60, v1
	s_cselect_b32 vcc_lo, -1, 0
	v_cndmask_b32_e64 v65, v65, v2, s0
	v_cndmask_b32_e64 v64, v64, v1, s0
	v_cndmask_b32_e64 v63, v63, v2, s1
	v_cndmask_b32_e64 v62, v62, v1, s1
	v_dual_cndmask_b32 v59, v59, v2 :: v_dual_cndmask_b32 v58, v58, v1
	s_add_i32 s4, s4, 8
	s_cmp_lg_u32 s6, 5
	s_mov_b32 s5, s6
	s_cbranch_scc1 .LBB1_155
; %bb.156:                              ; %.preheader.i11.i147.preheader
                                        ;   in Loop: Header=BB1_154 Depth=3
	s_mov_b32 s0, 0
	s_mov_b32 s1, s2
.LBB1_157:                              ; %.preheader.i11.i147
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_154 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	s_cmp_eq_u32 s0, 1
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s0, 2
	v_dual_cndmask_b32 v0, v59, v61 :: v_dual_cndmask_b32 v1, v58, v60
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s0, 3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v0, v0, v63 :: v_dual_cndmask_b32 v1, v1, v62
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s0, 4
	v_cndmask_b32_e32 v0, v0, v65, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v2, v1, v64, vcc_lo
	s_cselect_b32 vcc_lo, -1, 0
	s_add_i32 s0, s0, 1
	v_dual_cndmask_b32 v1, v0, v67 :: v_dual_cndmask_b32 v0, v2, v66
	scratch_store_b64 off, v[0:1], s1
	s_add_i32 s1, s1, 8
	s_cmp_lg_u32 s0, 5
	s_cbranch_scc1 .LBB1_157
; %bb.158:                              ;   in Loop: Header=BB1_154 Depth=3
	s_add_i32 s3, s3, 1
	s_add_i32 s2, s2, 40
	s_cmp_lg_u32 s3, 5
	s_cbranch_scc1 .LBB1_154
; %bb.159:                              ; %_Z23KeccakP1600Round_DevicePyj.exit151
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_movk_i32 s0, 0x3fb0
	v_mov_b32_e32 v0, 0
	scratch_load_b64 v[6:7], off, s0
	v_mov_b32_e32 v1, 0
	s_mov_b32 s2, 0
	s_mov_b32 s3, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_mov_b32 v3, v1 :: v_dual_mov_b32 v2, v0
	v_dual_mov_b32 v5, v1 :: v_dual_mov_b32 v4, v0
	v_dual_mov_b32 v9, v1 :: v_dual_mov_b32 v8, v0
	s_waitcnt vmcnt(0)
	v_xor_b32_e32 v11, s67, v7
	v_xor_b32_e32 v10, s66, v6
	v_dual_mov_b32 v7, v1 :: v_dual_mov_b32 v6, v0
	scratch_store_b64 off, v[10:11], s0
.LBB1_160:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	v_readfirstlane_b32 s0, v93
	s_add_i32 s1, s2, 0x3fb0
	scratch_load_b64 v[10:11], off, s1
	s_add_i32 s0, s0, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_i32 s1, s0, 40
	s_add_i32 s4, s0, 0x50
	s_add_i32 s5, s0, 0x78
	s_addk_i32 s0, 0xa0
	s_clause 0x3
	scratch_load_b64 v[12:13], off, s1
	scratch_load_b64 v[14:15], off, s4
	scratch_load_b64 v[16:17], off, s5
	scratch_load_b64 v[18:19], off, s0
	s_cmp_eq_u32 s3, 4
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s3, 3
	s_cselect_b32 s0, -1, 0
	s_cmp_eq_u32 s3, 2
	s_cselect_b32 s1, -1, 0
	s_cmp_eq_u32 s3, 1
	s_waitcnt vmcnt(3)
	v_xor_b32_e32 v11, v13, v11
	v_xor_b32_e32 v10, v12, v10
	s_waitcnt vmcnt(2)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v11, v11, v15
	v_xor_b32_e32 v10, v10, v14
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v11, v11, v17
	v_xor_b32_e32 v10, v10, v16
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v11, v11, v19
	v_xor_b32_e32 v10, v10, v18
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_cndmask_b32 v9, v9, v11 :: v_dual_cndmask_b32 v8, v8, v10
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s3, 0
	v_dual_cndmask_b32 v3, v3, v11 :: v_dual_cndmask_b32 v2, v2, v10
	s_cselect_b32 vcc_lo, -1, 0
	v_cndmask_b32_e64 v7, v7, v11, s0
	v_cndmask_b32_e64 v6, v6, v10, s0
	v_cndmask_b32_e64 v5, v5, v11, s1
	v_cndmask_b32_e64 v4, v4, v10, s1
	v_dual_cndmask_b32 v1, v1, v11 :: v_dual_cndmask_b32 v0, v0, v10
	s_add_i32 s3, s3, 1
	s_add_i32 s2, s2, 8
	s_cmp_lg_u32 s3, 5
	s_cbranch_scc1 .LBB1_160
; %bb.161:                              ; %.preheader25.i.i162.preheader
                                        ;   in Loop: Header=BB1_95 Depth=2
	v_mov_b32_e32 v10, 0
	v_mov_b32_e32 v11, 0
	s_mov_b32 s3, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_mov_b32 v13, v11 :: v_dual_mov_b32 v12, v10
	v_dual_mov_b32 v15, v11 :: v_dual_mov_b32 v14, v10
	v_dual_mov_b32 v17, v11 :: v_dual_mov_b32 v16, v10
	v_dual_mov_b32 v19, v11 :: v_dual_mov_b32 v18, v10
.LBB1_162:                              ; %.preheader25.i.i162
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_add_i32 s4, s3, 1
	s_cmp_lg_u32 s3, 4
	s_cselect_b32 s1, s4, 0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s1, 1
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s1, 2
	v_dual_cndmask_b32 v20, v1, v3 :: v_dual_cndmask_b32 v21, v0, v2
	s_cselect_b32 s0, -1, 0
	s_cmp_eq_u32 s1, 3
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s1, 4
	v_cndmask_b32_e64 v20, v20, v5, s0
	v_cndmask_b32_e64 v21, v21, v4, s0
	s_cselect_b32 s0, -1, 0
	s_add_i32 s1, s3, -1
	s_cmp_lg_u32 s3, 0
	v_cndmask_b32_e32 v20, v20, v7, vcc_lo
	s_cselect_b32 s1, s1, 4
	v_cndmask_b32_e32 v22, v21, v6, vcc_lo
	s_cmp_eq_u32 s1, 1
	s_cselect_b32 vcc_lo, -1, 0
	v_cndmask_b32_e64 v21, v20, v9, s0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_cndmask_b32_e64 v20, v22, v8, s0
	v_dual_cndmask_b32 v22, v1, v3 :: v_dual_cndmask_b32 v23, v0, v2
	s_cmp_eq_u32 s1, 2
	v_lshrrev_b32_e32 v24, 31, v21
	s_cselect_b32 s0, -1, 0
	s_cmp_eq_u32 s1, 3
	v_cndmask_b32_e64 v22, v22, v5, s0
	v_cndmask_b32_e64 v23, v23, v4, s0
	s_cselect_b32 vcc_lo, -1, 0
	v_lshlrev_b64 v[20:21], 1, v[20:21]
	s_cmp_eq_u32 s1, 4
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_dual_cndmask_b32 v22, v22, v7 :: v_dual_cndmask_b32 v23, v23, v6
	s_cselect_b32 s0, -1, 0
	s_cmp_eq_u32 s3, 4
	v_or_b32_e32 v20, v20, v24
	s_delay_alu instid0(VALU_DEP_2)
	v_cndmask_b32_e64 v22, v22, v9, s0
	v_cndmask_b32_e64 v23, v23, v8, s0
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s3, 3
	s_cselect_b32 s0, -1, 0
	s_cmp_eq_u32 s3, 2
	v_xor_b32_e32 v21, v21, v22
	v_xor_b32_e32 v20, v20, v23
	s_cselect_b32 s1, -1, 0
	s_cmp_eq_u32 s3, 1
	s_cselect_b32 s2, -1, 0
	s_cmp_eq_u32 s3, 0
	v_dual_cndmask_b32 v19, v19, v21 :: v_dual_cndmask_b32 v18, v18, v20
	s_cselect_b32 vcc_lo, -1, 0
	v_cndmask_b32_e64 v17, v17, v21, s0
	v_cndmask_b32_e32 v11, v11, v21, vcc_lo
	v_cndmask_b32_e64 v15, v15, v21, s1
	v_cndmask_b32_e64 v13, v13, v21, s2
	v_cndmask_b32_e64 v16, v16, v20, s0
	v_cndmask_b32_e64 v14, v14, v20, s1
	v_cndmask_b32_e64 v12, v12, v20, s2
	v_cndmask_b32_e32 v10, v10, v20, vcc_lo
	s_cmp_lg_u32 s4, 5
	s_mov_b32 s3, s4
	s_cbranch_scc1 .LBB1_162
; %bb.163:                              ; %.preheader.i.i166.preheader
                                        ;   in Loop: Header=BB1_95 Depth=2
	v_mov_b32_e32 v0, 0x3fb0
	s_mov_b32 s0, 0
.LBB1_164:                              ; %.preheader.i.i166
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB1_165 Depth 4
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s0, 1
	s_mov_b32 s1, 0
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s0, 2
	v_dual_cndmask_b32 v1, v11, v13 :: v_dual_cndmask_b32 v2, v10, v12
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s0, 3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v1, v1, v15 :: v_dual_cndmask_b32 v2, v2, v14
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s0, 4
	v_dual_cndmask_b32 v1, v1, v17 :: v_dual_cndmask_b32 v2, v2, v16
	s_cselect_b32 vcc_lo, -1, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_cndmask_b32 v1, v1, v19 :: v_dual_cndmask_b32 v2, v2, v18
.LBB1_165:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_164 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	v_add_nc_u32_e32 v5, s1, v0
	s_add_i32 s1, s1, 40
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmpk_lg_i32 s1, 0xc8
	scratch_load_b64 v[3:4], v5, off
	s_waitcnt vmcnt(0)
	v_xor_b32_e32 v4, v4, v1
	v_xor_b32_e32 v3, v3, v2
	scratch_store_b64 v5, v[3:4], off
	s_cbranch_scc1 .LBB1_165
; %bb.166:                              ;   in Loop: Header=BB1_164 Depth=3
	v_add_nc_u32_e32 v0, 8, v0
	s_add_i32 s0, s0, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_lg_u32 s0, 5
	s_cbranch_scc1 .LBB1_164
; %bb.167:                              ; %.preheader.i5.i172.preheader
                                        ;   in Loop: Header=BB1_95 Depth=2
	v_mov_b32_e32 v2, 0x3fb0
	s_mov_b32 s4, 0
	s_getpc_b64 s[0:1]
	s_add_u32 s0, s0, const_KeccakRhoOffsets@rel32@lo+4
	s_addc_u32 s1, s1, const_KeccakRhoOffsets@rel32@hi+12
.LBB1_168:                              ; %.preheader.i5.i172
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB1_169 Depth 4
	v_mov_b32_e32 v3, v2
	s_mov_b64 s[2:3], 0
.LBB1_169:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_168 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	scratch_load_b64 v[0:1], v3, off
	s_add_u32 s6, s0, s2
	s_addc_u32 s7, s1, s3
	s_load_b32 s5, s[6:7], 0x0
	s_waitcnt lgkmcnt(0)
	s_cmp_eq_u32 s5, 0
	s_cbranch_scc1 .LBB1_171
; %bb.170:                              ;   in Loop: Header=BB1_169 Depth=4
	s_sub_i32 s6, 64, s5
	s_waitcnt vmcnt(0)
	v_lshlrev_b64 v[4:5], s5, v[0:1]
	v_lshrrev_b64 v[0:1], s6, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v1, v1, v5
	v_xor_b32_e32 v0, v0, v4
.LBB1_171:                              ;   in Loop: Header=BB1_169 Depth=4
	s_waitcnt vmcnt(0)
	scratch_store_b64 v3, v[0:1], off
	v_add_nc_u32_e32 v3, 40, v3
	s_add_u32 s2, s2, 20
	s_addc_u32 s3, s3, 0
	s_cmpk_lg_i32 s2, 0x64
	s_cbranch_scc1 .LBB1_169
; %bb.172:                              ;   in Loop: Header=BB1_168 Depth=3
	s_add_i32 s4, s4, 1
	v_add_nc_u32_e32 v2, 8, v2
	s_add_u32 s0, s0, 4
	s_addc_u32 s1, s1, 0
	s_cmp_lg_u32 s4, 5
	s_cbranch_scc1 .LBB1_168
; %bb.173:                              ; %_ZL10rho_DevicePy.exit.i178
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_mov_b32 s0, 0
	s_mov_b32 s1, 0
.LBB1_174:                              ; %.preheader22.i.i179
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB1_175 Depth 4
	v_add_nc_u32_e64 v0, 0x3fb0, s0
	v_add_nc_u32_e64 v1, s0, 16
	s_mov_b32 s2, 0
.LBB1_175:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_174 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	s_delay_alu instid0(VALU_DEP_2) | instid1(SALU_CYCLE_1)
	v_add_nc_u32_e32 v2, s2, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_add_nc_u32_e32 v4, s2, v1
	s_add_i32 s2, s2, 40
	s_cmpk_lg_i32 s2, 0xc8
	scratch_load_b64 v[2:3], v2, off
	s_waitcnt vmcnt(0)
	scratch_store_b64 v4, v[2:3], off
	s_cbranch_scc1 .LBB1_175
; %bb.176:                              ;   in Loop: Header=BB1_174 Depth=3
	s_add_i32 s1, s1, 1
	s_add_i32 s0, s0, 8
	s_cmp_lg_u32 s1, 5
	s_cbranch_scc1 .LBB1_174
; %bb.177:                              ; %.preheader.i8.i184.preheader
                                        ;   in Loop: Header=BB1_95 Depth=2
	v_readfirstlane_b32 s1, v93
	v_mov_b32_e32 v0, 16
	s_mov_b32 s0, 0
	s_mov_b32 s2, 0
	s_delay_alu instid0(VALU_DEP_2)
	s_mov_b32 s1, s1
.LBB1_178:                              ; %.preheader.i8.i184
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB1_179 Depth 4
	s_mov_b32 s3, 0
	s_mov_b32 s4, s0
	s_mov_b32 s5, s1
.LBB1_179:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_178 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	v_add_nc_u32_e32 v1, s3, v0
	s_mul_hi_u32 s6, s4, 0xcccccccd
	s_add_i32 s3, s3, 40
	s_lshr_b32 s6, s6, 2
	s_add_i32 s4, s4, 3
	scratch_load_b64 v[1:2], v1, off
	s_mulk_i32 s6, 0xff38
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_i32 s6, s5, s6
	s_addk_i32 s5, 0x80
	s_cmpk_lg_i32 s3, 0xc8
	s_waitcnt vmcnt(0)
	scratch_store_b64 off, v[1:2], s6
	s_cbranch_scc1 .LBB1_179
; %bb.180:                              ;   in Loop: Header=BB1_178 Depth=3
	v_add_nc_u32_e32 v0, 8, v0
	s_add_i32 s2, s2, 1
	s_addk_i32 s1, 0x50
	s_add_i32 s0, s0, 2
	s_cmp_lg_u32 s2, 5
	s_cbranch_scc1 .LBB1_178
; %bb.181:                              ; %_ZL2piPy.exit.i189
                                        ;   in Loop: Header=BB1_95 Depth=2
	v_readfirstlane_b32 s0, v93
	s_mov_b32 s3, 0
	s_delay_alu instid0(VALU_DEP_1)
	s_mov_b32 s2, s0
.LBB1_182:                              ; %.preheader20.i.i190
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB1_183 Depth 4
                                        ;         Child Loop BB1_185 Depth 4
	s_mul_i32 s0, s3, 40
	s_mov_b32 s4, s2
	v_add_nc_u32_e64 v0, 0x3fb0, s0
	s_mov_b32 s5, 0
.LBB1_183:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_182 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	s_add_i32 s6, s5, 1
	s_cmp_lg_u32 s5, 4
	s_cselect_b32 s0, s6, 0
	s_lshl_b32 s0, s0, 3
	s_cmp_gt_u32 s5, 2
	v_add_nc_u32_e32 v1, s0, v0
	s_cselect_b32 s0, 0xffffffe8, 16
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_i32 s0, s4, s0
	s_cmp_eq_u32 s5, 4
	scratch_load_b64 v[1:2], v1, off
	s_clause 0x1
	scratch_load_b64 v[3:4], off, s0
	scratch_load_b64 v[5:6], off, s4
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s5, 3
	s_cselect_b32 s0, -1, 0
	s_cmp_eq_u32 s5, 2
	s_cselect_b32 s1, -1, 0
	s_cmp_eq_u32 s5, 1
	s_waitcnt vmcnt(2)
	v_not_b32_e32 v2, v2
	v_not_b32_e32 v1, v1
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_and_b32_e32 v2, v4, v2
	v_and_b32_e32 v1, v3, v1
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_xor_b32_e32 v2, v2, v6
	v_xor_b32_e32 v1, v1, v5
	s_delay_alu instid0(VALU_DEP_1)
	v_dual_cndmask_b32 v57, v57, v2 :: v_dual_cndmask_b32 v56, v56, v1
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s5, 0
	v_dual_cndmask_b32 v51, v51, v2 :: v_dual_cndmask_b32 v50, v50, v1
	s_cselect_b32 vcc_lo, -1, 0
	v_cndmask_b32_e64 v55, v55, v2, s0
	v_cndmask_b32_e64 v54, v54, v1, s0
	v_cndmask_b32_e64 v53, v53, v2, s1
	v_cndmask_b32_e64 v52, v52, v1, s1
	v_dual_cndmask_b32 v49, v49, v2 :: v_dual_cndmask_b32 v48, v48, v1
	s_add_i32 s4, s4, 8
	s_cmp_lg_u32 s6, 5
	s_mov_b32 s5, s6
	s_cbranch_scc1 .LBB1_183
; %bb.184:                              ; %.preheader.i11.i195.preheader
                                        ;   in Loop: Header=BB1_182 Depth=3
	s_mov_b32 s0, 0
	s_mov_b32 s1, s2
.LBB1_185:                              ; %.preheader.i11.i195
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_182 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	s_cmp_eq_u32 s0, 1
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s0, 2
	v_dual_cndmask_b32 v0, v49, v51 :: v_dual_cndmask_b32 v1, v48, v50
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s0, 3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_dual_cndmask_b32 v0, v0, v53 :: v_dual_cndmask_b32 v1, v1, v52
	s_cselect_b32 vcc_lo, -1, 0
	s_cmp_eq_u32 s0, 4
	v_cndmask_b32_e32 v0, v0, v55, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v2, v1, v54, vcc_lo
	s_cselect_b32 vcc_lo, -1, 0
	s_add_i32 s0, s0, 1
	v_dual_cndmask_b32 v1, v0, v57 :: v_dual_cndmask_b32 v0, v2, v56
	scratch_store_b64 off, v[0:1], s1
	s_add_i32 s1, s1, 8
	s_cmp_lg_u32 s0, 5
	s_cbranch_scc1 .LBB1_185
; %bb.186:                              ;   in Loop: Header=BB1_182 Depth=3
	s_add_i32 s3, s3, 1
	s_add_i32 s2, s2, 40
	s_cmp_lg_u32 s3, 5
	s_cbranch_scc1 .LBB1_182
; %bb.187:                              ; %_Z23KeccakP1600Round_DevicePyj.exit199
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_movk_i32 s0, 0x3fb0
	s_clause 0x1
	scratch_load_b128 v[0:3], off, s0
	scratch_load_b64 v[4:5], off, s0 offset:16
	s_waitcnt vmcnt(1)
	v_xor_b32_e32 v1, s77, v1
	v_xor_b32_e32 v0, s76, v0
	v_cmp_eq_u64_e64 s0, s[54:55], v[2:3]
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e64 s1, s[56:57], v[4:5]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cmp_eq_u64_e32 vcc_lo, s[52:53], v[0:1]
	s_and_b32 s0, vcc_lo, s0
	s_delay_alu instid0(VALU_DEP_2) | instid1(SALU_CYCLE_1)
	s_and_b32 s0, s0, s1
	s_movk_i32 s1, 0x3fb0
	scratch_store_b64 off, v[0:1], s1
	s_and_saveexec_b32 s69, s0
	s_cbranch_execz .LBB1_383
; %bb.188:                              ;   in Loop: Header=BB1_95 Depth=2
	s_movk_i32 s0, 0x3fb0
	scratch_load_b64 v[0:1], off, s0 offset:24
	s_waitcnt vmcnt(0)
	v_xor_b32_e32 v0, s58, v0
	v_xor_b32_e32 v1, s59, v1
	s_delay_alu instid0(VALU_DEP_2)
	v_cmp_eq_u32_e32 vcc_lo, 0, v0
	scratch_store_b64 off, v[0:1], s0 offset:24
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB1_383
; %bb.189:                              ;   in Loop: Header=BB1_95 Depth=2
	s_load_b64 s[70:71], s[34:35], 0x50
	v_dual_mov_b32 v37, v95 :: v_dual_mov_b32 v4, 0
	;;#ASMSTART
	;;#ASMEND
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_readfirstlane_b32 s0, v37
	v_mov_b32_e32 v5, 0
	v_cmp_eq_u32_e64 s0, s0, v37
	s_delay_alu instid0(VALU_DEP_1)
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_195
; %bb.190:                              ;   in Loop: Header=BB1_95 Depth=2
	s_waitcnt lgkmcnt(0)
	global_load_b64 v[2:3], v38, s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	s_clause 0x1
	global_load_b64 v[0:1], v38, s[70:71] offset:40
	global_load_b64 v[4:5], v38, s[70:71]
	s_mov_b32 s2, exec_lo
	s_waitcnt vmcnt(1)
	v_and_b32_e32 v1, v1, v3
	v_and_b32_e32 v0, v0, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v1, v1, 24
	v_mul_hi_u32 v6, v0, 24
	v_mul_lo_u32 v0, v0, 24
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v1, v6, v1
	s_waitcnt vmcnt(0)
	v_add_co_u32 v0, vcc_lo, v4, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, v5, v1, vcc_lo
	global_load_b64 v[0:1], v[0:1], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[4:5], v38, v[0:3], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmpx_ne_u64_e64 v[4:5], v[2:3]
	s_cbranch_execz .LBB1_194
; %bb.191:                              ; %.preheader3.i.i.i.preheader
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_mov_b32 s3, 0
.LBB1_192:                              ; %.preheader3.i.i.i
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_sleep 1
	s_clause 0x1
	global_load_b64 v[0:1], v38, s[70:71] offset:40
	global_load_b64 v[6:7], v38, s[70:71]
	v_dual_mov_b32 v2, v4 :: v_dual_mov_b32 v3, v5
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_and_b32_e32 v0, v0, v2
	v_and_b32_e32 v1, v1, v3
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[4:5], null, v0, 24, v[6:7]
	v_mov_b32_e32 v0, v5
	s_delay_alu instid0(VALU_DEP_1)
	v_mad_u64_u32 v[5:6], null, v1, 24, v[0:1]
	global_load_b64 v[0:1], v[4:5], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[4:5], v38, v[0:3], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmp_eq_u64_e32 vcc_lo, v[4:5], v[2:3]
	s_or_b32 s3, vcc_lo, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s3
	s_cbranch_execnz .LBB1_192
; %bb.193:                              ; %Flow1091
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_or_b32 exec_lo, exec_lo, s3
.LBB1_194:                              ; %Flow1093
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s2
.LBB1_195:                              ; %.loopexit4.i.i.i
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s1
	s_waitcnt lgkmcnt(0)
	s_clause 0x1
	global_load_b64 v[6:7], v38, s[70:71] offset:40
	global_load_b128 v[0:3], v38, s[70:71]
	v_readfirstlane_b32 s2, v4
	v_readfirstlane_b32 s3, v5
	s_mov_b32 s8, exec_lo
	s_waitcnt vmcnt(1)
	v_readfirstlane_b32 s4, v6
	v_readfirstlane_b32 s5, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b64 s[4:5], s[2:3], s[4:5]
	s_mul_i32 s1, s5, 24
	s_mul_hi_u32 s6, s4, 24
	s_mul_i32 s7, s4, 24
	s_and_saveexec_b32 s9, s0
	s_cbranch_execz .LBB1_197
; %bb.196:                              ;   in Loop: Header=BB1_95 Depth=2
	v_dual_mov_b32 v39, s8 :: v_dual_mov_b32 v40, v38
	s_add_i32 s8, s6, s1
	s_waitcnt vmcnt(0)
	v_add_co_u32 v4, vcc_lo, v0, s7
	v_add_co_ci_u32_e32 v5, vcc_lo, s8, v1, vcc_lo
	global_store_b128 v[4:5], v[39:42], off offset:8
.LBB1_197:                              ;   in Loop: Header=BB1_95 Depth=2
	s_or_b32 exec_lo, exec_lo, s9
	s_lshl_b64 s[4:5], s[4:5], 12
	v_lshlrev_b64 v[4:5], 6, v[37:38]
	s_waitcnt vmcnt(0)
	v_add_co_u32 v2, vcc_lo, v2, s4
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v3, vcc_lo
	s_mov_b32 s29, s28
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_u32 v6, vcc_lo, v2, v4
	s_mov_b32 s30, s28
	s_mov_b32 s31, s28
	v_add_co_ci_u32_e32 v7, vcc_lo, v3, v5, vcc_lo
	v_dual_mov_b32 v37, v38 :: v_dual_mov_b32 v2, s28
	v_dual_mov_b32 v39, v38 :: v_dual_mov_b32 v4, s30
	v_mov_b32_e32 v3, s29
	v_mov_b32_e32 v5, s31
	s_clause 0x3
	global_store_b128 v[6:7], v[36:39], off
	global_store_b128 v[6:7], v[2:5], off offset:16
	global_store_b128 v[6:7], v[2:5], off offset:32
	global_store_b128 v[6:7], v[2:5], off offset:48
	s_and_saveexec_b32 s4, s0
	s_cbranch_execz .LBB1_205
; %bb.198:                              ;   in Loop: Header=BB1_95 Depth=2
	s_clause 0x1
	global_load_b64 v[12:13], v38, s[70:71] offset:32 glc
	global_load_b64 v[2:3], v38, s[70:71] offset:40
	s_mov_b32 s5, exec_lo
	v_dual_mov_b32 v10, s2 :: v_dual_mov_b32 v11, s3
	s_waitcnt vmcnt(0)
	v_and_b32_e32 v3, s3, v3
	v_and_b32_e32 v2, s2, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v3, v3, 24
	v_mul_hi_u32 v4, v2, 24
	v_mul_lo_u32 v2, v2, 24
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v3, v4, v3
	v_add_co_u32 v8, vcc_lo, v0, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v9, vcc_lo, v1, v3, vcc_lo
	global_store_b64 v[8:9], v[12:13], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[4:5], v38, v[10:13], s[70:71] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmpx_ne_u64_e64 v[4:5], v[12:13]
	s_cbranch_execz .LBB1_201
; %bb.199:                              ; %.preheader1.i.i.i.preheader
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_mov_b32 s8, 0
.LBB1_200:                              ; %.preheader1.i.i.i
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	v_dual_mov_b32 v2, s2 :: v_dual_mov_b32 v3, s3
	s_sleep 1
	global_store_b64 v[8:9], v[4:5], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[2:3], v38, v[2:5], s[70:71] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[2:3], v[4:5]
	v_dual_mov_b32 v5, v3 :: v_dual_mov_b32 v4, v2
	s_or_b32 s8, vcc_lo, s8
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s8
	s_cbranch_execnz .LBB1_200
.LBB1_201:                              ; %Flow1089
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_or_b32 exec_lo, exec_lo, s5
	global_load_b64 v[2:3], v38, s[70:71] offset:16
	s_mov_b32 s8, exec_lo
	s_mov_b32 s5, exec_lo
	v_mbcnt_lo_u32_b32 v4, s8, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_eq_u32_e32 0, v4
	s_cbranch_execz .LBB1_203
; %bb.202:                              ;   in Loop: Header=BB1_95 Depth=2
	s_bcnt1_i32_b32 s8, s8
	s_delay_alu instid0(SALU_CYCLE_1)
	v_mov_b32_e32 v37, s8
	s_waitcnt vmcnt(0)
	global_atomic_add_u64 v[2:3], v[37:38], off offset:8
.LBB1_203:                              ;   in Loop: Header=BB1_95 Depth=2
	s_or_b32 exec_lo, exec_lo, s5
	s_waitcnt vmcnt(0)
	global_load_b64 v[4:5], v[2:3], off offset:16
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[4:5]
	s_cbranch_vccnz .LBB1_205
; %bb.204:                              ;   in Loop: Header=BB1_95 Depth=2
	global_load_b32 v37, v[2:3], off offset:24
	s_waitcnt vmcnt(0)
	v_readfirstlane_b32 s5, v37
	s_waitcnt_vscnt null, 0x0
	global_store_b64 v[4:5], v[37:38], off
	s_and_b32 m0, s5, 0xff
	s_sendmsg sendmsg(MSG_INTERRUPT)
.LBB1_205:                              ; %Flow1090
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_or_b32 exec_lo, exec_lo, s4
	s_add_i32 s6, s6, s1
	v_add_co_u32 v0, vcc_lo, v0, s7
	v_add_co_ci_u32_e32 v1, vcc_lo, s6, v1, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, v0, 20
	v_add_co_ci_u32_e32 v1, vcc_lo, 0, v1, vcc_lo
.LBB1_206:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	v_mov_b32_e32 v2, 1
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_208
; %bb.207:                              ;   in Loop: Header=BB1_206 Depth=3
	global_load_b32 v2, v[0:1], off glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_and_b32_e32 v2, 1, v2
.LBB1_208:                              ;   in Loop: Header=BB1_206 Depth=3
	s_or_b32 exec_lo, exec_lo, s1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_readfirstlane_b32 s1, v2
	s_cmp_eq_u32 s1, 0
	s_cbranch_scc1 .LBB1_210
; %bb.209:                              ;   in Loop: Header=BB1_206 Depth=3
	s_mov_b32 s1, 0
	s_sleep 1
	s_branch .LBB1_211
.LBB1_210:                              ;   in Loop: Header=BB1_206 Depth=3
	s_mov_b32 s1, -1
.LBB1_211:                              ; %Flow1084
                                        ;   in Loop: Header=BB1_206 Depth=3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s1
	s_cbranch_vccnz .LBB1_206
; %bb.212:                              ;   in Loop: Header=BB1_95 Depth=2
	global_load_b64 v[0:1], v[6:7], off
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_216
; %bb.213:                              ;   in Loop: Header=BB1_95 Depth=2
	s_clause 0x2
	global_load_b64 v[4:5], v38, s[70:71] offset:40
	global_load_b64 v[8:9], v38, s[70:71] offset:24 glc
	global_load_b64 v[6:7], v38, s[70:71]
	s_waitcnt vmcnt(2)
	v_add_co_u32 v10, vcc_lo, v4, 1
	v_add_co_ci_u32_e32 v11, vcc_lo, 0, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, v10, s2
	v_add_co_ci_u32_e32 v3, vcc_lo, s3, v11, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[2:3]
	v_dual_cndmask_b32 v3, v3, v11 :: v_dual_cndmask_b32 v2, v2, v10
	v_and_b32_e32 v5, v3, v5
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_and_b32_e32 v4, v2, v4
	v_mul_hi_u32 v10, v4, 24
	v_mul_lo_u32 v4, v4, 24
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_add_co_u32 v6, vcc_lo, v6, v4
	v_mov_b32_e32 v4, v8
	v_mul_lo_u32 v5, v5, 24
	v_add_nc_u32_e32 v5, v10, v5
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e32 v7, vcc_lo, v7, v5, vcc_lo
	v_mov_b32_e32 v5, v9
	global_store_b64 v[6:7], v[8:9], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[4:5], v38, v[2:5], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_ne_u64_e32 vcc_lo, v[4:5], v[8:9]
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB1_216
; %bb.214:                              ; %.preheader.i.i.i.preheader
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_mov_b32 s0, 0
.LBB1_215:                              ; %.preheader.i.i.i
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_sleep 1
	global_store_b64 v[6:7], v[4:5], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[8:9], v38, v[2:5], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[8:9], v[4:5]
	v_dual_mov_b32 v4, v8 :: v_dual_mov_b32 v5, v9
	s_or_b32 s0, vcc_lo, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s0
	s_cbranch_execnz .LBB1_215
.LBB1_216:                              ; %__ockl_printf_begin.exit
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_or_b32 exec_lo, exec_lo, s1
	s_add_u32 s8, s18, 40
	s_addc_u32 s9, s19, 0
	s_getpc_b64 s[0:1]
	s_add_u32 s0, s0, .str@rel32@lo+4
	s_addc_u32 s1, s1, .str@rel32@hi+12
	s_delay_alu instid0(SALU_CYCLE_1)
	v_dual_mov_b32 v2, s0 :: v_dual_mov_b32 v3, s1
	v_dual_mov_b32 v4, s33 :: v_dual_mov_b32 v5, v38
	v_mov_b32_e32 v6, v38
	s_getpc_b64 s[2:3]
	s_add_u32 s2, s2, __ockl_printf_append_string_n@rel32@lo+4
	s_addc_u32 s3, s3, __ockl_printf_append_string_n@rel32@hi+12
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	s_swappc_b64 s[30:31], s[2:3]
	v_dual_mov_b32 v37, v95 :: v_dual_mov_b32 v2, 0
	;;#ASMSTART
	;;#ASMEND
	v_readfirstlane_b32 s0, v37
	v_mov_b32_e32 v3, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_eq_u32_e64 s0, s0, v37
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_222
; %bb.217:                              ;   in Loop: Header=BB1_95 Depth=2
	global_load_b64 v[4:5], v38, s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	s_clause 0x1
	global_load_b64 v[2:3], v38, s[70:71] offset:40
	global_load_b64 v[6:7], v38, s[70:71]
	s_mov_b32 s2, exec_lo
	s_waitcnt vmcnt(1)
	v_and_b32_e32 v3, v3, v5
	v_and_b32_e32 v2, v2, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v3, v3, 24
	v_mul_hi_u32 v8, v2, 24
	v_mul_lo_u32 v2, v2, 24
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v3, v8, v3
	s_waitcnt vmcnt(0)
	v_add_co_u32 v2, vcc_lo, v6, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, v7, v3, vcc_lo
	global_load_b64 v[2:3], v[2:3], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[2:3], v38, v[2:5], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmpx_ne_u64_e64 v[2:3], v[4:5]
	s_cbranch_execz .LBB1_221
; %bb.218:                              ; %.preheader3.i.i.i205.preheader
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_mov_b32 s3, 0
.LBB1_219:                              ; %.preheader3.i.i.i205
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_sleep 1
	s_clause 0x1
	global_load_b64 v[6:7], v38, s[70:71] offset:40
	global_load_b64 v[8:9], v38, s[70:71]
	v_dual_mov_b32 v5, v3 :: v_dual_mov_b32 v4, v2
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_and_b32_e32 v6, v6, v4
	s_waitcnt vmcnt(0)
	v_mad_u64_u32 v[2:3], null, v6, 24, v[8:9]
	v_and_b32_e32 v8, v7, v5
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[6:7], null, v8, 24, v[3:4]
	v_mov_b32_e32 v3, v6
	global_load_b64 v[2:3], v[2:3], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[2:3], v38, v[2:5], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmp_eq_u64_e32 vcc_lo, v[2:3], v[4:5]
	s_or_b32 s3, vcc_lo, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s3
	s_cbranch_execnz .LBB1_219
; %bb.220:                              ; %Flow1077
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_or_b32 exec_lo, exec_lo, s3
.LBB1_221:                              ; %Flow1079
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s2
.LBB1_222:                              ; %.loopexit4.i.i.i200
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s1
	s_clause 0x1
	global_load_b64 v[8:9], v38, s[70:71] offset:40
	global_load_b128 v[4:7], v38, s[70:71]
	v_readfirstlane_b32 s2, v2
	v_readfirstlane_b32 s3, v3
	s_mov_b32 s8, exec_lo
	s_waitcnt vmcnt(1)
	v_readfirstlane_b32 s4, v8
	v_readfirstlane_b32 s5, v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b64 s[4:5], s[2:3], s[4:5]
	s_mul_i32 s1, s5, 24
	s_mul_hi_u32 s6, s4, 24
	s_mul_i32 s7, s4, 24
	s_and_saveexec_b32 s9, s0
	s_cbranch_execz .LBB1_224
; %bb.223:                              ;   in Loop: Header=BB1_95 Depth=2
	v_dual_mov_b32 v39, s8 :: v_dual_mov_b32 v40, v38
	s_add_i32 s8, s6, s1
	s_waitcnt vmcnt(0)
	v_add_co_u32 v2, vcc_lo, v4, s7
	v_add_co_ci_u32_e32 v3, vcc_lo, s8, v5, vcc_lo
	global_store_b128 v[2:3], v[39:42], off offset:8
.LBB1_224:                              ;   in Loop: Header=BB1_95 Depth=2
	s_or_b32 exec_lo, exec_lo, s9
	s_lshl_b64 s[4:5], s[4:5], 12
	v_lshlrev_b64 v[2:3], 6, v[37:38]
	s_waitcnt vmcnt(0)
	v_add_co_u32 v6, vcc_lo, v6, s4
	v_add_co_ci_u32_e32 v7, vcc_lo, s5, v7, vcc_lo
	s_mov_b32 s29, s28
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_u32 v10, vcc_lo, v6, v2
	s_mov_b32 s30, s28
	s_mov_b32 s31, s28
	v_and_or_b32 v0, 0xffffff1d, v0, 34
	v_add_co_ci_u32_e32 v11, vcc_lo, v7, v3, vcc_lo
	v_dual_mov_b32 v2, v84 :: v_dual_mov_b32 v3, v85
	v_dual_mov_b32 v6, s28 :: v_dual_mov_b32 v7, s29
	v_dual_mov_b32 v8, s30 :: v_dual_mov_b32 v9, s31
	s_clause 0x3
	global_store_b128 v[10:11], v[0:3], off
	global_store_b128 v[10:11], v[6:9], off offset:16
	global_store_b128 v[10:11], v[6:9], off offset:32
	global_store_b128 v[10:11], v[6:9], off offset:48
	s_and_saveexec_b32 s4, s0
	s_cbranch_execz .LBB1_232
; %bb.225:                              ;   in Loop: Header=BB1_95 Depth=2
	s_clause 0x1
	global_load_b64 v[10:11], v38, s[70:71] offset:32 glc
	global_load_b64 v[0:1], v38, s[70:71] offset:40
	v_dual_mov_b32 v8, s2 :: v_dual_mov_b32 v9, s3
	s_waitcnt vmcnt(0)
	v_readfirstlane_b32 s8, v0
	v_readfirstlane_b32 s9, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b64 s[8:9], s[8:9], s[2:3]
	s_mul_i32 s5, s9, 24
	s_mul_hi_u32 s9, s8, 24
	s_mul_i32 s8, s8, 24
	s_add_i32 s9, s9, s5
	v_add_co_u32 v6, vcc_lo, v4, s8
	v_add_co_ci_u32_e32 v7, vcc_lo, s9, v5, vcc_lo
	s_mov_b32 s5, exec_lo
	global_store_b64 v[6:7], v[10:11], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[2:3], v38, v[8:11], s[70:71] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmpx_ne_u64_e64 v[2:3], v[10:11]
	s_cbranch_execz .LBB1_228
; %bb.226:                              ; %.preheader1.i.i.i203.preheader
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_mov_b32 s8, 0
.LBB1_227:                              ; %.preheader1.i.i.i203
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	v_dual_mov_b32 v0, s2 :: v_dual_mov_b32 v1, s3
	s_sleep 1
	global_store_b64 v[6:7], v[2:3], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[0:1], v38, v[0:3], s[70:71] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[0:1], v[2:3]
	v_dual_mov_b32 v3, v1 :: v_dual_mov_b32 v2, v0
	s_or_b32 s8, vcc_lo, s8
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s8
	s_cbranch_execnz .LBB1_227
.LBB1_228:                              ; %Flow1075
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_or_b32 exec_lo, exec_lo, s5
	global_load_b64 v[0:1], v38, s[70:71] offset:16
	s_mov_b32 s8, exec_lo
	s_mov_b32 s5, exec_lo
	v_mbcnt_lo_u32_b32 v2, s8, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_eq_u32_e32 0, v2
	s_cbranch_execz .LBB1_230
; %bb.229:                              ;   in Loop: Header=BB1_95 Depth=2
	s_bcnt1_i32_b32 s8, s8
	s_delay_alu instid0(SALU_CYCLE_1)
	v_mov_b32_e32 v37, s8
	s_waitcnt vmcnt(0)
	global_atomic_add_u64 v[0:1], v[37:38], off offset:8
.LBB1_230:                              ;   in Loop: Header=BB1_95 Depth=2
	s_or_b32 exec_lo, exec_lo, s5
	s_waitcnt vmcnt(0)
	global_load_b64 v[2:3], v[0:1], off offset:16
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[2:3]
	s_cbranch_vccnz .LBB1_232
; %bb.231:                              ;   in Loop: Header=BB1_95 Depth=2
	global_load_b32 v37, v[0:1], off offset:24
	s_waitcnt vmcnt(0)
	v_readfirstlane_b32 s5, v37
	s_waitcnt_vscnt null, 0x0
	global_store_b64 v[2:3], v[37:38], off
	s_and_b32 m0, s5, 0xff
	s_sendmsg sendmsg(MSG_INTERRUPT)
.LBB1_232:                              ; %Flow1076
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_or_b32 exec_lo, exec_lo, s4
	s_add_i32 s6, s6, s1
	v_add_co_u32 v0, vcc_lo, v4, s7
	v_add_co_ci_u32_e32 v1, vcc_lo, s6, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, v0, 20
	v_add_co_ci_u32_e32 v1, vcc_lo, 0, v1, vcc_lo
.LBB1_233:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	v_mov_b32_e32 v2, 1
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_235
; %bb.234:                              ;   in Loop: Header=BB1_233 Depth=3
	global_load_b32 v2, v[0:1], off glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_and_b32_e32 v2, 1, v2
.LBB1_235:                              ;   in Loop: Header=BB1_233 Depth=3
	s_or_b32 exec_lo, exec_lo, s1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_readfirstlane_b32 s1, v2
	s_cmp_eq_u32 s1, 0
	s_cbranch_scc1 .LBB1_237
; %bb.236:                              ;   in Loop: Header=BB1_233 Depth=3
	s_mov_b32 s1, 0
	s_sleep 1
	s_branch .LBB1_238
.LBB1_237:                              ;   in Loop: Header=BB1_233 Depth=3
	s_mov_b32 s1, -1
.LBB1_238:                              ; %Flow1070
                                        ;   in Loop: Header=BB1_233 Depth=3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s1
	s_cbranch_vccnz .LBB1_233
; %bb.239:                              ;   in Loop: Header=BB1_95 Depth=2
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_243
; %bb.240:                              ;   in Loop: Header=BB1_95 Depth=2
	s_clause 0x2
	global_load_b64 v[2:3], v38, s[70:71] offset:40
	global_load_b64 v[6:7], v38, s[70:71] offset:24 glc
	global_load_b64 v[4:5], v38, s[70:71]
	s_waitcnt vmcnt(2)
	v_add_co_u32 v8, vcc_lo, v2, 1
	v_add_co_ci_u32_e32 v9, vcc_lo, 0, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, v8, s2
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v9, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[0:1]
	v_dual_cndmask_b32 v1, v1, v9 :: v_dual_cndmask_b32 v0, v0, v8
	v_and_b32_e32 v3, v1, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_and_b32_e32 v2, v0, v2
	v_mul_hi_u32 v8, v2, 24
	v_mul_lo_u32 v2, v2, 24
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_add_co_u32 v4, vcc_lo, v4, v2
	v_mov_b32_e32 v2, v6
	v_mul_lo_u32 v3, v3, 24
	v_add_nc_u32_e32 v3, v8, v3
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e32 v5, vcc_lo, v5, v3, vcc_lo
	v_mov_b32_e32 v3, v7
	global_store_b64 v[4:5], v[6:7], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[2:3], v38, v[0:3], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_ne_u64_e32 vcc_lo, v[2:3], v[6:7]
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB1_243
; %bb.241:                              ; %.preheader.i.i.i202.preheader
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_mov_b32 s0, 0
.LBB1_242:                              ; %.preheader.i.i.i202
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_sleep 1
	global_store_b64 v[4:5], v[2:3], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[6:7], v38, v[0:3], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[6:7], v[2:3]
	v_dual_mov_b32 v2, v6 :: v_dual_mov_b32 v3, v7
	s_or_b32 s0, vcc_lo, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s0
	s_cbranch_execnz .LBB1_242
.LBB1_243:                              ; %__ockl_printf_append_args.exit
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_or_b32 exec_lo, exec_lo, s1
	v_dual_mov_b32 v37, v95 :: v_dual_mov_b32 v4, 0
	s_clause 0x1
	global_store_b128 v38, v[84:87], s[72:73]
	global_store_b128 v38, v[43:46], s[72:73] offset:16
	;;#ASMSTART
	;;#ASMEND
	v_readfirstlane_b32 s0, v37
	v_mov_b32_e32 v5, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_eq_u32_e64 s0, s0, v37
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_249
; %bb.244:                              ;   in Loop: Header=BB1_95 Depth=2
	global_load_b64 v[2:3], v38, s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	s_clause 0x1
	global_load_b64 v[0:1], v38, s[70:71] offset:40
	global_load_b64 v[4:5], v38, s[70:71]
	s_mov_b32 s2, exec_lo
	s_waitcnt vmcnt(1)
	v_and_b32_e32 v1, v1, v3
	v_and_b32_e32 v0, v0, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v1, v1, 24
	v_mul_hi_u32 v6, v0, 24
	v_mul_lo_u32 v0, v0, 24
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v1, v6, v1
	s_waitcnt vmcnt(0)
	v_add_co_u32 v0, vcc_lo, v4, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, v5, v1, vcc_lo
	global_load_b64 v[0:1], v[0:1], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[4:5], v38, v[0:3], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmpx_ne_u64_e64 v[4:5], v[2:3]
	s_cbranch_execz .LBB1_248
; %bb.245:                              ; %.preheader3.i.i.i211.preheader
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_mov_b32 s3, 0
.LBB1_246:                              ; %.preheader3.i.i.i211
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_sleep 1
	s_clause 0x1
	global_load_b64 v[0:1], v38, s[70:71] offset:40
	global_load_b64 v[6:7], v38, s[70:71]
	v_dual_mov_b32 v2, v4 :: v_dual_mov_b32 v3, v5
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_and_b32_e32 v0, v0, v2
	v_and_b32_e32 v1, v1, v3
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[4:5], null, v0, 24, v[6:7]
	v_mov_b32_e32 v0, v5
	s_delay_alu instid0(VALU_DEP_1)
	v_mad_u64_u32 v[5:6], null, v1, 24, v[0:1]
	global_load_b64 v[0:1], v[4:5], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[4:5], v38, v[0:3], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmp_eq_u64_e32 vcc_lo, v[4:5], v[2:3]
	s_or_b32 s3, vcc_lo, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s3
	s_cbranch_execnz .LBB1_246
; %bb.247:                              ; %Flow1063
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_or_b32 exec_lo, exec_lo, s3
.LBB1_248:                              ; %Flow1065
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s2
.LBB1_249:                              ; %.loopexit4.i.i.i206
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s1
	s_clause 0x1
	global_load_b64 v[6:7], v38, s[70:71] offset:40
	global_load_b128 v[0:3], v38, s[70:71]
	v_readfirstlane_b32 s2, v4
	v_readfirstlane_b32 s3, v5
	s_mov_b32 s8, exec_lo
	s_waitcnt vmcnt(1)
	v_readfirstlane_b32 s4, v6
	v_readfirstlane_b32 s5, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b64 s[4:5], s[2:3], s[4:5]
	s_mul_i32 s1, s5, 24
	s_mul_hi_u32 s6, s4, 24
	s_mul_i32 s7, s4, 24
	s_and_saveexec_b32 s9, s0
	s_cbranch_execz .LBB1_251
; %bb.250:                              ;   in Loop: Header=BB1_95 Depth=2
	v_dual_mov_b32 v39, s8 :: v_dual_mov_b32 v40, v38
	s_add_i32 s8, s6, s1
	s_waitcnt vmcnt(0)
	v_add_co_u32 v4, vcc_lo, v0, s7
	v_add_co_ci_u32_e32 v5, vcc_lo, s8, v1, vcc_lo
	global_store_b128 v[4:5], v[39:42], off offset:8
.LBB1_251:                              ;   in Loop: Header=BB1_95 Depth=2
	s_or_b32 exec_lo, exec_lo, s9
	s_lshl_b64 s[4:5], s[4:5], 12
	v_lshlrev_b64 v[4:5], 6, v[37:38]
	s_waitcnt vmcnt(0)
	v_add_co_u32 v2, vcc_lo, v2, s4
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v3, vcc_lo
	s_mov_b32 s29, s28
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_u32 v6, vcc_lo, v2, v4
	s_mov_b32 s30, s28
	s_mov_b32 s31, s28
	v_add_co_ci_u32_e32 v7, vcc_lo, v3, v5, vcc_lo
	v_dual_mov_b32 v37, v38 :: v_dual_mov_b32 v2, s28
	v_dual_mov_b32 v39, v38 :: v_dual_mov_b32 v4, s30
	v_mov_b32_e32 v3, s29
	v_mov_b32_e32 v5, s31
	s_clause 0x3
	global_store_b128 v[6:7], v[36:39], off
	global_store_b128 v[6:7], v[2:5], off offset:16
	global_store_b128 v[6:7], v[2:5], off offset:32
	global_store_b128 v[6:7], v[2:5], off offset:48
	s_and_saveexec_b32 s4, s0
	s_cbranch_execz .LBB1_259
; %bb.252:                              ;   in Loop: Header=BB1_95 Depth=2
	s_clause 0x1
	global_load_b64 v[12:13], v38, s[70:71] offset:32 glc
	global_load_b64 v[2:3], v38, s[70:71] offset:40
	v_dual_mov_b32 v10, s2 :: v_dual_mov_b32 v11, s3
	s_waitcnt vmcnt(0)
	v_readfirstlane_b32 s8, v2
	v_readfirstlane_b32 s9, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b64 s[8:9], s[8:9], s[2:3]
	s_mul_i32 s5, s9, 24
	s_mul_hi_u32 s9, s8, 24
	s_mul_i32 s8, s8, 24
	s_add_i32 s9, s9, s5
	v_add_co_u32 v8, vcc_lo, v0, s8
	v_add_co_ci_u32_e32 v9, vcc_lo, s9, v1, vcc_lo
	s_mov_b32 s5, exec_lo
	global_store_b64 v[8:9], v[12:13], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[4:5], v38, v[10:13], s[70:71] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmpx_ne_u64_e64 v[4:5], v[12:13]
	s_cbranch_execz .LBB1_255
; %bb.253:                              ; %.preheader1.i.i.i209.preheader
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_mov_b32 s8, 0
.LBB1_254:                              ; %.preheader1.i.i.i209
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	v_dual_mov_b32 v2, s2 :: v_dual_mov_b32 v3, s3
	s_sleep 1
	global_store_b64 v[8:9], v[4:5], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[2:3], v38, v[2:5], s[70:71] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[2:3], v[4:5]
	v_dual_mov_b32 v5, v3 :: v_dual_mov_b32 v4, v2
	s_or_b32 s8, vcc_lo, s8
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s8
	s_cbranch_execnz .LBB1_254
.LBB1_255:                              ; %Flow1061
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_or_b32 exec_lo, exec_lo, s5
	global_load_b64 v[2:3], v38, s[70:71] offset:16
	s_mov_b32 s8, exec_lo
	s_mov_b32 s5, exec_lo
	v_mbcnt_lo_u32_b32 v4, s8, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_eq_u32_e32 0, v4
	s_cbranch_execz .LBB1_257
; %bb.256:                              ;   in Loop: Header=BB1_95 Depth=2
	s_bcnt1_i32_b32 s8, s8
	s_delay_alu instid0(SALU_CYCLE_1)
	v_mov_b32_e32 v37, s8
	s_waitcnt vmcnt(0)
	global_atomic_add_u64 v[2:3], v[37:38], off offset:8
.LBB1_257:                              ;   in Loop: Header=BB1_95 Depth=2
	s_or_b32 exec_lo, exec_lo, s5
	s_waitcnt vmcnt(0)
	global_load_b64 v[4:5], v[2:3], off offset:16
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[4:5]
	s_cbranch_vccnz .LBB1_259
; %bb.258:                              ;   in Loop: Header=BB1_95 Depth=2
	global_load_b32 v37, v[2:3], off offset:24
	s_waitcnt vmcnt(0)
	v_readfirstlane_b32 s5, v37
	s_waitcnt_vscnt null, 0x0
	global_store_b64 v[4:5], v[37:38], off
	s_and_b32 m0, s5, 0xff
	s_sendmsg sendmsg(MSG_INTERRUPT)
.LBB1_259:                              ; %Flow1062
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_or_b32 exec_lo, exec_lo, s4
	s_add_i32 s6, s6, s1
	v_add_co_u32 v0, vcc_lo, v0, s7
	v_add_co_ci_u32_e32 v1, vcc_lo, s6, v1, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, v0, 20
	v_add_co_ci_u32_e32 v1, vcc_lo, 0, v1, vcc_lo
.LBB1_260:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	v_mov_b32_e32 v2, 1
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_262
; %bb.261:                              ;   in Loop: Header=BB1_260 Depth=3
	global_load_b32 v2, v[0:1], off glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_and_b32_e32 v2, 1, v2
.LBB1_262:                              ;   in Loop: Header=BB1_260 Depth=3
	s_or_b32 exec_lo, exec_lo, s1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_readfirstlane_b32 s1, v2
	s_cmp_eq_u32 s1, 0
	s_cbranch_scc1 .LBB1_264
; %bb.263:                              ;   in Loop: Header=BB1_260 Depth=3
	s_mov_b32 s1, 0
	s_sleep 1
	s_branch .LBB1_265
.LBB1_264:                              ;   in Loop: Header=BB1_260 Depth=3
	s_mov_b32 s1, -1
.LBB1_265:                              ; %Flow1056
                                        ;   in Loop: Header=BB1_260 Depth=3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s1
	s_cbranch_vccnz .LBB1_260
; %bb.266:                              ;   in Loop: Header=BB1_95 Depth=2
	global_load_b64 v[0:1], v[6:7], off
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_270
; %bb.267:                              ;   in Loop: Header=BB1_95 Depth=2
	s_clause 0x2
	global_load_b64 v[4:5], v38, s[70:71] offset:40
	global_load_b64 v[8:9], v38, s[70:71] offset:24 glc
	global_load_b64 v[6:7], v38, s[70:71]
	s_waitcnt vmcnt(2)
	v_add_co_u32 v10, vcc_lo, v4, 1
	v_add_co_ci_u32_e32 v11, vcc_lo, 0, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, v10, s2
	v_add_co_ci_u32_e32 v3, vcc_lo, s3, v11, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[2:3]
	v_dual_cndmask_b32 v3, v3, v11 :: v_dual_cndmask_b32 v2, v2, v10
	v_and_b32_e32 v5, v3, v5
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_and_b32_e32 v4, v2, v4
	v_mul_hi_u32 v10, v4, 24
	v_mul_lo_u32 v4, v4, 24
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_add_co_u32 v6, vcc_lo, v6, v4
	v_mov_b32_e32 v4, v8
	v_mul_lo_u32 v5, v5, 24
	v_add_nc_u32_e32 v5, v10, v5
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e32 v7, vcc_lo, v7, v5, vcc_lo
	v_mov_b32_e32 v5, v9
	global_store_b64 v[6:7], v[8:9], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[4:5], v38, v[2:5], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_ne_u64_e32 vcc_lo, v[4:5], v[8:9]
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB1_270
; %bb.268:                              ; %.preheader.i.i.i208.preheader
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_mov_b32 s0, 0
.LBB1_269:                              ; %.preheader.i.i.i208
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_sleep 1
	global_store_b64 v[6:7], v[4:5], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[8:9], v38, v[2:5], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[8:9], v[4:5]
	v_dual_mov_b32 v4, v8 :: v_dual_mov_b32 v5, v9
	s_or_b32 s0, vcc_lo, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s0
	s_cbranch_execnz .LBB1_269
.LBB1_270:                              ; %__ockl_printf_begin.exit212
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_or_b32 exec_lo, exec_lo, s1
	s_add_u32 s8, s18, 40
	s_addc_u32 s9, s19, 0
	s_getpc_b64 s[0:1]
	s_add_u32 s0, s0, .str.1@rel32@lo+4
	s_addc_u32 s1, s1, .str.1@rel32@hi+12
	s_delay_alu instid0(SALU_CYCLE_1)
	v_dual_mov_b32 v2, s0 :: v_dual_mov_b32 v3, s1
	v_dual_mov_b32 v4, s81 :: v_dual_mov_b32 v5, v38
	v_mov_b32_e32 v6, v42
	s_getpc_b64 s[2:3]
	s_add_u32 s2, s2, __ockl_printf_append_string_n@rel32@lo+4
	s_addc_u32 s3, s3, __ockl_printf_append_string_n@rel32@hi+12
	s_delay_alu instid0(SALU_CYCLE_1)
	s_swappc_b64 s[30:31], s[2:3]
	s_mov_b32 s83, 0
.LBB1_271:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB1_274 Depth 4
                                        ;         Child Loop BB1_282 Depth 4
                                        ;         Child Loop BB1_288 Depth 4
                                        ;         Child Loop BB1_297 Depth 4
                                        ;         Child Loop BB1_301 Depth 4
                                        ;         Child Loop BB1_309 Depth 4
                                        ;         Child Loop BB1_315 Depth 4
                                        ;         Child Loop BB1_324 Depth 4
                                        ;         Child Loop BB1_329 Depth 4
                                        ;         Child Loop BB1_337 Depth 4
                                        ;         Child Loop BB1_343 Depth 4
                                        ;         Child Loop BB1_352 Depth 4
	s_delay_alu instid0(SALU_CYCLE_1)
	s_lshl_b32 s0, s83, 3
	v_dual_mov_b32 v37, v95 :: v_dual_mov_b32 v4, 0
	s_addk_i32 s0, 0x4080
	v_mov_b32_e32 v5, 0
	scratch_load_b64 v[45:46], off, s0
	;;#ASMSTART
	;;#ASMEND
	v_readfirstlane_b32 s0, v37
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_eq_u32_e64 s0, s0, v37
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_277
; %bb.272:                              ;   in Loop: Header=BB1_271 Depth=3
	global_load_b64 v[2:3], v38, s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	s_clause 0x1
	global_load_b64 v[0:1], v38, s[70:71] offset:40
	global_load_b64 v[4:5], v38, s[70:71]
	s_mov_b32 s2, exec_lo
	s_waitcnt vmcnt(1)
	v_and_b32_e32 v1, v1, v3
	v_and_b32_e32 v0, v0, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v1, v1, 24
	v_mul_hi_u32 v6, v0, 24
	v_mul_lo_u32 v0, v0, 24
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v1, v6, v1
	s_waitcnt vmcnt(0)
	v_add_co_u32 v0, vcc_lo, v4, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, v5, v1, vcc_lo
	global_load_b64 v[0:1], v[0:1], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[4:5], v38, v[0:3], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmpx_ne_u64_e64 v[4:5], v[2:3]
	s_cbranch_execz .LBB1_276
; %bb.273:                              ; %.preheader3.i.i.i225.preheader
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_mov_b32 s3, 0
.LBB1_274:                              ; %.preheader3.i.i.i225
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_271 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	s_sleep 1
	s_clause 0x1
	global_load_b64 v[0:1], v38, s[70:71] offset:40
	global_load_b64 v[6:7], v38, s[70:71]
	v_dual_mov_b32 v2, v4 :: v_dual_mov_b32 v3, v5
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_and_b32_e32 v0, v0, v2
	v_and_b32_e32 v1, v1, v3
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[4:5], null, v0, 24, v[6:7]
	v_mov_b32_e32 v0, v5
	s_delay_alu instid0(VALU_DEP_1)
	v_mad_u64_u32 v[5:6], null, v1, 24, v[0:1]
	global_load_b64 v[0:1], v[4:5], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[4:5], v38, v[0:3], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmp_eq_u64_e32 vcc_lo, v[4:5], v[2:3]
	s_or_b32 s3, vcc_lo, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s3
	s_cbranch_execnz .LBB1_274
; %bb.275:                              ; %Flow1049
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_or_b32 exec_lo, exec_lo, s3
.LBB1_276:                              ; %Flow1051
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s2
.LBB1_277:                              ; %.loopexit4.i.i.i220
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s1
	s_clause 0x1
	global_load_b64 v[6:7], v38, s[70:71] offset:40
	global_load_b128 v[0:3], v38, s[70:71]
	v_readfirstlane_b32 s2, v4
	v_readfirstlane_b32 s3, v5
	s_mov_b32 s8, exec_lo
	s_waitcnt vmcnt(1)
	v_readfirstlane_b32 s4, v6
	v_readfirstlane_b32 s5, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b64 s[4:5], s[2:3], s[4:5]
	s_mul_i32 s1, s5, 24
	s_mul_hi_u32 s6, s4, 24
	s_mul_i32 s7, s4, 24
	s_and_saveexec_b32 s9, s0
	s_cbranch_execz .LBB1_279
; %bb.278:                              ;   in Loop: Header=BB1_271 Depth=3
	v_dual_mov_b32 v39, s8 :: v_dual_mov_b32 v40, v38
	s_add_i32 s8, s6, s1
	s_waitcnt vmcnt(0)
	v_add_co_u32 v4, vcc_lo, v0, s7
	v_add_co_ci_u32_e32 v5, vcc_lo, s8, v1, vcc_lo
	global_store_b128 v[4:5], v[39:42], off offset:8
.LBB1_279:                              ;   in Loop: Header=BB1_271 Depth=3
	s_or_b32 exec_lo, exec_lo, s9
	s_lshl_b64 s[4:5], s[4:5], 12
	v_lshlrev_b64 v[4:5], 6, v[37:38]
	s_waitcnt vmcnt(0)
	v_add_co_u32 v2, vcc_lo, v2, s4
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v3, vcc_lo
	s_mov_b32 s29, s28
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_u32 v6, vcc_lo, v2, v4
	s_mov_b32 s30, s28
	s_mov_b32 s31, s28
	v_add_co_ci_u32_e32 v7, vcc_lo, v3, v5, vcc_lo
	v_dual_mov_b32 v37, v38 :: v_dual_mov_b32 v2, s28
	v_dual_mov_b32 v39, v38 :: v_dual_mov_b32 v4, s30
	v_mov_b32_e32 v3, s29
	v_mov_b32_e32 v5, s31
	s_clause 0x3
	global_store_b128 v[6:7], v[36:39], off
	global_store_b128 v[6:7], v[2:5], off offset:16
	global_store_b128 v[6:7], v[2:5], off offset:32
	global_store_b128 v[6:7], v[2:5], off offset:48
	s_and_saveexec_b32 s4, s0
	s_cbranch_execz .LBB1_287
; %bb.280:                              ;   in Loop: Header=BB1_271 Depth=3
	s_clause 0x1
	global_load_b64 v[12:13], v38, s[70:71] offset:32 glc
	global_load_b64 v[2:3], v38, s[70:71] offset:40
	v_dual_mov_b32 v10, s2 :: v_dual_mov_b32 v11, s3
	s_waitcnt vmcnt(0)
	v_readfirstlane_b32 s8, v2
	v_readfirstlane_b32 s9, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b64 s[8:9], s[8:9], s[2:3]
	s_mul_i32 s5, s9, 24
	s_mul_hi_u32 s9, s8, 24
	s_mul_i32 s8, s8, 24
	s_add_i32 s9, s9, s5
	v_add_co_u32 v8, vcc_lo, v0, s8
	v_add_co_ci_u32_e32 v9, vcc_lo, s9, v1, vcc_lo
	s_mov_b32 s5, exec_lo
	global_store_b64 v[8:9], v[12:13], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[4:5], v38, v[10:13], s[70:71] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmpx_ne_u64_e64 v[4:5], v[12:13]
	s_cbranch_execz .LBB1_283
; %bb.281:                              ; %.preheader1.i.i.i223.preheader
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_mov_b32 s8, 0
.LBB1_282:                              ; %.preheader1.i.i.i223
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_271 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	v_dual_mov_b32 v2, s2 :: v_dual_mov_b32 v3, s3
	s_sleep 1
	global_store_b64 v[8:9], v[4:5], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[2:3], v38, v[2:5], s[70:71] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[2:3], v[4:5]
	v_dual_mov_b32 v5, v3 :: v_dual_mov_b32 v4, v2
	s_or_b32 s8, vcc_lo, s8
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s8
	s_cbranch_execnz .LBB1_282
.LBB1_283:                              ; %Flow1047
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_or_b32 exec_lo, exec_lo, s5
	global_load_b64 v[2:3], v38, s[70:71] offset:16
	s_mov_b32 s8, exec_lo
	s_mov_b32 s5, exec_lo
	v_mbcnt_lo_u32_b32 v4, s8, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_eq_u32_e32 0, v4
	s_cbranch_execz .LBB1_285
; %bb.284:                              ;   in Loop: Header=BB1_271 Depth=3
	s_bcnt1_i32_b32 s8, s8
	s_delay_alu instid0(SALU_CYCLE_1)
	v_mov_b32_e32 v37, s8
	s_waitcnt vmcnt(0)
	global_atomic_add_u64 v[2:3], v[37:38], off offset:8
.LBB1_285:                              ;   in Loop: Header=BB1_271 Depth=3
	s_or_b32 exec_lo, exec_lo, s5
	s_waitcnt vmcnt(0)
	global_load_b64 v[4:5], v[2:3], off offset:16
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[4:5]
	s_cbranch_vccnz .LBB1_287
; %bb.286:                              ;   in Loop: Header=BB1_271 Depth=3
	global_load_b32 v37, v[2:3], off offset:24
	s_waitcnt vmcnt(0)
	v_readfirstlane_b32 s5, v37
	s_waitcnt_vscnt null, 0x0
	global_store_b64 v[4:5], v[37:38], off
	s_and_b32 m0, s5, 0xff
	s_sendmsg sendmsg(MSG_INTERRUPT)
.LBB1_287:                              ; %Flow1048
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_or_b32 exec_lo, exec_lo, s4
	s_add_i32 s6, s6, s1
	v_add_co_u32 v0, vcc_lo, v0, s7
	v_add_co_ci_u32_e32 v1, vcc_lo, s6, v1, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, v0, 20
	v_add_co_ci_u32_e32 v1, vcc_lo, 0, v1, vcc_lo
.LBB1_288:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_271 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	v_mov_b32_e32 v2, 1
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_290
; %bb.289:                              ;   in Loop: Header=BB1_288 Depth=4
	global_load_b32 v2, v[0:1], off glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_and_b32_e32 v2, 1, v2
.LBB1_290:                              ;   in Loop: Header=BB1_288 Depth=4
	s_or_b32 exec_lo, exec_lo, s1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_readfirstlane_b32 s1, v2
	s_cmp_eq_u32 s1, 0
	s_cbranch_scc1 .LBB1_292
; %bb.291:                              ;   in Loop: Header=BB1_288 Depth=4
	s_mov_b32 s1, 0
	s_sleep 1
	s_branch .LBB1_293
.LBB1_292:                              ;   in Loop: Header=BB1_288 Depth=4
	s_mov_b32 s1, -1
.LBB1_293:                              ; %Flow1042
                                        ;   in Loop: Header=BB1_288 Depth=4
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s1
	s_cbranch_vccnz .LBB1_288
; %bb.294:                              ;   in Loop: Header=BB1_271 Depth=3
	global_load_b64 v[0:1], v[6:7], off
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_298
; %bb.295:                              ;   in Loop: Header=BB1_271 Depth=3
	s_clause 0x2
	global_load_b64 v[4:5], v38, s[70:71] offset:40
	global_load_b64 v[8:9], v38, s[70:71] offset:24 glc
	global_load_b64 v[6:7], v38, s[70:71]
	s_waitcnt vmcnt(2)
	v_add_co_u32 v10, vcc_lo, v4, 1
	v_add_co_ci_u32_e32 v11, vcc_lo, 0, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, v10, s2
	v_add_co_ci_u32_e32 v3, vcc_lo, s3, v11, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[2:3]
	v_dual_cndmask_b32 v3, v3, v11 :: v_dual_cndmask_b32 v2, v2, v10
	v_and_b32_e32 v5, v3, v5
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_and_b32_e32 v4, v2, v4
	v_mul_hi_u32 v10, v4, 24
	v_mul_lo_u32 v4, v4, 24
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_add_co_u32 v6, vcc_lo, v6, v4
	v_mov_b32_e32 v4, v8
	v_mul_lo_u32 v5, v5, 24
	v_add_nc_u32_e32 v5, v10, v5
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e32 v7, vcc_lo, v7, v5, vcc_lo
	v_mov_b32_e32 v5, v9
	global_store_b64 v[6:7], v[8:9], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[4:5], v38, v[2:5], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_ne_u64_e32 vcc_lo, v[4:5], v[8:9]
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB1_298
; %bb.296:                              ; %.preheader.i.i.i222.preheader
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_mov_b32 s0, 0
.LBB1_297:                              ; %.preheader.i.i.i222
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_271 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	s_sleep 1
	global_store_b64 v[6:7], v[4:5], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[8:9], v38, v[2:5], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[8:9], v[4:5]
	v_dual_mov_b32 v4, v8 :: v_dual_mov_b32 v5, v9
	s_or_b32 s0, vcc_lo, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s0
	s_cbranch_execnz .LBB1_297
.LBB1_298:                              ; %__ockl_printf_begin.exit226
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_or_b32 exec_lo, exec_lo, s1
	s_add_u32 s8, s18, 40
	s_addc_u32 s9, s19, 0
	s_getpc_b64 s[0:1]
	s_add_u32 s0, s0, .str.2@rel32@lo+4
	s_addc_u32 s1, s1, .str.2@rel32@hi+12
	s_delay_alu instid0(SALU_CYCLE_1)
	v_dual_mov_b32 v2, s0 :: v_dual_mov_b32 v3, s1
	v_dual_mov_b32 v4, s84 :: v_dual_mov_b32 v5, 0
	v_mov_b32_e32 v6, 0
	s_getpc_b64 s[2:3]
	s_add_u32 s2, s2, __ockl_printf_append_string_n@rel32@lo+4
	s_addc_u32 s3, s3, __ockl_printf_append_string_n@rel32@hi+12
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	s_swappc_b64 s[30:31], s[2:3]
	v_dual_mov_b32 v44, v1 :: v_dual_mov_b32 v37, v95
	;;#ASMSTART
	;;#ASMEND
	v_readfirstlane_b32 s0, v37
	v_mov_b32_e32 v5, 0
	v_mov_b32_e32 v6, 0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_eq_u32_e64 s0, s0, v37
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_304
; %bb.299:                              ;   in Loop: Header=BB1_271 Depth=3
	global_load_b64 v[3:4], v38, s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	s_clause 0x1
	global_load_b64 v[1:2], v38, s[70:71] offset:40
	global_load_b64 v[5:6], v38, s[70:71]
	s_mov_b32 s2, exec_lo
	s_waitcnt vmcnt(1)
	v_and_b32_e32 v2, v2, v4
	v_and_b32_e32 v1, v1, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v2, v2, 24
	v_mul_hi_u32 v7, v1, 24
	v_mul_lo_u32 v1, v1, 24
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v2, v7, v2
	s_waitcnt vmcnt(0)
	v_add_co_u32 v1, vcc_lo, v5, v1
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v2, vcc_lo, v6, v2, vcc_lo
	global_load_b64 v[1:2], v[1:2], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[5:6], v38, v[1:4], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmpx_ne_u64_e64 v[5:6], v[3:4]
	s_cbranch_execz .LBB1_303
; %bb.300:                              ; %.preheader3.i.i.i232.preheader
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_mov_b32 s3, 0
.LBB1_301:                              ; %.preheader3.i.i.i232
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_271 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	s_sleep 1
	s_clause 0x1
	global_load_b64 v[1:2], v38, s[70:71] offset:40
	global_load_b64 v[7:8], v38, s[70:71]
	v_dual_mov_b32 v3, v5 :: v_dual_mov_b32 v4, v6
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_and_b32_e32 v1, v1, v3
	v_and_b32_e32 v2, v2, v4
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[5:6], null, v1, 24, v[7:8]
	v_mov_b32_e32 v1, v6
	s_delay_alu instid0(VALU_DEP_1)
	v_mad_u64_u32 v[6:7], null, v2, 24, v[1:2]
	global_load_b64 v[1:2], v[5:6], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[5:6], v38, v[1:4], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmp_eq_u64_e32 vcc_lo, v[5:6], v[3:4]
	s_or_b32 s3, vcc_lo, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s3
	s_cbranch_execnz .LBB1_301
; %bb.302:                              ; %Flow1035
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_or_b32 exec_lo, exec_lo, s3
.LBB1_303:                              ; %Flow1037
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s2
.LBB1_304:                              ; %.loopexit4.i.i.i227
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s1
	s_clause 0x1
	global_load_b64 v[7:8], v38, s[70:71] offset:40
	global_load_b128 v[1:4], v38, s[70:71]
	v_readfirstlane_b32 s2, v5
	v_readfirstlane_b32 s3, v6
	s_mov_b32 s8, exec_lo
	s_waitcnt vmcnt(1)
	v_readfirstlane_b32 s4, v7
	v_readfirstlane_b32 s5, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b64 s[4:5], s[2:3], s[4:5]
	s_mul_i32 s1, s5, 24
	s_mul_hi_u32 s6, s4, 24
	s_mul_i32 s7, s4, 24
	s_and_saveexec_b32 s9, s0
	s_cbranch_execz .LBB1_306
; %bb.305:                              ;   in Loop: Header=BB1_271 Depth=3
	v_dual_mov_b32 v39, s8 :: v_dual_mov_b32 v40, v38
	s_add_i32 s8, s6, s1
	s_waitcnt vmcnt(0)
	v_add_co_u32 v5, vcc_lo, v1, s7
	v_add_co_ci_u32_e32 v6, vcc_lo, s8, v2, vcc_lo
	global_store_b128 v[5:6], v[39:42], off offset:8
.LBB1_306:                              ;   in Loop: Header=BB1_271 Depth=3
	s_or_b32 exec_lo, exec_lo, s9
	s_lshl_b64 s[4:5], s[4:5], 12
	s_mov_b32 s29, s28
	s_waitcnt vmcnt(0)
	v_add_co_u32 v5, vcc_lo, v3, s4
	v_add_co_ci_u32_e32 v6, vcc_lo, s5, v4, vcc_lo
	v_lshlrev_b64 v[3:4], 6, v[37:38]
	s_mov_b32 s30, s28
	s_mov_b32 s31, s28
	v_and_or_b32 v43, 0xffffff1d, v0, 34
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v7, vcc_lo, v5, v3
	v_add_co_ci_u32_e32 v8, vcc_lo, v6, v4, vcc_lo
	v_dual_mov_b32 v3, s28 :: v_dual_mov_b32 v4, s29
	v_dual_mov_b32 v5, s30 :: v_dual_mov_b32 v6, s31
	s_clause 0x3
	global_store_b128 v[7:8], v[43:46], off
	global_store_b128 v[7:8], v[3:6], off offset:16
	global_store_b128 v[7:8], v[3:6], off offset:32
	global_store_b128 v[7:8], v[3:6], off offset:48
	s_and_saveexec_b32 s4, s0
	s_cbranch_execz .LBB1_314
; %bb.307:                              ;   in Loop: Header=BB1_271 Depth=3
	s_clause 0x1
	global_load_b64 v[11:12], v38, s[70:71] offset:32 glc
	global_load_b64 v[3:4], v38, s[70:71] offset:40
	v_dual_mov_b32 v9, s2 :: v_dual_mov_b32 v10, s3
	s_waitcnt vmcnt(0)
	v_readfirstlane_b32 s8, v3
	v_readfirstlane_b32 s9, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b64 s[8:9], s[8:9], s[2:3]
	s_mul_i32 s5, s9, 24
	s_mul_hi_u32 s9, s8, 24
	s_mul_i32 s8, s8, 24
	s_add_i32 s9, s9, s5
	v_add_co_u32 v7, vcc_lo, v1, s8
	v_add_co_ci_u32_e32 v8, vcc_lo, s9, v2, vcc_lo
	s_mov_b32 s5, exec_lo
	global_store_b64 v[7:8], v[11:12], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[5:6], v38, v[9:12], s[70:71] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmpx_ne_u64_e64 v[5:6], v[11:12]
	s_cbranch_execz .LBB1_310
; %bb.308:                              ; %.preheader1.i.i.i230.preheader
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_mov_b32 s8, 0
.LBB1_309:                              ; %.preheader1.i.i.i230
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_271 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	v_dual_mov_b32 v3, s2 :: v_dual_mov_b32 v4, s3
	s_sleep 1
	global_store_b64 v[7:8], v[5:6], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[3:4], v38, v[3:6], s[70:71] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[3:4], v[5:6]
	v_dual_mov_b32 v6, v4 :: v_dual_mov_b32 v5, v3
	s_or_b32 s8, vcc_lo, s8
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s8
	s_cbranch_execnz .LBB1_309
.LBB1_310:                              ; %Flow1033
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_or_b32 exec_lo, exec_lo, s5
	global_load_b64 v[3:4], v38, s[70:71] offset:16
	s_mov_b32 s8, exec_lo
	s_mov_b32 s5, exec_lo
	v_mbcnt_lo_u32_b32 v0, s8, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_eq_u32_e32 0, v0
	s_cbranch_execz .LBB1_312
; %bb.311:                              ;   in Loop: Header=BB1_271 Depth=3
	s_bcnt1_i32_b32 s8, s8
	s_delay_alu instid0(SALU_CYCLE_1)
	v_mov_b32_e32 v37, s8
	s_waitcnt vmcnt(0)
	global_atomic_add_u64 v[3:4], v[37:38], off offset:8
.LBB1_312:                              ;   in Loop: Header=BB1_271 Depth=3
	s_or_b32 exec_lo, exec_lo, s5
	s_waitcnt vmcnt(0)
	global_load_b64 v[5:6], v[3:4], off offset:16
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[5:6]
	s_cbranch_vccnz .LBB1_314
; %bb.313:                              ;   in Loop: Header=BB1_271 Depth=3
	global_load_b32 v37, v[3:4], off offset:24
	s_waitcnt vmcnt(0)
	v_readfirstlane_b32 s5, v37
	s_waitcnt_vscnt null, 0x0
	global_store_b64 v[5:6], v[37:38], off
	s_and_b32 m0, s5, 0xff
	s_sendmsg sendmsg(MSG_INTERRUPT)
.LBB1_314:                              ; %Flow1034
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_or_b32 exec_lo, exec_lo, s4
	s_add_i32 s6, s6, s1
	v_add_co_u32 v0, vcc_lo, v1, s7
	v_add_co_ci_u32_e32 v1, vcc_lo, s6, v2, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, v0, 20
	v_add_co_ci_u32_e32 v1, vcc_lo, 0, v1, vcc_lo
.LBB1_315:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_271 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	v_mov_b32_e32 v2, 1
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_317
; %bb.316:                              ;   in Loop: Header=BB1_315 Depth=4
	global_load_b32 v2, v[0:1], off glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_and_b32_e32 v2, 1, v2
.LBB1_317:                              ;   in Loop: Header=BB1_315 Depth=4
	s_or_b32 exec_lo, exec_lo, s1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_readfirstlane_b32 s1, v2
	s_cmp_eq_u32 s1, 0
	s_cbranch_scc1 .LBB1_319
; %bb.318:                              ;   in Loop: Header=BB1_315 Depth=4
	s_mov_b32 s1, 0
	s_sleep 1
	s_branch .LBB1_320
.LBB1_319:                              ;   in Loop: Header=BB1_315 Depth=4
	s_mov_b32 s1, -1
.LBB1_320:                              ; %Flow1028
                                        ;   in Loop: Header=BB1_315 Depth=4
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s1
	s_cbranch_vccnz .LBB1_315
; %bb.321:                              ;   in Loop: Header=BB1_271 Depth=3
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_325
; %bb.322:                              ;   in Loop: Header=BB1_271 Depth=3
	s_clause 0x2
	global_load_b64 v[2:3], v38, s[70:71] offset:40
	global_load_b64 v[6:7], v38, s[70:71] offset:24 glc
	global_load_b64 v[4:5], v38, s[70:71]
	s_waitcnt vmcnt(2)
	v_add_co_u32 v8, vcc_lo, v2, 1
	v_add_co_ci_u32_e32 v9, vcc_lo, 0, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, v8, s2
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v9, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[0:1]
	v_dual_cndmask_b32 v1, v1, v9 :: v_dual_cndmask_b32 v0, v0, v8
	v_and_b32_e32 v3, v1, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_and_b32_e32 v2, v0, v2
	v_mul_hi_u32 v8, v2, 24
	v_mul_lo_u32 v2, v2, 24
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_add_co_u32 v4, vcc_lo, v4, v2
	v_mov_b32_e32 v2, v6
	v_mul_lo_u32 v3, v3, 24
	v_add_nc_u32_e32 v3, v8, v3
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e32 v5, vcc_lo, v5, v3, vcc_lo
	v_mov_b32_e32 v3, v7
	global_store_b64 v[4:5], v[6:7], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[2:3], v38, v[0:3], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_ne_u64_e32 vcc_lo, v[2:3], v[6:7]
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB1_325
; %bb.323:                              ; %.preheader.i.i.i229.preheader
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_mov_b32 s0, 0
.LBB1_324:                              ; %.preheader.i.i.i229
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_271 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	s_sleep 1
	global_store_b64 v[4:5], v[2:3], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[6:7], v38, v[0:3], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[6:7], v[2:3]
	v_dual_mov_b32 v2, v6 :: v_dual_mov_b32 v3, v7
	s_or_b32 s0, vcc_lo, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s0
	s_cbranch_execnz .LBB1_324
.LBB1_325:                              ; %__ockl_printf_append_args.exit233
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_or_b32 exec_lo, exec_lo, s1
	s_mul_i32 s0, s83, 0xcccccccd
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_gt_u32 s0, 0x33333333
	s_cbranch_scc1 .LBB1_354
; %bb.326:                              ;   in Loop: Header=BB1_271 Depth=3
	v_dual_mov_b32 v37, v95 :: v_dual_mov_b32 v4, 0
	;;#ASMSTART
	;;#ASMEND
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_readfirstlane_b32 s0, v37
	v_mov_b32_e32 v5, 0
	v_cmp_eq_u32_e64 s0, s0, v37
	s_delay_alu instid0(VALU_DEP_1)
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_332
; %bb.327:                              ;   in Loop: Header=BB1_271 Depth=3
	global_load_b64 v[2:3], v38, s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	s_clause 0x1
	global_load_b64 v[0:1], v38, s[70:71] offset:40
	global_load_b64 v[4:5], v38, s[70:71]
	s_mov_b32 s2, exec_lo
	s_waitcnt vmcnt(1)
	v_and_b32_e32 v1, v1, v3
	v_and_b32_e32 v0, v0, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v1, v1, 24
	v_mul_hi_u32 v6, v0, 24
	v_mul_lo_u32 v0, v0, 24
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v1, v6, v1
	s_waitcnt vmcnt(0)
	v_add_co_u32 v0, vcc_lo, v4, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, v5, v1, vcc_lo
	global_load_b64 v[0:1], v[0:1], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[4:5], v38, v[0:3], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmpx_ne_u64_e64 v[4:5], v[2:3]
	s_cbranch_execz .LBB1_331
; %bb.328:                              ; %.preheader3.i.i.i239.preheader
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_mov_b32 s3, 0
.LBB1_329:                              ; %.preheader3.i.i.i239
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_271 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	s_sleep 1
	s_clause 0x1
	global_load_b64 v[0:1], v38, s[70:71] offset:40
	global_load_b64 v[6:7], v38, s[70:71]
	v_dual_mov_b32 v2, v4 :: v_dual_mov_b32 v3, v5
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_and_b32_e32 v0, v0, v2
	v_and_b32_e32 v1, v1, v3
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[4:5], null, v0, 24, v[6:7]
	v_mov_b32_e32 v0, v5
	s_delay_alu instid0(VALU_DEP_1)
	v_mad_u64_u32 v[5:6], null, v1, 24, v[0:1]
	global_load_b64 v[0:1], v[4:5], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[4:5], v38, v[0:3], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmp_eq_u64_e32 vcc_lo, v[4:5], v[2:3]
	s_or_b32 s3, vcc_lo, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s3
	s_cbranch_execnz .LBB1_329
; %bb.330:                              ; %Flow1020
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_or_b32 exec_lo, exec_lo, s3
.LBB1_331:                              ; %Flow1022
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s2
.LBB1_332:                              ; %.loopexit4.i.i.i234
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s1
	s_clause 0x1
	global_load_b64 v[6:7], v38, s[70:71] offset:40
	global_load_b128 v[0:3], v38, s[70:71]
	v_readfirstlane_b32 s2, v4
	v_readfirstlane_b32 s3, v5
	s_mov_b32 s8, exec_lo
	s_waitcnt vmcnt(1)
	v_readfirstlane_b32 s4, v6
	v_readfirstlane_b32 s5, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b64 s[4:5], s[2:3], s[4:5]
	s_mul_i32 s1, s5, 24
	s_mul_hi_u32 s6, s4, 24
	s_mul_i32 s7, s4, 24
	s_and_saveexec_b32 s9, s0
	s_cbranch_execz .LBB1_334
; %bb.333:                              ;   in Loop: Header=BB1_271 Depth=3
	v_dual_mov_b32 v39, s8 :: v_dual_mov_b32 v40, v38
	s_add_i32 s8, s6, s1
	s_waitcnt vmcnt(0)
	v_add_co_u32 v4, vcc_lo, v0, s7
	v_add_co_ci_u32_e32 v5, vcc_lo, s8, v1, vcc_lo
	global_store_b128 v[4:5], v[39:42], off offset:8
.LBB1_334:                              ;   in Loop: Header=BB1_271 Depth=3
	s_or_b32 exec_lo, exec_lo, s9
	s_lshl_b64 s[4:5], s[4:5], 12
	v_lshlrev_b64 v[4:5], 6, v[37:38]
	s_waitcnt vmcnt(0)
	v_add_co_u32 v2, vcc_lo, v2, s4
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v3, vcc_lo
	s_mov_b32 s29, s28
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_u32 v6, vcc_lo, v2, v4
	s_mov_b32 s30, s28
	s_mov_b32 s31, s28
	v_add_co_ci_u32_e32 v7, vcc_lo, v3, v5, vcc_lo
	v_dual_mov_b32 v37, v38 :: v_dual_mov_b32 v2, s28
	v_dual_mov_b32 v39, v38 :: v_dual_mov_b32 v4, s30
	v_mov_b32_e32 v3, s29
	v_mov_b32_e32 v5, s31
	s_clause 0x3
	global_store_b128 v[6:7], v[36:39], off
	global_store_b128 v[6:7], v[2:5], off offset:16
	global_store_b128 v[6:7], v[2:5], off offset:32
	global_store_b128 v[6:7], v[2:5], off offset:48
	s_and_saveexec_b32 s4, s0
	s_cbranch_execz .LBB1_342
; %bb.335:                              ;   in Loop: Header=BB1_271 Depth=3
	s_clause 0x1
	global_load_b64 v[12:13], v38, s[70:71] offset:32 glc
	global_load_b64 v[2:3], v38, s[70:71] offset:40
	v_dual_mov_b32 v10, s2 :: v_dual_mov_b32 v11, s3
	s_waitcnt vmcnt(0)
	v_readfirstlane_b32 s8, v2
	v_readfirstlane_b32 s9, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b64 s[8:9], s[8:9], s[2:3]
	s_mul_i32 s5, s9, 24
	s_mul_hi_u32 s9, s8, 24
	s_mul_i32 s8, s8, 24
	s_add_i32 s9, s9, s5
	v_add_co_u32 v8, vcc_lo, v0, s8
	v_add_co_ci_u32_e32 v9, vcc_lo, s9, v1, vcc_lo
	s_mov_b32 s5, exec_lo
	global_store_b64 v[8:9], v[12:13], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[4:5], v38, v[10:13], s[70:71] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmpx_ne_u64_e64 v[4:5], v[12:13]
	s_cbranch_execz .LBB1_338
; %bb.336:                              ; %.preheader1.i.i.i237.preheader
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_mov_b32 s8, 0
.LBB1_337:                              ; %.preheader1.i.i.i237
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_271 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	v_dual_mov_b32 v2, s2 :: v_dual_mov_b32 v3, s3
	s_sleep 1
	global_store_b64 v[8:9], v[4:5], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[2:3], v38, v[2:5], s[70:71] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[2:3], v[4:5]
	v_dual_mov_b32 v5, v3 :: v_dual_mov_b32 v4, v2
	s_or_b32 s8, vcc_lo, s8
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s8
	s_cbranch_execnz .LBB1_337
.LBB1_338:                              ; %Flow1018
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_or_b32 exec_lo, exec_lo, s5
	global_load_b64 v[2:3], v38, s[70:71] offset:16
	s_mov_b32 s8, exec_lo
	s_mov_b32 s5, exec_lo
	v_mbcnt_lo_u32_b32 v4, s8, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_eq_u32_e32 0, v4
	s_cbranch_execz .LBB1_340
; %bb.339:                              ;   in Loop: Header=BB1_271 Depth=3
	s_bcnt1_i32_b32 s8, s8
	s_delay_alu instid0(SALU_CYCLE_1)
	v_mov_b32_e32 v37, s8
	s_waitcnt vmcnt(0)
	global_atomic_add_u64 v[2:3], v[37:38], off offset:8
.LBB1_340:                              ;   in Loop: Header=BB1_271 Depth=3
	s_or_b32 exec_lo, exec_lo, s5
	s_waitcnt vmcnt(0)
	global_load_b64 v[4:5], v[2:3], off offset:16
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[4:5]
	s_cbranch_vccnz .LBB1_342
; %bb.341:                              ;   in Loop: Header=BB1_271 Depth=3
	global_load_b32 v37, v[2:3], off offset:24
	s_waitcnt vmcnt(0)
	v_readfirstlane_b32 s5, v37
	s_waitcnt_vscnt null, 0x0
	global_store_b64 v[4:5], v[37:38], off
	s_and_b32 m0, s5, 0xff
	s_sendmsg sendmsg(MSG_INTERRUPT)
.LBB1_342:                              ; %Flow1019
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_or_b32 exec_lo, exec_lo, s4
	s_add_i32 s6, s6, s1
	v_add_co_u32 v0, vcc_lo, v0, s7
	v_add_co_ci_u32_e32 v1, vcc_lo, s6, v1, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, v0, 20
	v_add_co_ci_u32_e32 v1, vcc_lo, 0, v1, vcc_lo
.LBB1_343:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_271 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	v_mov_b32_e32 v2, 1
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_345
; %bb.344:                              ;   in Loop: Header=BB1_343 Depth=4
	global_load_b32 v2, v[0:1], off glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_and_b32_e32 v2, 1, v2
.LBB1_345:                              ;   in Loop: Header=BB1_343 Depth=4
	s_or_b32 exec_lo, exec_lo, s1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_readfirstlane_b32 s1, v2
	s_cmp_eq_u32 s1, 0
	s_cbranch_scc1 .LBB1_347
; %bb.346:                              ;   in Loop: Header=BB1_343 Depth=4
	s_mov_b32 s1, 0
	s_sleep 1
	s_branch .LBB1_348
.LBB1_347:                              ;   in Loop: Header=BB1_343 Depth=4
	s_mov_b32 s1, -1
.LBB1_348:                              ; %Flow1013
                                        ;   in Loop: Header=BB1_343 Depth=4
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s1
	s_cbranch_vccnz .LBB1_343
; %bb.349:                              ;   in Loop: Header=BB1_271 Depth=3
	global_load_b64 v[0:1], v[6:7], off
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_353
; %bb.350:                              ;   in Loop: Header=BB1_271 Depth=3
	s_clause 0x2
	global_load_b64 v[4:5], v38, s[70:71] offset:40
	global_load_b64 v[8:9], v38, s[70:71] offset:24 glc
	global_load_b64 v[6:7], v38, s[70:71]
	s_waitcnt vmcnt(2)
	v_add_co_u32 v10, vcc_lo, v4, 1
	v_add_co_ci_u32_e32 v11, vcc_lo, 0, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, v10, s2
	v_add_co_ci_u32_e32 v3, vcc_lo, s3, v11, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[2:3]
	v_dual_cndmask_b32 v3, v3, v11 :: v_dual_cndmask_b32 v2, v2, v10
	v_and_b32_e32 v5, v3, v5
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_and_b32_e32 v4, v2, v4
	v_mul_hi_u32 v10, v4, 24
	v_mul_lo_u32 v4, v4, 24
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_add_co_u32 v6, vcc_lo, v6, v4
	v_mov_b32_e32 v4, v8
	v_mul_lo_u32 v5, v5, 24
	v_add_nc_u32_e32 v5, v10, v5
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e32 v7, vcc_lo, v7, v5, vcc_lo
	v_mov_b32_e32 v5, v9
	global_store_b64 v[6:7], v[8:9], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[4:5], v38, v[2:5], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_ne_u64_e32 vcc_lo, v[4:5], v[8:9]
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB1_353
; %bb.351:                              ; %.preheader.i.i.i236.preheader
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_mov_b32 s0, 0
.LBB1_352:                              ; %.preheader.i.i.i236
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ;       Parent Loop BB1_271 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	s_sleep 1
	global_store_b64 v[6:7], v[4:5], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[8:9], v38, v[2:5], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[8:9], v[4:5]
	v_dual_mov_b32 v4, v8 :: v_dual_mov_b32 v5, v9
	s_or_b32 s0, vcc_lo, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s0
	s_cbranch_execnz .LBB1_352
.LBB1_353:                              ; %__ockl_printf_begin.exit240
                                        ;   in Loop: Header=BB1_271 Depth=3
	s_or_b32 exec_lo, exec_lo, s1
	s_add_u32 s8, s18, 40
	s_addc_u32 s9, s19, 0
	s_getpc_b64 s[0:1]
	s_add_u32 s0, s0, .str.3@rel32@lo+4
	s_addc_u32 s1, s1, .str.3@rel32@hi+12
	s_delay_alu instid0(SALU_CYCLE_1)
	v_dual_mov_b32 v2, s0 :: v_dual_mov_b32 v3, s1
	v_dual_mov_b32 v4, v47 :: v_dual_mov_b32 v5, 0
	v_mov_b32_e32 v6, 1
	s_getpc_b64 s[2:3]
	s_add_u32 s2, s2, __ockl_printf_append_string_n@rel32@lo+4
	s_addc_u32 s3, s3, __ockl_printf_append_string_n@rel32@hi+12
	s_delay_alu instid0(SALU_CYCLE_1)
	s_swappc_b64 s[30:31], s[2:3]
.LBB1_354:                              ;   in Loop: Header=BB1_271 Depth=3
	s_add_i32 s83, s83, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u32 s83, 25
	s_cbranch_scc0 .LBB1_271
; %bb.355:                              ;   in Loop: Header=BB1_95 Depth=2
	v_dual_mov_b32 v37, v95 :: v_dual_mov_b32 v4, 0
	;;#ASMSTART
	;;#ASMEND
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_readfirstlane_b32 s0, v37
	v_mov_b32_e32 v5, 0
	v_cmp_eq_u32_e64 s0, s0, v37
	s_delay_alu instid0(VALU_DEP_1)
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_361
; %bb.356:                              ;   in Loop: Header=BB1_95 Depth=2
	global_load_b64 v[2:3], v38, s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	s_clause 0x1
	global_load_b64 v[0:1], v38, s[70:71] offset:40
	global_load_b64 v[4:5], v38, s[70:71]
	s_mov_b32 s2, exec_lo
	s_waitcnt vmcnt(1)
	v_and_b32_e32 v1, v1, v3
	v_and_b32_e32 v0, v0, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v1, v1, 24
	v_mul_hi_u32 v6, v0, 24
	v_mul_lo_u32 v0, v0, 24
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v1, v6, v1
	s_waitcnt vmcnt(0)
	v_add_co_u32 v0, vcc_lo, v4, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, v5, v1, vcc_lo
	global_load_b64 v[0:1], v[0:1], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[4:5], v38, v[0:3], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmpx_ne_u64_e64 v[4:5], v[2:3]
	s_cbranch_execz .LBB1_360
; %bb.357:                              ; %.preheader3.i.i.i218.preheader
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_mov_b32 s3, 0
.LBB1_358:                              ; %.preheader3.i.i.i218
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_sleep 1
	s_clause 0x1
	global_load_b64 v[0:1], v38, s[70:71] offset:40
	global_load_b64 v[6:7], v38, s[70:71]
	v_dual_mov_b32 v2, v4 :: v_dual_mov_b32 v3, v5
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_and_b32_e32 v0, v0, v2
	v_and_b32_e32 v1, v1, v3
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[4:5], null, v0, 24, v[6:7]
	v_mov_b32_e32 v0, v5
	s_delay_alu instid0(VALU_DEP_1)
	v_mad_u64_u32 v[5:6], null, v1, 24, v[0:1]
	global_load_b64 v[0:1], v[4:5], off glc
	s_waitcnt vmcnt(0)
	global_atomic_cmpswap_b64 v[4:5], v38, v[0:3], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_cmp_eq_u64_e32 vcc_lo, v[4:5], v[2:3]
	s_or_b32 s3, vcc_lo, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s3
	s_cbranch_execnz .LBB1_358
; %bb.359:                              ; %Flow1006
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_or_b32 exec_lo, exec_lo, s3
.LBB1_360:                              ; %Flow1008
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s2
.LBB1_361:                              ; %.loopexit4.i.i.i213
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s1
	s_clause 0x1
	global_load_b64 v[6:7], v38, s[70:71] offset:40
	global_load_b128 v[0:3], v38, s[70:71]
	v_readfirstlane_b32 s2, v4
	v_readfirstlane_b32 s3, v5
	s_mov_b32 s8, exec_lo
	s_waitcnt vmcnt(1)
	v_readfirstlane_b32 s4, v6
	v_readfirstlane_b32 s5, v7
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b64 s[4:5], s[2:3], s[4:5]
	s_mul_i32 s1, s5, 24
	s_mul_hi_u32 s6, s4, 24
	s_mul_i32 s7, s4, 24
	s_and_saveexec_b32 s9, s0
	s_cbranch_execz .LBB1_363
; %bb.362:                              ;   in Loop: Header=BB1_95 Depth=2
	v_dual_mov_b32 v39, s8 :: v_dual_mov_b32 v40, v38
	s_add_i32 s8, s6, s1
	s_waitcnt vmcnt(0)
	v_add_co_u32 v4, vcc_lo, v0, s7
	v_add_co_ci_u32_e32 v5, vcc_lo, s8, v1, vcc_lo
	global_store_b128 v[4:5], v[39:42], off offset:8
.LBB1_363:                              ;   in Loop: Header=BB1_95 Depth=2
	s_or_b32 exec_lo, exec_lo, s9
	s_lshl_b64 s[4:5], s[4:5], 12
	v_lshlrev_b64 v[4:5], 6, v[37:38]
	s_waitcnt vmcnt(0)
	v_add_co_u32 v2, vcc_lo, v2, s4
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v3, vcc_lo
	s_mov_b32 s29, s28
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_u32 v6, vcc_lo, v2, v4
	s_mov_b32 s30, s28
	s_mov_b32 s31, s28
	v_add_co_ci_u32_e32 v7, vcc_lo, v3, v5, vcc_lo
	v_dual_mov_b32 v37, v38 :: v_dual_mov_b32 v2, s28
	v_dual_mov_b32 v39, v38 :: v_dual_mov_b32 v4, s30
	v_mov_b32_e32 v3, s29
	v_mov_b32_e32 v5, s31
	s_clause 0x3
	global_store_b128 v[6:7], v[36:39], off
	global_store_b128 v[6:7], v[2:5], off offset:16
	global_store_b128 v[6:7], v[2:5], off offset:32
	global_store_b128 v[6:7], v[2:5], off offset:48
	s_and_saveexec_b32 s4, s0
	s_cbranch_execz .LBB1_371
; %bb.364:                              ;   in Loop: Header=BB1_95 Depth=2
	s_clause 0x1
	global_load_b64 v[12:13], v38, s[70:71] offset:32 glc
	global_load_b64 v[2:3], v38, s[70:71] offset:40
	v_dual_mov_b32 v10, s2 :: v_dual_mov_b32 v11, s3
	s_waitcnt vmcnt(0)
	v_readfirstlane_b32 s8, v2
	v_readfirstlane_b32 s9, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b64 s[8:9], s[8:9], s[2:3]
	s_mul_i32 s5, s9, 24
	s_mul_hi_u32 s9, s8, 24
	s_mul_i32 s8, s8, 24
	s_add_i32 s9, s9, s5
	v_add_co_u32 v8, vcc_lo, v0, s8
	v_add_co_ci_u32_e32 v9, vcc_lo, s9, v1, vcc_lo
	s_mov_b32 s5, exec_lo
	global_store_b64 v[8:9], v[12:13], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[4:5], v38, v[10:13], s[70:71] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmpx_ne_u64_e64 v[4:5], v[12:13]
	s_cbranch_execz .LBB1_367
; %bb.365:                              ; %.preheader1.i.i.i216.preheader
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_mov_b32 s8, 0
.LBB1_366:                              ; %.preheader1.i.i.i216
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	v_dual_mov_b32 v2, s2 :: v_dual_mov_b32 v3, s3
	s_sleep 1
	global_store_b64 v[8:9], v[4:5], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[2:3], v38, v[2:5], s[70:71] offset:32 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[2:3], v[4:5]
	v_dual_mov_b32 v5, v3 :: v_dual_mov_b32 v4, v2
	s_or_b32 s8, vcc_lo, s8
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s8
	s_cbranch_execnz .LBB1_366
.LBB1_367:                              ; %Flow1004
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_or_b32 exec_lo, exec_lo, s5
	global_load_b64 v[2:3], v38, s[70:71] offset:16
	s_mov_b32 s8, exec_lo
	s_mov_b32 s5, exec_lo
	v_mbcnt_lo_u32_b32 v4, s8, 0
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_eq_u32_e32 0, v4
	s_cbranch_execz .LBB1_369
; %bb.368:                              ;   in Loop: Header=BB1_95 Depth=2
	s_bcnt1_i32_b32 s8, s8
	s_delay_alu instid0(SALU_CYCLE_1)
	v_mov_b32_e32 v37, s8
	s_waitcnt vmcnt(0)
	global_atomic_add_u64 v[2:3], v[37:38], off offset:8
.LBB1_369:                              ;   in Loop: Header=BB1_95 Depth=2
	s_or_b32 exec_lo, exec_lo, s5
	s_waitcnt vmcnt(0)
	global_load_b64 v[4:5], v[2:3], off offset:16
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[4:5]
	s_cbranch_vccnz .LBB1_371
; %bb.370:                              ;   in Loop: Header=BB1_95 Depth=2
	global_load_b32 v37, v[2:3], off offset:24
	s_waitcnt vmcnt(0)
	v_readfirstlane_b32 s5, v37
	s_waitcnt_vscnt null, 0x0
	global_store_b64 v[4:5], v[37:38], off
	s_and_b32 m0, s5, 0xff
	s_sendmsg sendmsg(MSG_INTERRUPT)
.LBB1_371:                              ; %Flow1005
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_or_b32 exec_lo, exec_lo, s4
	s_add_i32 s6, s6, s1
	v_add_co_u32 v0, vcc_lo, v0, s7
	v_add_co_ci_u32_e32 v1, vcc_lo, s6, v1, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, v0, 20
	v_add_co_ci_u32_e32 v1, vcc_lo, 0, v1, vcc_lo
.LBB1_372:                              ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	v_mov_b32_e32 v2, 1
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_374
; %bb.373:                              ;   in Loop: Header=BB1_372 Depth=3
	global_load_b32 v2, v[0:1], off glc
	s_waitcnt vmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
	v_and_b32_e32 v2, 1, v2
.LBB1_374:                              ;   in Loop: Header=BB1_372 Depth=3
	s_or_b32 exec_lo, exec_lo, s1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_readfirstlane_b32 s1, v2
	s_cmp_eq_u32 s1, 0
	s_cbranch_scc1 .LBB1_376
; %bb.375:                              ;   in Loop: Header=BB1_372 Depth=3
	s_mov_b32 s1, 0
	s_sleep 1
	s_branch .LBB1_377
.LBB1_376:                              ;   in Loop: Header=BB1_372 Depth=3
	s_mov_b32 s1, -1
.LBB1_377:                              ; %Flow999
                                        ;   in Loop: Header=BB1_372 Depth=3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 vcc_lo, exec_lo, s1
	s_cbranch_vccnz .LBB1_372
; %bb.378:                              ;   in Loop: Header=BB1_95 Depth=2
	global_load_b64 v[0:1], v[6:7], off
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB1_382
; %bb.379:                              ;   in Loop: Header=BB1_95 Depth=2
	s_clause 0x2
	global_load_b64 v[4:5], v38, s[70:71] offset:40
	global_load_b64 v[8:9], v38, s[70:71] offset:24 glc
	global_load_b64 v[6:7], v38, s[70:71]
	s_waitcnt vmcnt(2)
	v_add_co_u32 v10, vcc_lo, v4, 1
	v_add_co_ci_u32_e32 v11, vcc_lo, 0, v5, vcc_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, v10, s2
	v_add_co_ci_u32_e32 v3, vcc_lo, s3, v11, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_eq_u64_e32 vcc_lo, 0, v[2:3]
	v_dual_cndmask_b32 v3, v3, v11 :: v_dual_cndmask_b32 v2, v2, v10
	v_and_b32_e32 v5, v3, v5
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_and_b32_e32 v4, v2, v4
	v_mul_hi_u32 v10, v4, 24
	v_mul_lo_u32 v4, v4, 24
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_add_co_u32 v6, vcc_lo, v6, v4
	v_mov_b32_e32 v4, v8
	v_mul_lo_u32 v5, v5, 24
	v_add_nc_u32_e32 v5, v10, v5
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e32 v7, vcc_lo, v7, v5, vcc_lo
	v_mov_b32_e32 v5, v9
	global_store_b64 v[6:7], v[8:9], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[4:5], v38, v[2:5], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_ne_u64_e32 vcc_lo, v[4:5], v[8:9]
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB1_382
; %bb.380:                              ; %.preheader.i.i.i215.preheader
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_mov_b32 s0, 0
.LBB1_381:                              ; %.preheader.i.i.i215
                                        ;   Parent Loop BB1_3 Depth=1
                                        ;     Parent Loop BB1_95 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	s_sleep 1
	global_store_b64 v[6:7], v[4:5], off
	s_waitcnt_vscnt null, 0x0
	global_atomic_cmpswap_b64 v[8:9], v38, v[2:5], s[70:71] offset:24 glc
	s_waitcnt vmcnt(0)
	v_cmp_eq_u64_e32 vcc_lo, v[8:9], v[4:5]
	v_dual_mov_b32 v4, v8 :: v_dual_mov_b32 v5, v9
	s_or_b32 s0, vcc_lo, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_not1_b32 exec_lo, exec_lo, s0
	s_cbranch_execnz .LBB1_381
.LBB1_382:                              ; %__ockl_printf_begin.exit219
                                        ;   in Loop: Header=BB1_95 Depth=2
	s_or_b32 exec_lo, exec_lo, s1
	s_add_u32 s8, s18, 40
	s_addc_u32 s9, s19, 0
	s_getpc_b64 s[0:1]
	s_add_u32 s0, s0, .str.3@rel32@lo+4
	s_addc_u32 s1, s1, .str.3@rel32@hi+12
	s_delay_alu instid0(SALU_CYCLE_1)
	v_dual_mov_b32 v2, s0 :: v_dual_mov_b32 v3, s1
	v_dual_mov_b32 v4, v47 :: v_dual_mov_b32 v5, v38
	v_mov_b32_e32 v6, v42
	s_getpc_b64 s[2:3]
	s_add_u32 s2, s2, __ockl_printf_append_string_n@rel32@lo+4
	s_addc_u32 s3, s3, __ockl_printf_append_string_n@rel32@hi+12
	s_delay_alu instid0(SALU_CYCLE_1)
	s_swappc_b64 s[30:31], s[2:3]
.LBB1_383:                              ;   in Loop: Header=BB1_95 Depth=2
	s_or_b32 exec_lo, exec_lo, s69
	s_add_i32 s82, s82, 1
	s_mov_b32 s83, s28
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1)
	v_cmp_ge_i64_e32 vcc_lo, s[82:83], v[78:79]
	s_or_b32 s87, vcc_lo, s87
	s_and_not1_b32 exec_lo, exec_lo, s87
	s_cbranch_execnz .LBB1_95
; %bb.384:                              ; %Flow1096
                                        ;   in Loop: Header=BB1_3 Depth=1
	s_or_b32 exec_lo, exec_lo, s87
.LBB1_385:                              ; %Flow1097
                                        ;   in Loop: Header=BB1_3 Depth=1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_b32 exec_lo, exec_lo, s86
; %bb.386:                              ; %._crit_edge
                                        ;   in Loop: Header=BB1_3 Depth=1
	s_add_u32 s78, s78, 1
	s_addc_u32 s79, s79, 0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_eq_u64 s[78:79], 0x10000
	s_cbranch_scc0 .LBB1_3
; %bb.387:
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z11solveLinearPKmS0_PlS1_S1_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 16720
		.amdhsa_kernarg_size 296
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 1
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 100
		.amdhsa_next_free_sgpr 88
		.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	_Z11solveLinearPKmS0_PlS1_S1_, .Lfunc_end1-_Z11solveLinearPKmS0_PlS1_S1_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 19836
; NumSgprs: 90
; NumVgprs: 100
; ScratchSize: 16720
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 11
; VGPRBlocks: 12
; NumSGPRsForWavesPerEU: 90
; NumVGPRsForWavesPerEU: 100
; Occupancy: 12
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 1
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.protected	const_KeccakRoundConstants ; @const_KeccakRoundConstants
	.type	const_KeccakRoundConstants,@object
	.data
	.globl	const_KeccakRoundConstants
	.p2align	4, 0x0
const_KeccakRoundConstants:
	.quad	1                               ; 0x1
	.quad	32898                           ; 0x8082
	.quad	-9223372036854742902            ; 0x800000000000808a
	.quad	-9223372034707259392            ; 0x8000000080008000
	.quad	32907                           ; 0x808b
	.quad	2147483649                      ; 0x80000001
	.quad	-9223372034707259263            ; 0x8000000080008081
	.quad	-9223372036854743031            ; 0x8000000000008009
	.quad	138                             ; 0x8a
	.quad	136                             ; 0x88
	.quad	2147516425                      ; 0x80008009
	.quad	2147483658                      ; 0x8000000a
	.quad	2147516555                      ; 0x8000808b
	.quad	-9223372036854775669            ; 0x800000000000008b
	.quad	-9223372036854742903            ; 0x8000000000008089
	.quad	-9223372036854743037            ; 0x8000000000008003
	.quad	-9223372036854743038            ; 0x8000000000008002
	.quad	-9223372036854775680            ; 0x8000000000000080
	.quad	32778                           ; 0x800a
	.quad	-9223372034707292150            ; 0x800000008000000a
	.quad	-9223372034707259263            ; 0x8000000080008081
	.quad	-9223372036854742912            ; 0x8000000000008080
	.quad	2147483649                      ; 0x80000001
	.quad	-9223372034707259384            ; 0x8000000080008008
	.size	const_KeccakRoundConstants, 192

	.protected	const_KeccakRhoOffsets  ; @const_KeccakRhoOffsets
	.type	const_KeccakRhoOffsets,@object
	.globl	const_KeccakRhoOffsets
	.p2align	4, 0x0
const_KeccakRhoOffsets:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	62                              ; 0x3e
	.long	28                              ; 0x1c
	.long	27                              ; 0x1b
	.long	36                              ; 0x24
	.long	44                              ; 0x2c
	.long	6                               ; 0x6
	.long	55                              ; 0x37
	.long	20                              ; 0x14
	.long	3                               ; 0x3
	.long	10                              ; 0xa
	.long	43                              ; 0x2b
	.long	25                              ; 0x19
	.long	39                              ; 0x27
	.long	41                              ; 0x29
	.long	45                              ; 0x2d
	.long	15                              ; 0xf
	.long	21                              ; 0x15
	.long	8                               ; 0x8
	.long	18                              ; 0x12
	.long	2                               ; 0x2
	.long	61                              ; 0x3d
	.long	56                              ; 0x38
	.long	14                              ; 0xe
	.size	const_KeccakRhoOffsets, 100

	.protected	const_state             ; @const_state
	.type	const_state,@object
	.section	.bss,"aw",@nobits
	.globl	const_state
	.p2align	4, 0x0
const_state:
	.zero	200
	.size	const_state, 200

	.protected	const_hashvalue         ; @const_hashvalue
	.type	const_hashvalue,@object
	.globl	const_hashvalue
	.p2align	4, 0x0
const_hashvalue:
	.zero	32
	.size	const_hashvalue, 32

	.protected	d_linear_mat            ; @d_linear_mat
	.type	d_linear_mat,@object
	.globl	d_linear_mat
	.p2align	4, 0x0
d_linear_mat:
	.zero	73344
	.size	d_linear_mat, 73344

	.protected	d_square_mat            ; @d_square_mat
	.type	d_square_mat,@object
	.globl	d_square_mat
	.p2align	4, 0x0
d_square_mat:
	.zero	24448
	.size	d_square_mat, 24448

	.protected	d_var_all               ; @d_var_all
	.type	d_var_all,@object
	.globl	d_var_all
	.p2align	4, 0x0
d_var_all:
	.zero	20480
	.size	d_var_all, 20480

	.type	.str,@object                    ; @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.str:
	.asciz	"Find Preimage!!! val is %lu.\n"
	.size	.str, 30

	.type	.str.1,@object                  ; @.str.1
.str.1:
	.asciz	"The messaged state :"
	.size	.str.1, 21

	.type	.str.2,@object                  ; @.str.2
.str.2:
	.asciz	"%llx "
	.size	.str.2, 6

	.type	.str.3,@object                  ; @.str.3
.str.3:
	.asciz	"\n"
	.size	.str.3, 2

	.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 const_KeccakRoundConstants
	.addrsig_sym const_KeccakRhoOffsets
	.addrsig_sym const_state
	.addrsig_sym const_hashvalue
	.addrsig_sym d_linear_mat
	.addrsig_sym d_square_mat
	.addrsig_sym d_var_all
	.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
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         44
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         52
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         54
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         56
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         58
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         60
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         62
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         104
        .size:           2
        .value_kind:     hidden_grid_dims
      - .offset:         120
        .size:           8
        .value_kind:     hidden_hostcall_buffer
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 296
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z11solveLinearPKmS0_PlS1_S1_
    .private_segment_fixed_size: 16720
    .sgpr_count:     90
    .sgpr_spill_count: 0
    .symbol:         _Z11solveLinearPKmS0_PlS1_S1_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     100
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
