// File: /workspace/github_c_makefile_star2_O0/thegenemyers[P]DASCRUBBER/align.c
// Function: middle_np
static int middle_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%*s BASE %ld,%ld: %d vs %d\n",depth,"",A-wave->Aabs,B-wave->Babs,M,N);
    printf("%*s A = ",depth,"");
    for (D = 0; D < M; D++)
      printf("%c",ToA[(int) A[D]]);
    printf("\n");
    printf("%*s B = ",depth,"");
    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;

        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   d, f;

    d = D + abs(del);
    c = N;
    k = del;

    if (mode == UPPERMOST)

      for (f = d/2; d > f; d--)
        { e = PHF[D][k];
          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;
                }
            }

          k = h;
        }

    else if (mode == LOWERMOST)

      for (f = d/2; d > f; d--)
        { e = PHF[D][k];
          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--;
                }
            }

          k = h;
        }

    else //  mode == GREEDIEST

      for (f = d/2; d > f; d--)
        { e = PHF[D][k];
          h = k+e;
          if (e > 1)
            h -= 3;
          else if (e == 0)
            D -= 1;
          else
            D -= 2;
          k = h;
        }

    wave->midb = (B-wave->Babs) + PVF[D][k];
    wave->mida = (A-wave->Aabs) + k + PVF[D][k];
  }

  return (0);
}

