#include <iostream>
#include <stdlib.h>
#include <math.h>
#include <algorithm>
using namespace std;

int base[3][4];
int base7[3][7];
int tranposeBase7[7][3];
int base8[3][8];
int base11[3][11];
int base12[3][12];
int base13[3][13];
int base14[3][14];
int board7[7][7];
int board8[8][8];
void loadData()
{
 //base 3*4
	base[0][0]=1;
	base[0][1]=4;
	base[0][2]=7;
	base[0][3]=10;
	base[1][0]=8;
	base[1][1]=11;
	base[1][2]=2;
	base[1][3]=5;
	base[2][0]=3;
	base[2][1]=6;
	base[2][2]=9;
	base[2][3]=12;

    //base 3*7
    	base7[0][0]=1;
	base7[0][1]=14;
	base7[0][2]=17;
	base7[0][3]=20;
	base7[0][4]=9;
	base7[0][5]=4;
	base7[0][6]=7;
	base7[1][0]=16;
	base7[1][1]=19;
	base7[1][2]=12;
	base7[1][3]=3;
	base7[1][4]=6;
	base7[1][5]=21;
	base7[1][6]=10;
	base7[2][0]=13;
	base7[2][1]=2;
	base7[2][2]=15;
	base7[2][3]=18;
	base7[2][4]=11;
	base7[2][5]=8;
	base7[2][6]=5;
    //Tranpose base 7
	for(int x = 0; x < 3; x++)
	  {
		for(int y = 0; y < 7 ; y++)
		{
		    	tranposeBase7[y][x] = base7[x][y];                
	    	}
	  }
    //base 3*8
    	base8[0][0]=1;
	base8[0][1]=16;
	base8[0][2]=3;
	base8[0][3]=22;
	base8[0][4]=19;
	base8[0][5]=12;
	base8[0][6]=7;
	base8[0][7]=10;
	base8[1][0]=4;
	base8[1][1]=21;
	base8[1][2]=18;
	base8[1][3]=15;
	base8[1][4]=6;
	base8[1][5]=9;
	base8[1][6]=24;
	base8[1][7]=13;
	base8[2][0]=17;
	base8[2][1]=2;
	base8[2][2]=5;
	base8[2][3]=20;
	base8[2][4]=23;
	base8[2][5]=14;
	base8[2][6]=11;
	base8[2][7]=8;
    //base 3*11
    for(int x = 0; x < 3; x++)
    {
        for(int y = 0; y < 11 ; y++)
        {
            if(y < 4)
            	base11[x][y] = base[x][y];            
            else
            	base11[x][y] = base7[x][y-4]+3*4;     
    	}// end of inner loop
    }
    //base 3*12
    for(int x = 0; x < 3; x++)
    {
        for(int y =0; y<12; y++)
        {
            if(y<4)
            base12[x][y] = base[x][y];
            else
            base12[x][y] = base8[x][y-4]+3*4;
	}
    }
    //board 3*13
    	base13[0][0]=1;
	base13[0][1]=4;
	base13[0][2]=13;
	base13[0][3]=16;
	base13[0][4]=21;
	base13[0][5]=8;
	base13[0][6]=23;
	base13[0][7]=18;
	base13[0][8]=35;
	base13[0][9]=38;
	base13[0][10]=27;
	base13[0][11]=32;
	base13[0][12]=29;
	base13[1][0]=12;
	base13[1][1]=15;
	base13[1][2]=6;
	base13[1][3]=3;
	base13[1][4]=10;
	base13[1][5]=17;
	base13[1][6]=20;
	base13[1][7]=37;
	base13[1][8]=24;
	base13[1][9]=33;
	base13[1][10]=30;
	base13[1][11]=39;
	base13[1][12]=26;
	base13[2][0]=5;
	base13[2][1]=2;
	base13[2][2]=11;
	base13[2][3]=14;
	base13[2][4]=7;
	base13[2][5]=22;
	base13[2][6]=9;
	base13[2][7]=34;
	base13[2][8]=19;
	base13[2][9]=36;
	base13[2][10]=25;
	base13[2][11]=28;
	base13[2][12]=31;
    //base 3*14
    for(int x = 0; x < 3; x++)
    {	
       for(int y =0; y<14; y++)
        {
            if(y < 7)
                base14[x][y] = base7[x][y];
            else
               base14[x][y] = base7[x][y-7]+3*7;         
     	}
    }
}

int blockOfFour(int n) // getting num blocks of four in each stripe.
{
    if(n < 11)
    {
	return 0;
    }
    else
    {
        int num = 0;
        switch(n%4)
        {
	    case 0:
	       num = (n-8);
	       break;
	    case 1:
	       num = (n-13);
	       break;
	    case 2:
	       num = (n-14);
	       break;
	    case 3:
	       num = (n-7);
	       break;
        }
	return num;
    }		
}

int** create2DArray(int n) 
    {
      int** array2D = 0;
      //transpose 3x7 to 7*3
      
      array2D = new int*[7]; // height is 7

      for (int h = 0; h < 7; h++)
      {
            array2D[h] = new int[n-7];
	    //initialize array
            for (int w = 0; w < (n-7); w++)
            {
                 //if(w < ) 
		 //array2D[h][w] = w + width * h;
            }
      }
      return array2D;
}

