// File: /workspace/github_c_makefile_star2_O0/thegenemyers[P]DASCRUBBER/align.c
// Function: iter_np
static int iter_np(char *A, int M, char *B, int N, Trace_Waves *wave, int mode, int dmax)
{ int  **PVF = wave->PVF; 
  int  **PHF = wave->PHF;
  int    D;
  int    del = M-N;

  { int  *F0, *F1, *F2;
    int  *HF;
    int   low, hgh;
    int   posl, posh;

#ifdef DEBUG_ALIGN
    printf("\n    BASE %ld,%ld: %d vs %d\n",A-wave->Aabs,B-wave->Babs,M,N);
    printf("    A = ");
    for (D = 0; D < M; D++)
      printf("%c",ToA[(int) A[D]]);
    printf("\n");
    printf("    B = ");
    for (D = 0; D < N; D++)
      printf("%c",ToA[(int) B[D]]);
    printf("\n");
#endif

    if (del >= 0)
      { low = 0;
        hgh = del;
      }
    else
      { low = del;
        hgh = 0;
      }

    posl = -dmax;
    posh =  dmax;
    if (wave->Aabs == wave->Babs)
      { if (B == A)
          { EPRINTF(EPLACE,"%s: self comparison starts on diagonal 0 (Compute_Trace)\n",Prog_Name);
            EXIT(-1);
          }
        else if (B < A)
          { if ((B-A)+1 > posl)
              posl = (B-A)+1;
          }
        else
          { if ((B-A)-1 < posh)
              posh = (B-A)-1;
          }
      }

    F1 = PVF[-2];
    F0 = PVF[-1];

    for (D = low-1; D <= hgh+1; D++)
      F1[D] = F0[D] = -2;
    F0[0] = -1;

    low += 1;
    hgh -= 1;

    for (D = 0; 1; D += 1)
      { int   k, i, j;
        int   am, ac, ap;
        char *a;

        if (D > dmax)
          { EPRINTF(EPLACE,"%s: %s\n",Prog_Name,TP_Align);
            EXIT(-1);
          }

        F2 = F1;
        F1 = F0;
        F0 = PVF[D];
        HF = PHF[D];

        if ((D & 0x1) == 0)
          { if (low > posl)
              low -= 1;
            if (hgh < posh)
              hgh += 1;
          }
        F0[hgh+1] = F0[low-1] = -2;

#define FS_MOVE(mdir,pdir)			\
  ac = F1[k]+1;					\
  if (ac < am)					\
    if (ap < am)				\
      { HF[k] = mdir;				\
        j = am;					\
      }						\
    else					\
      { HF[k] = pdir;				\
        j = ap;					\
      }						\
  else						\
    if (ap < ac)				\
      { HF[k] = 0;				\
        j = ac;					\
      }						\
    else					\
      { HF[k] = pdir;				\
        j = ap;					\
      }						\
						\
  if (N < i)					\
    while (j < N && B[j] == a[j])		\
      j += 1;					\
  else						\
    while (j < i && B[j] == a[j])		\
      j += 1;					\
  F0[k] = j;

        j = -2;
        a = A + hgh;
        i = M - hgh;
        for (k = hgh; k > del; k--)
          { ap = j+1;
            am = F2[k-1];
            FS_MOVE(-1,4)
            a -= 1;
            i += 1;
          }

        j = -2;
        a = A + low;
        i = M - low;
        for (k = low; k < del; k++)
          { ap = F2[k+1]+1;
            am = j;
            FS_MOVE(2,1)
            a += 1;
            i -= 1;
          }

        ap = F0[del+1]+1;
        am = j;
        FS_MOVE(2,4)

#ifdef DEBUG_AWAVE
        print_awave(F0,low,hgh);
        print_awave(HF,low,hgh);
#endif

        if (F0[del] >= N)
          break;
      }
  }

  { int   k, h, m, e, c;
    int   ap = (wave->Aabs-A)-1;
    int   bp = (B-wave->Babs)+1;

    PHF[0][0] = 3;

    c = N;
    k = del;
    e = PHF[D][k];
    PHF[D][k] = 3;

    if (mode == UPPERMOST)

      while (e != 3)
        { h = k+e;
          if (e > 1)
            h -= 3;
          else if (e == 0)
            D -= 1;
          else
            D -= 2;

          if (h < k)       // => e = -1 or 2,  UPPERMOST
            { char *a;
  
              a = A + k;
              if (k < 0)
                m = -k;
              else
                m = 0;
              if (PVF[D][h] <= c)
                c = PVF[D][h]-1;
              while (c >= m && a[c] == B[c])
                c -= 1;
              if (e == -1)  //  => edge is 2, others are 1, and 0
                { if (c <= PVF[D+2][k+1])
                    { e = 4;
                      h = k+1;
                      D = D+2;
                    }
                  else if (c == PVF[D+1][k])
                    { e = 0;
                      h = k;
                      D = D+1;
                    }
                  else
                    PVF[D][h] = c+1;
                }
              else      //   => edge is 0, others are 1, and 2 (if k != del), 0 (otherwise)
                { if (k == del)
                    m = D;
                  else
                    m = D-2;
                  if (c <= PVF[m][k+1])
                    { if (k == del)
                        e = 4;
                      else
                        e = 1;
                      h = k+1;
                      D = m;
                    }
                  else if (c == PVF[D-1][k])
                    { e = 0;
                      h = k;
                      D = D-1;
                    }
                  else
                    PVF[D][h] = c+1;
                }
            }

          m = PHF[D][h];
          PHF[D][h] = e;
          e = m;
          k = h;
        }

    else if (mode == LOWERMOST)

      while (e != 3)
        { h = k+e;
          if (e > 1)
            h -= 3;
          else if (e == 0)
            D -= 1;
          else
            D -= 2;

          if (h > k)       // => e = 1 or 4,   LOWERMOST
            { char *a;
  
              a = A + k;
              if (k < 0)
                m = -k;
              else
                m = 0;
              if (PVF[D][h] < c)
                c = PVF[D][h];
              while (c >= m && a[c] == B[c])
                c -= 1;
              if (e == 1)  //  => edge is 2, others are 1, and 0
                { if (c < PVF[D+2][k-1])
                    { e = 2;
                      h = k-1;
                      D = D+2;
                    }
                  else if (c == PVF[D+1][k])
                    { e = 0;
                      h = k;
                      D = D+1;
                    }
                  else
                    PVF[D][h] = c--;
                }
              else      //   => edge is 0, others are 1, and 2 (if k != del), 0 (otherwise)
                { if (k == del)
                    m = D;
                  else
                    m = D-2;
                  if (c < PVF[m][k-1])
                    { if (k == del)
                        e = 2;
                      else
                        e = -1;
                      h = k-1;
                      D = m;
                    }
                  else if (c == PVF[D-1][k])
                    { e = 0;
                      h = k;
                      D = D-1;
                    }
                  else
                    PVF[D][h] = c--;
                }
            }

          m = PHF[D][h];
          PHF[D][h] = e;
          e = m;
          k = h;
        }

    else //  mode == GREEDIEST

      while (e != 3)
        { h = k+e;
          if (e > 1)
            h -= 3;
          else if (e == 0)
            D -= 1;
          else
            D -= 2;

          m = PHF[D][h];
          PHF[D][h] = e;
          e = m;
          k = h;
        }

    k = D = 0;
    e = PHF[D][k];
    while (e != 3)
      { h = k-e;
        c = PVF[D][k];
        if (e > 1)
          h += 3;
        else if (e == 0)
          D += 1;
        else
          D += 2;
#ifdef DEBUG_SCRIPT
        if (h > k)
          printf("     D %d(%d)\n",(c-k)-(ap-1),c+bp);
        else if (h < k)
          printf("     I %d(%d)\n",c+(bp-1),(c+k)-ap);
        else
          printf("     %d S %d\n",(c+k)-(ap+1),c+(bp-1));
#endif
        if (h > k)
          *wave->Stop++ = bp+c;
        else if (h < k)
          *wave->Stop++ = ap-(c+k);
        k = h;
        e = PHF[D][h];
      }
  }

  return (D + abs(del));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
movq -0x28(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x40(%rbp)
movl -0xc(%rbp), %eax
subl -0x1c(%rbp), %eax
movl %eax, -0x48(%rbp)
cmpl $0x0, -0x48(%rbp)
jl 0x16eba
movl $0x0, -0x6c(%rbp)
movl -0x48(%rbp), %eax
movl %eax, -0x70(%rbp)
jmp 0x16ec7
movl -0x48(%rbp), %eax
movl %eax, -0x6c(%rbp)
movl $0x0, -0x70(%rbp)
xorl %eax, %eax
subl 0x10(%rbp), %eax
movl %eax, -0x74(%rbp)
movl 0x10(%rbp), %eax
movl %eax, -0x78(%rbp)
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x28(%rbp), %rcx
cmpq 0x18(%rcx), %rax
jne 0x16f87
movq -0x18(%rbp), %rax
cmpq -0x8(%rbp), %rax
jne 0x16f21
movq 0x140fc(%rip), %rax     # 0x2aff8
movq (%rax), %rdi
leaq 0x1464a(%rip), %rax     # 0x2b550
movq (%rax), %rdx
leaq 0xf7df(%rip), %rsi      # 0x266ef
movb $0x0, %al
callq 0x2190
movl $0x1, %edi
callq 0x2290
movq -0x18(%rbp), %rax
cmpq -0x8(%rbp), %rax
jae 0x16f57
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
subq %rcx, %rax
addq $0x1, %rax
movslq -0x74(%rbp), %rcx
cmpq %rcx, %rax
jle 0x16f55
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
subq %rcx, %rax
addq $0x1, %rax
movl %eax, -0x74(%rbp)
jmp 0x16f83
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
subq %rcx, %rax
subq $0x1, %rax
movslq -0x78(%rbp), %rcx
cmpq %rcx, %rax
jge 0x16f81
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
subq %rcx, %rax
subq $0x1, %rax
movl %eax, -0x78(%rbp)
jmp 0x16f83
jmp 0x16f85
jmp 0x16f87
movq -0x38(%rbp), %rax
movq -0x10(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x38(%rbp), %rax
movq -0x8(%rax), %rax
movq %rax, -0x50(%rbp)
movl -0x6c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %eax
movl -0x70(%rbp), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
jg 0x16fde
movq -0x50(%rbp), %rax
movslq -0x44(%rbp), %rcx
movl $0xfffffffe, (%rax,%rcx,4) # imm = 0xFFFFFFFE
movq -0x58(%rbp), %rax
movslq -0x44(%rbp), %rcx
movl $0xfffffffe, (%rax,%rcx,4) # imm = 0xFFFFFFFE
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x16fa8
movq -0x50(%rbp), %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movl -0x6c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x6c(%rbp)
movl -0x70(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x70(%rbp)
movl $0x0, -0x44(%rbp)
movb $0x1, %al
testb $0x1, %al
jne 0x1700c
jmp 0x176c0
movl -0x44(%rbp), %eax
cmpl 0x10(%rbp), %eax
jle 0x17047
movq 0x13fdd(%rip), %rax     # 0x2aff8
movq (%rax), %rdi
leaq 0x1452b(%rip), %rax     # 0x2b550
movq (%rax), %rdx
movq 0x141f1(%rip), %rcx     # 0x2b220
leaq 0xf610(%rip), %rsi      # 0x26646
movb $0x0, %al
callq 0x2190
movl $0x1, %edi
callq 0x2290
movq -0x58(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x38(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x50(%rbp)
movq -0x40(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x68(%rbp)
movl -0x44(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x170a6
movl -0x6c(%rbp), %eax
cmpl -0x74(%rbp), %eax
jle 0x17093
movl -0x6c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x6c(%rbp)
movl -0x70(%rbp), %eax
cmpl -0x78(%rbp), %eax
jge 0x170a4
movl -0x70(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0x170a6
movq -0x50(%rbp), %rax
movl -0x6c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl $0xfffffffe, (%rax,%rcx,4) # imm = 0xFFFFFFFE
movq -0x50(%rbp), %rax
movl -0x70(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movl $0xfffffffe, (%rax,%rcx,4) # imm = 0xFFFFFFFE
movl $0xfffffffe, -0x84(%rbp) # imm = 0xFFFFFFFE
movq -0x8(%rbp), %rax
movslq -0x70(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x98(%rbp)
movl -0xc(%rbp), %eax
subl -0x70(%rbp), %eax
movl %eax, -0x80(%rbp)
movl -0x70(%rbp), %eax
movl %eax, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
cmpl -0x48(%rbp), %eax
jle 0x172de
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x90(%rbp)
movq -0x60(%rbp), %rax
movl -0x7c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x88(%rbp)
movq -0x58(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl (%rax,%rcx,4), %eax
addl $0x1, %eax
movl %eax, -0x8c(%rbp)
movl -0x8c(%rbp), %eax
cmpl -0x88(%rbp), %eax
jge 0x17194
movl -0x90(%rbp), %eax
cmpl -0x88(%rbp), %eax
jge 0x17177
movq -0x68(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl $0xffffffff, (%rax,%rcx,4) # imm = 0xFFFFFFFF
movl -0x88(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x17192
movq -0x68(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl $0x4, (%rax,%rcx,4)
movl -0x90(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x171dc
movl -0x90(%rbp), %eax
cmpl -0x8c(%rbp), %eax
jge 0x171bf
movq -0x68(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movl -0x8c(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x171da
movq -0x68(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl $0x4, (%rax,%rcx,4)
movl -0x90(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x171dc
movl -0x1c(%rbp), %eax
cmpl -0x80(%rbp), %eax
jge 0x17244
jmp 0x171e6
movl -0x84(%rbp), %ecx
xorl %eax, %eax
cmpl -0x1c(%rbp), %ecx
movb %al, -0xc9(%rbp)
jge 0x17225
movq -0x18(%rbp), %rax
movslq -0x84(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movq -0x98(%rbp), %rcx
movslq -0x84(%rbp), %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
sete %al
movb %al, -0xc9(%rbp)
movb -0xc9(%rbp), %al
testb $0x1, %al
jne 0x17231
jmp 0x17242
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x171e6
jmp 0x172a4
jmp 0x17246
movl -0x84(%rbp), %ecx
xorl %eax, %eax
cmpl -0x80(%rbp), %ecx
movb %al, -0xca(%rbp)
jge 0x17285
movq -0x18(%rbp), %rax
movslq -0x84(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movq -0x98(%rbp), %rcx
movslq -0x84(%rbp), %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
sete %al
movb %al, -0xca(%rbp)
movb -0xca(%rbp), %al
testb $0x1, %al
jne 0x17291
jmp 0x172a2
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x17246
jmp 0x172a4
movl -0x84(%rbp), %edx
movq -0x50(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x98(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x98(%rbp)
movl -0x80(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x80(%rbp)
movl -0x7c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x7c(%rbp)
jmp 0x170f9
movl $0xfffffffe, -0x84(%rbp) # imm = 0xFFFFFFFE
movq -0x8(%rbp), %rax
movslq -0x6c(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x98(%rbp)
movl -0xc(%rbp), %eax
subl -0x6c(%rbp), %eax
movl %eax, -0x80(%rbp)
movl -0x6c(%rbp), %eax
movl %eax, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
cmpl -0x48(%rbp), %eax
jge 0x174ee
movq -0x60(%rbp), %rax
movl -0x7c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
addl $0x1, %eax
movl %eax, -0x90(%rbp)
movl -0x84(%rbp), %eax
movl %eax, -0x88(%rbp)
movq -0x58(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl (%rax,%rcx,4), %eax
addl $0x1, %eax
movl %eax, -0x8c(%rbp)
movl -0x8c(%rbp), %eax
cmpl -0x88(%rbp), %eax
jge 0x173a4
movl -0x90(%rbp), %eax
cmpl -0x88(%rbp), %eax
jge 0x17387
movq -0x68(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl $0x2, (%rax,%rcx,4)
movl -0x88(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x173a2
movq -0x68(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl $0x1, (%rax,%rcx,4)
movl -0x90(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x173ec
movl -0x90(%rbp), %eax
cmpl -0x8c(%rbp), %eax
jge 0x173cf
movq -0x68(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movl -0x8c(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x173ea
movq -0x68(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl $0x1, (%rax,%rcx,4)
movl -0x90(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x173ec
movl -0x1c(%rbp), %eax
cmpl -0x80(%rbp), %eax
jge 0x17454
jmp 0x173f6
movl -0x84(%rbp), %ecx
xorl %eax, %eax
cmpl -0x1c(%rbp), %ecx
movb %al, -0xcb(%rbp)
jge 0x17435
movq -0x18(%rbp), %rax
movslq -0x84(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movq -0x98(%rbp), %rcx
movslq -0x84(%rbp), %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
sete %al
movb %al, -0xcb(%rbp)
movb -0xcb(%rbp), %al
testb $0x1, %al
jne 0x17441
jmp 0x17452
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x173f6
jmp 0x174b4
jmp 0x17456
movl -0x84(%rbp), %ecx
xorl %eax, %eax
cmpl -0x80(%rbp), %ecx
movb %al, -0xcc(%rbp)
jge 0x17495
movq -0x18(%rbp), %rax
movslq -0x84(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movq -0x98(%rbp), %rcx
movslq -0x84(%rbp), %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
sete %al
movb %al, -0xcc(%rbp)
movb -0xcc(%rbp), %al
testb $0x1, %al
jne 0x174a1
jmp 0x174b2
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x17456
jmp 0x174b4
movl -0x84(%rbp), %edx
movq -0x50(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x98(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x98(%rbp)
movl -0x80(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x80(%rbp)
movl -0x7c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7c(%rbp)
jmp 0x17309
movq -0x50(%rbp), %rax
movl -0x48(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
addl $0x1, %eax
movl %eax, -0x90(%rbp)
movl -0x84(%rbp), %eax
movl %eax, -0x88(%rbp)
movq -0x58(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl (%rax,%rcx,4), %eax
addl $0x1, %eax
movl %eax, -0x8c(%rbp)
movl -0x8c(%rbp), %eax
cmpl -0x88(%rbp), %eax
jge 0x1757d
movl -0x90(%rbp), %eax
cmpl -0x88(%rbp), %eax
jge 0x17560
movq -0x68(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl $0x2, (%rax,%rcx,4)
movl -0x88(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x1757b
movq -0x68(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl $0x4, (%rax,%rcx,4)
movl -0x90(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x175c5
movl -0x90(%rbp), %eax
cmpl -0x8c(%rbp), %eax
jge 0x175a8
movq -0x68(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movl -0x8c(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x175c3
movq -0x68(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl $0x4, (%rax,%rcx,4)
movl -0x90(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x175c5
movl -0x1c(%rbp), %eax
cmpl -0x80(%rbp), %eax
jge 0x1762d
jmp 0x175cf
movl -0x84(%rbp), %ecx
xorl %eax, %eax
cmpl -0x1c(%rbp), %ecx
movb %al, -0xcd(%rbp)
jge 0x1760e
movq -0x18(%rbp), %rax
movslq -0x84(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movq -0x98(%rbp), %rcx
movslq -0x84(%rbp), %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
sete %al
movb %al, -0xcd(%rbp)
movb -0xcd(%rbp), %al
testb $0x1, %al
jne 0x1761a
jmp 0x1762b
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x175cf
jmp 0x1768d
jmp 0x1762f
movl -0x84(%rbp), %ecx
xorl %eax, %eax
cmpl -0x80(%rbp), %ecx
movb %al, -0xce(%rbp)
jge 0x1766e
movq -0x18(%rbp), %rax
movslq -0x84(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movq -0x98(%rbp), %rcx
movslq -0x84(%rbp), %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
sete %al
movb %al, -0xce(%rbp)
movb -0xce(%rbp), %al
testb $0x1, %al
jne 0x1767a
jmp 0x1768b
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x1762f
jmp 0x1768d
movl -0x84(%rbp), %edx
movq -0x50(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x50(%rbp), %rax
movslq -0x48(%rbp), %rcx
movl (%rax,%rcx,4), %eax
cmpl -0x1c(%rbp), %eax
jl 0x176b0
jmp 0x176c0
jmp 0x176b2
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x17001
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x8(%rbp), %rcx
subq %rcx, %rax
subq $0x1, %rax
movl %eax, -0xb0(%rbp)
movq -0x18(%rbp), %rax
movq -0x28(%rbp), %rcx
movq 0x18(%rcx), %rcx
subq %rcx, %rax
addq $0x1, %rax
movl %eax, -0xb4(%rbp)
movq -0x40(%rbp), %rax
movq (%rax), %rax
movl $0x3, (%rax)
movl -0x1c(%rbp), %eax
movl %eax, -0xac(%rbp)
movl -0x48(%rbp), %eax
movl %eax, -0x9c(%rbp)
movq -0x40(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x9c(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xa8(%rbp)
movq -0x40(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x9c(%rbp), %rcx
movl $0x3, (%rax,%rcx,4)
cmpl $0x1, -0x2c(%rbp)
jne 0x17a9c
jmp 0x17753
cmpl $0x3, -0xa8(%rbp)
je 0x17a97
movl -0x9c(%rbp), %eax
addl -0xa8(%rbp), %eax
movl %eax, -0xa0(%rbp)
cmpl $0x1, -0xa8(%rbp)
jle 0x1778c
movl -0xa0(%rbp), %eax
subl $0x3, %eax
movl %eax, -0xa0(%rbp)
jmp 0x177ab
cmpl $0x0, -0xa8(%rbp)
jne 0x177a0
movl -0x44(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x177a9
movl -0x44(%rbp), %eax
subl $0x2, %eax
movl %eax, -0x44(%rbp)
jmp 0x177ab
movl -0xa0(%rbp), %eax
cmpl -0x9c(%rbp), %eax
jge 0x17a42
movq -0x8(%rbp), %rax
movslq -0x9c(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0xc0(%rbp)
cmpl $0x0, -0x9c(%rbp)
jge 0x177eb
xorl %eax, %eax
subl -0x9c(%rbp), %eax
movl %eax, -0xa4(%rbp)
jmp 0x177f5
movl $0x0, -0xa4(%rbp)
movq -0x38(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0xa0(%rbp), %rcx
movl (%rax,%rcx,4), %eax
cmpl -0xac(%rbp), %eax
jg 0x17832
movq -0x38(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0xa0(%rbp), %rcx
movl (%rax,%rcx,4), %eax
subl $0x1, %eax
movl %eax, -0xac(%rbp)
jmp 0x17834
movl -0xac(%rbp), %ecx
xorl %eax, %eax
cmpl -0xa4(%rbp), %ecx
movb %al, -0xcf(%rbp)
jl 0x17876
movq -0xc0(%rbp), %rax
movslq -0xac(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movq -0x18(%rbp), %rcx
movslq -0xac(%rbp), %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
sete %al
movb %al, -0xcf(%rbp)
movb -0xcf(%rbp), %al
testb $0x1, %al
jne 0x17882
jmp 0x17893
movl -0xac(%rbp), %eax
subl $0x1, %eax
movl %eax, -0xac(%rbp)
jmp 0x17834
cmpl $-0x1, -0xa8(%rbp)
jne 0x17956
movl -0xac(%rbp), %eax
movq -0x38(%rbp), %rcx
movl -0x44(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movq (%rcx,%rdx,8), %rcx
movl -0x9c(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
cmpl (%rcx,%rdx,4), %eax
jg 0x178ec
movl $0x4, -0xa8(%rbp)
movl -0x9c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xa0(%rbp)
movl -0x44(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x44(%rbp)
jmp 0x17951
movl -0xac(%rbp), %eax
movq -0x38(%rbp), %rcx
movl -0x44(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x9c(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jne 0x17930
movl $0x0, -0xa8(%rbp)
movl -0x9c(%rbp), %eax
movl %eax, -0xa0(%rbp)
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x1794f
movl -0xac(%rbp), %edx
addl $0x1, %edx
movq -0x38(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0xa0(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x17951
jmp 0x17a40
movl -0x9c(%rbp), %eax
cmpl -0x48(%rbp), %eax
jne 0x1796c
movl -0x44(%rbp), %eax
movl %eax, -0xa4(%rbp)
jmp 0x17978
movl -0x44(%rbp), %eax
subl $0x2, %eax
movl %eax, -0xa4(%rbp)
movl -0xac(%rbp), %eax
movq -0x38(%rbp), %rcx
movslq -0xa4(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movl -0x9c(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
cmpl (%rcx,%rdx,4), %eax
jg 0x179d9
movl -0x9c(%rbp), %eax
cmpl -0x48(%rbp), %eax
jne 0x179b5
movl $0x4, -0xa8(%rbp)
jmp 0x179bf
movl $0x1, -0xa8(%rbp)
movl -0x9c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xa0(%rbp)
movl -0xa4(%rbp), %eax
movl %eax, -0x44(%rbp)
jmp 0x17a3e
movl -0xac(%rbp), %eax
movq -0x38(%rbp), %rcx
movl -0x44(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x9c(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jne 0x17a1d
movl $0x0, -0xa8(%rbp)
movl -0x9c(%rbp), %eax
movl %eax, -0xa0(%rbp)
movl -0x44(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x17a3c
movl -0xac(%rbp), %edx
addl $0x1, %edx
movq -0x38(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0xa0(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x17a3e
jmp 0x17a40
jmp 0x17a42
movq -0x40(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0xa0(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xa4(%rbp)
movl -0xa8(%rbp), %edx
movq -0x40(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0xa0(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0xa4(%rbp), %eax
movl %eax, -0xa8(%rbp)
movl -0xa0(%rbp), %eax
movl %eax, -0x9c(%rbp)
jmp 0x17753
jmp 0x17eb1
cmpl $-0x1, -0x2c(%rbp)
jne 0x17dfe
jmp 0x17aa8
cmpl $0x3, -0xa8(%rbp)
je 0x17df9
movl -0x9c(%rbp), %eax
addl -0xa8(%rbp), %eax
movl %eax, -0xa0(%rbp)
cmpl $0x1, -0xa8(%rbp)
jle 0x17ae1
movl -0xa0(%rbp), %eax
subl $0x3, %eax
movl %eax, -0xa0(%rbp)
jmp 0x17b00
cmpl $0x0, -0xa8(%rbp)
jne 0x17af5
movl -0x44(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x17afe
movl -0x44(%rbp), %eax
subl $0x2, %eax
movl %eax, -0x44(%rbp)
jmp 0x17b00
movl -0xa0(%rbp), %eax
cmpl -0x9c(%rbp), %eax
jle 0x17da4
movq -0x8(%rbp), %rax
movslq -0x9c(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0xc8(%rbp)
cmpl $0x0, -0x9c(%rbp)
jge 0x17b40
xorl %eax, %eax
subl -0x9c(%rbp), %eax
movl %eax, -0xa4(%rbp)
jmp 0x17b4a
movl $0x0, -0xa4(%rbp)
movq -0x38(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0xa0(%rbp), %rcx
movl (%rax,%rcx,4), %eax
cmpl -0xac(%rbp), %eax
jge 0x17b84
movq -0x38(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0xa0(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xac(%rbp)
jmp 0x17b86
movl -0xac(%rbp), %ecx
xorl %eax, %eax
cmpl -0xa4(%rbp), %ecx
movb %al, -0xd0(%rbp)
jl 0x17bc8
movq -0xc8(%rbp), %rax
movslq -0xac(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movq -0x18(%rbp), %rcx
movslq -0xac(%rbp), %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
sete %al
movb %al, -0xd0(%rbp)
movb -0xd0(%rbp), %al
testb $0x1, %al
jne 0x17bd4
jmp 0x17be5
movl -0xac(%rbp), %eax
subl $0x1, %eax
movl %eax, -0xac(%rbp)
jmp 0x17b86
cmpl $0x1, -0xa8(%rbp)
jne 0x17cb0
movl -0xac(%rbp), %eax
movq -0x38(%rbp), %rcx
movl -0x44(%rbp), %edx
addl $0x2, %edx
movslq %edx, %rdx
movq (%rcx,%rdx,8), %rcx
movl -0x9c(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0x17c3e
movl $0x2, -0xa8(%rbp)
movl -0x9c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0xa0(%rbp)
movl -0x44(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x44(%rbp)
jmp 0x17cab
movl -0xac(%rbp), %eax
movq -0x38(%rbp), %rcx
movl -0x44(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x9c(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jne 0x17c82
movl $0x0, -0xa8(%rbp)
movl -0x9c(%rbp), %eax
movl %eax, -0xa0(%rbp)
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x17ca9
movl -0xac(%rbp), %edx
movl %edx, %eax
addl $-0x1, %eax
movl %eax, -0xac(%rbp)
movq -0x38(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0xa0(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x17cab
jmp 0x17da2
movl -0x9c(%rbp), %eax
cmpl -0x48(%rbp), %eax
jne 0x17cc6
movl -0x44(%rbp), %eax
movl %eax, -0xa4(%rbp)
jmp 0x17cd2
movl -0x44(%rbp), %eax
subl $0x2, %eax
movl %eax, -0xa4(%rbp)
movl -0xac(%rbp), %eax
movq -0x38(%rbp), %rcx
movslq -0xa4(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movl -0x9c(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0x17d33
movl -0x9c(%rbp), %eax
cmpl -0x48(%rbp), %eax
jne 0x17d0f
movl $0x2, -0xa8(%rbp)
jmp 0x17d19
movl $0xffffffff, -0xa8(%rbp) # imm = 0xFFFFFFFF
movl -0x9c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0xa0(%rbp)
movl -0xa4(%rbp), %eax
movl %eax, -0x44(%rbp)
jmp 0x17da0
movl -0xac(%rbp), %eax
movq -0x38(%rbp), %rcx
movl -0x44(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x9c(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jne 0x17d77
movl $0x0, -0xa8(%rbp)
movl -0x9c(%rbp), %eax
movl %eax, -0xa0(%rbp)
movl -0x44(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x17d9e
movl -0xac(%rbp), %edx
movl %edx, %eax
addl $-0x1, %eax
movl %eax, -0xac(%rbp)
movq -0x38(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0xa0(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x17da0
jmp 0x17da2
jmp 0x17da4
movq -0x40(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0xa0(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xa4(%rbp)
movl -0xa8(%rbp), %edx
movq -0x40(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0xa0(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0xa4(%rbp), %eax
movl %eax, -0xa8(%rbp)
movl -0xa0(%rbp), %eax
movl %eax, -0x9c(%rbp)
jmp 0x17aa8
jmp 0x17eaf
jmp 0x17e00
cmpl $0x3, -0xa8(%rbp)
je 0x17ead
movl -0x9c(%rbp), %eax
addl -0xa8(%rbp), %eax
movl %eax, -0xa0(%rbp)
cmpl $0x1, -0xa8(%rbp)
jle 0x17e39
movl -0xa0(%rbp), %eax
subl $0x3, %eax
movl %eax, -0xa0(%rbp)
jmp 0x17e58
cmpl $0x0, -0xa8(%rbp)
jne 0x17e4d
movl -0x44(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x17e56
movl -0x44(%rbp), %eax
subl $0x2, %eax
movl %eax, -0x44(%rbp)
jmp 0x17e58
movq -0x40(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0xa0(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xa4(%rbp)
movl -0xa8(%rbp), %edx
movq -0x40(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0xa0(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0xa4(%rbp), %eax
movl %eax, -0xa8(%rbp)
movl -0xa0(%rbp), %eax
movl %eax, -0x9c(%rbp)
jmp 0x17e00
jmp 0x17eaf
jmp 0x17eb1
movl $0x0, -0x44(%rbp)
movl $0x0, -0x9c(%rbp)
movq -0x40(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x9c(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xa8(%rbp)
cmpl $0x3, -0xa8(%rbp)
je 0x17fe5
movl -0x9c(%rbp), %eax
subl -0xa8(%rbp), %eax
movl %eax, -0xa0(%rbp)
movq -0x38(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x9c(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xac(%rbp)
cmpl $0x1, -0xa8(%rbp)
jle 0x17f33
movl -0xa0(%rbp), %eax
addl $0x3, %eax
movl %eax, -0xa0(%rbp)
jmp 0x17f52
cmpl $0x0, -0xa8(%rbp)
jne 0x17f47
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x17f50
movl -0x44(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x44(%rbp)
jmp 0x17f52
movl -0xa0(%rbp), %eax
cmpl -0x9c(%rbp), %eax
jle 0x17f81
movl -0xb4(%rbp), %ecx
addl -0xac(%rbp), %ecx
movq -0x28(%rbp), %rdx
movq (%rdx), %rax
movq %rax, %rsi
addq $0x4, %rsi
movq %rsi, (%rdx)
movl %ecx, (%rax)
jmp 0x17fb8
movl -0xa0(%rbp), %eax
cmpl -0x9c(%rbp), %eax
jge 0x17fb6
movl -0xb0(%rbp), %ecx
movl -0xac(%rbp), %eax
addl -0x9c(%rbp), %eax
subl %eax, %ecx
movq -0x28(%rbp), %rdx
movq (%rdx), %rax
movq %rax, %rsi
addq $0x4, %rsi
movq %rsi, (%rdx)
movl %ecx, (%rax)
jmp 0x17fb8
movl -0xa0(%rbp), %eax
movl %eax, -0x9c(%rbp)
movq -0x40(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0xa0(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xa8(%rbp)
jmp 0x17ede
movl -0x44(%rbp), %eax
movl -0x48(%rbp), %ecx
movl %ecx, %edx
negl %edx
cmovnsl %edx, %ecx
addl %ecx, %eax
addq $0xd0, %rsp
popq %rbp
retq
nopl (%rax)