// 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 0x1888a
movl $0x0, -0x6c(%rbp)
movl -0x48(%rbp), %eax
movl %eax, -0x70(%rbp)
jmp 0x18897
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 0x18957
movq -0x18(%rbp), %rax
cmpq -0x8(%rbp), %rax
jne 0x188f1
movq 0x1272c(%rip), %rax     # 0x2aff8
movq (%rax), %rdi
leaq 0x12c7a(%rip), %rax     # 0x2b550
movq (%rax), %rdx
leaq 0xde0f(%rip), %rsi      # 0x266ef
movb $0x0, %al
callq 0x2190
movl $0x1, %edi
callq 0x2290
movq -0x18(%rbp), %rax
cmpq -0x8(%rbp), %rax
jae 0x18927
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
subq %rcx, %rax
addq $0x1, %rax
movslq -0x74(%rbp), %rcx
cmpq %rcx, %rax
jle 0x18925
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
subq %rcx, %rax
addq $0x1, %rax
movl %eax, -0x74(%rbp)
jmp 0x18953
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
subq %rcx, %rax
subq $0x1, %rax
movslq -0x78(%rbp), %rcx
cmpq %rcx, %rax
jge 0x18951
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
subq %rcx, %rax
subq $0x1, %rax
movl %eax, -0x78(%rbp)
jmp 0x18953
jmp 0x18955
jmp 0x18957
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 0x189ae
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 0x18978
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 0x189dc
jmp 0x19090
movl -0x44(%rbp), %eax
cmpl 0x10(%rbp), %eax
jle 0x18a17
movq 0x1260d(%rip), %rax     # 0x2aff8
movq (%rax), %rdi
leaq 0x12b5b(%rip), %rax     # 0x2b550
movq (%rax), %rdx
movq 0x12821(%rip), %rcx     # 0x2b220
leaq 0xdc40(%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 0x18a76
movl -0x6c(%rbp), %eax
cmpl -0x74(%rbp), %eax
jle 0x18a63
movl -0x6c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x6c(%rbp)
movl -0x70(%rbp), %eax
cmpl -0x78(%rbp), %eax
jge 0x18a74
movl -0x70(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0x18a76
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 0x18cae
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 0x18b64
movl -0x90(%rbp), %eax
cmpl -0x88(%rbp), %eax
jge 0x18b47
movq -0x68(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl $0xffffffff, (%rax,%rcx,4) # imm = 0xFFFFFFFF
movl -0x88(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x18b62
movq -0x68(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl $0x4, (%rax,%rcx,4)
movl -0x90(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x18bac
movl -0x90(%rbp), %eax
cmpl -0x8c(%rbp), %eax
jge 0x18b8f
movq -0x68(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movl -0x8c(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x18baa
movq -0x68(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl $0x4, (%rax,%rcx,4)
movl -0x90(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x18bac
movl -0x1c(%rbp), %eax
cmpl -0x80(%rbp), %eax
jge 0x18c14
jmp 0x18bb6
movl -0x84(%rbp), %ecx
xorl %eax, %eax
cmpl -0x1c(%rbp), %ecx
movb %al, -0xc9(%rbp)
jge 0x18bf5
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 0x18c01
jmp 0x18c12
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x18bb6
jmp 0x18c74
jmp 0x18c16
movl -0x84(%rbp), %ecx
xorl %eax, %eax
cmpl -0x80(%rbp), %ecx
movb %al, -0xca(%rbp)
jge 0x18c55
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 0x18c61
jmp 0x18c72
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x18c16
jmp 0x18c74
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 0x18ac9
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 0x18ebe
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 0x18d74
movl -0x90(%rbp), %eax
cmpl -0x88(%rbp), %eax
jge 0x18d57
movq -0x68(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl $0x2, (%rax,%rcx,4)
movl -0x88(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x18d72
movq -0x68(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl $0x1, (%rax,%rcx,4)
movl -0x90(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x18dbc
movl -0x90(%rbp), %eax
cmpl -0x8c(%rbp), %eax
jge 0x18d9f
movq -0x68(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movl -0x8c(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x18dba
movq -0x68(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl $0x1, (%rax,%rcx,4)
movl -0x90(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x18dbc
movl -0x1c(%rbp), %eax
cmpl -0x80(%rbp), %eax
jge 0x18e24
jmp 0x18dc6
movl -0x84(%rbp), %ecx
xorl %eax, %eax
cmpl -0x1c(%rbp), %ecx
movb %al, -0xcb(%rbp)
jge 0x18e05
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 0x18e11
jmp 0x18e22
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x18dc6
jmp 0x18e84
jmp 0x18e26
movl -0x84(%rbp), %ecx
xorl %eax, %eax
cmpl -0x80(%rbp), %ecx
movb %al, -0xcc(%rbp)
jge 0x18e65
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 0x18e71
jmp 0x18e82
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x18e26
jmp 0x18e84
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 0x18cd9
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 0x18f4d
movl -0x90(%rbp), %eax
cmpl -0x88(%rbp), %eax
jge 0x18f30
movq -0x68(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl $0x2, (%rax,%rcx,4)
movl -0x88(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x18f4b
movq -0x68(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl $0x4, (%rax,%rcx,4)
movl -0x90(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x18f95
movl -0x90(%rbp), %eax
cmpl -0x8c(%rbp), %eax
jge 0x18f78
movq -0x68(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movl -0x8c(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x18f93
movq -0x68(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movl $0x4, (%rax,%rcx,4)
movl -0x90(%rbp), %eax
movl %eax, -0x84(%rbp)
jmp 0x18f95
movl -0x1c(%rbp), %eax
cmpl -0x80(%rbp), %eax
jge 0x18ffd
jmp 0x18f9f
movl -0x84(%rbp), %ecx
xorl %eax, %eax
cmpl -0x1c(%rbp), %ecx
movb %al, -0xcd(%rbp)
jge 0x18fde
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 0x18fea
jmp 0x18ffb
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x18f9f
jmp 0x1905d
jmp 0x18fff
movl -0x84(%rbp), %ecx
xorl %eax, %eax
cmpl -0x80(%rbp), %ecx
movb %al, -0xce(%rbp)
jge 0x1903e
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 0x1904a
jmp 0x1905b
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x18fff
jmp 0x1905d
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 0x19080
jmp 0x19090
jmp 0x19082
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x189d1
movl -0x44(%rbp), %eax
movl -0x48(%rbp), %ecx
movl %ecx, %edx
negl %edx
cmovnsl %edx, %ecx
addl %ecx, %eax
movl %eax, -0xb0(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0xac(%rbp)
movl -0x48(%rbp), %eax
movl %eax, -0x9c(%rbp)
cmpl $0x1, -0x2c(%rbp)
jne 0x1940a
movl -0xb0(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, -0xb4(%rbp)
movl -0xb0(%rbp), %eax
cmpl -0xb4(%rbp), %eax
jle 0x19405
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)
movl -0x9c(%rbp), %eax
addl -0xa8(%rbp), %eax
movl %eax, -0xa0(%rbp)
cmpl $0x1, -0xa8(%rbp)
jle 0x1912f
movl -0xa0(%rbp), %eax
subl $0x3, %eax
movl %eax, -0xa0(%rbp)
jmp 0x1914e
cmpl $0x0, -0xa8(%rbp)
jne 0x19143
movl -0x44(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x1914c
movl -0x44(%rbp), %eax
subl $0x2, %eax
movl %eax, -0x44(%rbp)
jmp 0x1914e
movl -0xa0(%rbp), %eax
cmpl -0x9c(%rbp), %eax
jge 0x193e5
movq -0x8(%rbp), %rax
movslq -0x9c(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0xc0(%rbp)
cmpl $0x0, -0x9c(%rbp)
jge 0x1918e
xorl %eax, %eax
subl -0x9c(%rbp), %eax
movl %eax, -0xa4(%rbp)
jmp 0x19198
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 0x191d5
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 0x191d7
movl -0xac(%rbp), %ecx
xorl %eax, %eax
cmpl -0xa4(%rbp), %ecx
movb %al, -0xcf(%rbp)
jl 0x19219
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 0x19225
jmp 0x19236
movl -0xac(%rbp), %eax
subl $0x1, %eax
movl %eax, -0xac(%rbp)
jmp 0x191d7
cmpl $-0x1, -0xa8(%rbp)
jne 0x192f9
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 0x1928f
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 0x192f4
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 0x192d3
movl $0x0, -0xa8(%rbp)
movl -0x9c(%rbp), %eax
movl %eax, -0xa0(%rbp)
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x192f2
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 0x192f4
jmp 0x193e3
movl -0x9c(%rbp), %eax
cmpl -0x48(%rbp), %eax
jne 0x1930f
movl -0x44(%rbp), %eax
movl %eax, -0xa4(%rbp)
jmp 0x1931b
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 0x1937c
movl -0x9c(%rbp), %eax
cmpl -0x48(%rbp), %eax
jne 0x19358
movl $0x4, -0xa8(%rbp)
jmp 0x19362
movl $0x1, -0xa8(%rbp)
movl -0x9c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xa0(%rbp)
movl -0xa4(%rbp), %eax
movl %eax, -0x44(%rbp)
jmp 0x193e1
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 0x193c0
movl $0x0, -0xa8(%rbp)
movl -0x9c(%rbp), %eax
movl %eax, -0xa0(%rbp)
movl -0x44(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x193df
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 0x193e1
jmp 0x193e3
jmp 0x193e5
movl -0xa0(%rbp), %eax
movl %eax, -0x9c(%rbp)
movl -0xb0(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0xb0(%rbp)
jmp 0x190d5
jmp 0x1981b
cmpl $-0x1, -0x2c(%rbp)
jne 0x1976a
movl -0xb0(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, -0xb4(%rbp)
movl -0xb0(%rbp), %eax
cmpl -0xb4(%rbp), %eax
jle 0x19765
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)
movl -0x9c(%rbp), %eax
addl -0xa8(%rbp), %eax
movl %eax, -0xa0(%rbp)
cmpl $0x1, -0xa8(%rbp)
jle 0x19482
movl -0xa0(%rbp), %eax
subl $0x3, %eax
movl %eax, -0xa0(%rbp)
jmp 0x194a1
cmpl $0x0, -0xa8(%rbp)
jne 0x19496
movl -0x44(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x1949f
movl -0x44(%rbp), %eax
subl $0x2, %eax
movl %eax, -0x44(%rbp)
jmp 0x194a1
movl -0xa0(%rbp), %eax
cmpl -0x9c(%rbp), %eax
jle 0x19745
movq -0x8(%rbp), %rax
movslq -0x9c(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0xc8(%rbp)
cmpl $0x0, -0x9c(%rbp)
jge 0x194e1
xorl %eax, %eax
subl -0x9c(%rbp), %eax
movl %eax, -0xa4(%rbp)
jmp 0x194eb
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 0x19525
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 0x19527
movl -0xac(%rbp), %ecx
xorl %eax, %eax
cmpl -0xa4(%rbp), %ecx
movb %al, -0xd0(%rbp)
jl 0x19569
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 0x19575
jmp 0x19586
movl -0xac(%rbp), %eax
subl $0x1, %eax
movl %eax, -0xac(%rbp)
jmp 0x19527
cmpl $0x1, -0xa8(%rbp)
jne 0x19651
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 0x195df
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 0x1964c
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 0x19623
movl $0x0, -0xa8(%rbp)
movl -0x9c(%rbp), %eax
movl %eax, -0xa0(%rbp)
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x1964a
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 0x1964c
jmp 0x19743
movl -0x9c(%rbp), %eax
cmpl -0x48(%rbp), %eax
jne 0x19667
movl -0x44(%rbp), %eax
movl %eax, -0xa4(%rbp)
jmp 0x19673
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 0x196d4
movl -0x9c(%rbp), %eax
cmpl -0x48(%rbp), %eax
jne 0x196b0
movl $0x2, -0xa8(%rbp)
jmp 0x196ba
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 0x19741
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 0x19718
movl $0x0, -0xa8(%rbp)
movl -0x9c(%rbp), %eax
movl %eax, -0xa0(%rbp)
movl -0x44(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x1973f
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 0x19741
jmp 0x19743
jmp 0x19745
movl -0xa0(%rbp), %eax
movl %eax, -0x9c(%rbp)
movl -0xb0(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0xb0(%rbp)
jmp 0x19428
jmp 0x19819
movl -0xb0(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, -0xb4(%rbp)
movl -0xb0(%rbp), %eax
cmpl -0xb4(%rbp), %eax
jle 0x19817
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)
movl -0x9c(%rbp), %eax
addl -0xa8(%rbp), %eax
movl %eax, -0xa0(%rbp)
cmpl $0x1, -0xa8(%rbp)
jle 0x197d8
movl -0xa0(%rbp), %eax
subl $0x3, %eax
movl %eax, -0xa0(%rbp)
jmp 0x197f7
cmpl $0x0, -0xa8(%rbp)
jne 0x197ec
movl -0x44(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x197f5
movl -0x44(%rbp), %eax
subl $0x2, %eax
movl %eax, -0x44(%rbp)
jmp 0x197f7
movl -0xa0(%rbp), %eax
movl %eax, -0x9c(%rbp)
movl -0xb0(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0xb0(%rbp)
jmp 0x1977e
jmp 0x19819
jmp 0x1981b
movq -0x18(%rbp), %rax
movq -0x28(%rbp), %rcx
movq 0x18(%rcx), %rcx
subq %rcx, %rax
movq -0x38(%rbp), %rcx
movslq -0x44(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x9c(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
addq %rcx, %rax
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x34(%rax)
movq -0x8(%rbp), %rax
movq -0x28(%rbp), %rcx
movq 0x10(%rcx), %rcx
subq %rcx, %rax
movslq -0x9c(%rbp), %rcx
addq %rcx, %rax
movq -0x38(%rbp), %rcx
movslq -0x44(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x9c(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
addq %rcx, %rax
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x30(%rax)
xorl %eax, %eax
addq $0xd0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)