void solveBoard(int n)
{
    int board[n][n]; // initialize the board
    for (int i = 0; i < n; i++)
       for (int j = 0; j < n; j++)
            board[i][j] = 0;
    int BaseOfFour = blockOfFour(n)/4; // number blocks of 3*4
    
    switch(n % 3)
    {	
	case 0: // for all board size that is divisibe by 3
	   for (int x = 0; x < 3; x++)
	   {
	       for(int y = 0; y < n; y++)
	       {
		    if(y < blockOfFour(n))
		    {
			int temp = y/4;	
			for(int i = 0; i < n; i+= 6) // parrallel here parrallel here i+6 to get stripe without flipping order
			{
			    int stride = i/3;		    	
			    board[x+i][y] = base[x][y%4]+ temp*12 + 3*n*stride;
			    if(x+3+i < n)
			    	board[x+3+i][n-y-1] = base[x][y%4]+ temp*12 + 3*n*(stride+1);
			}
		    }
		    else
		    {
			for(int i = 0 ; i < n; i+= 6) // parallel here
			{
			    int stride = i/3;
			    if(n % 4 == 0)
			    {
			    	board[x+i][y] = base8[x][y-blockOfFour(n)]+BaseOfFour*12 + 3*n*stride;
				board[x+3+i][n-y-1] = base8[x][y-blockOfFour(n)]+ BaseOfFour*12 + 3*n*(stride+1); //using base 8
			    }
 			    if(n % 4 == 1)
			    {
			    	board[x+i][y] = base13[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*stride;
				if(x+3+i < n)
				   board[x+3+i][n-y-1] = base13[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*(stride+1); //using base 13
			    }
			    if(n % 4 == 2)
			    {
			    	board[x+i][y] = base14[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*stride;
				if(x+3+i < n)
				   board[x+3+i][n-y-1] = base14[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*(stride+1); // using base 14
			    }
			    if(n % 4 == 3)
			    {
			    	board[x+i][y] = base7[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*stride;
				if(x+3+i < n)
				   board[x+3+i][n-y-1] = base7[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*(stride+1); // using base 7
			    }
			}
		    }
	       }   
	   }
	   break;
	case 1:
	   for (int x = 0; x < 3; x++)
	   {
	       for(int y = 0; y < n; y++)
	       {
		    if(y < blockOfFour(n))
		    {
			int temp = y/4; // temp get index of blockOf4
			for(int i = 0; i < n-7; i+= 6) // 
			{
			    int stride = i/3; 	    	
			    board[x+i][y] = base[x][y%4]+ temp*12 + 3*n*stride; 
			    if(x+3+i < n-7)
			    	board[x+3+i][n-y-1] = base[x][y%4]+ temp*12 + 3*n*(stride+1);
			}
		    }// end of if
		    else
		    {
			for(int i = 0 ; i < n-7; i+= 6) // parallel here
			{
			    int stride = i/3;
			    if(n % 4 == 0)
			    {
			    	board[x+i][y] = base8[x][y-blockOfFour(n)]+BaseOfFour*12 + 3*n*stride;
				if(x+3+i < n-7)// Don't want to get in the 7 stride
				board[x+3+i][n-y-1] = base8[x][y-blockOfFour(n)]+ BaseOfFour*12 + 3*n*(stride+1);
			    }
 			    if(n % 4 == 1)
			    {
			    	board[x+i][y] = base13[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*stride;
				if(x+3+i < n-7) // Don't want to get in the 7 stride
				   board[x+3+i][n-y-1] = base13[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*(stride+1);
			    }
			    if(n % 4 == 2)
			    {
			    	board[x+i][y] = base14[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*stride;
				if(x+3+i < n-7) // Don't want to get in the 7 stride
				   board[x+3+i][n-y-1] = base14[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*(stride+1);
			    }
			    if(n % 4 == 3)
			    {
			    	board[x+i][y] = base7[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*stride;
				if(x+3+i < n-7) // Don't want to get in the 7 stride
				   board[x+3+i][n-y-1] = base7[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*(stride+1);
			    }
			}
		    }// end of else
	       }// end of for y   
	   }// end of big 4
	   //Handling 7*n here
	   for(int x = 0; x < 7; x++)
	   {
		for(int y = 0; y < n-7 ; y++) // NOTE !!!!
		{
		    if(y%6 == 0) //0,6,12....
		    {
			int temp = y/6;
		    	board[n+x-7][y] = tranposeBase7[x][y%3]+ 2*temp*21;
			board[n+x-7][y+1] = tranposeBase7[x][y%3+1]+ 2*temp*21;
			board[n+x-7][y+2] = tranposeBase7[x][y%3+2]+ 2*temp*21;
		    }
		    else if( y%3 == 0) //3,9,15,21...
		    {
			int temp = y/6;
		    	board[n-x-1][y] = tranposeBase7[x][y%3]+ 21 + 2*temp*21;
			board[n-x-1][y+1] = tranposeBase7[x][y%3+1]+ 21 + 2*temp*21;
			board[n-x-1][y+2] = tranposeBase7[x][y%3+2]+ 21 + 2*temp*21;
		    }
		    /*int temp = y/3; // getting index of block of 7*3
		    for(int i = 0; i < n-7; i+= 3) // 
			{  
			    int stride = i/3; 	    	
			    board[n+x-7][y] = tranposeBase7[x][y%3] + temp*21 + 3*n*stride;
			    if(x+3+i < n-7)
			    	board[x+3+i][n-y-1] = base[x][y%4]+ temp*12 + 3*n*(stride+1);
			}*/
		}
	   }
	
	break;
      case 2:
	 for (int x = 0; x < 3; x++)
	   {
	       for(int y = 0; y < n; y++)
	       {
		    if(y < blockOfFour(n))
		    {
			int temp = y/4;	
			for(int i = 0; i < n-8; i+= 6) 
			{
			    int stride = i/3; 	    	
			    board[x+i][y] = base[x][y%4]+ temp*12 + 3*n*stride;
			    if(x+3+i < n-8)
			    	board[x+3+i][n-y-1] = base[x][y%4]+ temp*12 + 3*n*(stride+1);
			}
		    }// end of if
		    else
		    {
			for(int i = 0 ; i < n-8; i+= 6)
			{
			    int stride = i/3;
			    if(n % 4 == 0)
			    {
			    	board[x+i][y] = base8[x][y-blockOfFour(n)]+BaseOfFour*12 + 3*n*stride;
				if(x+3+i < n-8)// Don't want to get in the 8 stride
				board[x+3+i][n-y-1] = base8[x][y-blockOfFour(n)]+ BaseOfFour*12 + 3*n*(stride+1);
			    }
 			    if(n % 4 == 1)
			    {
			    	board[x+i][y] = base13[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*stride;
				if(x+3+i < n-8) // Don't want to get in the 8 stride
				   board[x+3+i][n-y-1] = base13[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*(stride+1);
			    }
			    if(n % 4 == 2)
			    {
			    	board[x+i][y] = base14[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*stride;
				if(x+3+i < n-8) // Don't want to get in the 8 stride
				   board[x+3+i][n-y-1] = base14[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*(stride+1);
			    }
			    if(n % 4 == 3)
			    {
			    	board[x+i][y] = base7[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*stride;
				if(x+3+i < n-8) // Don't want to get in the 8 stride
				   board[x+3+i][n-y-1] = base7[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*(stride+1);
			    }
			}
		    }// end of else
	       }// end of for y   
	   }// end of big 4
	// Handling 8*n stride here
	


    } // end of switch
    for (int x = 0; x < n; x++) {
        for (int y = 0; y < n; y++)
            cout << board[x][y]<< "\t";
        cout << endl;
    }
}

int main()
{
    loadData();
    int n;
    cout << "Enter size of board:";
    cin >> n;
    solveBoard(n);

    /*for(int x = 0; x < 3; x++)
    {
	for(int y = 0; y < 7 ; y++)
	    	cout << base7[x][y] << "\t";                
	cout << endl;
    }
    for(int x = 0; x < 7; x++)
    {
	for(int y = 0; y < 3 ; y++)
	    	cout << tranposeBase7[x][y] << "\t";   
	cout << endl;             
    }*/
    return 0;
}

	.file	"tmpxft_00364884_00000000-6_Parrallel2D.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3896:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE3896:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z8loadDatav
	.type	_Z8loadDatav, @function
_Z8loadDatav:
.LFB3889:
	.cfi_startproc
	endbr64
	movabsq	$17179869185, %rax
	movabsq	$51539607561, %rcx
	movabsq	$68719476743, %rsi
	movl	$5, 80+base7(%rip)
	movq	%rax, base(%rip)
	leaq	tranposeBase7(%rip), %rdx
	movabsq	$42949672967, %rax
	movq	%rax, 8+base(%rip)
	leaq	12(%rdx), %r8
	movabsq	$47244640264, %rax
	movq	%rax, 16+base(%rip)
	movabsq	$21474836482, %rax
	movq	%rax, 24+base(%rip)
	movabsq	$25769803779, %rax
	movq	%rax, 32+base(%rip)
	movq	%rax, 40+base7(%rip)
	movabsq	$42949672981, %rax
	movq	%rcx, 40+base(%rip)
	movabsq	$60129542145, %rcx
	movq	%rax, 48+base7(%rip)
	movabsq	$8589934605, %rax
	movq	%rcx, base7(%rip)
	movabsq	$85899345937, %rcx
	movq	%rax, 56+base7(%rip)
	movabsq	$77309411343, %rax
	movq	%rcx, 8+base7(%rip)
	movabsq	$17179869193, %rcx
	movq	%rax, 64+base7(%rip)
	movabsq	$34359738379, %rax
	movq	%rcx, 16+base7(%rip)
	movabsq	$51539607571, %rcx
	movq	%rsi, 24+base7(%rip)
	movq	%rax, 72+base7(%rip)
	movq	%rcx, 32+base7(%rip)
	leaq	base7(%rip), %rcx
	movq	%rcx, %rdi
.L3:
	movq	%rdx, %rsi
	xorl	%eax, %eax
.L4:
	movl	(%rdi,%rax,4), %r9d
	incq	%rax
	addq	$12, %rsi
	movl	%r9d, -12(%rsi)
	cmpq	$7, %rax
	jne	.L4
	addq	$4, %rdx
	addq	$28, %rdi
	cmpq	%r8, %rdx
	jne	.L3
	leaq	base11(%rip), %rdx
	leaq	base(%rip), %rsi
	movabsq	$68719476737, %rax
	movq	%rax, base8(%rip)
	leaq	132(%rdx), %r10
	leaq	base7(%rip), %r9
	movq	%rsi, %r8
	movabsq	$94489280515, %rax
	movq	%rax, 8+base8(%rip)
	movabsq	$51539607571, %rax
	movq	%rax, 16+base8(%rip)
	movabsq	$42949672967, %rax
	movq	%rax, 24+base8(%rip)
	movabsq	$90194313220, %rax
	movq	%rax, 32+base8(%rip)
	movabsq	$64424509458, %rax
	movq	%rax, 40+base8(%rip)
	movabsq	$38654705670, %rax
	movq	%rax, 48+base8(%rip)
	movabsq	$55834574872, %rax
	movq	%rax, 56+base8(%rip)
	movabsq	$8589934609, %rax
	movq	%rax, 64+base8(%rip)
	movabsq	$85899345925, %rax
	movq	%rax, 72+base8(%rip)
	movabsq	$60129542167, %rax
	movq	%rax, 80+base8(%rip)
	movabsq	$34359738379, %rax
	movq	%rax, 88+base8(%rip)
.L6:
	xorl	%eax, %eax
.L9:
	cmpq	$3, %rax
	ja	.L7
	movl	(%r8,%rax,4), %edi
	jmp	.L8
.L7:
	movl	-16(%r9,%rax,4), %edi
	addl	$12, %edi
.L8:
	movl	%edi, (%rdx,%rax,4)
	incq	%rax
	cmpq	$11, %rax
	jne	.L9
	addq	$44, %rdx
	addq	$16, %r8
	addq	$28, %r9
	cmpq	%r10, %rdx
	jne	.L6
	leaq	base12(%rip), %rdx
	leaq	base8(%rip), %r8
	leaq	144(%rdx), %r9
.L10:
	xorl	%eax, %eax
.L13:
	cmpq	$3, %rax
	ja	.L11
	movl	(%rsi,%rax,4), %edi
	jmp	.L12
.L11:
	movl	-16(%r8,%rax,4), %edi
	addl	$12, %edi
.L12:
	movl	%edi, (%rdx,%rax,4)
	incq	%rax
	cmpq	$12, %rax
	jne	.L13
	addq	$48, %rdx
	addq	$16, %rsi
	addq	$32, %r8
	cmpq	%r9, %rdx
	jne	.L10
	movabsq	$17179869185, %rax
	leaq	base14(%rip), %rsi
	movl	$31, 152+base13(%rip)
	movq	%rax, base13(%rip)
	leaq	168(%rsi), %r8
	movabsq	$68719476749, %rax
	movq	%rax, 8+base13(%rip)
	movabsq	$34359738389, %rax
	movq	%rax, 16+base13(%rip)
	movabsq	$77309411351, %rax
	movq	%rax, 24+base13(%rip)
	movabsq	$163208757283, %rax
	movq	%rax, 32+base13(%rip)
	movabsq	$137438953499, %rax
	movq	%rax, 40+base13(%rip)
	movabsq	$51539607581, %rax
	movq	%rax, 48+base13(%rip)
	movabsq	$25769803791, %rax
	movq	%rax, 56+base13(%rip)
	movabsq	$42949672963, %rax
	movq	%rax, 64+base13(%rip)
	movabsq	$85899345937, %rax
	movq	%rax, 72+base13(%rip)
	movabsq	$103079215141, %rax
	movq	%rax, 80+base13(%rip)
	movabsq	$128849018913, %rax
	movq	%rax, 88+base13(%rip)
	movabsq	$111669149735, %rax
	movq	%rax, 96+base13(%rip)
	movabsq	$8589934597, %rax
	movq	%rax, 104+base13(%rip)
	movabsq	$60129542155, %rax
	movq	%rax, 112+base13(%rip)
	movabsq	$94489280519, %rax
	movq	%rax, 120+base13(%rip)
	movabsq	$146028888073, %rax
	movq	%rax, 128+base13(%rip)
	movabsq	$154618822675, %rax
	movq	%rax, 136+base13(%rip)
	movabsq	$120259084313, %rax
	movq	%rax, 144+base13(%rip)
.L15:
	movq	%rcx, %rdx
	xorl	%eax, %eax
.L18:
	cmpq	$6, %rax
	ja	.L16
	movl	(%rdx), %edi
	jmp	.L17
.L16:
	movl	-28(%rdx), %edi
	addl	$21, %edi
.L17:
	movl	%edi, (%rsi,%rax,4)
	incq	%rax
	addq	$4, %rdx
	cmpq	$14, %rax
	jne	.L18
	addq	$56, %rsi
	addq	$28, %rcx
	cmpq	%r8, %rsi
	jne	.L15
	ret
	.cfi_endproc
.LFE3889:
	.size	_Z8loadDatav, .-_Z8loadDatav
	.globl	_Z11blockOfFouri
	.type	_Z11blockOfFouri, @function
_Z11blockOfFouri:
.LFB3890:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
	cmpl	$10, %edi
	jle	.L26
	movl	%edi, %edx
	leal	-14(%rdi), %eax
	andl	$3, %edx
	cmpl	$2, %edx
	je	.L26
	leal	-7(%rdi), %eax
	cmpl	$3, %edx
	je	.L26
	decl	%edx
	leal	-13(%rdi), %eax
	je	.L26
	leal	-8(%rdi), %eax
.L26:
	ret
	.cfi_endproc
.LFE3890:
	.size	_Z11blockOfFouri, .-_Z11blockOfFouri
	.globl	_Z13create2DArrayi
	.type	_Z13create2DArrayi, @function
_Z13create2DArrayi:
.LFB3891:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movl	%edi, %ebx
	movl	$56, %edi
	call	_Znam@PLT
	leal	-7(%rbx), %edi
	movq	%rax, %rbp
	movslq	%edi, %rdi
	movabsq	$2305843009213693950, %rax
	cmpq	%rdi, %rax
	jb	.L34
	leaq	0(,%rdi,4), %rbx
	xorl	%r12d, %r12d
.L35:
	movq	%rbx, %rdi
	call	_Znam@PLT
	movq	%rax, 0(%rbp,%r12,8)
	incq	%r12
	cmpq	$7, %r12
	jne	.L35
	jmp	.L40
.L34:
	call	__cxa_throw_bad_array_new_length@PLT
.L40:
	movq	%rbp, %rax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3891:
	.size	_Z13create2DArrayi, .-_Z13create2DArrayi
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\t"
	.text
	.globl	_Z10solveBoardi
	.type	_Z10solveBoardi, @function
_Z10solveBoardi:
.LFB3892:
	.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
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movl	%edi, %ebx
	subq	$136, %rsp
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movslq	%edi, %rax
	movq	%rsp, %rcx
	leaq	0(,%rax,4), %rsi
	imulq	%rax, %rax
	movq	%rsi, -88(%rbp)
	leaq	15(,%rax,4), %rdx
	movq	%rdx, %rax
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rcx
.L42:
	cmpq	%rcx, %rsp
	je	.L43
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L42
.L43:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L44
	orq	$0, -8(%rsp,%rax)
.L44:
	movq	%rsp, %rsi
	movq	-88(%rbp), %r8
	leal	-1(%rbx), %eax
	xorl	%r9d, %r9d
	movq	%rsi, -128(%rbp)
	leaq	4(,%rax,4), %r10
	movq	%rsi, %rdx
	xorl	%eax, %eax
	shrq	$2, %r8
.L45:
	cmpl	%ebx, %r9d
	jge	.L149
	movq	%rdx, %rdi
	movq	%r10, %rcx
	incl	%r9d
	rep stosb
	movq	-88(%rbp), %rdi
	addq	%rdi, %rdx
	jmp	.L45
.L149:
	movl	%ebx, %edi
	movl	$4, %ecx
	call	_Z11blockOfFouri
	cltd
	movl	%eax, -68(%rbp)
	idivl	%ecx
	movl	$3, %ecx
	movl	%eax, %r9d
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	cmpl	$1, %edx
	je	.L47
	cmpl	$2, %edx
	je	.L48
	testl	%edx, %edx
	jne	.L50
	movl	-68(%rbp), %eax
	leaq	base14(%rip), %rdx
	xorl	%r11d, %r11d
	imull	$12, %r9d, %r9d
	negl	%eax
	cltq
	salq	$2, %rax
	leaq	(%rax,%rdx), %rcx
	leaq	base7(%rip), %rdx
	leaq	(%rax,%rdx), %rdi
	leaq	base8(%rip), %rdx
	movq	%rcx, -112(%rbp)
	leaq	(%rax,%rdx), %rcx
	leaq	base13(%rip), %rdx
	movq	%rdi, -104(%rbp)
	addq	%rdx, %rax
	movq	%rcx, -96(%rbp)
	movq	%rax, -120(%rbp)
	movl	%ebx, %eax
	andl	$3, %eax
	movl	%eax, -72(%rbp)
	jmp	.L52
.L48:
	imull	$12, %r9d, %eax
	leaq	base14(%rip), %rdx
	movl	%eax, -96(%rbp)
	movl	-68(%rbp), %eax
	negl	%eax
	cltq
	salq	$2, %rax
	leaq	(%rax,%rdx), %rdi
	leaq	base7(%rip), %rdx
	movq	%rdi, -112(%rbp)
	leaq	(%rax,%rdx), %rdi
	leaq	base8(%rip), %rdx
	movq	%rdi, -120(%rbp)
	leaq	(%rax,%rdx), %rdi
	leaq	base13(%rip), %rdx
	addq	%rdx, %rax
	xorl	%edx, %edx
	movq	%rdi, -136(%rbp)
	movq	%rax, -144(%rbp)
	movl	%ebx, %eax
	andl	$3, %eax
	movl	%edx, -72(%rbp)
	movl	%eax, -104(%rbp)
	leal	-8(%rbx), %eax
	movl	%eax, -80(%rbp)
	jmp	.L51
.L64:
	cmpl	%ecx, -68(%rbp)
	jle	.L54
	movq	-136(%rbp), %rdi
	movl	%ecx, %edx
	movl	%ecx, %r12d
	movl	%ebx, %r14d
	andl	$3, %edx
	sarl	$2, %r12d
	subl	%eax, %r14d
	leal	3(%r11), %r13d
	addq	%rdi, %rdx
	leaq	base(%rip), %rdi
	movslq	%ecx, %rcx
	movslq	%r14d, %r14
	imull	$12, %r12d, %r12d
	addl	(%rdi,%rdx,4), %r12d
	xorl	%edi, %edi
.L56:
	movl	%edi, %eax
	movl	$3, %r15d
	cltd
	idivl	%r15d
	leal	(%rdi,%r11), %edx
	movslq	%edx, %rdx
	imulq	%r8, %rdx
	addq	%rcx, %rdx
	imull	%ebx, %eax
	leal	(%rax,%rax,2), %r15d
	addl	%r12d, %r15d
	movl	%r15d, (%rsi,%rdx,4)
	cmpl	%ebx, %r13d
	jge	.L55
	movslq	%r13d, %rdx
	addl	%ebx, %eax
	imulq	%r8, %rdx
	leal	(%rax,%rax,2), %eax
	addl	%r12d, %eax
	addq	%r14, %rdx
	movl	%eax, (%rsi,%rdx,4)
.L55:
	addl	$6, %edi
	addl	$6, %r13d
	cmpl	%edi, %ebx
	jg	.L56
.L63:
	incq	%r10
.L57:
	leal	-1(%r10), %ecx
	movl	%r10d, %eax
	cmpl	%ebx, %ecx
	jl	.L64
	incl	%r11d
	addq	$56, -112(%rbp)
	addq	$28, -104(%rbp)
	addq	$32, -96(%rbp)
	addq	$52, -120(%rbp)
	cmpl	$3, %r11d
	jne	.L52
.L50:
	xorl	%r12d, %r12d
	movslq	%ebx, %r14
	jmp	.L53
.L52:
	movslq	%r11d, %rax
	movl	$1, %r10d
	salq	$2, %rax
	movq	%rax, -136(%rbp)
	jmp	.L57
.L54:
	movl	%ebx, %r13d
	leal	3(%r11), %edi
	xorl	%r12d, %r12d
	movslq	%ecx, %rcx
	subl	%eax, %r13d
	movslq	%r13d, %r13
.L62:
	movl	%r12d, %eax
	movl	$3, %r15d
	cltd
	idivl	%r15d
	leal	(%r12,%r11), %edx
	movslq	%edx, %rdx
	movq	%rdx, -80(%rbp)
	imull	%ebx, %eax
	cmpl	$0, -72(%rbp)
	leal	(%rax,%rax,2), %r14d
	jne	.L58
	movq	-96(%rbp), %rdx
	movl	-4(%rdx,%r10,4), %r15d
	movq	-80(%rbp), %rdx
	imulq	%r8, %rdx
	addl	%r9d, %r15d
	addl	%r15d, %r14d
	addq	%rcx, %rdx
	movl	%r14d, (%rsi,%rdx,4)
	jmp	.L131
.L58:
	cmpl	$1, -72(%rbp)
	jne	.L60
	movq	-120(%rbp), %rdx
	jmp	.L137
.L60:
	cmpl	$2, -72(%rbp)
	jne	.L150
	movq	-112(%rbp), %rdx
.L137:
	movl	-4(%rdx,%r10,4), %r15d
	movq	-80(%rbp), %rdx
	imulq	%r8, %rdx
	addl	%r9d, %r15d
	addl	%r15d, %r14d
	addq	%rcx, %rdx
	movl	%r14d, (%rsi,%rdx,4)
	cmpl	%edi, %ebx
	jle	.L61
.L131:
	movslq	%edi, %rdx
	addl	%ebx, %eax
	imulq	%r8, %rdx
	leal	(%rax,%rax,2), %eax
	addl	%r15d, %eax
	addq	%r13, %rdx
	movl	%eax, (%rsi,%rdx,4)
.L61:
	addl	$6, %r12d
	addl	$6, %edi
	cmpl	%r12d, %ebx
	jg	.L62
	jmp	.L63
.L47:
	imull	$12, %r9d, %eax
	leaq	base14(%rip), %rdx
	movl	%eax, -96(%rbp)
	movl	-68(%rbp), %eax
	negl	%eax
	cltq
	salq	$2, %rax
	leaq	(%rax,%rdx), %rcx
	leaq	base7(%rip), %rdx
	movq	%rcx, -112(%rbp)
	leaq	(%rax,%rdx), %rcx
	leaq	base8(%rip), %rdx
	movq	%rcx, -120(%rbp)
	leaq	(%rax,%rdx), %rcx
	leaq	base13(%rip), %rdx
	addq	%rdx, %rax
	movq	%rcx, -136(%rbp)
	movq	%rax, -144(%rbp)
	xorl	%eax, %eax
	movl	%eax, -72(%rbp)
	movl	%ebx, %eax
	andl	$3, %eax
	movl	%eax, -104(%rbp)
	leal	-7(%rbx), %eax
	movl	%eax, -80(%rbp)
.L79:
	movl	-72(%rbp), %eax
	movl	$1, %ecx
	addl	$3, %eax
	movl	%eax, -148(%rbp)
	movslq	-72(%rbp), %rax
	salq	$2, %rax
	movq	%rax, -160(%rbp)
.L70:
	leal	-1(%rcx), %edi
	cmpl	%edi, -68(%rbp)
	jg	.L65
	movl	%ebx, %r12d
	movl	-148(%rbp), %r10d
	xorl	%r11d, %r11d
	movslq	%edi, %r15
	subl	%ecx, %r12d
	movslq	%r12d, %r12
	jmp	.L66
.L65:
	movl	%edi, %r11d
	movl	%edi, %r12d
	movq	-160(%rbp), %rdx
	movl	%ebx, %r13d
	sarl	$2, %r11d
	andl	$3, %r12d
	subl	%ecx, %r13d
	xorl	%r9d, %r9d
	imull	$12, %r11d, %r11d
	addq	%rdx, %r12
	movslq	%edi, %rdi
	movslq	%r13d, %r13
	movl	-148(%rbp), %r10d
.L67:
	cmpl	%r9d, -80(%rbp)
	jle	.L78
	leaq	base(%rip), %rax
	movl	$3, %r15d
	movl	(%rax,%r12,4), %r14d
	movl	%r9d, %eax
	cltd
	idivl	%r15d
	movl	-72(%rbp), %edx
	addl	%r9d, %edx
	addl	%r11d, %r14d
	movslq	%edx, %rdx
	imulq	%r8, %rdx
	addq	%rdi, %rdx
	imull	%ebx, %eax
	leal	(%rax,%rax,2), %r15d
	addl	%r14d, %r15d
	movl	%r15d, (%rsi,%rdx,4)
	movl	-80(%rbp), %edx
	cmpl	%edx, %r10d
	jge	.L68
	movslq	%r10d, %rdx
	addl	%ebx, %eax
	imulq	%r8, %rdx
	leal	(%rax,%rax,2), %eax
	addl	%r14d, %eax
	addq	%r13, %rdx
	movl	%eax, (%rsi,%rdx,4)
.L68:
	addl	$6, %r9d
	addl	$6, %r10d
	jmp	.L67
.L77:
	movl	%r11d, %eax
	movl	$3, %r9d
	cltd
	idivl	%r9d
	movl	-72(%rbp), %edx
	addl	%r11d, %edx
	movslq	%edx, %rdx
	imull	%ebx, %eax
	cmpl	$0, -104(%rbp)
	leal	(%rax,%rax,2), %r9d
	jne	.L72
	movq	-136(%rbp), %r14
.L146:
	imulq	%r8, %rdx
	movl	-96(%rbp), %r13d
	addl	-4(%r14,%rcx,4), %r13d
	addl	%r13d, %r9d
	addq	%r15, %rdx
	movl	%r9d, (%rsi,%rdx,4)
	cmpl	%r10d, -80(%rbp)
	jle	.L76
	movslq	%r10d, %rdx
	addl	%ebx, %eax
	imulq	%r8, %rdx
	leal	(%rax,%rax,2), %eax
	addl	%r13d, %eax
	addq	%r12, %rdx
.L132:
	movl	%eax, (%rsi,%rdx,4)
.L76:
	addl	$6, %r11d
	addl	$6, %r10d
.L66:
	cmpl	%r11d, -80(%rbp)
	jg	.L77
.L78:
	incq	%rcx
	leal	-1(%rcx), %eax
	cmpl	%eax, %ebx
	jg	.L70
	jmp	.L151
.L72:
	cmpl	$1, -104(%rbp)
	jne	.L74
	movq	-144(%rbp), %r14
	jmp	.L146
.L151:
	incl	-72(%rbp)
	addq	$56, -112(%rbp)
	addq	$28, -120(%rbp)
	addq	$32, -136(%rbp)
	addq	$52, -144(%rbp)
	cmpl	$3, -72(%rbp)
	jne	.L79
	leal	-7(%rbx), %eax
	movl	$7, %r11d
	leaq	tranposeBase7(%rip), %r12
	movl	%eax, -68(%rbp)
	leal	-8(%rbx), %r14d
	movq	%r12, %r13
.L80:
	movl	%ebx, %r8d
	movq	-88(%rbp), %rax
	leal	(%r14,%r11), %edi
	xorl	%ecx, %ecx
	subl	%r11d, %r8d
	movslq	%edi, %rdi
	movl	$7, %r10d
	movslq	%r8d, %r8
	imulq	%rax, %rdi
	subl	%r11d, %r10d
	imulq	%rax, %r8
	movslq	%r10d, %r10
	leaq	(%r10,%r10,2), %r10
	addq	%rsi, %rdi
	addq	%rsi, %r8
.L85:
	cmpl	%ecx, -68(%rbp)
	jle	.L152
	movl	%ecx, %eax
	movl	$3, %r15d
	cltd
	idivl	%r15d
	movl	%ecx, %eax
	leal	1(%rcx), %r15d
	movl	$6, %ecx
	movl	%edx, %r9d
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L81
	imull	$42, %eax, %ecx
	movslq	%r9d, %rax
	addq	%r10, %rax
	movl	0(%r13,%rax,4), %edx
	leal	1(%r9), %eax
	addl	$2, %r9d
	cltq
	movslq	%r9d, %r9
	addl	%ecx, %edx
	addq	%r10, %rax
	addq	%r10, %r9
	movl	%edx, (%r8)
	movl	0(%r13,%rax,4), %edx
	addl	%ecx, %edx
	addl	0(%r13,%r9,4), %ecx
	movl	%edx, 4(%r8)
	movl	%ecx, 8(%r8)
	jmp	.L82
.L81:
	testl	%r9d, %r9d
	jne	.L82
	imull	$42, %eax, %ecx
	movl	(%r12), %eax
	leal	21(%rcx,%rax), %eax
	movl	%eax, (%rdi)
	movl	4(%r12), %eax
	leal	21(%rcx,%rax), %eax
	movl	%eax, 4(%rdi)
	movl	8(%r12), %eax
	leal	21(%rcx,%rax), %eax
	movl	%eax, 8(%rdi)
.L82:
	addq	$4, %r8
	addq	$4, %rdi
	movl	%r15d, %ecx
	jmp	.L85
.L152:
	addq	$12, %r12
	decl	%r11d
	jne	.L80
	jmp	.L50
.L86:
	movl	%edi, %r11d
	movl	%edi, %r12d
	movq	-160(%rbp), %rdx
	movl	%ebx, %r13d
	sarl	$2, %r11d
	andl	$3, %r12d
	subl	%ecx, %r13d
	xorl	%r9d, %r9d
	imull	$12, %r11d, %r11d
	addq	%rdx, %r12
	movslq	%edi, %rdi
	movslq	%r13d, %r13
	movl	-148(%rbp), %r10d
.L88:
	cmpl	%r9d, -80(%rbp)
	jg	.L90
.L99:
	incq	%rcx
	leal	-1(%rcx), %eax
	cmpl	%eax, %ebx
	jg	.L91
	incl	-72(%rbp)
	addq	$56, -112(%rbp)
	addq	$28, -120(%rbp)
	addq	$32, -136(%rbp)
	addq	$52, -144(%rbp)
	cmpl	$3, -72(%rbp)
	je	.L50
.L51:
	movl	-72(%rbp), %eax
	movl	$1, %ecx
	addl	$3, %eax
	movl	%eax, -148(%rbp)
	movslq	-72(%rbp), %rax
	salq	$2, %rax
	movq	%rax, -160(%rbp)
.L91:
	leal	-1(%rcx), %edi
	cmpl	%edi, -68(%rbp)
	jg	.L86
	movl	%ebx, %r12d
	movl	-148(%rbp), %r10d
	xorl	%r11d, %r11d
	movslq	%edi, %r15
	subl	%ecx, %r12d
	movslq	%r12d, %r12
	jmp	.L87
.L90:
	leaq	base(%rip), %rax
	movl	$3, %r15d
	movl	(%rax,%r12,4), %r14d
	movl	%r9d, %eax
	cltd
	idivl	%r15d
	movl	-72(%rbp), %edx
	addl	%r9d, %edx
	addl	%r11d, %r14d
	movslq	%edx, %rdx
	imulq	%r8, %rdx
	addq	%rdi, %rdx
	imull	%ebx, %eax
	leal	(%rax,%rax,2), %r15d
	addl	%r14d, %r15d
	movl	%r15d, (%rsi,%rdx,4)
	movl	-80(%rbp), %edx
	cmpl	%edx, %r10d
	jge	.L89
	movslq	%r10d, %rdx
	addl	%ebx, %eax
	imulq	%r8, %rdx
	leal	(%rax,%rax,2), %eax
	addl	%r14d, %eax
	addq	%r13, %rdx
	movl	%eax, (%rsi,%rdx,4)
.L89:
	addl	$6, %r9d
	addl	$6, %r10d
	jmp	.L88
.L98:
	movl	%r11d, %eax
	movl	$3, %r9d
	cltd
	idivl	%r9d
	movl	-72(%rbp), %edx
	addl	%r11d, %edx
	movslq	%edx, %rdx
	imull	%ebx, %eax
	cmpl	$0, -104(%rbp)
	leal	(%rax,%rax,2), %r9d
	jne	.L93
	movq	-136(%rbp), %r14
.L148:
	imulq	%r8, %rdx
	movl	-96(%rbp), %r13d
	addl	-4(%r14,%rcx,4), %r13d
	addl	%r13d, %r9d
	addq	%r15, %rdx
	movl	%r9d, (%rsi,%rdx,4)
	cmpl	%r10d, -80(%rbp)
	jle	.L97
	movslq	%r10d, %rdx
	addl	%ebx, %eax
	imulq	%r8, %rdx
	leal	(%rax,%rax,2), %eax
	addl	%r13d, %eax
	addq	%r12, %rdx
.L134:
	movl	%eax, (%rsi,%rdx,4)
.L97:
	addl	$6, %r11d
	addl	$6, %r10d
.L87:
	cmpl	%r11d, -80(%rbp)
	jg	.L98
	jmp	.L99
.L93:
	cmpl	$1, -104(%rbp)
	jne	.L95
	movq	-144(%rbp), %r14
	jmp	.L148
.L100:
	movq	-128(%rbp), %rax
	movq	%r13, %rdi
	movl	(%rax,%r15,4), %esi
	incq	%r15
	call	_ZNSolsEi@PLT
	movl	$1, %edx
	leaq	.LC0(%rip), %rsi
	movq	%rax, %rdi
	call	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT
	cmpq	%r15, %r14
	jne	.L100
	movq	%r13, %rdi
	incl	%r12d
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
	movq	-88(%rbp), %rsi
	addq	%rsi, -128(%rbp)
.L53:
	cmpl	%ebx, %r12d
	jge	.L41
	xorl	%r15d, %r15d
	leaq	_ZSt4cout(%rip), %r13
	jmp	.L100
.L150:
	movq	-104(%rbp), %rdx
	jmp	.L137
.L74:
	movslq	%edi, %r14
	cmpl	$2, -104(%rbp)
	movq	%r14, -168(%rbp)
	jne	.L153
	movq	-112(%rbp), %r13
	jmp	.L140
.L153:
	movq	-120(%rbp), %r13
.L140:
	imulq	%r8, %rdx
	movl	-96(%rbp), %r14d
	addl	-4(%r13,%rcx,4), %r14d
	movslq	%edi, %r13
	addl	%r14d, %r9d
	addq	%r13, %rdx
	movl	%r9d, (%rsi,%rdx,4)
	cmpl	%r10d, -80(%rbp)
	jle	.L76
	movslq	%r10d, %rdx
	addl	%ebx, %eax
	imulq	%r8, %rdx
	leal	(%rax,%rax,2), %eax
	addl	%r14d, %eax
	addq	%r12, %rdx
	jmp	.L132
.L95:
	movslq	%edi, %r14
	cmpl	$2, -104(%rbp)
	movq	%r14, -168(%rbp)
	jne	.L154
	movq	-112(%rbp), %r13
	jmp	.L143
.L154:
	movq	-120(%rbp), %r13
.L143:
	imulq	%r8, %rdx
	movl	-96(%rbp), %r14d
	addl	-4(%r13,%rcx,4), %r14d
	movslq	%edi, %r13
	addl	%r14d, %r9d
	addq	%r13, %rdx
	movl	%r9d, (%rsi,%rdx,4)
	cmpl	%r10d, -80(%rbp)
	jle	.L97
	movslq	%r10d, %rdx
	addl	%ebx, %eax
	imulq	%r8, %rdx
	leal	(%rax,%rax,2), %eax
	addl	%r14d, %eax
	addq	%r12, %rdx
	jmp	.L134
.L41:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	je	.L108
	call	__stack_chk_fail@PLT
.L108:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3892:
	.size	_Z10solveBoardi, .-_Z10solveBoardi
	.section	.rodata.str1.1
.LC1:
	.string	"Enter size of board:"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB3893:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	call	_Z8loadDatav
	movl	$20, %edx
	leaq	.LC1(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT
	leaq	_ZSt3cin(%rip), %rdi
	leaq	4(%rsp), %rsi
	call	_ZNSirsERi@PLT
	movl	4(%rsp), %edi
	call	_Z10solveBoardi
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	je	.L156
	call	__stack_chk_fail@PLT
.L156:
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3893:
	.size	main, .-main
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB3919:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	movq	%rax, %rdi
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE3919:
	.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
	.globl	board8
	.bss
	.align 32
	.type	board8, @object
	.size	board8, 256
board8:
	.zero	256
	.globl	board7
	.align 32
	.type	board7, @object
	.size	board7, 196
board7:
	.zero	196
	.globl	base14
	.align 32
	.type	base14, @object
	.size	base14, 168
base14:
	.zero	168
	.globl	base13
	.align 32
	.type	base13, @object
	.size	base13, 156
base13:
	.zero	156
	.globl	base12
	.align 32
	.type	base12, @object
	.size	base12, 144
base12:
	.zero	144
	.globl	base11
	.align 32
	.type	base11, @object
	.size	base11, 132
base11:
	.zero	132
	.globl	base8
	.align 32
	.type	base8, @object
	.size	base8, 96
base8:
	.zero	96
	.globl	tranposeBase7
	.align 32
	.type	tranposeBase7, @object
	.size	tranposeBase7, 84
tranposeBase7:
	.zero	84
	.globl	base7
	.align 32
	.type	base7, @object
	.size	base7, 84
base7:
	.zero	84
	.globl	base
	.align 32
	.type	base, @object
	.size	base, 48
base:
	.zero	48
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:


#include <hip/hip_runtime.h>
#include <iostream>
#include <stdlib.h>
#include <math.h>
#include <algorithm>
using namespace std;

int base[3][4];
int base7[3][7];
int tranposeBase7[7][3];
int base8[3][8];
int base11[3][11];
int base12[3][12];
int base13[3][13];
int base14[3][14];
int board7[7][7];
int board8[8][8];
void loadData()
{
 //base 3*4
	base[0][0]=1;
	base[0][1]=4;
	base[0][2]=7;
	base[0][3]=10;
	base[1][0]=8;
	base[1][1]=11;
	base[1][2]=2;
	base[1][3]=5;
	base[2][0]=3;
	base[2][1]=6;
	base[2][2]=9;
	base[2][3]=12;

    //base 3*7
    	base7[0][0]=1;
	base7[0][1]=14;
	base7[0][2]=17;
	base7[0][3]=20;
	base7[0][4]=9;
	base7[0][5]=4;
	base7[0][6]=7;
	base7[1][0]=16;
	base7[1][1]=19;
	base7[1][2]=12;
	base7[1][3]=3;
	base7[1][4]=6;
	base7[1][5]=21;
	base7[1][6]=10;
	base7[2][0]=13;
	base7[2][1]=2;
	base7[2][2]=15;
	base7[2][3]=18;
	base7[2][4]=11;
	base7[2][5]=8;
	base7[2][6]=5;
    //Tranpose base 7
	for(int x = 0; x < 3; x++)
	  {
		for(int y = 0; y < 7 ; y++)
		{
		    	tranposeBase7[y][x] = base7[x][y];                
	    	}
	  }
    //base 3*8
    	base8[0][0]=1;
	base8[0][1]=16;
	base8[0][2]=3;
	base8[0][3]=22;
	base8[0][4]=19;
	base8[0][5]=12;
	base8[0][6]=7;
	base8[0][7]=10;
	base8[1][0]=4;
	base8[1][1]=21;
	base8[1][2]=18;
	base8[1][3]=15;
	base8[1][4]=6;
	base8[1][5]=9;
	base8[1][6]=24;
	base8[1][7]=13;
	base8[2][0]=17;
	base8[2][1]=2;
	base8[2][2]=5;
	base8[2][3]=20;
	base8[2][4]=23;
	base8[2][5]=14;
	base8[2][6]=11;
	base8[2][7]=8;
    //base 3*11
    for(int x = 0; x < 3; x++)
    {
        for(int y = 0; y < 11 ; y++)
        {
            if(y < 4)
            	base11[x][y] = base[x][y];            
            else
            	base11[x][y] = base7[x][y-4]+3*4;     
    	}// end of inner loop
    }
    //base 3*12
    for(int x = 0; x < 3; x++)
    {
        for(int y =0; y<12; y++)
        {
            if(y<4)
            base12[x][y] = base[x][y];
            else
            base12[x][y] = base8[x][y-4]+3*4;
	}
    }
    //board 3*13
    	base13[0][0]=1;
	base13[0][1]=4;
	base13[0][2]=13;
	base13[0][3]=16;
	base13[0][4]=21;
	base13[0][5]=8;
	base13[0][6]=23;
	base13[0][7]=18;
	base13[0][8]=35;
	base13[0][9]=38;
	base13[0][10]=27;
	base13[0][11]=32;
	base13[0][12]=29;
	base13[1][0]=12;
	base13[1][1]=15;
	base13[1][2]=6;
	base13[1][3]=3;
	base13[1][4]=10;
	base13[1][5]=17;
	base13[1][6]=20;
	base13[1][7]=37;
	base13[1][8]=24;
	base13[1][9]=33;
	base13[1][10]=30;
	base13[1][11]=39;
	base13[1][12]=26;
	base13[2][0]=5;
	base13[2][1]=2;
	base13[2][2]=11;
	base13[2][3]=14;
	base13[2][4]=7;
	base13[2][5]=22;
	base13[2][6]=9;
	base13[2][7]=34;
	base13[2][8]=19;
	base13[2][9]=36;
	base13[2][10]=25;
	base13[2][11]=28;
	base13[2][12]=31;
    //base 3*14
    for(int x = 0; x < 3; x++)
    {	
       for(int y =0; y<14; y++)
        {
            if(y < 7)
                base14[x][y] = base7[x][y];
            else
               base14[x][y] = base7[x][y-7]+3*7;         
     	}
    }
}

int blockOfFour(int n) // getting num blocks of four in each stripe.
{
    if(n < 11)
    {
	return 0;
    }
    else
    {
        int num = 0;
        switch(n%4)
        {
	    case 0:
	       num = (n-8);
	       break;
	    case 1:
	       num = (n-13);
	       break;
	    case 2:
	       num = (n-14);
	       break;
	    case 3:
	       num = (n-7);
	       break;
        }
	return num;
    }		
}

int** create2DArray(int n) 
    {
      int** array2D = 0;
      //transpose 3x7 to 7*3
      
      array2D = new int*[7]; // height is 7

      for (int h = 0; h < 7; h++)
      {
            array2D[h] = new int[n-7];
	    //initialize array
            for (int w = 0; w < (n-7); w++)
            {
                 //if(w < ) 
		 //array2D[h][w] = w + width * h;
            }
      }
      return array2D;
}

void solveBoard(int n)
{
    int board[n][n]; // initialize the board
    for (int i = 0; i < n; i++)
       for (int j = 0; j < n; j++)
            board[i][j] = 0;
    int BaseOfFour = blockOfFour(n)/4; // number blocks of 3*4
    
    switch(n % 3)
    {	
	case 0: // for all board size that is divisibe by 3
	   for (int x = 0; x < 3; x++)
	   {
	       for(int y = 0; y < n; y++)
	       {
		    if(y < blockOfFour(n))
		    {
			int temp = y/4;	
			for(int i = 0; i < n; i+= 6) // parrallel here parrallel here i+6 to get stripe without flipping order
			{
			    int stride = i/3;		    	
			    board[x+i][y] = base[x][y%4]+ temp*12 + 3*n*stride;
			    if(x+3+i < n)
			    	board[x+3+i][n-y-1] = base[x][y%4]+ temp*12 + 3*n*(stride+1);
			}
		    }
		    else
		    {
			for(int i = 0 ; i < n; i+= 6) // parallel here
			{
			    int stride = i/3;
			    if(n % 4 == 0)
			    {
			    	board[x+i][y] = base8[x][y-blockOfFour(n)]+BaseOfFour*12 + 3*n*stride;
				board[x+3+i][n-y-1] = base8[x][y-blockOfFour(n)]+ BaseOfFour*12 + 3*n*(stride+1); //using base 8
			    }
 			    if(n % 4 == 1)
			    {
			    	board[x+i][y] = base13[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*stride;
				if(x+3+i < n)
				   board[x+3+i][n-y-1] = base13[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*(stride+1); //using base 13
			    }
			    if(n % 4 == 2)
			    {
			    	board[x+i][y] = base14[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*stride;
				if(x+3+i < n)
				   board[x+3+i][n-y-1] = base14[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*(stride+1); // using base 14
			    }
			    if(n % 4 == 3)
			    {
			    	board[x+i][y] = base7[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*stride;
				if(x+3+i < n)
				   board[x+3+i][n-y-1] = base7[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*(stride+1); // using base 7
			    }
			}
		    }
	       }   
	   }
	   break;
	case 1:
	   for (int x = 0; x < 3; x++)
	   {
	       for(int y = 0; y < n; y++)
	       {
		    if(y < blockOfFour(n))
		    {
			int temp = y/4; // temp get index of blockOf4
			for(int i = 0; i < n-7; i+= 6) // 
			{
			    int stride = i/3; 	    	
			    board[x+i][y] = base[x][y%4]+ temp*12 + 3*n*stride; 
			    if(x+3+i < n-7)
			    	board[x+3+i][n-y-1] = base[x][y%4]+ temp*12 + 3*n*(stride+1);
			}
		    }// end of if
		    else
		    {
			for(int i = 0 ; i < n-7; i+= 6) // parallel here
			{
			    int stride = i/3;
			    if(n % 4 == 0)
			    {
			    	board[x+i][y] = base8[x][y-blockOfFour(n)]+BaseOfFour*12 + 3*n*stride;
				if(x+3+i < n-7)// Don't want to get in the 7 stride
				board[x+3+i][n-y-1] = base8[x][y-blockOfFour(n)]+ BaseOfFour*12 + 3*n*(stride+1);
			    }
 			    if(n % 4 == 1)
			    {
			    	board[x+i][y] = base13[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*stride;
				if(x+3+i < n-7) // Don't want to get in the 7 stride
				   board[x+3+i][n-y-1] = base13[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*(stride+1);
			    }
			    if(n % 4 == 2)
			    {
			    	board[x+i][y] = base14[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*stride;
				if(x+3+i < n-7) // Don't want to get in the 7 stride
				   board[x+3+i][n-y-1] = base14[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*(stride+1);
			    }
			    if(n % 4 == 3)
			    {
			    	board[x+i][y] = base7[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*stride;
				if(x+3+i < n-7) // Don't want to get in the 7 stride
				   board[x+3+i][n-y-1] = base7[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*(stride+1);
			    }
			}
		    }// end of else
	       }// end of for y   
	   }// end of big 4
	   //Handling 7*n here
	   for(int x = 0; x < 7; x++)
	   {
		for(int y = 0; y < n-7 ; y++) // NOTE !!!!
		{
		    if(y%6 == 0) //0,6,12....
		    {
			int temp = y/6;
		    	board[n+x-7][y] = tranposeBase7[x][y%3]+ 2*temp*21;
			board[n+x-7][y+1] = tranposeBase7[x][y%3+1]+ 2*temp*21;
			board[n+x-7][y+2] = tranposeBase7[x][y%3+2]+ 2*temp*21;
		    }
		    else if( y%3 == 0) //3,9,15,21...
		    {
			int temp = y/6;
		    	board[n-x-1][y] = tranposeBase7[x][y%3]+ 21 + 2*temp*21;
			board[n-x-1][y+1] = tranposeBase7[x][y%3+1]+ 21 + 2*temp*21;
			board[n-x-1][y+2] = tranposeBase7[x][y%3+2]+ 21 + 2*temp*21;
		    }
		    /*int temp = y/3; // getting index of block of 7*3
		    for(int i = 0; i < n-7; i+= 3) // 
			{  
			    int stride = i/3; 	    	
			    board[n+x-7][y] = tranposeBase7[x][y%3] + temp*21 + 3*n*stride;
			    if(x+3+i < n-7)
			    	board[x+3+i][n-y-1] = base[x][y%4]+ temp*12 + 3*n*(stride+1);
			}*/
		}
	   }
	
	break;
      case 2:
	 for (int x = 0; x < 3; x++)
	   {
	       for(int y = 0; y < n; y++)
	       {
		    if(y < blockOfFour(n))
		    {
			int temp = y/4;	
			for(int i = 0; i < n-8; i+= 6) 
			{
			    int stride = i/3; 	    	
			    board[x+i][y] = base[x][y%4]+ temp*12 + 3*n*stride;
			    if(x+3+i < n-8)
			    	board[x+3+i][n-y-1] = base[x][y%4]+ temp*12 + 3*n*(stride+1);
			}
		    }// end of if
		    else
		    {
			for(int i = 0 ; i < n-8; i+= 6)
			{
			    int stride = i/3;
			    if(n % 4 == 0)
			    {
			    	board[x+i][y] = base8[x][y-blockOfFour(n)]+BaseOfFour*12 + 3*n*stride;
				if(x+3+i < n-8)// Don't want to get in the 8 stride
				board[x+3+i][n-y-1] = base8[x][y-blockOfFour(n)]+ BaseOfFour*12 + 3*n*(stride+1);
			    }
 			    if(n % 4 == 1)
			    {
			    	board[x+i][y] = base13[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*stride;
				if(x+3+i < n-8) // Don't want to get in the 8 stride
				   board[x+3+i][n-y-1] = base13[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*(stride+1);
			    }
			    if(n % 4 == 2)
			    {
			    	board[x+i][y] = base14[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*stride;
				if(x+3+i < n-8) // Don't want to get in the 8 stride
				   board[x+3+i][n-y-1] = base14[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*(stride+1);
			    }
			    if(n % 4 == 3)
			    {
			    	board[x+i][y] = base7[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*stride;
				if(x+3+i < n-8) // Don't want to get in the 8 stride
				   board[x+3+i][n-y-1] = base7[x][y-blockOfFour(n)]+ BaseOfFour * 12 + 3*n*(stride+1);
			    }
			}
		    }// end of else
	       }// end of for y   
	   }// end of big 4
	// Handling 8*n stride here
	


    } // end of switch
    for (int x = 0; x < n; x++) {
        for (int y = 0; y < n; y++)
            cout << board[x][y]<< "\t";
        cout << endl;
    }
}

int main()
{
    loadData();
    int n;
    cout << "Enter size of board:";
    cin >> n;
    solveBoard(n);

    /*for(int x = 0; x < 3; x++)
    {
	for(int y = 0; y < 7 ; y++)
	    	cout << base7[x][y] << "\t";                
	cout << endl;
    }
    for(int x = 0; x < 7; x++)
    {
	for(int y = 0; y < 3 ; y++)
	    	cout << tranposeBase7[x][y] << "\t";   
	cout << endl;             
    }*/
    return 0;
}

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

                                        # End of file scope inline assembly
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function _Z8loadDatav
.LCPI0_0:
	.long	1                               # 0x1
	.long	4                               # 0x4
	.long	7                               # 0x7
	.long	10                              # 0xa
.LCPI0_1:
	.long	8                               # 0x8
	.long	11                              # 0xb
	.long	2                               # 0x2
	.long	5                               # 0x5
.LCPI0_2:
	.long	3                               # 0x3
	.long	6                               # 0x6
	.long	9                               # 0x9
	.long	12                              # 0xc
.LCPI0_3:
	.long	1                               # 0x1
	.long	14                              # 0xe
	.long	17                              # 0x11
	.long	20                              # 0x14
.LCPI0_4:
	.long	9                               # 0x9
	.long	4                               # 0x4
	.long	7                               # 0x7
	.long	16                              # 0x10
.LCPI0_5:
	.long	19                              # 0x13
	.long	12                              # 0xc
	.long	3                               # 0x3
	.long	6                               # 0x6
.LCPI0_6:
	.long	21                              # 0x15
	.long	10                              # 0xa
	.long	13                              # 0xd
	.long	2                               # 0x2
.LCPI0_7:
	.long	15                              # 0xf
	.long	18                              # 0x12
	.long	11                              # 0xb
	.long	8                               # 0x8
.LCPI0_8:
	.long	1                               # 0x1
	.long	16                              # 0x10
	.long	3                               # 0x3
	.long	22                              # 0x16
.LCPI0_9:
	.long	19                              # 0x13
	.long	12                              # 0xc
	.long	7                               # 0x7
	.long	10                              # 0xa
.LCPI0_10:
	.long	4                               # 0x4
	.long	21                              # 0x15
	.long	18                              # 0x12
	.long	15                              # 0xf
.LCPI0_11:
	.long	6                               # 0x6
	.long	9                               # 0x9
	.long	24                              # 0x18
	.long	13                              # 0xd
.LCPI0_12:
	.long	17                              # 0x11
	.long	2                               # 0x2
	.long	5                               # 0x5
	.long	20                              # 0x14
.LCPI0_13:
	.long	23                              # 0x17
	.long	14                              # 0xe
	.long	11                              # 0xb
	.long	8                               # 0x8
.LCPI0_14:
	.long	1                               # 0x1
	.long	4                               # 0x4
	.long	13                              # 0xd
	.long	16                              # 0x10
.LCPI0_15:
	.long	21                              # 0x15
	.long	8                               # 0x8
	.long	23                              # 0x17
	.long	18                              # 0x12
.LCPI0_16:
	.long	35                              # 0x23
	.long	38                              # 0x26
	.long	27                              # 0x1b
	.long	32                              # 0x20
.LCPI0_17:
	.long	29                              # 0x1d
	.long	12                              # 0xc
	.long	15                              # 0xf
	.long	6                               # 0x6
.LCPI0_18:
	.long	3                               # 0x3
	.long	10                              # 0xa
	.long	17                              # 0x11
	.long	20                              # 0x14
.LCPI0_19:
	.long	37                              # 0x25
	.long	24                              # 0x18
	.long	33                              # 0x21
	.long	30                              # 0x1e
.LCPI0_20:
	.long	39                              # 0x27
	.long	26                              # 0x1a
	.long	5                               # 0x5
	.long	2                               # 0x2
.LCPI0_21:
	.long	11                              # 0xb
	.long	14                              # 0xe
	.long	7                               # 0x7
	.long	22                              # 0x16
.LCPI0_22:
	.long	9                               # 0x9
	.long	34                              # 0x22
	.long	19                              # 0x13
	.long	36                              # 0x24
	.text
	.globl	_Z8loadDatav
	.type	_Z8loadDatav,@function
_Z8loadDatav:                           # @_Z8loadDatav
	.cfi_startproc
# %bb.0:
	movaps	.LCPI0_0(%rip), %xmm0           # xmm0 = [1,4,7,10]
	movaps	%xmm0, base(%rip)
	movaps	.LCPI0_1(%rip), %xmm0           # xmm0 = [8,11,2,5]
	movaps	%xmm0, base+16(%rip)
	movaps	.LCPI0_2(%rip), %xmm0           # xmm0 = [3,6,9,12]
	movaps	%xmm0, base+32(%rip)
	movaps	.LCPI0_3(%rip), %xmm0           # xmm0 = [1,14,17,20]
	movaps	%xmm0, base7(%rip)
	movl	$base7, %eax
	movaps	.LCPI0_4(%rip), %xmm0           # xmm0 = [9,4,7,16]
	movaps	%xmm0, base7+16(%rip)
	movaps	.LCPI0_5(%rip), %xmm0           # xmm0 = [19,12,3,6]
	movaps	%xmm0, base7+32(%rip)
	movaps	.LCPI0_6(%rip), %xmm0           # xmm0 = [21,10,13,2]
	movaps	%xmm0, base7+48(%rip)
	movaps	.LCPI0_7(%rip), %xmm0           # xmm0 = [15,18,11,8]
	movaps	%xmm0, base7+64(%rip)
	movl	$5, base7+80(%rip)
	movl	$tranposeBase7, %ecx
	xorl	%edx, %edx
.LBB0_1:                                # %.preheader57
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB0_2 Depth 2
	movq	%rcx, %rsi
	xorl	%edi, %edi
.LBB0_2:                                #   Parent Loop BB0_1 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	(%rax,%rdi,4), %r8d
	movl	%r8d, (%rsi)
	incq	%rdi
	addq	$12, %rsi
	cmpq	$7, %rdi
	jne	.LBB0_2
# %bb.3:                                #   in Loop: Header=BB0_1 Depth=1
	incq	%rdx
	addq	$28, %rax
	addq	$4, %rcx
	cmpq	$3, %rdx
	jne	.LBB0_1
# %bb.4:
	movaps	.LCPI0_8(%rip), %xmm0           # xmm0 = [1,16,3,22]
	movaps	%xmm0, base8(%rip)
	movaps	.LCPI0_9(%rip), %xmm0           # xmm0 = [19,12,7,10]
	movaps	%xmm0, base8+16(%rip)
	movaps	.LCPI0_10(%rip), %xmm0          # xmm0 = [4,21,18,15]
	movaps	%xmm0, base8+32(%rip)
	movaps	.LCPI0_11(%rip), %xmm0          # xmm0 = [6,9,24,13]
	movaps	%xmm0, base8+48(%rip)
	movaps	.LCPI0_12(%rip), %xmm0          # xmm0 = [17,2,5,20]
	movaps	%xmm0, base8+64(%rip)
	movaps	.LCPI0_13(%rip), %xmm0          # xmm0 = [23,14,11,8]
	movaps	%xmm0, base8+80(%rip)
	movl	$base11, %eax
	leaq	base7-16(%rip), %rcx
	movl	$base, %edx
	xorl	%esi, %esi
.LBB0_5:                                # %.preheader56
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB0_6 Depth 2
	xorl	%edi, %edi
.LBB0_6:                                #   Parent Loop BB0_5 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	cmpq	$3, %rdi
	ja	.LBB0_13
# %bb.7:                                #   in Loop: Header=BB0_6 Depth=2
	movl	(%rdx,%rdi,4), %r8d
	jmp	.LBB0_14
.LBB0_13:                               #   in Loop: Header=BB0_6 Depth=2
	movl	(%rcx,%rdi,4), %r8d
	addl	$12, %r8d
.LBB0_14:                               #   in Loop: Header=BB0_6 Depth=2
	movl	%r8d, (%rax,%rdi,4)
	incq	%rdi
	cmpq	$11, %rdi
	jne	.LBB0_6
# %bb.8:                                #   in Loop: Header=BB0_5 Depth=1
	incq	%rsi
	addq	$44, %rax
	addq	$28, %rcx
	addq	$16, %rdx
	cmpq	$3, %rsi
	jne	.LBB0_5
# %bb.9:                                # %.preheader54.preheader
	movl	$base12, %eax
	leaq	base8-16(%rip), %rcx
	movl	$base, %edx
	xorl	%esi, %esi
.LBB0_10:                               # %.preheader54
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB0_11 Depth 2
	xorl	%edi, %edi
.LBB0_11:                               #   Parent Loop BB0_10 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	cmpq	$3, %rdi
	ja	.LBB0_20
# %bb.12:                               #   in Loop: Header=BB0_11 Depth=2
	movl	(%rdx,%rdi,4), %r8d
	jmp	.LBB0_21
.LBB0_20:                               #   in Loop: Header=BB0_11 Depth=2
	movl	(%rcx,%rdi,4), %r8d
	addl	$12, %r8d
.LBB0_21:                               #   in Loop: Header=BB0_11 Depth=2
	movl	%r8d, (%rax,%rdi,4)
	incq	%rdi
	cmpq	$12, %rdi
	jne	.LBB0_11
# %bb.15:                               #   in Loop: Header=BB0_10 Depth=1
	incq	%rsi
	addq	$48, %rax
	addq	$32, %rcx
	addq	$16, %rdx
	cmpq	$3, %rsi
	jne	.LBB0_10
# %bb.16:
	movaps	.LCPI0_14(%rip), %xmm0          # xmm0 = [1,4,13,16]
	movaps	%xmm0, base13(%rip)
	movaps	.LCPI0_15(%rip), %xmm0          # xmm0 = [21,8,23,18]
	movaps	%xmm0, base13+16(%rip)
	movaps	.LCPI0_16(%rip), %xmm0          # xmm0 = [35,38,27,32]
	movaps	%xmm0, base13+32(%rip)
	movaps	.LCPI0_17(%rip), %xmm0          # xmm0 = [29,12,15,6]
	movaps	%xmm0, base13+48(%rip)
	movaps	.LCPI0_18(%rip), %xmm0          # xmm0 = [3,10,17,20]
	movaps	%xmm0, base13+64(%rip)
	movaps	.LCPI0_19(%rip), %xmm0          # xmm0 = [37,24,33,30]
	movaps	%xmm0, base13+80(%rip)
	movaps	.LCPI0_20(%rip), %xmm0          # xmm0 = [39,26,5,2]
	movaps	%xmm0, base13+96(%rip)
	movaps	.LCPI0_21(%rip), %xmm0          # xmm0 = [11,14,7,22]
	movaps	%xmm0, base13+112(%rip)
	movaps	.LCPI0_22(%rip), %xmm0          # xmm0 = [9,34,19,36]
	movaps	%xmm0, base13+128(%rip)
	movabsq	$120259084313, %rax             # imm = 0x1C00000019
	movq	%rax, base13+144(%rip)
	movl	$31, base13+152(%rip)
	movl	$base14, %eax
	leaq	base7-28(%rip), %rcx
	xorl	%edx, %edx
.LBB0_17:                               # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB0_18 Depth 2
	xorl	%esi, %esi
.LBB0_18:                               #   Parent Loop BB0_17 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	cmpq	$6, %rsi
	ja	.LBB0_24
# %bb.19:                               #   in Loop: Header=BB0_18 Depth=2
	movl	28(%rcx,%rsi,4), %edi
	jmp	.LBB0_25
.LBB0_24:                               #   in Loop: Header=BB0_18 Depth=2
	movl	(%rcx,%rsi,4), %edi
	addl	$21, %edi
.LBB0_25:                               #   in Loop: Header=BB0_18 Depth=2
	movl	%edi, (%rax,%rsi,4)
	incq	%rsi
	cmpq	$14, %rsi
	jne	.LBB0_18
# %bb.22:                               #   in Loop: Header=BB0_17 Depth=1
	incq	%rdx
	addq	$56, %rax
	addq	$28, %rcx
	cmpq	$3, %rdx
	jne	.LBB0_17
# %bb.23:
	retq
.Lfunc_end0:
	.size	_Z8loadDatav, .Lfunc_end0-_Z8loadDatav
	.cfi_endproc
                                        # -- End function
	.globl	_Z11blockOfFouri                # -- Begin function _Z11blockOfFouri
	.type	_Z11blockOfFouri,@function
_Z11blockOfFouri:                       # @_Z11blockOfFouri
	.cfi_startproc
# %bb.0:
	xorl	%eax, %eax
	cmpl	$11, %edi
	jl	.LBB1_7
# %bb.1:
	movl	%edi, %eax
	andl	$3, %eax
	jmpq	*.LJTI1_0(,%rax,8)
.LBB1_2:
	addl	$-8, %edi
	jmp	.LBB1_6
.LBB1_4:
	addl	$-14, %edi
	jmp	.LBB1_6
.LBB1_5:
	addl	$-7, %edi
	jmp	.LBB1_6
.LBB1_3:
	addl	$-13, %edi
.LBB1_6:
	movl	%edi, %eax
.LBB1_7:
	retq
.Lfunc_end1:
	.size	_Z11blockOfFouri, .Lfunc_end1-_Z11blockOfFouri
	.cfi_endproc
	.section	.rodata,"a",@progbits
	.p2align	3, 0x0
.LJTI1_0:
	.quad	.LBB1_2
	.quad	.LBB1_3
	.quad	.LBB1_4
	.quad	.LBB1_5
                                        # -- End function
	.text
	.globl	_Z13create2DArrayi              # -- Begin function _Z13create2DArrayi
	.type	_Z13create2DArrayi,@function
_Z13create2DArrayi:                     # @_Z13create2DArrayi
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movl	%edi, %r14d
	movl	$56, %edi
	callq	_Znam
	movq	%rax, %rbx
	leal	-7(%r14), %eax
	shlq	$2, %rax
	cmpl	$7, %r14d
	movq	$-1, %r14
	cmovgeq	%rax, %r14
	xorl	%r15d, %r15d
.LBB2_1:                                # =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_Znam
	movq	%rax, (%rbx,%r15,8)
	incq	%r15
	cmpq	$7, %r15
	jne	.LBB2_1
# %bb.2:
	movq	%rbx, %rax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_Z13create2DArrayi, .Lfunc_end2-_Z13create2DArrayi
	.cfi_endproc
                                        # -- End function
	.globl	_Z10solveBoardi                 # -- Begin function _Z10solveBoardi
	.type	_Z10solveBoardi,@function
_Z10solveBoardi:                        # @_Z10solveBoardi
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        # kill: def $edi killed $edi def $rdi
	movl	%edi, %r13d
	movq	%r13, %rax
	imulq	%r13, %rax
	movq	%rsp, %r12
	leaq	15(,%rax,4), %rax
	andq	$-16, %rax
	subq	%rax, %r12
	movq	%r12, %rsp
	movb	$1, %al
	movl	%eax, -44(%rbp)                 # 4-byte Spill
	testl	%edi, %edi
	movq	%rdi, -112(%rbp)                # 8-byte Spill
	jle	.LBB3_6
# %bb.1:                                # %.preheader583.lr.ph
	leaq	(,%r13,4), %r14
	movq	%r13, %rbx
	movq	%r12, %r15
.LBB3_2:                                # %._crit_edge
                                        # =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	memset@PLT
	addq	%r14, %r15
	decq	%rbx
	jne	.LBB3_2
# %bb.3:                                # %._crit_edge586
	xorl	%ecx, %ecx
	movq	-112(%rbp), %rdi                # 8-byte Reload
	cmpl	$11, %edi
	jl	.LBB3_11
# %bb.4:
	movl	%edi, %eax
	andl	$3, %eax
	jmpq	*.LJTI3_0(,%rax,8)
.LBB3_5:
	leal	-8(%rdi), %ecx
	jmp	.LBB3_10
.LBB3_6:
	xorl	%ecx, %ecx
	jmp	.LBB3_11
.LBB3_7:
	leal	-14(%rdi), %ecx
	jmp	.LBB3_10
.LBB3_8:
	leal	-7(%rdi), %ecx
	jmp	.LBB3_10
.LBB3_9:
	leal	-13(%rdi), %ecx
.LBB3_10:                               # %_Z11blockOfFouri.exit
	movl	$0, -44(%rbp)                   # 4-byte Folded Spill
.LBB3_11:                               # %_Z11blockOfFouri.exit
	leal	3(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$2, %edx
	movslq	%edi, %r9
	imulq	$1431655766, %r9, %rax          # imm = 0x55555556
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	addl	%ecx, %eax
	leal	(%rax,%rax,2), %ecx
	movl	%edi, %eax
	subl	%ecx, %eax
	movq	%r13, -168(%rbp)                # 8-byte Spill
	movq	%r12, -216(%rbp)                # 8-byte Spill
	movq	%r9, -160(%rbp)                 # 8-byte Spill
	je	.LBB3_165
# %bb.12:                               # %_Z11blockOfFouri.exit
	cmpl	$1, %eax
	je	.LBB3_84
# %bb.13:                               # %_Z11blockOfFouri.exit
	cmpl	$2, %eax
	jne	.LBB3_234
# %bb.14:                               # %.preheader581
	movq	-112(%rbp), %rsi                # 8-byte Reload
	movl	%esi, %eax
	andl	$3, %eax
	movl	%eax, -136(%rbp)                # 4-byte Spill
	leal	-7(%rsi), %eax
	movl	%eax, -96(%rbp)                 # 4-byte Spill
	leal	-14(%rsi), %eax
	movl	%eax, -144(%rbp)                # 4-byte Spill
	leal	-13(%rsi), %eax
	movl	%eax, -48(%rbp)                 # 4-byte Spill
	leal	-8(%rsi), %eax
	leal	3(%rsi), %ecx
	testl	%esi, %esi
	cmovnsl	%esi, %ecx
	andl	$-4, %ecx
	movl	%esi, %edi
	subl	%ecx, %edi
	movl	%edi, -72(%rbp)                 # 4-byte Spill
	shll	$2, %edx
	leal	(%rdx,%rdx,2), %ecx
	movl	%ecx, -52(%rbp)                 # 4-byte Spill
	leal	(%rsi,%rsi,2), %ecx
	movq	%rcx, -176(%rbp)                # 8-byte Spill
	movslq	%eax, %r14
	movq	-216(%rbp), %r8                 # 8-byte Reload
	movq	-160(%rbp), %rdx                # 8-byte Reload
	leaq	(%r8,%rdx,4), %rcx
	movq	%rcx, -128(%rbp)                # 8-byte Spill
	movq	-168(%rbp), %rdi                # 8-byte Reload
	leaq	(,%rdi,8), %rcx
	leaq	(%rcx,%rcx,2), %r12
	leaq	(%rdi,%rdi,2), %rcx
	shlq	$2, %rdx
	leaq	(%rdx,%rcx,4), %rcx
	leal	(%rsi,%rsi), %edx
	leal	(%rdx,%rdx,2), %esi
	addq	%r8, %rcx
	addq	$-4, %rcx
	movq	%rcx, -104(%rbp)                # 8-byte Spill
	leaq	(,%rdi,4), %rcx
	movq	%rcx, -192(%rbp)                # 8-byte Spill
	movl	$3, %ecx
	movq	%rcx, -152(%rbp)                # 8-byte Spill
	xorl	%ecx, %ecx
	movq	%rcx, -80(%rbp)                 # 8-byte Spill
	movq	%r8, -200(%rbp)                 # 8-byte Spill
.LBB3_15:                               # %.preheader580
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB3_17 Depth 2
                                        #       Child Loop BB3_28 Depth 3
                                        #       Child Loop BB3_21 Depth 3
	cmpl	$0, -112(%rbp)                  # 4-byte Folded Reload
	jle	.LBB3_83
# %bb.16:                               # %.lr.ph612
                                        #   in Loop: Header=BB3_15 Depth=1
	movq	-80(%rbp), %rcx                 # 8-byte Reload
	addq	$3, %rcx
	movq	%rcx, -160(%rbp)                # 8-byte Spill
	movq	-104(%rbp), %rcx                # 8-byte Reload
	movq	%rcx, -120(%rbp)                # 8-byte Spill
	movq	-200(%rbp), %r13                # 8-byte Reload
	xorl	%r9d, %r9d
.LBB3_17:                               #   Parent Loop BB3_15 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB3_28 Depth 3
                                        #       Child Loop BB3_21 Depth 3
	xorl	%ecx, %ecx
	movl	-136(%rbp), %edx                # 4-byte Reload
	movq	%rdx, -64(%rbp)                 # 8-byte Spill
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	movq	-112(%rbp), %rdx                # 8-byte Reload
	je	.LBB3_24
.LBB3_18:                               # %_Z11blockOfFouri.exit539
                                        #   in Loop: Header=BB3_17 Depth=2
	movslq	%ecx, %rcx
	cmpq	%rcx, %r9
	jge	.LBB3_26
# %bb.19:                               #   in Loop: Header=BB3_17 Depth=2
	cmpl	$9, %edx
	jl	.LBB3_80
# %bb.20:                               # %.lr.ph605
                                        #   in Loop: Header=BB3_17 Depth=2
	movl	%r9d, %ecx
	andl	$-4, %ecx
	leal	(%rcx,%rcx,2), %ecx
	movl	%r9d, %edi
	andl	$3, %edi
	movq	-80(%rbp), %r8                  # 8-byte Reload
	shlq	$4, %r8
	addl	base(%r8,%rdi,4), %ecx
	xorl	%edi, %edi
	xorl	%r10d, %r10d
.LBB3_21:                               #   Parent Loop BB3_15 Depth=1
                                        #     Parent Loop BB3_17 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movl	%ecx, (%r13,%rdi)
	movq	-152(%rbp), %rdx                # 8-byte Reload
	leaq	(%rdx,%r10), %r8
	cmpq	%r14, %r8
	jge	.LBB3_23
# %bb.22:                               #   in Loop: Header=BB3_21 Depth=3
	movq	-176(%rbp), %rdx                # 8-byte Reload
	leal	(%rdx,%rcx), %r8d
	movq	-120(%rbp), %rdx                # 8-byte Reload
	movl	%r8d, (%rdx,%rdi)
.LBB3_23:                               #   in Loop: Header=BB3_21 Depth=3
	addq	$6, %r10
	addq	%r12, %rdi
	addl	%esi, %ecx
	cmpq	%r14, %r10
	jl	.LBB3_21
	jmp	.LBB3_80
.LBB3_24:                               #   in Loop: Header=BB3_17 Depth=2
	movl	%eax, %ecx
	movq	-64(%rbp), %rdi                 # 8-byte Reload
	jmpq	*.LJTI3_1(,%rdi,8)
.LBB3_25:                               #   in Loop: Header=BB3_17 Depth=2
	movl	-48(%rbp), %ecx                 # 4-byte Reload
	jmp	.LBB3_18
.LBB3_26:                               # %.preheader578
                                        #   in Loop: Header=BB3_17 Depth=2
	cmpl	$9, %edx
	jl	.LBB3_80
# %bb.27:                               # %.lr.ph588
                                        #   in Loop: Header=BB3_17 Depth=2
	movq	%r9, %rcx
	notq	%rcx
	movq	-128(%rbp), %rdx                # 8-byte Reload
	leaq	(%rdx,%rcx,4), %rcx
	movq	%rcx, -88(%rbp)                 # 8-byte Spill
	movl	-52(%rbp), %ecx                 # 4-byte Reload
	movl	%ecx, %ebx
	movq	%r13, %rcx
	movq	-152(%rbp), %r11                # 8-byte Reload
	xorl	%edi, %edi
.LBB3_28:                               #   Parent Loop BB3_15 Depth=1
                                        #     Parent Loop BB3_17 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	cmpl	$3, -72(%rbp)                   # 4-byte Folded Reload
	ja	.LBB3_47
# %bb.29:                               #   in Loop: Header=BB3_28 Depth=3
	movl	-72(%rbp), %r8d                 # 4-byte Reload
	jmpq	*.LJTI3_2(,%r8,8)
.LBB3_30:                               #   in Loop: Header=BB3_28 Depth=3
	xorl	%r8d, %r8d
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	je	.LBB3_52
.LBB3_31:                               # %_Z11blockOfFouri.exit542
                                        #   in Loop: Header=BB3_28 Depth=3
	movslq	%r8d, %r8
	movq	%r9, %r15
	subq	%r8, %r15
	movq	-80(%rbp), %r10                 # 8-byte Reload
	shlq	$5, %r10
	movl	base8(%r10,%r15,4), %r8d
	addl	%ebx, %r8d
	movl	%r8d, (%rcx)
	cmpl	%r11d, %eax
	jle	.LBB3_47
# %bb.32:                               #   in Loop: Header=BB3_28 Depth=3
	xorl	%r8d, %r8d
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	je	.LBB3_60
.LBB3_33:                               # %_Z11blockOfFouri.exit545
                                        #   in Loop: Header=BB3_28 Depth=3
	movq	-160(%rbp), %rdx                # 8-byte Reload
	leaq	(%rdx,%rdi), %r15
	movslq	%r8d, %r8
	movq	%r9, %rdx
	subq	%r8, %rdx
	leaq	(%r10,%rdx,4), %r10
	addq	$base8, %r10
	jmp	.LBB3_46
.LBB3_34:                               #   in Loop: Header=BB3_28 Depth=3
	xorl	%r8d, %r8d
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	je	.LBB3_48
.LBB3_35:                               # %_Z11blockOfFouri.exit554
                                        #   in Loop: Header=BB3_28 Depth=3
	movslq	%r8d, %rdx
	movq	%r9, %r8
	subq	%rdx, %r8
	imulq	$56, -80(%rbp), %r10            # 8-byte Folded Reload
	movl	base14(%r10,%r8,4), %edx
	addl	%ebx, %edx
	movl	%edx, (%rcx)
	cmpl	%r11d, %eax
	jle	.LBB3_47
# %bb.36:                               #   in Loop: Header=BB3_28 Depth=3
	xorl	%r8d, %r8d
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	je	.LBB3_56
.LBB3_37:                               # %_Z11blockOfFouri.exit557
                                        #   in Loop: Header=BB3_28 Depth=3
	movq	-160(%rbp), %rdx                # 8-byte Reload
	leaq	(%rdx,%rdi), %r15
	movslq	%r8d, %rdx
	movq	%r9, %r8
	subq	%rdx, %r8
	leaq	(%r10,%r8,4), %r10
	addq	$base14, %r10
	jmp	.LBB3_46
.LBB3_38:                               #   in Loop: Header=BB3_28 Depth=3
	xorl	%r8d, %r8d
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	je	.LBB3_50
.LBB3_39:                               # %_Z11blockOfFouri.exit560
                                        #   in Loop: Header=BB3_28 Depth=3
	movslq	%r8d, %rdx
	movq	%r9, %r8
	subq	%rdx, %r8
	movq	-80(%rbp), %r10                 # 8-byte Reload
	leaq	(%r10,%r10,8), %rdx
	leaq	(%rdx,%rdx,2), %r15
	addq	%r10, %r15
	movl	base7(%r15,%r8,4), %edx
	addl	%ebx, %edx
	movl	%edx, (%rcx)
	cmpl	%r11d, %eax
	jle	.LBB3_47
# %bb.40:                               #   in Loop: Header=BB3_28 Depth=3
	xorl	%r8d, %r8d
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	je	.LBB3_58
.LBB3_41:                               # %_Z11blockOfFouri.exit563
                                        #   in Loop: Header=BB3_28 Depth=3
	movslq	%r8d, %rdx
	movq	%r9, %r8
	subq	%rdx, %r8
	leaq	(%r15,%r8,4), %r10
	addq	$base7, %r10
	movq	%r11, %r15
	jmp	.LBB3_46
.LBB3_42:                               #   in Loop: Header=BB3_28 Depth=3
	xorl	%r8d, %r8d
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	je	.LBB3_54
.LBB3_43:                               # %_Z11blockOfFouri.exit548
                                        #   in Loop: Header=BB3_28 Depth=3
	movslq	%r8d, %rdx
	movq	%r9, %r8
	subq	%rdx, %r8
	imulq	$52, -80(%rbp), %r10            # 8-byte Folded Reload
	movl	base13(%r10,%r8,4), %edx
	addl	%ebx, %edx
	movl	%edx, (%rcx)
	cmpl	%r11d, %eax
	jle	.LBB3_47
# %bb.44:                               #   in Loop: Header=BB3_28 Depth=3
	xorl	%r8d, %r8d
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	je	.LBB3_62
.LBB3_45:                               # %_Z11blockOfFouri.exit551
                                        #   in Loop: Header=BB3_28 Depth=3
	movq	-160(%rbp), %rdx                # 8-byte Reload
	leaq	(%rdx,%rdi), %r15
	movslq	%r8d, %rdx
	movq	%r9, %r8
	subq	%rdx, %r8
	leaq	(%r10,%r8,4), %r10
	addq	$base13, %r10
.LBB3_46:                               # %.sink.split793
                                        #   in Loop: Header=BB3_28 Depth=3
	movq	-176(%rbp), %rdx                # 8-byte Reload
	addl	%ebx, %edx
	addl	(%r10), %edx
	imulq	-168(%rbp), %r15                # 8-byte Folded Reload
	movq	-88(%rbp), %r8                  # 8-byte Reload
	movl	%edx, (%r8,%r15,4)
.LBB3_47:                               #   in Loop: Header=BB3_28 Depth=3
	addq	$6, %rdi
	addq	$6, %r11
	addq	%r12, %rcx
	addl	%esi, %ebx
	cmpl	%edi, %eax
	jg	.LBB3_28
	jmp	.LBB3_80
.LBB3_48:                               #   in Loop: Header=BB3_28 Depth=3
	movl	%eax, %r8d
	movq	-64(%rbp), %rdx                 # 8-byte Reload
	jmpq	*.LJTI3_5(,%rdx,8)
.LBB3_49:                               #   in Loop: Header=BB3_28 Depth=3
	movl	-48(%rbp), %r8d                 # 4-byte Reload
	jmp	.LBB3_35
.LBB3_50:                               #   in Loop: Header=BB3_28 Depth=3
	movl	%eax, %r8d
	movq	-64(%rbp), %rdx                 # 8-byte Reload
	jmpq	*.LJTI3_3(,%rdx,8)
.LBB3_51:                               #   in Loop: Header=BB3_28 Depth=3
	movl	-48(%rbp), %r8d                 # 4-byte Reload
	jmp	.LBB3_39
.LBB3_52:                               #   in Loop: Header=BB3_28 Depth=3
	movl	%eax, %r8d
	movq	-64(%rbp), %rdx                 # 8-byte Reload
	jmpq	*.LJTI3_9(,%rdx,8)
.LBB3_53:                               #   in Loop: Header=BB3_28 Depth=3
	movl	-48(%rbp), %r8d                 # 4-byte Reload
	jmp	.LBB3_31
.LBB3_54:                               #   in Loop: Header=BB3_28 Depth=3
	movl	%eax, %r8d
	movq	-64(%rbp), %rdx                 # 8-byte Reload
	jmpq	*.LJTI3_7(,%rdx,8)
.LBB3_55:                               #   in Loop: Header=BB3_28 Depth=3
	movl	-48(%rbp), %r8d                 # 4-byte Reload
	jmp	.LBB3_43
.LBB3_56:                               #   in Loop: Header=BB3_28 Depth=3
	movl	%eax, %r8d
	movq	-64(%rbp), %rdx                 # 8-byte Reload
	jmpq	*.LJTI3_6(,%rdx,8)
.LBB3_57:                               #   in Loop: Header=BB3_28 Depth=3
	movl	-48(%rbp), %r8d                 # 4-byte Reload
	jmp	.LBB3_37
.LBB3_58:                               #   in Loop: Header=BB3_28 Depth=3
	movl	%eax, %r8d
	movq	-64(%rbp), %rdx                 # 8-byte Reload
	jmpq	*.LJTI3_4(,%rdx,8)
.LBB3_59:                               #   in Loop: Header=BB3_28 Depth=3
	movl	-48(%rbp), %r8d                 # 4-byte Reload
	jmp	.LBB3_41
.LBB3_60:                               #   in Loop: Header=BB3_28 Depth=3
	movl	%eax, %r8d
	movq	-64(%rbp), %rdx                 # 8-byte Reload
	jmpq	*.LJTI3_10(,%rdx,8)
.LBB3_61:                               #   in Loop: Header=BB3_28 Depth=3
	movl	-48(%rbp), %r8d                 # 4-byte Reload
	jmp	.LBB3_33
.LBB3_62:                               #   in Loop: Header=BB3_28 Depth=3
	movl	%eax, %r8d
	movq	-64(%rbp), %rdx                 # 8-byte Reload
	jmpq	*.LJTI3_8(,%rdx,8)
.LBB3_63:                               #   in Loop: Header=BB3_28 Depth=3
	movl	-48(%rbp), %r8d                 # 4-byte Reload
	jmp	.LBB3_45
.LBB3_64:                               #   in Loop: Header=BB3_28 Depth=3
	movl	-144(%rbp), %r8d                # 4-byte Reload
	jmp	.LBB3_35
.LBB3_65:                               #   in Loop: Header=BB3_28 Depth=3
	movl	-96(%rbp), %r8d                 # 4-byte Reload
	jmp	.LBB3_35
.LBB3_66:                               #   in Loop: Header=BB3_28 Depth=3
	movl	-144(%rbp), %r8d                # 4-byte Reload
	jmp	.LBB3_39
.LBB3_67:                               #   in Loop: Header=BB3_28 Depth=3
	movl	-144(%rbp), %r8d                # 4-byte Reload
	jmp	.LBB3_31
.LBB3_68:                               #   in Loop: Header=BB3_28 Depth=3
	movl	-144(%rbp), %r8d                # 4-byte Reload
	jmp	.LBB3_43
.LBB3_69:                               #   in Loop: Header=BB3_28 Depth=3
	movl	-96(%rbp), %r8d                 # 4-byte Reload
	jmp	.LBB3_39
.LBB3_70:                               #   in Loop: Header=BB3_28 Depth=3
	movl	-96(%rbp), %r8d                 # 4-byte Reload
	jmp	.LBB3_31
.LBB3_71:                               #   in Loop: Header=BB3_28 Depth=3
	movl	-96(%rbp), %r8d                 # 4-byte Reload
	jmp	.LBB3_43
.LBB3_72:                               #   in Loop: Header=BB3_28 Depth=3
	movl	-144(%rbp), %r8d                # 4-byte Reload
	jmp	.LBB3_37
.LBB3_73:                               #   in Loop: Header=BB3_28 Depth=3
	movl	-96(%rbp), %r8d                 # 4-byte Reload
	jmp	.LBB3_37
.LBB3_74:                               #   in Loop: Header=BB3_28 Depth=3
	movl	-144(%rbp), %r8d                # 4-byte Reload
	jmp	.LBB3_41
.LBB3_75:                               #   in Loop: Header=BB3_28 Depth=3
	movl	-144(%rbp), %r8d                # 4-byte Reload
	jmp	.LBB3_33
.LBB3_76:                               #   in Loop: Header=BB3_28 Depth=3
	movl	-144(%rbp), %r8d                # 4-byte Reload
	jmp	.LBB3_45
.LBB3_77:                               #   in Loop: Header=BB3_28 Depth=3
	movl	-96(%rbp), %r8d                 # 4-byte Reload
	jmp	.LBB3_41
.LBB3_78:                               #   in Loop: Header=BB3_28 Depth=3
	movl	-96(%rbp), %r8d                 # 4-byte Reload
	jmp	.LBB3_33
.LBB3_79:                               #   in Loop: Header=BB3_28 Depth=3
	movl	-96(%rbp), %r8d                 # 4-byte Reload
	jmp	.LBB3_45
.LBB3_80:                               # %.loopexit577
                                        #   in Loop: Header=BB3_17 Depth=2
	incq	%r9
	addq	$4, %r13
	addq	$-4, -120(%rbp)                 # 8-byte Folded Spill
	cmpq	-168(%rbp), %r9                 # 8-byte Folded Reload
	jne	.LBB3_17
	jmp	.LBB3_83
.LBB3_81:                               #   in Loop: Header=BB3_17 Depth=2
	movl	-144(%rbp), %ecx                # 4-byte Reload
	jmp	.LBB3_18
.LBB3_82:                               #   in Loop: Header=BB3_17 Depth=2
	movl	-96(%rbp), %ecx                 # 4-byte Reload
	jmp	.LBB3_18
.LBB3_83:                               # %._crit_edge613
                                        #   in Loop: Header=BB3_15 Depth=1
	movq	-80(%rbp), %rdx                 # 8-byte Reload
	incq	%rdx
	incq	-152(%rbp)                      # 8-byte Folded Spill
	movq	-192(%rbp), %rcx                # 8-byte Reload
	addq	%rcx, -200(%rbp)                # 8-byte Folded Spill
	addq	%rcx, -104(%rbp)                # 8-byte Folded Spill
	movq	%rdx, %rcx
	movq	%rdx, -80(%rbp)                 # 8-byte Spill
	cmpq	$3, %rdx
	jne	.LBB3_15
	jmp	.LBB3_234
.LBB3_84:                               # %.preheader576
	movl	%edi, %eax
	andl	$3, %eax
	movl	%eax, -128(%rbp)                # 4-byte Spill
	leal	-7(%rdi), %ecx
	leal	-14(%rdi), %eax
	movl	%eax, -136(%rbp)                # 4-byte Spill
	leal	-13(%rdi), %eax
	movl	%eax, -52(%rbp)                 # 4-byte Spill
	leal	-8(%rdi), %eax
	movl	%eax, -48(%rbp)                 # 4-byte Spill
	leal	3(%rdi), %eax
	testl	%edi, %edi
	cmovnsl	%edi, %eax
	andl	$-4, %eax
	movl	%edi, %r10d
	subl	%eax, %r10d
	shll	$2, %edx
	leal	(%rdx,%rdx,2), %eax
	movl	%eax, -104(%rbp)                # 4-byte Spill
	leal	(%rdi,%rdi,2), %eax
	movq	%rax, -176(%rbp)                # 8-byte Spill
	movq	%rcx, -88(%rbp)                 # 8-byte Spill
	movslq	%ecx, %r15
	leaq	(%r12,%r9,4), %rax
	movq	%rax, -200(%rbp)                # 8-byte Spill
	leaq	(,%r13,8), %rax
	movq	%r12, %rdx
	leaq	(%rax,%rax,2), %r12
	leaq	(%r13,%r13,2), %rax
	leaq	(,%r9,4), %rcx
	leaq	(%rcx,%rax,4), %rax
	leal	(%rdi,%rdi), %ecx
	leal	(%rcx,%rcx,2), %r11d
	leaq	-4(%rdx,%rax), %rax
	movq	%rax, -192(%rbp)                # 8-byte Spill
	leaq	(,%r13,4), %rax
	movq	%rax, -184(%rbp)                # 8-byte Spill
	movl	$3, %eax
	movq	%rax, -152(%rbp)                # 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 # 8-byte Spill
	movq	%rdx, -208(%rbp)                # 8-byte Spill
.LBB3_85:                               # %.preheader575
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB3_87 Depth 2
                                        #       Child Loop BB3_98 Depth 3
                                        #       Child Loop BB3_91 Depth 3
	cmpl	$0, -112(%rbp)                  # 4-byte Folded Reload
	jle	.LBB3_154
# %bb.86:                               # %.lr.ph642
                                        #   in Loop: Header=BB3_85 Depth=1
	movq	-80(%rbp), %rax                 # 8-byte Reload
	addq	$3, %rax
	movq	%rax, -96(%rbp)                 # 8-byte Spill
	movq	-192(%rbp), %r13                # 8-byte Reload
	movq	-208(%rbp), %rdi                # 8-byte Reload
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 # 8-byte Spill
.LBB3_87:                               #   Parent Loop BB3_85 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB3_98 Depth 3
                                        #       Child Loop BB3_91 Depth 3
	xorl	%eax, %eax
	movl	-128(%rbp), %ecx                # 4-byte Reload
	movq	%rcx, -64(%rbp)                 # 8-byte Spill
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	movq	-88(%rbp), %r9                  # 8-byte Reload
	je	.LBB3_94
.LBB3_88:                               # %_Z11blockOfFouri.exit512
                                        #   in Loop: Header=BB3_87 Depth=2
	cltq
	cmpq	%rax, -72(%rbp)                 # 8-byte Folded Reload
	jge	.LBB3_96
# %bb.89:                               #   in Loop: Header=BB3_87 Depth=2
	cmpl	$8, -112(%rbp)                  # 4-byte Folded Reload
	jl	.LBB3_151
# %bb.90:                               # %.lr.ph635
                                        #   in Loop: Header=BB3_87 Depth=2
	movq	-72(%rbp), %rcx                 # 8-byte Reload
	movl	%ecx, %eax
	andl	$-4, %eax
	leal	(%rax,%rax,2), %edx
	movl	%ecx, %eax
	andl	$3, %eax
	movq	-80(%rbp), %rcx                 # 8-byte Reload
	shlq	$4, %rcx
	addl	base(%rcx,%rax,4), %edx
	xorl	%eax, %eax
	xorl	%esi, %esi
.LBB3_91:                               #   Parent Loop BB3_85 Depth=1
                                        #     Parent Loop BB3_87 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movl	%edx, (%rdi,%rax)
	movq	-152(%rbp), %rcx                # 8-byte Reload
	addq	%rsi, %rcx
	cmpq	%r15, %rcx
	jge	.LBB3_93
# %bb.92:                               #   in Loop: Header=BB3_91 Depth=3
	movq	-176(%rbp), %rcx                # 8-byte Reload
	addl	%edx, %ecx
	movl	%ecx, (%r13,%rax)
.LBB3_93:                               #   in Loop: Header=BB3_91 Depth=3
	addq	$6, %rsi
	addq	%r12, %rax
	addl	%r11d, %edx
	cmpq	%r15, %rsi
	jl	.LBB3_91
	jmp	.LBB3_151
.LBB3_94:                               #   in Loop: Header=BB3_87 Depth=2
	movl	-48(%rbp), %eax                 # 4-byte Reload
	movq	-64(%rbp), %rcx                 # 8-byte Reload
	jmpq	*.LJTI3_11(,%rcx,8)
.LBB3_95:                               #   in Loop: Header=BB3_87 Depth=2
	movl	-52(%rbp), %eax                 # 4-byte Reload
	jmp	.LBB3_88
.LBB3_96:                               # %.preheader573
                                        #   in Loop: Header=BB3_87 Depth=2
	cmpl	$8, -112(%rbp)                  # 4-byte Folded Reload
	jl	.LBB3_151
# %bb.97:                               # %.lr.ph616
                                        #   in Loop: Header=BB3_87 Depth=2
	movq	-72(%rbp), %rax                 # 8-byte Reload
	notq	%rax
	movq	-200(%rbp), %rcx                # 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, -120(%rbp)                # 8-byte Spill
	movl	-104(%rbp), %eax                # 4-byte Reload
	movl	%eax, %ebx
	movq	%rdi, %rdx
	movq	-152(%rbp), %r14                # 8-byte Reload
	xorl	%esi, %esi
	movq	%rdi, -144(%rbp)                # 8-byte Spill
.LBB3_98:                               #   Parent Loop BB3_85 Depth=1
                                        #     Parent Loop BB3_87 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	cmpl	$3, %r10d
	ja	.LBB3_118
# %bb.99:                               #   in Loop: Header=BB3_98 Depth=3
	movl	%r10d, %eax
	jmpq	*.LJTI3_12(,%rax,8)
.LBB3_100:                              #   in Loop: Header=BB3_98 Depth=3
	xorl	%eax, %eax
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	je	.LBB3_123
.LBB3_101:                              # %_Z11blockOfFouri.exit515
                                        #   in Loop: Header=BB3_98 Depth=3
	cltq
	movq	-72(%rbp), %rcx                 # 8-byte Reload
	subq	%rax, %rcx
	movq	-80(%rbp), %rax                 # 8-byte Reload
	shlq	$5, %rax
	movl	base8(%rax,%rcx,4), %ecx
	addl	%ebx, %ecx
	movl	%ecx, (%rdx)
	cmpl	%r14d, %r9d
	jle	.LBB3_118
# %bb.102:                              #   in Loop: Header=BB3_98 Depth=3
	xorl	%ecx, %ecx
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	je	.LBB3_131
.LBB3_103:                              # %_Z11blockOfFouri.exit518
                                        #   in Loop: Header=BB3_98 Depth=3
	movq	-96(%rbp), %r8                  # 8-byte Reload
	addq	%rsi, %r8
	movslq	%ecx, %rcx
	movq	-72(%rbp), %r9                  # 8-byte Reload
	subq	%rcx, %r9
	leaq	(%rax,%r9,4), %rax
	addq	$base8, %rax
	jmp	.LBB3_116
.LBB3_104:                              #   in Loop: Header=BB3_98 Depth=3
	xorl	%eax, %eax
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	je	.LBB3_119
.LBB3_105:                              # %_Z11blockOfFouri.exit527
                                        #   in Loop: Header=BB3_98 Depth=3
	cltq
	movq	-72(%rbp), %rcx                 # 8-byte Reload
	subq	%rax, %rcx
	imulq	$56, -80(%rbp), %rax            # 8-byte Folded Reload
	movl	base14(%rax,%rcx,4), %ecx
	addl	%ebx, %ecx
	movl	%ecx, (%rdx)
	cmpl	%r14d, %r9d
	jle	.LBB3_118
# %bb.106:                              #   in Loop: Header=BB3_98 Depth=3
	xorl	%ecx, %ecx
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	je	.LBB3_127
.LBB3_107:                              # %_Z11blockOfFouri.exit530
                                        #   in Loop: Header=BB3_98 Depth=3
	movq	-96(%rbp), %r8                  # 8-byte Reload
	addq	%rsi, %r8
	movslq	%ecx, %rcx
	movq	-72(%rbp), %r9                  # 8-byte Reload
	subq	%rcx, %r9
	leaq	(%rax,%r9,4), %rax
	addq	$base14, %rax
	jmp	.LBB3_116
.LBB3_108:                              #   in Loop: Header=BB3_98 Depth=3
	movl	%r11d, %edi
	movq	%r13, %r11
	movq	%r12, %r13
	movq	%r15, %r12
	movl	%r10d, %r15d
	xorl	%eax, %eax
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	je	.LBB3_121
.LBB3_109:                              # %_Z11blockOfFouri.exit533
                                        #   in Loop: Header=BB3_98 Depth=3
	cltq
	movq	-72(%rbp), %rcx                 # 8-byte Reload
	subq	%rax, %rcx
	movq	-80(%rbp), %r10                 # 8-byte Reload
	leaq	(%r10,%r10,8), %rax
	leaq	(%rax,%rax,2), %r8
	addq	%r10, %r8
	movl	base7(%r8,%rcx,4), %eax
	addl	%ebx, %eax
	movl	%eax, (%rdx)
	cmpl	%r14d, %r9d
	movl	%r15d, %r10d
	movq	%r12, %r15
	movq	%r13, %r12
	movq	%r11, %r13
	movl	%edi, %r11d
	movq	-144(%rbp), %rdi                # 8-byte Reload
	jle	.LBB3_118
# %bb.110:                              #   in Loop: Header=BB3_98 Depth=3
	xorl	%eax, %eax
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	je	.LBB3_129
.LBB3_111:                              # %_Z11blockOfFouri.exit536
                                        #   in Loop: Header=BB3_98 Depth=3
	cltq
	movq	-72(%rbp), %rcx                 # 8-byte Reload
	subq	%rax, %rcx
	leaq	(%r8,%rcx,4), %rax
	addq	$base7, %rax
	movq	%r14, %r8
	jmp	.LBB3_117
.LBB3_112:                              #   in Loop: Header=BB3_98 Depth=3
	xorl	%eax, %eax
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	je	.LBB3_125
.LBB3_113:                              # %_Z11blockOfFouri.exit521
                                        #   in Loop: Header=BB3_98 Depth=3
	cltq
	movq	-72(%rbp), %rcx                 # 8-byte Reload
	subq	%rax, %rcx
	imulq	$52, -80(%rbp), %rax            # 8-byte Folded Reload
	movl	base13(%rax,%rcx,4), %ecx
	addl	%ebx, %ecx
	movl	%ecx, (%rdx)
	cmpl	%r14d, %r9d
	jle	.LBB3_118
# %bb.114:                              #   in Loop: Header=BB3_98 Depth=3
	xorl	%ecx, %ecx
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	je	.LBB3_133
.LBB3_115:                              # %_Z11blockOfFouri.exit524
                                        #   in Loop: Header=BB3_98 Depth=3
	movq	-96(%rbp), %r8                  # 8-byte Reload
	addq	%rsi, %r8
	movslq	%ecx, %rcx
	movq	-72(%rbp), %r9                  # 8-byte Reload
	subq	%rcx, %r9
	leaq	(%rax,%r9,4), %rax
	addq	$base13, %rax
.LBB3_116:                              # %.sink.split777
                                        #   in Loop: Header=BB3_98 Depth=3
	movq	-88(%rbp), %r9                  # 8-byte Reload
.LBB3_117:                              # %.sink.split777
                                        #   in Loop: Header=BB3_98 Depth=3
	movq	-176(%rbp), %rcx                # 8-byte Reload
	addl	%ebx, %ecx
	addl	(%rax), %ecx
	imulq	-168(%rbp), %r8                 # 8-byte Folded Reload
	movq	-120(%rbp), %rax                # 8-byte Reload
	movl	%ecx, (%rax,%r8,4)
.LBB3_118:                              #   in Loop: Header=BB3_98 Depth=3
	addq	$6, %rsi
	addq	$6, %r14
	addq	%r12, %rdx
	addl	%r11d, %ebx
	cmpl	%esi, %r9d
	jg	.LBB3_98
	jmp	.LBB3_151
.LBB3_119:                              #   in Loop: Header=BB3_98 Depth=3
	movl	%r9d, %eax
	movq	-64(%rbp), %rcx                 # 8-byte Reload
	jmpq	*.LJTI3_15(,%rcx,8)
.LBB3_120:                              #   in Loop: Header=BB3_98 Depth=3
	movl	-48(%rbp), %eax                 # 4-byte Reload
	jmp	.LBB3_105
.LBB3_121:                              #   in Loop: Header=BB3_98 Depth=3
	movl	%r9d, %eax
	movq	-64(%rbp), %rcx                 # 8-byte Reload
	jmpq	*.LJTI3_13(,%rcx,8)
.LBB3_122:                              #   in Loop: Header=BB3_98 Depth=3
	movl	-48(%rbp), %eax                 # 4-byte Reload
	jmp	.LBB3_109
.LBB3_123:                              #   in Loop: Header=BB3_98 Depth=3
	movl	%r9d, %eax
	movq	-64(%rbp), %rcx                 # 8-byte Reload
	jmpq	*.LJTI3_19(,%rcx,8)
.LBB3_124:                              #   in Loop: Header=BB3_98 Depth=3
	movl	-48(%rbp), %eax                 # 4-byte Reload
	jmp	.LBB3_101
.LBB3_125:                              #   in Loop: Header=BB3_98 Depth=3
	movl	%r9d, %eax
	movq	-64(%rbp), %rcx                 # 8-byte Reload
	jmpq	*.LJTI3_17(,%rcx,8)
.LBB3_126:                              #   in Loop: Header=BB3_98 Depth=3
	movl	-48(%rbp), %eax                 # 4-byte Reload
	jmp	.LBB3_113
.LBB3_127:                              #   in Loop: Header=BB3_98 Depth=3
	movl	%r9d, %ecx
	movq	-64(%rbp), %r8                  # 8-byte Reload
	jmpq	*.LJTI3_16(,%r8,8)
.LBB3_128:                              #   in Loop: Header=BB3_98 Depth=3
	movl	-48(%rbp), %ecx                 # 4-byte Reload
	jmp	.LBB3_107
.LBB3_129:                              #   in Loop: Header=BB3_98 Depth=3
	movl	%r9d, %eax
	movq	-64(%rbp), %rcx                 # 8-byte Reload
	jmpq	*.LJTI3_14(,%rcx,8)
.LBB3_130:                              #   in Loop: Header=BB3_98 Depth=3
	movl	-48(%rbp), %eax                 # 4-byte Reload
	jmp	.LBB3_111
.LBB3_131:                              #   in Loop: Header=BB3_98 Depth=3
	movl	%r9d, %ecx
	movq	-64(%rbp), %r8                  # 8-byte Reload
	jmpq	*.LJTI3_20(,%r8,8)
.LBB3_132:                              #   in Loop: Header=BB3_98 Depth=3
	movl	-48(%rbp), %ecx                 # 4-byte Reload
	jmp	.LBB3_103
.LBB3_133:                              #   in Loop: Header=BB3_98 Depth=3
	movl	%r9d, %ecx
	movq	-64(%rbp), %r8                  # 8-byte Reload
	jmpq	*.LJTI3_18(,%r8,8)
.LBB3_134:                              #   in Loop: Header=BB3_98 Depth=3
	movl	-48(%rbp), %ecx                 # 4-byte Reload
	jmp	.LBB3_115
.LBB3_135:                              #   in Loop: Header=BB3_98 Depth=3
	movl	-52(%rbp), %eax                 # 4-byte Reload
	jmp	.LBB3_105
.LBB3_136:                              #   in Loop: Header=BB3_98 Depth=3
	movl	-136(%rbp), %eax                # 4-byte Reload
	jmp	.LBB3_105
.LBB3_137:                              #   in Loop: Header=BB3_98 Depth=3
	movl	-52(%rbp), %eax                 # 4-byte Reload
	jmp	.LBB3_109
.LBB3_138:                              #   in Loop: Header=BB3_98 Depth=3
	movl	-52(%rbp), %eax                 # 4-byte Reload
	jmp	.LBB3_101
.LBB3_139:                              #   in Loop: Header=BB3_98 Depth=3
	movl	-52(%rbp), %eax                 # 4-byte Reload
	jmp	.LBB3_113
.LBB3_140:                              #   in Loop: Header=BB3_98 Depth=3
	movl	-136(%rbp), %eax                # 4-byte Reload
	jmp	.LBB3_109
.LBB3_141:                              #   in Loop: Header=BB3_98 Depth=3
	movl	-136(%rbp), %eax                # 4-byte Reload
	jmp	.LBB3_101
.LBB3_142:                              #   in Loop: Header=BB3_98 Depth=3
	movl	-136(%rbp), %eax                # 4-byte Reload
	jmp	.LBB3_113
.LBB3_143:                              #   in Loop: Header=BB3_98 Depth=3
	movl	-52(%rbp), %ecx                 # 4-byte Reload
	jmp	.LBB3_107
.LBB3_144:                              #   in Loop: Header=BB3_98 Depth=3
	movl	-136(%rbp), %ecx                # 4-byte Reload
	jmp	.LBB3_107
.LBB3_145:                              #   in Loop: Header=BB3_98 Depth=3
	movl	-52(%rbp), %eax                 # 4-byte Reload
	jmp	.LBB3_111
.LBB3_146:                              #   in Loop: Header=BB3_98 Depth=3
	movl	-52(%rbp), %ecx                 # 4-byte Reload
	jmp	.LBB3_103
.LBB3_147:                              #   in Loop: Header=BB3_98 Depth=3
	movl	-52(%rbp), %ecx                 # 4-byte Reload
	jmp	.LBB3_115
.LBB3_148:                              #   in Loop: Header=BB3_98 Depth=3
	movl	-136(%rbp), %eax                # 4-byte Reload
	jmp	.LBB3_111
.LBB3_149:                              #   in Loop: Header=BB3_98 Depth=3
	movl	-136(%rbp), %ecx                # 4-byte Reload
	jmp	.LBB3_103
.LBB3_150:                              #   in Loop: Header=BB3_98 Depth=3
	movl	-136(%rbp), %ecx                # 4-byte Reload
	jmp	.LBB3_115
.LBB3_151:                              # %.loopexit572
                                        #   in Loop: Header=BB3_87 Depth=2
	movq	-72(%rbp), %rcx                 # 8-byte Reload
	incq	%rcx
	addq	$4, %rdi
	addq	$-4, %r13
	movq	%rcx, %rax
	movq	%rcx, -72(%rbp)                 # 8-byte Spill
	cmpq	-168(%rbp), %rcx                # 8-byte Folded Reload
	movq	-160(%rbp), %r9                 # 8-byte Reload
	jne	.LBB3_87
	jmp	.LBB3_154
.LBB3_152:                              #   in Loop: Header=BB3_87 Depth=2
	movl	-136(%rbp), %eax                # 4-byte Reload
	jmp	.LBB3_88
.LBB3_153:                              #   in Loop: Header=BB3_87 Depth=2
	movl	%r9d, %eax
	jmp	.LBB3_88
.LBB3_154:                              # %._crit_edge643
                                        #   in Loop: Header=BB3_85 Depth=1
	movq	-80(%rbp), %rcx                 # 8-byte Reload
	incq	%rcx
	incq	-152(%rbp)                      # 8-byte Folded Spill
	movq	-184(%rbp), %rax                # 8-byte Reload
	addq	%rax, -208(%rbp)                # 8-byte Folded Spill
	addq	%rax, -192(%rbp)                # 8-byte Folded Spill
	movq	%rcx, %rax
	movq	%rcx, -80(%rbp)                 # 8-byte Spill
	cmpq	$3, %rcx
	jne	.LBB3_85
# %bb.155:                              # %.preheader570
	movq	-88(%rbp), %rdx                 # 8-byte Reload
	movl	%edx, %esi
	leaq	-1(%r9), %rax
	imulq	-168(%rbp), %rax                # 8-byte Folded Reload
	movq	-216(%rbp), %rcx                # 8-byte Reload
	leaq	(%rcx,%rax,4), %r8
	addq	$4, %r8
	movq	-184(%rbp), %rax                # 8-byte Reload
	negq	%rax
	movq	%rax, -72(%rbp)                 # 8-byte Spill
	leaq	4(%rcx), %rax
	movq	%rax, -152(%rbp)                # 8-byte Spill
	movl	$tranposeBase7, %r11d
	xorl	%ebx, %ebx
	movl	$2863311531, %r15d              # imm = 0xAAAAAAAB
	movl	%edx, %eax
	movl	%edx, -44(%rbp)                 # 4-byte Spill
.LBB3_156:                              # %.preheader569
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB3_158 Depth 2
	cmpl	$8, -112(%rbp)                  # 4-byte Folded Reload
	jl	.LBB3_164
# %bb.157:                              # %.lr.ph646
                                        #   in Loop: Header=BB3_156 Depth=1
	movslq	-44(%rbp), %r13                 # 4-byte Folded Reload
	imulq	-184(%rbp), %r13                # 8-byte Folded Reload
	addq	-152(%rbp), %r13                # 8-byte Folded Reload
	leaq	(,%rbx,4), %rax
	leaq	(%rax,%rax,2), %r10
	addq	$tranposeBase7, %r10
	movq	%rbx, %r9
	notq	%r9
	addq	-160(%rbp), %r9                 # 8-byte Folded Reload
	movq	-168(%rbp), %rcx                # 8-byte Reload
	imulq	%rcx, %r9
	movq	-88(%rbp), %rax                 # 8-byte Reload
	addl	%ebx, %eax
	movslq	%eax, %r12
	imulq	%rcx, %r12
	xorl	%ecx, %ecx
.LBB3_158:                              #   Parent Loop BB3_156 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	%rcx, %rax
	movabsq	$-6148914691236517205, %rdx     # imm = 0xAAAAAAAAAAAAAAAB
	mulq	%rdx
	movl	%ecx, %eax
	imulq	%r15, %rax
	movq	%rax, %rdi
	shrq	$33, %rdi
	leal	(%rdi,%rdi,2), %r14d
	negl	%r14d
	shrq	$34, %rax
	leal	(%rax,%rax), %edi
	leal	(%rdi,%rdi,2), %edi
	cmpl	%edi, %ecx
	je	.LBB3_161
# %bb.159:                              #   in Loop: Header=BB3_158 Depth=2
	addl	%ecx, %r14d
	jne	.LBB3_163
# %bb.160:                              #   in Loop: Header=BB3_158 Depth=2
	imull	$42, %eax, %edx
	addl	$21, %edx
	movl	(%r10), %eax
	addl	%edx, %eax
	movl	%eax, -4(%r8,%rcx,4)
	movl	4(%r10), %eax
	addl	%edx, %eax
	movl	%eax, (%r8,%rcx,4)
	movl	8(%r10), %eax
	movq	%r9, %r14
	jmp	.LBB3_162
.LBB3_161:                              #   in Loop: Header=BB3_158 Depth=2
	addq	%rdx, %rdx
	andq	$-4, %rdx
	leaq	(%rdx,%rdx,2), %rax
	movq	%r11, %rdi
	subq	%rax, %rdi
	movslq	%r14d, %rdx
	leaq	1(%rdx), %r14
	addq	$2, %rdx
	movl	%ecx, %eax
	imulq	%r15, %rax
	shrq	$34, %rax
	imull	$42, %eax, %eax
	movl	(%rdi,%rcx,4), %edi
	addl	%eax, %edi
	movl	%edi, -4(%r13,%rcx,4)
	addl	%ecx, %r14d
	shlq	$2, %r14
	leaq	(%rbx,%rbx,2), %rdi
	movl	tranposeBase7(%r14,%rdi,4), %r14d
	addl	%eax, %r14d
	movl	%r14d, (%r13,%rcx,4)
	addl	%ecx, %edx
	shlq	$2, %rdx
	movl	tranposeBase7(%rdx,%rdi,4), %edx
	movq	%r12, %r14
.LBB3_162:                              # %.sink.split787
                                        #   in Loop: Header=BB3_158 Depth=2
	addl	%edx, %eax
	movq	-216(%rbp), %rdx                # 8-byte Reload
	leaq	(%rdx,%r14,4), %rdx
	movl	%eax, 8(%rdx,%rcx,4)
.LBB3_163:                              #   in Loop: Header=BB3_158 Depth=2
	incq	%rcx
	cmpq	%rcx, %rsi
	jne	.LBB3_158
.LBB3_164:                              # %._crit_edge647
                                        #   in Loop: Header=BB3_156 Depth=1
	incq	%rbx
	addq	$12, %r11
	addq	-72(%rbp), %r8                  # 8-byte Folded Reload
	incl	-44(%rbp)                       # 4-byte Folded Spill
	cmpq	$7, %rbx
	jne	.LBB3_156
	jmp	.LBB3_234
.LBB3_165:                              # %.preheader567
	movl	%edi, %eax
	andl	$3, %eax
	movl	%eax, -200(%rbp)                # 4-byte Spill
	leal	-7(%rdi), %eax
	movl	%eax, -52(%rbp)                 # 4-byte Spill
	leal	-14(%rdi), %eax
	movl	%eax, -128(%rbp)                # 4-byte Spill
	leal	-13(%rdi), %eax
	movl	%eax, -104(%rbp)                # 4-byte Spill
	leal	-8(%rdi), %eax
	movl	%eax, -88(%rbp)                 # 4-byte Spill
	leal	3(%rdi), %eax
	testl	%edi, %edi
	cmovnsl	%edi, %eax
	andl	$-4, %eax
	movl	%edi, %r14d
	subl	%eax, %r14d
	shll	$2, %edx
	leal	(%rdx,%rdx,2), %eax
	movl	%eax, -48(%rbp)                 # 4-byte Spill
	leal	(%rdi,%rdi,2), %eax
	movq	%rax, -80(%rbp)                 # 8-byte Spill
	leaq	(%r12,%r9,4), %rax
	movq	%rax, -192(%rbp)                # 8-byte Spill
	leaq	(,%r13,4), %rax
	movq	%rax, -224(%rbp)                # 8-byte Spill
	leaq	(,%r13,8), %rax
	leaq	(%rax,%rax,2), %r8
	leaq	(%r13,%r13,2), %rax
	leaq	(,%r9,4), %rcx
	leaq	(%rcx,%rax,4), %rax
	leal	(%rdi,%rdi), %ecx
	leal	(%rcx,%rcx,2), %r9d
	leaq	-4(%r12,%rax), %rax
	movq	%rax, -208(%rbp)                # 8-byte Spill
	movl	$3, %eax
	movq	%rax, -176(%rbp)                # 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 # 8-byte Spill
	movabsq	$-6148914691236517205, %rsi     # imm = 0xAAAAAAAAAAAAAAAB
	movq	%r12, -184(%rbp)                # 8-byte Spill
.LBB3_166:                              # %.preheader566
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB3_168 Depth 2
                                        #       Child Loop BB3_178 Depth 3
                                        #       Child Loop BB3_171 Depth 3
	movq	-112(%rbp), %r11                # 8-byte Reload
	testl	%r11d, %r11d
	movq	-160(%rbp), %rbx                # 8-byte Reload
	jle	.LBB3_233
# %bb.167:                              # %.lr.ph676
                                        #   in Loop: Header=BB3_166 Depth=1
	movq	-64(%rbp), %rax                 # 8-byte Reload
	leaq	3(%rax), %r15
	movq	-208(%rbp), %rax                # 8-byte Reload
	movq	%rax, -96(%rbp)                 # 8-byte Spill
	movq	-184(%rbp), %rax                # 8-byte Reload
	movq	%rax, -152(%rbp)                # 8-byte Spill
	xorl	%ecx, %ecx
	movq	%r15, -136(%rbp)                # 8-byte Spill
.LBB3_168:                              #   Parent Loop BB3_166 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB3_178 Depth 3
                                        #       Child Loop BB3_171 Depth 3
	xorl	%eax, %eax
	movl	-200(%rbp), %edx                # 4-byte Reload
	movq	%rdx, -120(%rbp)                # 8-byte Spill
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	je	.LBB3_175
.LBB3_169:                              # %_Z11blockOfFouri.exit485
                                        #   in Loop: Header=BB3_168 Depth=2
	cltq
	cmpq	%rax, %rcx
	movq	%rcx, -72(%rbp)                 # 8-byte Spill
	jge	.LBB3_177
# %bb.170:                              # %.lr.ph669
                                        #   in Loop: Header=BB3_168 Depth=2
	movl	%ecx, %eax
	andl	$-4, %eax
	leal	(%rax,%rax,2), %eax
                                        # kill: def $ecx killed $ecx killed $rcx def $rcx
	andl	$3, %ecx
	movq	-64(%rbp), %rdx                 # 8-byte Reload
	shlq	$4, %rdx
	addl	base(%rdx,%rcx,4), %eax
	xorl	%ecx, %ecx
	xorl	%edx, %edx
.LBB3_171:                              #   Parent Loop BB3_166 Depth=1
                                        #     Parent Loop BB3_168 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movq	-152(%rbp), %rdi                # 8-byte Reload
	movl	%eax, (%rdi,%rcx)
	movq	-176(%rbp), %rdi                # 8-byte Reload
	addq	%rdx, %rdi
	cmpq	%rbx, %rdi
	jge	.LBB3_173
# %bb.172:                              #   in Loop: Header=BB3_171 Depth=3
	movq	-80(%rbp), %rdi                 # 8-byte Reload
	addl	%eax, %edi
	movq	-96(%rbp), %r10                 # 8-byte Reload
	movl	%edi, (%r10,%rcx)
.LBB3_173:                              #   in Loop: Header=BB3_171 Depth=3
	addq	$6, %rdx
	addq	%r8, %rcx
	addl	%r9d, %eax
	cmpq	%rbx, %rdx
	jl	.LBB3_171
.LBB3_174:                              # %.loopexit
                                        #   in Loop: Header=BB3_168 Depth=2
	movq	-72(%rbp), %rcx                 # 8-byte Reload
	incq	%rcx
	addq	$4, -152(%rbp)                  # 8-byte Folded Spill
	addq	$-4, -96(%rbp)                  # 8-byte Folded Spill
	cmpq	-168(%rbp), %rcx                # 8-byte Folded Reload
	jne	.LBB3_168
	jmp	.LBB3_233
.LBB3_175:                              #   in Loop: Header=BB3_168 Depth=2
	movl	-88(%rbp), %eax                 # 4-byte Reload
	movq	-120(%rbp), %rdx                # 8-byte Reload
	jmpq	*.LJTI3_21(,%rdx,8)
.LBB3_176:                              #   in Loop: Header=BB3_168 Depth=2
	movl	-104(%rbp), %eax                # 4-byte Reload
	jmp	.LBB3_169
.LBB3_177:                              # %.lr.ph650
                                        #   in Loop: Header=BB3_168 Depth=2
	movq	%rcx, %rax
	notq	%rax
	movq	-192(%rbp), %rcx                # 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, -144(%rbp)                # 8-byte Spill
	movl	-48(%rbp), %eax                 # 4-byte Reload
	movl	%eax, %r13d
	movq	-152(%rbp), %r12                # 8-byte Reload
	movq	-176(%rbp), %r10                # 8-byte Reload
	xorl	%ecx, %ecx
.LBB3_178:                              #   Parent Loop BB3_166 Depth=1
                                        #     Parent Loop BB3_168 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	movq	%rcx, %rax
	mulq	%rsi
	cmpl	$3, %r14d
	ja	.LBB3_198
# %bb.179:                              #   in Loop: Header=BB3_178 Depth=3
	shrq	%rdx
	movl	%r14d, %eax
	jmpq	*.LJTI3_22(,%rax,8)
.LBB3_180:                              #   in Loop: Header=BB3_178 Depth=3
	xorl	%eax, %eax
	movl	$0, %edx
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	movq	-72(%rbp), %rbx                 # 8-byte Reload
	je	.LBB3_203
.LBB3_181:                              # %_Z11blockOfFouri.exit488
                                        #   in Loop: Header=BB3_178 Depth=3
	movslq	%edx, %rdx
	subq	%rdx, %rbx
	movq	-64(%rbp), %rdi                 # 8-byte Reload
	shlq	$5, %rdi
	movl	base8(%rdi,%rbx,4), %edx
	addl	%r13d, %edx
	movl	%edx, (%r12)
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	je	.LBB3_205
.LBB3_182:                              # %_Z11blockOfFouri.exit491
                                        #   in Loop: Header=BB3_178 Depth=3
	cltq
	movq	-72(%rbp), %rbx                 # 8-byte Reload
	subq	%rax, %rbx
	movq	-80(%rbp), %rax                 # 8-byte Reload
	leal	(%rax,%r13), %edx
	addl	base8(%rdi,%rbx,4), %edx
	leaq	(%r15,%rcx), %rax
	jmp	.LBB3_196
.LBB3_183:                              #   in Loop: Header=BB3_178 Depth=3
	xorl	%eax, %eax
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	movq	-72(%rbp), %r11                 # 8-byte Reload
	je	.LBB3_199
.LBB3_184:                              # %_Z11blockOfFouri.exit500
                                        #   in Loop: Header=BB3_178 Depth=3
	cltq
	subq	%rax, %r11
	imulq	$56, -64(%rbp), %rdi            # 8-byte Folded Reload
	movl	base14(%rdi,%r11,4), %eax
	addl	%r13d, %eax
	movl	%eax, (%r12)
	movq	-112(%rbp), %r11                # 8-byte Reload
	cmpl	%r11d, %r10d
	jge	.LBB3_198
# %bb.185:                              #   in Loop: Header=BB3_178 Depth=3
	xorl	%ebx, %ebx
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	je	.LBB3_209
.LBB3_186:                              # %_Z11blockOfFouri.exit503
                                        #   in Loop: Header=BB3_178 Depth=3
	leaq	(%r15,%rcx), %rax
	movslq	%ebx, %r11
	movq	-72(%rbp), %rbx                 # 8-byte Reload
	subq	%r11, %rbx
	incl	%edx
	imull	-80(%rbp), %edx                 # 4-byte Folded Reload
	addl	-48(%rbp), %edx                 # 4-byte Folded Reload
	addl	base14(%rdi,%rbx,4), %edx
	jmp	.LBB3_195
.LBB3_187:                              #   in Loop: Header=BB3_178 Depth=3
	movl	%r9d, %r15d
	movq	%r8, %r9
	movl	%r14d, %r8d
	movq	%rsi, %r14
	xorl	%eax, %eax
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	movq	-72(%rbp), %rdi                 # 8-byte Reload
	je	.LBB3_201
.LBB3_188:                              # %_Z11blockOfFouri.exit506
                                        #   in Loop: Header=BB3_178 Depth=3
	cltq
	subq	%rax, %rdi
	movq	-64(%rbp), %rsi                 # 8-byte Reload
	leaq	(%rsi,%rsi,8), %rax
	leaq	(%rax,%rax,2), %rax
	addq	%rsi, %rax
	movl	base7(%rax,%rdi,4), %edi
	addl	%r13d, %edi
	movl	%edi, (%r12)
	cmpl	%r11d, %r10d
	movq	%r14, %rsi
	movl	%r8d, %r14d
	movq	%r9, %r8
	movl	%r15d, %r9d
	movq	-136(%rbp), %r15                # 8-byte Reload
	jge	.LBB3_198
# %bb.189:                              #   in Loop: Header=BB3_178 Depth=3
	xorl	%edi, %edi
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	je	.LBB3_211
.LBB3_190:                              # %_Z11blockOfFouri.exit509
                                        #   in Loop: Header=BB3_178 Depth=3
	movslq	%edi, %rdi
	movq	-72(%rbp), %r11                 # 8-byte Reload
	subq	%rdi, %r11
	incl	%edx
	imull	-80(%rbp), %edx                 # 4-byte Folded Reload
	addl	-48(%rbp), %edx                 # 4-byte Folded Reload
	addl	base7(%rax,%r11,4), %edx
	movq	%r10, %rax
	movq	-112(%rbp), %r11                # 8-byte Reload
	jmp	.LBB3_197
.LBB3_191:                              #   in Loop: Header=BB3_178 Depth=3
	xorl	%eax, %eax
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	movq	-72(%rbp), %rbx                 # 8-byte Reload
	je	.LBB3_207
.LBB3_192:                              # %_Z11blockOfFouri.exit494
                                        #   in Loop: Header=BB3_178 Depth=3
	cltq
	subq	%rax, %rbx
	imulq	$52, -64(%rbp), %rdi            # 8-byte Folded Reload
	movl	base13(%rdi,%rbx,4), %eax
	addl	%r13d, %eax
	movl	%eax, (%r12)
	cmpl	%r11d, %r10d
	movq	-160(%rbp), %rbx                # 8-byte Reload
	jge	.LBB3_198
# %bb.193:                              #   in Loop: Header=BB3_178 Depth=3
	xorl	%ebx, %ebx
	cmpb	$0, -44(%rbp)                   # 1-byte Folded Reload
	je	.LBB3_213
.LBB3_194:                              # %_Z11blockOfFouri.exit497
                                        #   in Loop: Header=BB3_178 Depth=3
	leaq	(%r15,%rcx), %rax
	movslq	%ebx, %rbx
	movq	-72(%rbp), %r11                 # 8-byte Reload
	subq	%rbx, %r11
	incl	%edx
	imull	-80(%rbp), %edx                 # 4-byte Folded Reload
	addl	-48(%rbp), %edx                 # 4-byte Folded Reload
	addl	base13(%rdi,%r11,4), %edx
.LBB3_195:                              # %.sink.split
                                        #   in Loop: Header=BB3_178 Depth=3
	movq	-112(%rbp), %r11                # 8-byte Reload
.LBB3_196:                              # %.sink.split
                                        #   in Loop: Header=BB3_178 Depth=3
	movq	-160(%rbp), %rbx                # 8-byte Reload
.LBB3_197:                              # %.sink.split
                                        #   in Loop: Header=BB3_178 Depth=3
	imulq	-168(%rbp), %rax                # 8-byte Folded Reload
	movq	-144(%rbp), %rdi                # 8-byte Reload
	movl	%edx, (%rdi,%rax,4)
.LBB3_198:                              #   in Loop: Header=BB3_178 Depth=3
	addq	$6, %rcx
	addq	$6, %r10
	addq	%r8, %r12
	addl	%r9d, %r13d
	cmpl	%r11d, %ecx
	jl	.LBB3_178
	jmp	.LBB3_174
.LBB3_199:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-88(%rbp), %eax                 # 4-byte Reload
	movq	-120(%rbp), %rdi                # 8-byte Reload
	jmpq	*.LJTI3_25(,%rdi,8)
.LBB3_200:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-104(%rbp), %eax                # 4-byte Reload
	jmp	.LBB3_184
.LBB3_201:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-88(%rbp), %eax                 # 4-byte Reload
	movq	-120(%rbp), %rsi                # 8-byte Reload
	jmpq	*.LJTI3_23(,%rsi,8)
.LBB3_202:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-104(%rbp), %eax                # 4-byte Reload
	jmp	.LBB3_188
.LBB3_203:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-88(%rbp), %edx                 # 4-byte Reload
	movq	-120(%rbp), %rdi                # 8-byte Reload
	jmpq	*.LJTI3_29(,%rdi,8)
.LBB3_204:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-104(%rbp), %edx                # 4-byte Reload
	jmp	.LBB3_181
.LBB3_205:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-88(%rbp), %eax                 # 4-byte Reload
	movq	-120(%rbp), %rdx                # 8-byte Reload
	jmpq	*.LJTI3_30(,%rdx,8)
.LBB3_206:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-104(%rbp), %eax                # 4-byte Reload
	jmp	.LBB3_182
.LBB3_207:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-88(%rbp), %eax                 # 4-byte Reload
	movq	-120(%rbp), %rdi                # 8-byte Reload
	jmpq	*.LJTI3_27(,%rdi,8)
.LBB3_208:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-104(%rbp), %eax                # 4-byte Reload
	jmp	.LBB3_192
.LBB3_209:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-88(%rbp), %ebx                 # 4-byte Reload
	movq	-120(%rbp), %rax                # 8-byte Reload
	jmpq	*.LJTI3_26(,%rax,8)
.LBB3_210:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-104(%rbp), %ebx                # 4-byte Reload
	jmp	.LBB3_186
.LBB3_211:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-88(%rbp), %edi                 # 4-byte Reload
	movq	-120(%rbp), %r11                # 8-byte Reload
	jmpq	*.LJTI3_24(,%r11,8)
.LBB3_212:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-104(%rbp), %edi                # 4-byte Reload
	jmp	.LBB3_190
.LBB3_213:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-88(%rbp), %ebx                 # 4-byte Reload
	movq	-120(%rbp), %rax                # 8-byte Reload
	jmpq	*.LJTI3_28(,%rax,8)
.LBB3_214:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-104(%rbp), %ebx                # 4-byte Reload
	jmp	.LBB3_194
.LBB3_215:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-128(%rbp), %eax                # 4-byte Reload
	jmp	.LBB3_184
.LBB3_216:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-52(%rbp), %eax                 # 4-byte Reload
	jmp	.LBB3_184
.LBB3_217:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-128(%rbp), %eax                # 4-byte Reload
	jmp	.LBB3_188
.LBB3_218:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-128(%rbp), %edx                # 4-byte Reload
	jmp	.LBB3_181
.LBB3_219:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-128(%rbp), %eax                # 4-byte Reload
	jmp	.LBB3_182
.LBB3_220:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-128(%rbp), %eax                # 4-byte Reload
	jmp	.LBB3_192
.LBB3_221:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-52(%rbp), %eax                 # 4-byte Reload
	jmp	.LBB3_188
.LBB3_222:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-52(%rbp), %edx                 # 4-byte Reload
	jmp	.LBB3_181
.LBB3_223:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-52(%rbp), %eax                 # 4-byte Reload
	jmp	.LBB3_182
.LBB3_224:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-52(%rbp), %eax                 # 4-byte Reload
	jmp	.LBB3_192
.LBB3_225:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-128(%rbp), %ebx                # 4-byte Reload
	jmp	.LBB3_186
.LBB3_226:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-52(%rbp), %ebx                 # 4-byte Reload
	jmp	.LBB3_186
.LBB3_227:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-128(%rbp), %edi                # 4-byte Reload
	jmp	.LBB3_190
.LBB3_228:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-128(%rbp), %ebx                # 4-byte Reload
	jmp	.LBB3_194
.LBB3_229:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-52(%rbp), %edi                 # 4-byte Reload
	jmp	.LBB3_190
.LBB3_230:                              #   in Loop: Header=BB3_178 Depth=3
	movl	-52(%rbp), %ebx                 # 4-byte Reload
	jmp	.LBB3_194
.LBB3_231:                              #   in Loop: Header=BB3_168 Depth=2
	movl	-128(%rbp), %eax                # 4-byte Reload
	jmp	.LBB3_169
.LBB3_232:                              #   in Loop: Header=BB3_168 Depth=2
	movl	-52(%rbp), %eax                 # 4-byte Reload
	jmp	.LBB3_169
.LBB3_233:                              # %._crit_edge677
                                        #   in Loop: Header=BB3_166 Depth=1
	movq	-64(%rbp), %rcx                 # 8-byte Reload
	incq	%rcx
	incq	-176(%rbp)                      # 8-byte Folded Spill
	movq	-224(%rbp), %rax                # 8-byte Reload
	addq	%rax, -184(%rbp)                # 8-byte Folded Spill
	addq	%rax, -208(%rbp)                # 8-byte Folded Spill
	movq	%rcx, %rax
	movq	%rcx, -64(%rbp)                 # 8-byte Spill
	cmpq	$3, %rcx
	jne	.LBB3_166
.LBB3_234:                              # %.loopexit568
	cmpl	$0, -112(%rbp)                  # 4-byte Folded Reload
	movq	-168(%rbp), %r13                # 8-byte Reload
	jle	.LBB3_239
# %bb.235:                              # %.lr.ph680.preheader
	leaq	(,%r13,4), %rbx
	xorl	%r14d, %r14d
.LBB3_236:                              # %.lr.ph680
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB3_237 Depth 2
	xorl	%r12d, %r12d
	movq	-216(%rbp), %r15                # 8-byte Reload
.LBB3_237:                              #   Parent Loop BB3_236 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	(%r15,%r12,4), %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSolsEi
	movl	$.L.str, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	incq	%r12
	cmpq	%r12, %r13
	jne	.LBB3_237
# %bb.238:                              # %._crit_edge681
                                        #   in Loop: Header=BB3_236 Depth=1
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	movl	$_ZSt4cout, %eax
	addq	%rax, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	incq	%r14
	addq	%rbx, %r15
	movq	%r15, -216(%rbp)                # 8-byte Spill
	cmpq	%r13, %r14
	jne	.LBB3_236
.LBB3_239:                              # %._crit_edge683
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa %rsp, 8
	retq
.Lfunc_end3:
	.size	_Z10solveBoardi, .Lfunc_end3-_Z10solveBoardi
	.cfi_endproc
	.section	.rodata,"a",@progbits
	.p2align	3, 0x0
.LJTI3_0:
	.quad	.LBB3_5
	.quad	.LBB3_9
	.quad	.LBB3_7
	.quad	.LBB3_8
.LJTI3_1:
	.quad	.LBB3_18
	.quad	.LBB3_25
	.quad	.LBB3_81
	.quad	.LBB3_82
.LJTI3_2:
	.quad	.LBB3_30
	.quad	.LBB3_42
	.quad	.LBB3_34
	.quad	.LBB3_38
.LJTI3_3:
	.quad	.LBB3_39
	.quad	.LBB3_51
	.quad	.LBB3_66
	.quad	.LBB3_69
.LJTI3_4:
	.quad	.LBB3_41
	.quad	.LBB3_59
	.quad	.LBB3_74
	.quad	.LBB3_77
.LJTI3_5:
	.quad	.LBB3_35
	.quad	.LBB3_49
	.quad	.LBB3_64
	.quad	.LBB3_65
.LJTI3_6:
	.quad	.LBB3_37
	.quad	.LBB3_57
	.quad	.LBB3_72
	.quad	.LBB3_73
.LJTI3_7:
	.quad	.LBB3_43
	.quad	.LBB3_55
	.quad	.LBB3_68
	.quad	.LBB3_71
.LJTI3_8:
	.quad	.LBB3_45
	.quad	.LBB3_63
	.quad	.LBB3_76
	.quad	.LBB3_79
.LJTI3_9:
	.quad	.LBB3_31
	.quad	.LBB3_53
	.quad	.LBB3_67
	.quad	.LBB3_70
.LJTI3_10:
	.quad	.LBB3_33
	.quad	.LBB3_61
	.quad	.LBB3_75
	.quad	.LBB3_78
.LJTI3_11:
	.quad	.LBB3_88
	.quad	.LBB3_95
	.quad	.LBB3_152
	.quad	.LBB3_153
.LJTI3_12:
	.quad	.LBB3_100
	.quad	.LBB3_112
	.quad	.LBB3_104
	.quad	.LBB3_108
.LJTI3_13:
	.quad	.LBB3_122
	.quad	.LBB3_137
	.quad	.LBB3_140
	.quad	.LBB3_109
.LJTI3_14:
	.quad	.LBB3_130
	.quad	.LBB3_145
	.quad	.LBB3_148
	.quad	.LBB3_111
.LJTI3_15:
	.quad	.LBB3_120
	.quad	.LBB3_135
	.quad	.LBB3_136
	.quad	.LBB3_105
.LJTI3_16:
	.quad	.LBB3_128
	.quad	.LBB3_143
	.quad	.LBB3_144
	.quad	.LBB3_107
.LJTI3_17:
	.quad	.LBB3_126
	.quad	.LBB3_139
	.quad	.LBB3_142
	.quad	.LBB3_113
.LJTI3_18:
	.quad	.LBB3_134
	.quad	.LBB3_147
	.quad	.LBB3_150
	.quad	.LBB3_115
.LJTI3_19:
	.quad	.LBB3_124
	.quad	.LBB3_138
	.quad	.LBB3_141
	.quad	.LBB3_101
.LJTI3_20:
	.quad	.LBB3_132
	.quad	.LBB3_146
	.quad	.LBB3_149
	.quad	.LBB3_103
.LJTI3_21:
	.quad	.LBB3_169
	.quad	.LBB3_176
	.quad	.LBB3_231
	.quad	.LBB3_232
.LJTI3_22:
	.quad	.LBB3_180
	.quad	.LBB3_191
	.quad	.LBB3_183
	.quad	.LBB3_187
.LJTI3_23:
	.quad	.LBB3_188
	.quad	.LBB3_202
	.quad	.LBB3_217
	.quad	.LBB3_221
.LJTI3_24:
	.quad	.LBB3_190
	.quad	.LBB3_212
	.quad	.LBB3_227
	.quad	.LBB3_229
.LJTI3_25:
	.quad	.LBB3_184
	.quad	.LBB3_200
	.quad	.LBB3_215
	.quad	.LBB3_216
.LJTI3_26:
	.quad	.LBB3_186
	.quad	.LBB3_210
	.quad	.LBB3_225
	.quad	.LBB3_226
.LJTI3_27:
	.quad	.LBB3_192
	.quad	.LBB3_208
	.quad	.LBB3_220
	.quad	.LBB3_224
.LJTI3_28:
	.quad	.LBB3_194
	.quad	.LBB3_214
	.quad	.LBB3_228
	.quad	.LBB3_230
.LJTI3_29:
	.quad	.LBB3_181
	.quad	.LBB3_204
	.quad	.LBB3_218
	.quad	.LBB3_222
.LJTI3_30:
	.quad	.LBB3_182
	.quad	.LBB3_206
	.quad	.LBB3_219
	.quad	.LBB3_223
                                        # -- End function
	.text
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -16
	callq	_Z8loadDatav
	movl	$_ZSt4cout, %edi
	movl	$.L.str.1, %esi
	movl	$20, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	leaq	12(%rsp), %rbx
	movl	$_ZSt3cin, %edi
	movq	%rbx, %rsi
	callq	_ZNSirsERi
	movl	(%rbx), %edi
	callq	_Z10solveBoardi
	xorl	%eax, %eax
	addq	$16, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end4:
	.size	main, .Lfunc_end4-main
	.cfi_endproc
                                        # -- End function
	.type	base,@object                    # @base
	.bss
	.globl	base
	.p2align	4, 0x0
base:
	.zero	48
	.size	base, 48

	.type	base7,@object                   # @base7
	.globl	base7
	.p2align	4, 0x0
base7:
	.zero	84
	.size	base7, 84

	.type	tranposeBase7,@object           # @tranposeBase7
	.globl	tranposeBase7
	.p2align	4, 0x0
tranposeBase7:
	.zero	84
	.size	tranposeBase7, 84

	.type	base8,@object                   # @base8
	.globl	base8
	.p2align	4, 0x0
base8:
	.zero	96
	.size	base8, 96

	.type	base11,@object                  # @base11
	.globl	base11
	.p2align	4, 0x0
base11:
	.zero	132
	.size	base11, 132

	.type	base12,@object                  # @base12
	.globl	base12
	.p2align	4, 0x0
base12:
	.zero	144
	.size	base12, 144

	.type	base13,@object                  # @base13
	.globl	base13
	.p2align	4, 0x0
base13:
	.zero	156
	.size	base13, 156

	.type	base14,@object                  # @base14
	.globl	base14
	.p2align	4, 0x0
base14:
	.zero	168
	.size	base14, 168

	.type	board7,@object                  # @board7
	.globl	board7
	.p2align	4, 0x0
board7:
	.zero	196
	.size	board7, 196

	.type	board8,@object                  # @board8
	.globl	board8
	.p2align	4, 0x0
board8:
	.zero	256
	.size	board8, 256

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

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"Enter size of board:"
	.size	.L.str.1, 21

	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym _ZSt4cout
	.addrsig_sym _ZSt3cin
	.addrsig_sym __hip_cuid_

	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.amdgpu_metadata
---
amdhsa.kernels:  []
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
