// File: /workspace/github_c_makefile_star2_O0/ugobas[P]tnm/NeedlemanWunsch.c
// Function: affinealign
int affinealign(char *seq1,
                int  length1,
                char *seq2,
                int  length2,
                int verbose,
                int identity,
                int  penalty,
                int  penext,
                char *align1,
                char *align2,
                int  *align_len)
{
   XY    **dirn   = NULL;
   int   **matrix = NULL,
         maxdim,
         i,    j,    k,    l,
         i1,   j1,
         dia,  right, down,
         rcell, dcell, maxoff,
         match = 1,
         thisscore,
         gapext,
         score;

   maxdim = MAX(length1, length2);

   /* Initialise the score matrix                                       */
   if((matrix = (int **)Array2D(sizeof(int), maxdim, maxdim))==NULL)
      return(0);
   if((dirn   = (XY **)Array2D(sizeof(XY), maxdim, maxdim))==NULL)
      return(0);

   for(i=0;i<maxdim;i++)
   {
      for(j=0;j<maxdim;j++)
      {
         matrix[i][j] = 0;
         dirn[i][j].x = -1;
         dirn[i][j].y = -1;
      }
   }

   /* Fill in scores up the right hand side of the matrix               */
   for(j=0; j<length2; j++)
   {
      if(identity)
      {
         if(seq1[length1-1] == seq2[j]) matrix[length1-1][j] = match;
      }
      else
      {
         matrix[length1-1][j] = CalcMDMScore(seq1[length1-1], seq2[j]);
      }
   }

   /* Fill in scores along the bottom row of the matrix                 */
   for(i=0; i<length1; i++)
   {
      if(identity)
      {
         if(seq1[i] == seq2[length2-1]) matrix[i][length2-1] = match;
      }
      else
      {
         matrix[i][length2-1] = CalcMDMScore(seq1[i], seq2[length2-1]);
      }
   }

   i = length1 - 1;
   j = length2 - 1;

   /* Move back along the diagonal                                      */
   while(i > 0 && j > 0)
   {
      i--;
      j--;

      /* Fill in the scores along this row                              */
      for(i1 = i; i1 > -1; i1--)
      {
         dia   = matrix[i1+1][j+1];

         /* Find highest score to right of diagonal                     */
         rcell = i1+2;
         if(i1+2 >= length1)  right = 0;
         else                 right = matrix[i1+2][j+1] - penalty;

         gapext = 1;
         for(k = i1+3; k<length1; k++, gapext++)
         {
            thisscore = matrix[k][j+1] - (penalty + gapext*penext);

            if(thisscore > right)
            {
               right = thisscore;
               rcell = k;
            }
         }

         /* Find highest score below diagonal                           */
         dcell = j+2;
         if(j+2 >= length2)  down = 0;
         else                down   = matrix[i1+1][j+2] - penalty;

         gapext = 1;
         for(l = j+3; l<length2; l++, gapext++)
         {
            thisscore = matrix[i1+1][l] - (penalty + gapext*penext);

            if(thisscore > down)
            {
               down = thisscore;
               dcell = l;
            }
         }

         /* Set score to best of these                                  */
         maxoff = MAX(right, down);
         if(dia >= maxoff)
         {
            matrix[i1][j] = dia;
            dirn[i1][j].x = i1+1;
            dirn[i1][j].y = j+1;
         }
         else
         {
            if(right > down)
            {
               matrix[i1][j] = right;
               dirn[i1][j].x = rcell;
               dirn[i1][j].y = j+1;
            }
            else
            {
               matrix[i1][j] = down;
               dirn[i1][j].x = i1+1;
               dirn[i1][j].y = dcell;
            }
         }

         /* Add the score for a match                                   */
         if(identity)
         {
            if(seq1[i1] == seq2[j]) matrix[i1][j] += match;
         }
         else
         {
            matrix[i1][j] += CalcMDMScore(seq1[i1],seq2[j]);
         }
      }

      /* Fill in the scores in this column                              */
      for(j1 = j; j1 > -1; j1--)
      {
         dia   = matrix[i+1][j1+1];

         /* Find highest score to right of diagonal                     */
         rcell = i+2;
         if(i+2 >= length1)   right = 0;
         else                 right = matrix[i+2][j1+1] - penalty;

         gapext = 1;
         for(k = i+3; k<length1; k++, gapext++)
         {
            thisscore = matrix[k][j1+1] - (penalty + gapext*penext);

            if(thisscore > right)
            {
               right = thisscore;
               rcell = k;
            }
         }

         /* Find highest score below diagonal                           */
         dcell = j1+2;
         if(j1+2 >= length2)  down = 0;
         else                 down = matrix[i+1][j1+2] - penalty;

         gapext = 1;
         for(l = j1+3; l<length2; l++, gapext++)
         {
            thisscore = matrix[i+1][l] - (penalty + gapext*penext);

            if(thisscore > down)
            {
               down = thisscore;
               dcell = l;
            }
         }

         /* Set score to best of these                                  */
         maxoff = MAX(right, down);
         if(dia >= maxoff)
         {
            matrix[i][j1] = dia;
            dirn[i][j1].x = i+1;
            dirn[i][j1].y = j1+1;
         }
         else
         {
            if(right > down)
            {
               matrix[i][j1] = right;
               dirn[i][j1].x = rcell;
               dirn[i][j1].y = j1+1;
            }
            else
            {
               matrix[i][j1] = down;
               dirn[i][j1].x = i+1;
               dirn[i][j1].y = dcell;
            }
         }

         /* Add the score for a match                                   */
         if(identity)
         {
            if(seq1[i] == seq2[j1]) matrix[i][j1] += match;
         }
         else
         {
            matrix[i][j1] += CalcMDMScore(seq1[i],seq2[j1]);
         }
      }
   }

   score = TraceBack(matrix, dirn, length1, length2,
                     seq1, seq2, align1, align2, align_len);

   if(verbose)
   {
      printf("Matrix:\n-------\n");
      for(j=0; j<length2;j++)
      {
         for(i=0; i<length1; i++)
         {
            printf("%3d ",matrix[i][j]);
         }
         printf("\n");
      }

      printf("Path:\n-----\n");
      for(j=0; j<length2;j++)
      {
         for(i=0; i<length1; i++)
         {
            printf("(%3d,%3d) ",dirn[i][j].x,dirn[i][j].y);
         }
         printf("\n");
      }
   }

   FreeArray2D((char **)matrix, maxdim, maxdim);
   FreeArray2D((char **)dirn,   maxdim, maxdim);

   return(score);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq 0x30(%rbp), %rax
movq 0x28(%rbp), %rax
movq 0x20(%rbp), %rax
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %eax
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movl %r8d, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
movq $0x0, -0x38(%rbp)
movq $0x0, -0x40(%rbp)
movl $0x1, -0x78(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x24(%rbp), %eax
jle 0x6e72d
movl -0x14(%rbp), %eax
movl %eax, -0x88(%rbp)
jmp 0x6e736
movl -0x24(%rbp), %eax
movl %eax, -0x88(%rbp)
movl -0x88(%rbp), %eax
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %esi
movl -0x44(%rbp), %edx
movl $0x4, %edi
callq 0x6e550
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
jne 0x6e765
movl $0x0, -0x4(%rbp)
jmp 0x6f142
movl -0x44(%rbp), %esi
movl -0x44(%rbp), %edx
movl $0x8, %edi
callq 0x6e550
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
jne 0x6e78b
movl $0x0, -0x4(%rbp)
jmp 0x6f142
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x44(%rbp), %eax
jge 0x6e807
movl $0x0, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
cmpl -0x44(%rbp), %eax
jge 0x6e7fa
movq -0x40(%rbp), %rax
movslq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x4c(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movq -0x38(%rbp), %rax
movslq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x4c(%rbp), %rcx
movl $0xffffffff, (%rax,%rcx,8) # imm = 0xFFFFFFFF
movq -0x38(%rbp), %rax
movslq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x4c(%rbp), %rcx
movl $0xffffffff, 0x4(%rax,%rcx,8) # imm = 0xFFFFFFFF
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x6e7a1
jmp 0x6e7fc
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x6e792
movl $0x0, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x6e8ac
cmpl $0x0, -0x2c(%rbp)
je 0x6e85e
movq -0x10(%rbp), %rax
movl -0x14(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
movq -0x20(%rbp), %rcx
movslq -0x4c(%rbp), %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
jne 0x6e85c
movl -0x78(%rbp), %edx
movq -0x40(%rbp), %rax
movl -0x14(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movslq -0x4c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x6e89c
movq -0x10(%rbp), %rax
movl -0x14(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movb (%rax,%rcx), %dl
movq -0x20(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movsbl %dl, %edi
movsbl (%rax,%rcx), %esi
callq 0x6f150
movl %eax, %edx
movq -0x40(%rbp), %rax
movl -0x14(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movslq -0x4c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x6e89e
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x6e80e
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x6e951
cmpl $0x0, -0x2c(%rbp)
je 0x6e903
movq -0x10(%rbp), %rax
movslq -0x48(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movq -0x20(%rbp), %rcx
movl -0x24(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
jne 0x6e901
movl -0x78(%rbp), %edx
movq -0x40(%rbp), %rax
movslq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl -0x24(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x6e941
movq -0x10(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x20(%rbp), %rax
movl -0x24(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsbl %dl, %edi
movsbl (%rax,%rcx), %esi
callq 0x6f150
movl %eax, %edx
movq -0x40(%rbp), %rax
movslq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl -0x24(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x6e943
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x6e8b3
movl -0x14(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x48(%rbp)
movl -0x24(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x4c(%rbp)
xorl %eax, %eax
cmpl $0x0, -0x48(%rbp)
movb %al, -0x89(%rbp)
jle 0x6e97e
cmpl $0x0, -0x4c(%rbp)
setg %al
movb %al, -0x89(%rbp)
movb -0x89(%rbp), %al
testb $0x1, %al
jne 0x6e98d
jmp 0x6efde
movl -0x48(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x48(%rbp)
movl -0x4c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x4c(%rbp)
movl -0x48(%rbp), %eax
movl %eax, -0x58(%rbp)
cmpl $-0x1, -0x58(%rbp)
jle 0x6ecbc
movq -0x40(%rbp), %rax
movl -0x58(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movl -0x4c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x60(%rbp)
movl -0x58(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x6c(%rbp)
movl -0x58(%rbp), %eax
addl $0x2, %eax
cmpl -0x14(%rbp), %eax
jl 0x6e9ec
movl $0x0, -0x64(%rbp)
jmp 0x6ea0f
movq -0x40(%rbp), %rax
movl -0x58(%rbp), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movl -0x4c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
subl 0x10(%rbp), %eax
movl %eax, -0x64(%rbp)
movl $0x1, -0x80(%rbp)
movl -0x58(%rbp), %eax
addl $0x3, %eax
movl %eax, -0x50(%rbp)
movl -0x50(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x6ea7a
movq -0x40(%rbp), %rax
movslq -0x50(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl -0x4c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl 0x10(%rbp), %ecx
movl -0x80(%rbp), %edx
imull 0x18(%rbp), %edx
addl %edx, %ecx
subl %ecx, %eax
movl %eax, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
cmpl -0x64(%rbp), %eax
jle 0x6ea64
movl -0x7c(%rbp), %eax
movl %eax, -0x64(%rbp)
movl -0x50(%rbp), %eax
movl %eax, -0x6c(%rbp)
jmp 0x6ea66
movl -0x50(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x50(%rbp)
movl -0x80(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x80(%rbp)
jmp 0x6ea1f
movl -0x4c(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x70(%rbp)
movl -0x4c(%rbp), %eax
addl $0x2, %eax
cmpl -0x24(%rbp), %eax
jl 0x6ea97
movl $0x0, -0x68(%rbp)
jmp 0x6eaba
movq -0x40(%rbp), %rax
movl -0x58(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movl -0x4c(%rbp), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
subl 0x10(%rbp), %eax
movl %eax, -0x68(%rbp)
movl $0x1, -0x80(%rbp)
movl -0x4c(%rbp), %eax
addl $0x3, %eax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x6eb25
movq -0x40(%rbp), %rax
movl -0x58(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movslq -0x54(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl 0x10(%rbp), %ecx
movl -0x80(%rbp), %edx
imull 0x18(%rbp), %edx
addl %edx, %ecx
subl %ecx, %eax
movl %eax, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
cmpl -0x68(%rbp), %eax
jle 0x6eb0f
movl -0x7c(%rbp), %eax
movl %eax, -0x68(%rbp)
movl -0x54(%rbp), %eax
movl %eax, -0x70(%rbp)
jmp 0x6eb11
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
movl -0x80(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x80(%rbp)
jmp 0x6eaca
movl -0x64(%rbp), %eax
cmpl -0x68(%rbp), %eax
jle 0x6eb38
movl -0x64(%rbp), %eax
movl %eax, -0x90(%rbp)
jmp 0x6eb41
movl -0x68(%rbp), %eax
movl %eax, -0x90(%rbp)
movl -0x90(%rbp), %eax
movl %eax, -0x74(%rbp)
movl -0x60(%rbp), %eax
cmpl -0x74(%rbp), %eax
jl 0x6eba0
movl -0x60(%rbp), %edx
movq -0x40(%rbp), %rax
movslq -0x58(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x4c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x58(%rbp), %edx
addl $0x1, %edx
movq -0x38(%rbp), %rax
movslq -0x58(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x4c(%rbp), %rcx
movl %edx, (%rax,%rcx,8)
movl -0x4c(%rbp), %edx
addl $0x1, %edx
movq -0x38(%rbp), %rax
movslq -0x58(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x4c(%rbp), %rcx
movl %edx, 0x4(%rax,%rcx,8)
jmp 0x6ec38
movl -0x64(%rbp), %eax
cmpl -0x68(%rbp), %eax
jle 0x6ebf0
movl -0x64(%rbp), %edx
movq -0x40(%rbp), %rax
movslq -0x58(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x4c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x6c(%rbp), %edx
movq -0x38(%rbp), %rax
movslq -0x58(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x4c(%rbp), %rcx
movl %edx, (%rax,%rcx,8)
movl -0x4c(%rbp), %edx
addl $0x1, %edx
movq -0x38(%rbp), %rax
movslq -0x58(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x4c(%rbp), %rcx
movl %edx, 0x4(%rax,%rcx,8)
jmp 0x6ec36
movl -0x68(%rbp), %edx
movq -0x40(%rbp), %rax
movslq -0x58(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x4c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x58(%rbp), %edx
addl $0x1, %edx
movq -0x38(%rbp), %rax
movslq -0x58(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x4c(%rbp), %rcx
movl %edx, (%rax,%rcx,8)
movl -0x70(%rbp), %edx
movq -0x38(%rbp), %rax
movslq -0x58(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x4c(%rbp), %rcx
movl %edx, 0x4(%rax,%rcx,8)
jmp 0x6ec38
cmpl $0x0, -0x2c(%rbp)
je 0x6ec75
movq -0x10(%rbp), %rax
movslq -0x58(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movq -0x20(%rbp), %rcx
movslq -0x4c(%rbp), %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
jne 0x6ec73
movl -0x78(%rbp), %edx
movq -0x40(%rbp), %rax
movslq -0x58(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x4c(%rbp), %rcx
addl (%rax,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
jmp 0x6ecac
movq -0x10(%rbp), %rax
movslq -0x58(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x20(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movsbl %dl, %edi
movsbl (%rax,%rcx), %esi
callq 0x6f150
movl %eax, %edx
movq -0x40(%rbp), %rax
movslq -0x58(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x4c(%rbp), %rcx
addl (%rax,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
jmp 0x6ecae
movl -0x58(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0x6e9a5
movl -0x4c(%rbp), %eax
movl %eax, -0x5c(%rbp)
cmpl $-0x1, -0x5c(%rbp)
jle 0x6efd9
movq -0x40(%rbp), %rax
movl -0x48(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movl -0x5c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x60(%rbp)
movl -0x48(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x6c(%rbp)
movl -0x48(%rbp), %eax
addl $0x2, %eax
cmpl -0x14(%rbp), %eax
jl 0x6ed09
movl $0x0, -0x64(%rbp)
jmp 0x6ed2c
movq -0x40(%rbp), %rax
movl -0x48(%rbp), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movl -0x5c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
subl 0x10(%rbp), %eax
movl %eax, -0x64(%rbp)
movl $0x1, -0x80(%rbp)
movl -0x48(%rbp), %eax
addl $0x3, %eax
movl %eax, -0x50(%rbp)
movl -0x50(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x6ed97
movq -0x40(%rbp), %rax
movslq -0x50(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl -0x5c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl 0x10(%rbp), %ecx
movl -0x80(%rbp), %edx
imull 0x18(%rbp), %edx
addl %edx, %ecx
subl %ecx, %eax
movl %eax, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
cmpl -0x64(%rbp), %eax
jle 0x6ed81
movl -0x7c(%rbp), %eax
movl %eax, -0x64(%rbp)
movl -0x50(%rbp), %eax
movl %eax, -0x6c(%rbp)
jmp 0x6ed83
movl -0x50(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x50(%rbp)
movl -0x80(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x80(%rbp)
jmp 0x6ed3c
movl -0x5c(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x70(%rbp)
movl -0x5c(%rbp), %eax
addl $0x2, %eax
cmpl -0x24(%rbp), %eax
jl 0x6edb4
movl $0x0, -0x68(%rbp)
jmp 0x6edd7
movq -0x40(%rbp), %rax
movl -0x48(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movl -0x5c(%rbp), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
subl 0x10(%rbp), %eax
movl %eax, -0x68(%rbp)
movl $0x1, -0x80(%rbp)
movl -0x5c(%rbp), %eax
addl $0x3, %eax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x6ee42
movq -0x40(%rbp), %rax
movl -0x48(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movslq -0x54(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl 0x10(%rbp), %ecx
movl -0x80(%rbp), %edx
imull 0x18(%rbp), %edx
addl %edx, %ecx
subl %ecx, %eax
movl %eax, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
cmpl -0x68(%rbp), %eax
jle 0x6ee2c
movl -0x7c(%rbp), %eax
movl %eax, -0x68(%rbp)
movl -0x54(%rbp), %eax
movl %eax, -0x70(%rbp)
jmp 0x6ee2e
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
movl -0x80(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x80(%rbp)
jmp 0x6ede7
movl -0x64(%rbp), %eax
cmpl -0x68(%rbp), %eax
jle 0x6ee55
movl -0x64(%rbp), %eax
movl %eax, -0x94(%rbp)
jmp 0x6ee5e
movl -0x68(%rbp), %eax
movl %eax, -0x94(%rbp)
movl -0x94(%rbp), %eax
movl %eax, -0x74(%rbp)
movl -0x60(%rbp), %eax
cmpl -0x74(%rbp), %eax
jl 0x6eebd
movl -0x60(%rbp), %edx
movq -0x40(%rbp), %rax
movslq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x5c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x48(%rbp), %edx
addl $0x1, %edx
movq -0x38(%rbp), %rax
movslq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x5c(%rbp), %rcx
movl %edx, (%rax,%rcx,8)
movl -0x5c(%rbp), %edx
addl $0x1, %edx
movq -0x38(%rbp), %rax
movslq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x5c(%rbp), %rcx
movl %edx, 0x4(%rax,%rcx,8)
jmp 0x6ef55
movl -0x64(%rbp), %eax
cmpl -0x68(%rbp), %eax
jle 0x6ef0d
movl -0x64(%rbp), %edx
movq -0x40(%rbp), %rax
movslq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x5c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x6c(%rbp), %edx
movq -0x38(%rbp), %rax
movslq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x5c(%rbp), %rcx
movl %edx, (%rax,%rcx,8)
movl -0x5c(%rbp), %edx
addl $0x1, %edx
movq -0x38(%rbp), %rax
movslq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x5c(%rbp), %rcx
movl %edx, 0x4(%rax,%rcx,8)
jmp 0x6ef53
movl -0x68(%rbp), %edx
movq -0x40(%rbp), %rax
movslq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x5c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x48(%rbp), %edx
addl $0x1, %edx
movq -0x38(%rbp), %rax
movslq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x5c(%rbp), %rcx
movl %edx, (%rax,%rcx,8)
movl -0x70(%rbp), %edx
movq -0x38(%rbp), %rax
movslq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x5c(%rbp), %rcx
movl %edx, 0x4(%rax,%rcx,8)
jmp 0x6ef55
cmpl $0x0, -0x2c(%rbp)
je 0x6ef92
movq -0x10(%rbp), %rax
movslq -0x48(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movq -0x20(%rbp), %rcx
movslq -0x5c(%rbp), %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
jne 0x6ef90
movl -0x78(%rbp), %edx
movq -0x40(%rbp), %rax
movslq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x5c(%rbp), %rcx
addl (%rax,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
jmp 0x6efc9
movq -0x10(%rbp), %rax
movslq -0x48(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x20(%rbp), %rax
movslq -0x5c(%rbp), %rcx
movsbl %dl, %edi
movsbl (%rax,%rcx), %esi
callq 0x6f150
movl %eax, %edx
movq -0x40(%rbp), %rax
movslq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x5c(%rbp), %rcx
addl (%rax,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
jmp 0x6efcb
movl -0x5c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x5c(%rbp)
jmp 0x6ecc2
jmp 0x6e963
movq -0x40(%rbp), %rdi
movq -0x38(%rbp), %rsi
movl -0x14(%rbp), %edx
movl -0x24(%rbp), %ecx
movq -0x10(%rbp), %r8
movq -0x20(%rbp), %r9
movq 0x20(%rbp), %r11
movq 0x28(%rbp), %r10
movq 0x30(%rbp), %rax
movq %r11, (%rsp)
movq %r10, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x6f2b0
movl %eax, -0x84(%rbp)
cmpl $0x0, -0x28(%rbp)
je 0x6f11b
leaq 0x14601(%rip), %rdi     # 0x8362b
movb $0x0, %al
callq 0x10d0
movl $0x0, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x6f094
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x6f07b
movq -0x40(%rbp), %rax
movslq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x4c(%rbp), %rcx
movl (%rax,%rcx,4), %esi
leaq 0xea6a(%rip), %rdi      # 0x7dad3
movb $0x0, %al
callq 0x10d0
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x6f047
leaq 0xeff6(%rip), %rdi      # 0x7e078
movb $0x0, %al
callq 0x10d0
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x6f038
leaq 0x145a1(%rip), %rdi     # 0x8363c
movb $0x0, %al
callq 0x10d0
movl $0x0, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x6f119
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x6f100
movq -0x38(%rbp), %rax
movslq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x4c(%rbp), %rcx
movl (%rax,%rcx,8), %esi
movq -0x38(%rbp), %rax
movslq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x4c(%rbp), %rcx
movl 0x4(%rax,%rcx,8), %edx
leaq 0x1455b(%rip), %rdi     # 0x83649
movb $0x0, %al
callq 0x10d0
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x6f0b8
leaq 0xef71(%rip), %rdi      # 0x7e078
movb $0x0, %al
callq 0x10d0
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x6f0a9
jmp 0x6f11b
movq -0x40(%rbp), %rdi
movl -0x44(%rbp), %esi
movl -0x44(%rbp), %edx
callq 0x6e660
movq -0x38(%rbp), %rdi
movl -0x44(%rbp), %esi
movl -0x44(%rbp), %edx
callq 0x6e660
movl -0x84(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xb0, %rsp
popq %rbp
retq
nop