// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl %ecx, %r14d
movl 0xc0(%rsp), %r11d
movq 0x20(%r8), %r13
xorl %ebx, %ebx
movl %esi, 0x44(%rsp)
movl %esi, %r12d
subl %ecx, %r12d
movl $0x0, %r10d
cmovnsl %r12d, %r10d
movq 0x28(%r8), %rax
movq %rax, 0x20(%rsp)
cmovsl %r12d, %ebx
movl %r11d, %eax
negl %eax
movl %eax, 0x14(%rsp)
movq 0x10(%r8), %rcx
movq %r8, 0x78(%rsp)
movq 0x18(%r8), %rsi
movq %rcx, 0x60(%rsp)
cmpq %rsi, %rcx
movq %rdi, 0x28(%rsp)
movq %rsi, 0x70(%rsp)
movl %r9d, 0x68(%rsp)
je 0x103fb
movl %r11d, %eax
movq %rax, 0x48(%rsp)
jmp 0x10438
movq %rdx, %rax
subq %rdi, %rax
je 0x10c35
jae 0x10423
movslq 0x14(%rsp), %rcx
movl %r11d, %esi
movq %rsi, 0x48(%rsp)
cmpq %rcx, %rax
jl 0x10438
incl %eax
movl %eax, 0x14(%rsp)
jmp 0x103f1
notq %rdi
addq %rdx, %rdi
movslq %r11d, %rax
cmpq %rax, %rdi
cmovgel %r11d, %edi
movq %rdi, 0x48(%rsp)
movq -0x10(%r13), %rax
movq -0x8(%r13), %r9
leal -0x1(%rbx), %ecx
movslq %ecx, %rsi
leaq (%r9,%rsi,4), %rcx
movq %rax, 0x38(%rsp)
leaq (%rax,%rsi,4), %rsi
movl %r10d, %ebp
movl %r10d, %edi
subl %ebx, %edi
addl $0x3, %edi
xorl %r8d, %r8d
movl $0xfffffffe, %r10d      # imm = 0xFFFFFFFE
movl %r10d, (%rcx,%r8,4)
movl %r10d, (%rsi,%r8,4)
incq %r8
cmpl %r8d, %edi
jne 0x10467
movl $0xffffffff, (%r9)      # imm = 0xFFFFFFFF
testl %r11d, %r11d
js 0x10771
movl %ebp, %esi
decl %esi
incl %ebx
movslq %r12d, %rdi
movslq %r14d, %r8
incl %r11d
movq %r11, 0x80(%rsp)
xorl %ebp, %ebp
movl %r12d, 0x4(%rsp)
movq %r13, 0x18(%rsp)
movq %r9, 0x8(%rsp)
testb $0x1, %bpl
jne 0x104cb
xorl %ecx, %ecx
cmpl 0x14(%rsp), %ebx
setg %cl
subl %ecx, %ebx
xorl %ecx, %ecx
cmpl 0x48(%rsp), %esi
setl %cl
addl %ecx, %esi
movq (%r13,%rbp,8), %r9
movq 0x20(%rsp), %rcx
movq %rbp, 0x30(%rsp)
movq (%rcx,%rbp,8), %rax
movq %rax, 0x58(%rsp)
movq %rbx, 0x50(%rsp)
movslq %ebx, %r11
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
movl %eax, -0x4(%r9,%r11,4)
movl %esi, 0x6c(%rsp)
movslq %esi, %rcx
movl %eax, 0x4(%r9,%rcx,4)
cmpl %r12d, %ecx
jle 0x105e3
movl 0x44(%rsp), %esi
subl %ecx, %esi
movq 0x28(%rsp), %r10
leaq (%r10,%rcx), %rbx
movslq %esi, %r12
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
movq %r9, %rax
movq %rdi, %r9
movq %r14, %rdi
leal 0x1(%rbp), %esi
movq 0x38(%rsp), %r10
movl -0x4(%r10,%rcx,4), %r13d
movq 0x8(%rsp), %r10
movl (%r10,%rcx,4), %r10d
leal 0x1(%r10), %r14d
cmpl %r13d, %r14d
jge 0x10561
xorl %r10d, %r10d
cmpl %r13d, %esi
setge %r10b
leal -0x1(%r10,%r10,4), %r15d
cmovgl %esi, %r13d
movl %r13d, %ebp
jmp 0x10575
xorl %r15d, %r15d
cmpl %r10d, %ebp
setge %r15b
cmovll %r14d, %esi
shll $0x2, %r15d
movl %esi, %ebp
movq %rdi, %r14
movq 0x58(%rsp), %rsi
movl %r15d, (%rsi,%rcx,4)
cmpq %r8, %r12
movq %r9, %rdi
jle 0x105ab
cmpl %r14d, %ebp
movq %rax, %r9
jge 0x105cd
movslq %ebp, %rbp
movb (%rdx,%rbp), %sil
cmpb (%rbx,%rbp), %sil
jne 0x105cd
incq %rbp
cmpq %rbp, %r8
jne 0x10594
movl %r14d, %ebp
jmp 0x105cd
movslq %ebp, %rsi
cmpq %rsi, %r12
movq %rax, %r9
jle 0x105cd
movb (%rdx,%rsi), %r10b
cmpb (%rbx,%rsi), %r10b
jne 0x105cb
incq %rsi
cmpq %r12, %rsi
jl 0x105b6
movq %r12, %rsi
movl %esi, %ebp
movl %ebp, (%r9,%rcx,4)
decq %rcx
decq %rbx
incq %r12
cmpq %rdi, %rcx
jg 0x10521
movq 0x28(%rsp), %rcx
leaq (%rcx,%r11), %r12
movl 0x44(%rsp), %ecx
movl %ecx, %ebx
subl %r11d, %ebx
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
cmpl 0x4(%rsp), %r11d
jge 0x106ae
movslq %ebx, %rbx
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
movq 0x38(%rsp), %rax
movl 0x4(%rax,%r11,4), %r13d
leal 0x1(%r13), %ebp
movq 0x8(%rsp), %rax
movl (%rax,%r11,4), %r10d
leal 0x1(%r10), %r15d
xorl %esi, %esi
cmpl %ecx, %r15d
jge 0x1063c
cmpl %ecx, %ebp
setl %sil
cmovgl %ebp, %ecx
incl %esi
jmp 0x1064a
cmpl %r10d, %r13d
setge %sil
cmovgel %ebp, %r15d
movl %r15d, %ecx
movq 0x58(%rsp), %rax
movl %esi, (%rax,%r11,4)
cmpq %r8, %rbx
jle 0x10677
cmpl %r14d, %ecx
jge 0x10695
movslq %ecx, %rcx
movb (%rdx,%rcx), %sil
cmpb (%r12,%rcx), %sil
jne 0x10695
incq %rcx
cmpq %rcx, %r8
jne 0x10660
movl %r14d, %ecx
jmp 0x10695
movslq %ecx, %rsi
cmpq %rsi, %rbx
jle 0x10695
movb (%rdx,%rsi), %cl
cmpb (%r12,%rsi), %cl
jne 0x10693
incq %rsi
cmpq %rbx, %rsi
jl 0x1067f
movq %rbx, %rsi
movl %esi, %ecx
movl %ecx, (%r9,%r11,4)
incq %r11
incq %r12
decq %rbx
cmpq %rdi, %r11
jl 0x1060d
movslq %r11d, %r11
movl 0x4(%r9,%rdi,4), %r15d
leal 0x1(%r15), %eax
movq 0x8(%rsp), %rsi
movl (%rsi,%r11,4), %r10d
leal 0x1(%r10), %ebp
cmpl %ecx, %ebp
jge 0x106d9
xorl %esi, %esi
cmpl %ecx, %eax
setge %sil
leal 0x2(%rsi,%rsi), %esi
cmovgl %eax, %ecx
jmp 0x106ea
xorl %esi, %esi
cmpl %r10d, %r15d
setge %sil
cmovll %ebp, %eax
shll $0x2, %esi
movl %eax, %ecx
movq 0x18(%rsp), %r13
movq 0x30(%rsp), %rbp
movq 0x58(%rsp), %rax
movl %esi, (%rax,%r11,4)
cmpl %r14d, %ebx
movl 0x6c(%rsp), %esi
jle 0x10729
cmpl %r14d, %ecx
movq 0x50(%rsp), %rbx
jge 0x10747
movslq %ecx, %rcx
movb (%rdx,%rcx), %al
cmpb (%r12,%rcx), %al
jne 0x10747
incq %rcx
cmpl %ecx, %r14d
jne 0x10713
movl %r14d, %ecx
jmp 0x10747
cmpl %ebx, %ecx
jge 0x10742
movslq %ecx, %rcx
movb (%rdx,%rcx), %al
cmpb (%r12,%rcx), %al
jne 0x10742
incq %rcx
cmpl %ecx, %ebx
jne 0x10730
movl %ebx, %ecx
movq 0x50(%rsp), %rbx
movl %ecx, (%r9,%r11,4)
cmpl %r14d, (%r9,%rdi,4)
movl 0x4(%rsp), %r12d
jge 0x10776
incq %rbp
movq 0x8(%rsp), %rax
movq %rax, 0x38(%rsp)
cmpq 0x80(%rsp), %rbp
jne 0x104aa
callq 0x138e
movq 0x20(%rsp), %rax
movq (%rax), %rcx
movl $0x3, %eax
movl %eax, (%rcx)
movq 0x58(%rsp), %rsi
movl (%rsi,%rdi,4), %r8d
movl %eax, (%rsi,%rdi,4)
movl 0x68(%rsp), %eax
cmpl $0x1, %eax
movq %rcx, 0x38(%rsp)
je 0x1097a
cmpl $-0x1, %eax
jne 0x10b35
cmpl $0x3, %r8d
je 0x10b78
movl %r12d, %ecx
leal (%r8,%rcx), %eax
cmpl $0x2, %r8d
jl 0x107c8
addl $-0x3, %eax
jmp 0x107d4
testl %r8d, %r8d
je 0x107d2
addl $-0x2, %ebp
jmp 0x107d4
decl %ebp
cmpl %ecx, %eax
jle 0x1084c
movslq %ecx, %rdi
movl %ecx, %r9d
negl %r9d
movl %ecx, %ebx
sarl $0x1f, %ebx
andl %r9d, %ebx
movq %rbp, %r11
movslq %ebp, %r9
movq (%r13,%r9,8), %rsi
movslq %eax, %r10
movq %rsi, 0x8(%rsp)
movl (%rsi,%r10,4), %ebp
cmpl %r14d, %ebp
cmovll %ebp, %r14d
cmpl %ebx, %r14d
jl 0x1085f
testl %ecx, %ecx
movl $0x0, %r15d
cmovgl %ecx, %r15d
movq %r14, %rsi
movq 0x28(%rsp), %r14
addq %rdi, %r14
movl %ecx, %ebp
notl %ebp
addl %r15d, %ebp
movl %esi, %r15d
movb (%r14,%r15), %r12b
cmpb (%rdx,%r15), %r12b
jne 0x10857
leal -0x1(%rsi), %r15d
cmpl %ebx, %esi
movl %r15d, %esi
jg 0x1082a
movl %ebp, %r14d
movl 0x4(%rsp), %r12d
jmp 0x1085f
movslq %ebp, %r9
movslq %eax, %rdi
jmp 0x10955
movl 0x4(%rsp), %r12d
movq %rsi, %r14
movq %r14, %rsi
cmpl $0x1, %r8d
movq %r11, %rbp
jne 0x1089e
movslq %ebp, %rbx
movq 0x18(%rsp), %r13
movq 0x10(%r13,%rbx,8), %r8
movslq %ecx, %r14
cmpl -0x4(%r8,%r14,4), %esi
jge 0x108ea
addl $0x2, %ebp
addq $0x2, %rbx
decl %ecx
decq %r14
movl $0x2, %r8d
movq %r14, %rdi
movq %rbx, %r9
movl %ecx, %eax
jmp 0x108e5
leal -0x2(%rbp), %ebx
cmpl %r12d, %ecx
cmovel %ebp, %ebx
movslq %ebx, %r14
movq %rbp, %r11
movl %r12d, %ebp
movq 0x18(%rsp), %r13
movq (%r13,%r14,8), %r12
movslq %ecx, %r15
cmpl -0x4(%r12,%r15,4), %esi
jge 0x10907
leal -0x1(%rcx), %eax
decq %r15
xorl %edi, %edi
cmpl %ebp, %ecx
sete %dil
leal -0x1(%rdi,%rdi,2), %r8d
movq %r15, %rdi
movq %r14, %r9
movl %ebx, %ecx
movl %ebp, %r12d
movq %rcx, %rbp
movq %rsi, %r14
jmp 0x10955
movq 0x8(%r13,%rbx,8), %r8
cmpl (%r8,%rdi,4), %esi
movq %rsi, %r14
jne 0x1092a
incl %ebp
incq %rbx
xorl %r8d, %r8d
movq %rbx, %r9
movl %ecx, %eax
jmp 0x10955
movslq %r11d, %rbx
movq -0x8(%r13,%rbx,8), %r14
cmpl (%r14,%rdi,4), %esi
movq %rsi, %r14
movq %r11, %rbp
jne 0x10941
decl %ebp
decq %rbx
xorl %r8d, %r8d
movq %rbx, %r9
movl %ecx, %eax
jmp 0x10950
movq 0x8(%rsp), %rcx
movl %r14d, (%rcx,%r10,4)
decl %r14d
movl $0x1, %r8d
movq %r10, %rdi
jmp 0x10955
movq 0x8(%rsp), %rcx
movl %r14d, (%rcx,%r10,4)
decl %r14d
movq %r10, %rdi
movl 0x4(%rsp), %r12d
movq 0x20(%rsp), %rcx
movq (%rcx,%r9,8), %rcx
movl (%rcx,%rdi,4), %r9d
movl %r8d, (%rcx,%rdi,4)
movl %r9d, %r8d
movl %eax, %ecx
cmpl $0x3, %r9d
jne 0x107b9
jmp 0x10b78
cmpl $0x3, %r8d
je 0x10b78
movl %r12d, %ecx
leal (%r8,%rcx), %eax
cmpl $0x2, %r8d
jl 0x10996
addl $-0x3, %eax
jmp 0x109a2
testl %r8d, %r8d
je 0x109a0
addl $-0x2, %ebp
jmp 0x109a2
decl %ebp
cmpl %ecx, %eax
jge 0x109de
movslq %ecx, %rdi
movl %ecx, %r9d
negl %r9d
movl %ecx, %ebx
sarl $0x1f, %ebx
andl %r9d, %ebx
movslq %ebp, %r9
movq (%r13,%r9,8), %r11
movslq %eax, %r10
movl (%r11,%r10,4), %r15d
movq %r14, %rsi
leal -0x1(%r15), %r14d
cmpl %esi, %r15d
cmovgl %esi, %r14d
cmpl %ebx, %r14d
jge 0x109e9
movl %r14d, %esi
jmp 0x10a33
movslq %ebp, %r9
movslq %eax, %rdi
jmp 0x10b13
movq %rbp, 0x30(%rsp)
testl %ecx, %ecx
movl $0x0, %ebp
cmovgl %ecx, %ebp
movq 0x28(%rsp), %r15
addq %rdi, %r15
movl %ecx, %esi
notl %esi
addl %ebp, %esi
movl %r14d, %r12d
movb (%r15,%r12), %bpl
cmpb (%rdx,%r12), %bpl
jne 0x10a21
leal -0x1(%r14), %ebp
cmpl %ebx, %r14d
movl %ebp, %r14d
jg 0x10a06
jmp 0x10a24
movl %r14d, %esi
movl 0x4(%rsp), %r12d
movq 0x18(%rsp), %r13
movq 0x30(%rsp), %rbp
cmpl $-0x1, %r8d
je 0x10a7c
movq %r11, 0x8(%rsp)
leal -0x2(%rbp), %ebx
cmpl %r12d, %ecx
cmovel %ebp, %ebx
movslq %ebx, %r14
movl %r12d, %r11d
movq (%r13,%r14,8), %r12
movslq %ecx, %r15
cmpl 0x4(%r12,%r15,4), %esi
jle 0x10aab
movslq %ebp, %rbx
movq -0x8(%r13,%rbx,8), %r14
cmpl (%r14,%rdi,4), %esi
movq %rsi, %r14
jne 0x10aeb
decl %ebp
decq %rbx
xorl %r8d, %r8d
movq %rbx, %r9
movl %ecx, %eax
jmp 0x10afb
movslq %ebp, %rbx
movq 0x10(%r13,%rbx,8), %r8
movslq %ecx, %r14
cmpl 0x4(%r8,%r14,4), %esi
jle 0x10acc
movq 0x8(%r13,%rbx,8), %r8
cmpl (%r8,%rdi,4), %esi
movq %rsi, %r14
jne 0x10b02
incl %ebp
incq %rbx
xorl %r8d, %r8d
movq %rbx, %r9
movl %ecx, %eax
jmp 0x10b13
leal 0x1(%rcx), %eax
incq %r15
xorl %edi, %edi
cmpl %r11d, %ecx
sete %dil
leal 0x1(%rdi,%rdi,2), %r8d
movq %r15, %rdi
movq %r14, %r9
movl %ebx, %ebp
movl %r11d, %r12d
jmp 0x10ae6
addl $0x2, %ebp
addq $0x2, %rbx
incl %ecx
incq %r14
movl $0x4, %r8d
movq %r14, %rdi
movq %rbx, %r9
movl %ecx, %eax
movq %rsi, %r14
jmp 0x10b13
leal 0x1(%r14), %ecx
movq 0x8(%rsp), %rsi
movl %ecx, (%rsi,%r10,4)
movq %r10, %rdi
movl 0x4(%rsp), %r12d
jmp 0x10b13
leal 0x1(%r14), %ecx
movl %ecx, (%r11,%r10,4)
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
movq %r10, %rdi
movq 0x20(%rsp), %rcx
movq (%rcx,%r9,8), %rcx
movl (%rcx,%rdi,4), %r9d
movl %r8d, (%rcx,%rdi,4)
movl %r9d, %r8d
movl %eax, %ecx
cmpl $0x3, %r9d
jne 0x10987
jmp 0x10b78
cmpl $0x3, %r8d
je 0x10b78
movl %r12d, %eax
addl %r8d, %eax
cmpl $0x2, %r8d
jl 0x10b4c
addl $-0x3, %eax
jmp 0x10b58
testl %r8d, %r8d
je 0x10b56
addl $-0x2, %ebp
jmp 0x10b58
decl %ebp
movslq %ebp, %rcx
movq 0x20(%rsp), %rdi
movq (%rdi,%rcx,8), %rcx
movslq %eax, %rdi
movl (%rcx,%rdi,4), %r9d
movl %r8d, (%rcx,%rdi,4)
movl %r9d, %r8d
cmpl $0x3, %r9d
jne 0x10b3e
movq 0x38(%rsp), %rax
movl (%rax), %r8d
xorl %ecx, %ecx
cmpl $0x3, %r8d
je 0x10c18
movq 0x28(%rsp), %rcx
notl %ecx
subl 0x70(%rsp), %edx
movq 0x60(%rsp), %rax
addl %ecx, %eax
movq %rax, 0x60(%rsp)
incl %edx
xorl %edi, %edi
xorl %esi, %esi
movl %esi, %eax
movq 0x78(%rsp), %r9
subl %r8d, %eax
cmpl $0x2, %r8d
jl 0x10bc0
addl $0x3, %eax
movl %edi, %ecx
jmp 0x10bcd
testl %r8d, %r8d
je 0x10bca
leal 0x2(%rdi), %ecx
jmp 0x10bcd
leal 0x1(%rdi), %ecx
movslq %edi, %rdi
movq (%r13,%rdi,8), %rdi
movslq %esi, %r8
movl (%rdi,%r8,4), %edi
cmpl %esi, %eax
jle 0x10be4
addl %edx, %edi
jmp 0x10bef
jge 0x10bfb
addl %edi, %esi
movq 0x60(%rsp), %rdi
subl %esi, %edi
movq (%r9), %rsi
leaq 0x4(%rsi), %r8
movq %r8, (%r9)
movl %edi, (%rsi)
movslq %ecx, %rsi
movq 0x20(%rsp), %rdi
movq (%rdi,%rsi,8), %rsi
movslq %eax, %rdi
movl (%rsi,%rdi,4), %r8d
movl %ecx, %edi
movl %eax, %esi
cmpl $0x3, %r8d
jne 0x10bb0
movl %r12d, %eax
negl %eax
cmovsl %r12d, %eax
addl %ecx, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x13c0