// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/match/xdrop.c
// Function: gt_evalxdroparbitscoresextend
void gt_evalxdroparbitscoresextend(bool forward,
                                   GtXdropbest *xdropbest,
                                   GtXdropresources *res,
                                   const GtSeqabstract *useq,
                                   const GtSeqabstract *vseq,
                                   GtXdropscore xdropbelowscore)
{
  const GtWord ulen = (GtWord) gt_seqabstract_length(useq),
               vlen = (GtWord) gt_seqabstract_length(vseq),
               end_k =
                 (GtWord) ulen - vlen, /* diagonal of endpoint (ulen, vlen) */
               integermax = (GtWord) GT_MAX(ulen, vlen),
               integermin = -integermax,
               dback = GT_XDROP_SETDBACK(xdropbelowscore);
  GtWord idx,
         lbound,    /* diagonal lower bound */
         ubound,    /* diagonal upper bound */
         currd = 0, /* distance */
         k;         /* lbound - 1 <= k <= ubound + 1*/
  /*The following function calculates the maximal allowed number of
    generations with all front values equal minus infinity.*/
  const int allowedMININFINITYINTgenerations = GT_MAX(
                                               GT_MAX(res->arbitdistances.mis,
                                                      res->arbitdistances.ins),
                                                   res->arbitdistances.del) - 1;
  int currentMININFINITYINTgeneration = 0;
  GtXdropfrontvalue tmpfront;
  GtXdropscore bigt_tmp;        /* best score T' seen already */
  bool alwaysMININFINITYINT = true;

  gt_assert(ulen != 0 && vlen != 0);
  res->big_t.nextfreeGtXdropscore = 0;
  res->fronts.nextfreeGtXdropfrontvalue = 0;
  /* phase 0 */
  idx =  (GtWord) gt_seqabstract_lcp(forward, useq, vseq,0,0);
  /* alignment already finished */
  if (idx >= ulen || idx >= vlen) {
    lbound =  1L;
    ubound = -1L;
  }
  else {
    lbound = 0;
    ubound = 0;
  }
  tmpfront.row = (GtWord) idx;
  tmpfront.direction = (GtUchar) 0;   /* no predecessor */
  gt_xdrop_frontvalue_set(res,0,0,tmpfront);
  xdropbest->score = bigt_tmp = GT_XDROP_EVAL(idx + idx, 0);
  gt_assert(idx >= 0);
  xdropbest->ivalue = xdropbest->jvalue = (GtUword) idx;
  xdropbest->best_d = currd;
  xdropbest->best_k = 0;
  GT_STOREINARRAY (&res->big_t, GtXdropscore, 10, bigt_tmp);

  /* phase d > 0 */
  while (lbound <= ubound) {
    currd++;
    /* calculate fronts */
    for (k = lbound - 1; k <= ubound + 1; k++) {
      GtWord i = integermin, row;
      /* case 1 : DELETION-EDGE  */
      if (lbound < k &&
          currd - res->arbitdistances.del >= 0 &&
          -(currd - res->arbitdistances.del) <= k - 1 &&
          k - 1 <= currd - res->arbitdistances.del) {
        i = gt_xdrop_frontvalue_get(res, currd - res->arbitdistances.del, k-1)
            + 1;
        tmpfront.direction = GT_XDROP_DELETIONBIT;
      }
      /* case 2: REPLACEMENT-EDGE */
      if (lbound <= k &&
          k <= ubound &&
          currd - res->arbitdistances.mis >= 0 &&
          -(currd - res->arbitdistances.mis) <= k &&
          k <= currd - res->arbitdistances.mis) {
        row = gt_xdrop_frontvalue_get(res, currd - res->arbitdistances.mis, k)
              + 1;
        /* test, if case 1 has happened. */
        if (!(tmpfront.direction & GT_XDROP_DELETIONBIT) || row > i) {
          i = row;
          tmpfront.direction = GT_XDROP_REPLACEMENTBIT;
        }
      }
      /* case 3: INSERTION-EDGE */
      if (k < ubound &&
          currd - res->arbitdistances.ins >= 0 &&
          -(currd - res->arbitdistances.ins) <= k + 1 &&
           k + 1 <= currd - res->arbitdistances.ins) {
        row =
          gt_xdrop_frontvalue_get(res, currd - res->arbitdistances.ins, k+1);
        if (!(tmpfront.direction & (GT_XDROP_DELETIONBIT |
                                    GT_XDROP_REPLACEMENTBIT)) || row > i) {
          i = row;
          tmpfront.direction = GT_XDROP_INSERTIONBIT;
        }
      }
      /* if i = GT_MINUSINFINITYINY or GT_MINUSINFINITYINY + 1 */
      if (i < 0) {
        if (tmpfront.direction == (GtUchar) 0)
          alwaysMININFINITYINT = false;

        tmpfront.row = integermin;
      }
      else {
        GtWord j = i - k;
        const GtWord previousd = currd - dback;

        /* alignment score smaller than T - X */
        if (previousd > 0 &&
            res->big_t.spaceGtXdropscore != NULL &&
            GT_XDROP_EVAL (i + j, currd) <
            res->big_t.spaceGtXdropscore[previousd] - xdropbelowscore) {
          tmpfront.row = integermin;
        }
        else {
          if (k <= -currd || k >= currd ||
              (gt_xdrop_frontvalue_get(res, currd-1, k) < i &&
               i <= GT_MIN(ulen, vlen + k))) {
            if (ulen > i && vlen > j) {
              GtUword lcp;
              gt_assert(forward || (ulen - 1 >= (GtWord) i &&
                                    vlen - 1 >= (GtWord) j));
              lcp = gt_seqabstract_lcp(forward, useq, vseq,i,j);
              i += lcp;
              j += lcp;
            }
            alwaysMININFINITYINT = false;
            tmpfront.row = i;
            if (GT_XDROP_EVAL(i + j, currd) > bigt_tmp) {
              xdropbest->score = bigt_tmp = GT_XDROP_EVAL(i + j, currd);
              gt_assert(i >= 0 && j >= 0);
              xdropbest->ivalue = (GtUword) i;
              xdropbest->jvalue = (GtUword) j;
              xdropbest->best_d = currd;
              xdropbest->best_k = k;
            }
          }
          else {
            alwaysMININFINITYINT = false;
            tmpfront.row = gt_xdrop_frontvalue_get(res,currd-1,k);
          }
        }
      }
      gt_xdrop_frontvalue_set(res, currd, k, tmpfront);
    }
    /* if all front values are integermin, alignment prematurely finished if
       allowedMININFINITYINTgenerations exceeded (full front has already ended
       at currd - currentMININFINITYINTgeneration). */
    if (alwaysMININFINITYINT) {
      currentMININFINITYINTgeneration++;
      if (currentMININFINITYINTgeneration > allowedMININFINITYINTgenerations)
        break;

    }
    else {
      currentMININFINITYINTgeneration = 0;
      alwaysMININFINITYINT = true;
    }
    GT_STOREINARRAY (&res->big_t, GtXdropscore, 10, bigt_tmp);
    /* fill out of bounds values of integermin
       needed for gt_showfrontvalues function */
    for (k = -currd; k < lbound - 1; k++) {
      tmpfront.row = integermin;
      gt_xdrop_frontvalue_set(res,currd,k,tmpfront);
    }
    for (k = ubound + 2; k <= currd; k++) {
      tmpfront.row = integermin;
      gt_xdrop_frontvalue_set(res,currd,k,tmpfront);
    }
    /* alignment finished */
    if (-currd <= end_k && end_k <= currd &&
        gt_xdrop_frontvalue_get(res,currd,end_k) == ulen)
      break;

    /* pruning lower bound
       lbound may decrease by one or increase/stays the same
       l <- min{k:R(d,k) > -inf} */
    for (k = lbound - 1; k <= ubound + 1; k++) {
      if (gt_xdrop_frontvalue_get(res,currd,k) > integermin) {
        lbound = k;
        break;
      }
    }
    /* pruning upper bound
       ubound may increase by one or decrease/stays the same
       u <- max{k:R(d,k) > -inf} */
    for (k = ubound + 1; k >= lbound - 1; k--) {
      if (gt_xdrop_frontvalue_get(res,currd,k) > integermin) {
        ubound = k;
        break;
      }
    }
    /* handling boundaries lower bound */
    for (k = 0; k >= lbound; k--) {
      if (gt_xdrop_frontvalue_get(res,currd,k) == vlen + k) {
        lbound = k;
        break;
      }
    }
    /* handling boundaries upper bound */
    for (k = 0; k <= ubound; k++) {
      if (gt_xdrop_frontvalue_get(res,currd,k) == ulen) {
        ubound = k;
        break;
      }
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %r9, %r14
movq %r8, %r15
movq %rdx, %r12
movq %rsi, 0xa0(%rsp)
movl %edi, %ebx
movq %rcx, 0xb0(%rsp)
movq %rcx, %rdi
callq 0x1ec2a0
movq %rax, %r13
movq %r15, 0xb8(%rsp)
movq %r15, %rdi
callq 0x1ec2a0
movq %rax, %rbp
movq %r13, %rax
subq %rbp, %rax
movq %rax, 0x88(%rsp)
movq %rbp, %rax
cmovgq %r13, %rax
movq %rax, 0x8(%rsp)
movq (%r12), %rax
movl (%rax), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
movslq %ecx, %rax
movq %r14, 0xf0(%rsp)
addq %r14, %rax
movslq 0x14(%r12), %rcx
cqto
idivq %rcx
movq %rax, 0xe0(%rsp)
movl 0x8(%r12), %eax
movl 0xc(%r12), %ecx
cmpl %ecx, %eax
cmovgl %eax, %ecx
movq %r12, 0xa8(%rsp)
movl 0x10(%r12), %eax
cmpl %eax, %ecx
cmovlel %eax, %ecx
movl %ecx, 0x24(%rsp)
testq %r13, %r13
je 0x20d7ac
testq %rbp, %rbp
je 0x20d7ac
xorl %r15d, %r15d
movq 0xa8(%rsp), %r12
movq %r15, 0x40(%r12)
movq %r15, 0x28(%r12)
movzbl %bl, %edi
movl %edi, 0x74(%rsp)
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x1ec2c6
movq %rax, %rbx
cmpq %r13, %rax
movq %rbp, %rax
setge %bpl
movq %rax, 0x50(%rsp)
cmpq %rax, %rbx
setge %r14b
cmpq %r15, 0x20(%r12)
jne 0x20d011
movq $0x20, 0x20(%r12)
movq 0x18(%r12), %rdi
leaq 0x1b9422(%rip), %rdx    # 0x3c641f
movl $0x200, %esi            # imm = 0x200
movl $0xda, %ecx
callq 0x1094e6
movq %rax, 0x18(%r12)
movq 0x18(%r12), %rax
movq %rbx, (%rax)
movb $0x0, 0x8(%rax)
movq $0x1, 0x28(%r12)
movq (%r12), %rax
movslq (%rax), %rcx
imulq %rbx, %rcx
addq %rcx, %rcx
sarq %rcx
movq 0xa0(%rsp), %rax
movq %rcx, 0x28(%rsp)
movq %rcx, 0x10(%rax)
testq %rbx, %rbx
js 0x20d7b1
movq %rbx, 0x8(%rax)
movq %rbx, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rax)
movq 0x38(%r12), %rax
cmpq %rax, 0x40(%r12)
movq %r12, %r11
jb 0x20d09d
leaq 0xa(%rax), %rcx
movq %rcx, 0x38(%r11)
movq 0x30(%r11), %rdi
leaq 0x50(,%rax,8), %rsi
leaq 0x1b9396(%rip), %rdx    # 0x3c641f
movl $0x114, %ecx            # imm = 0x114
movq %r11, %rbx
callq 0x1094e6
movq %rbx, %r11
movq %rax, 0x30(%rbx)
movq 0x30(%r11), %rax
testq %rax, %rax
movq 0x8(%rsp), %r12
je 0x20d7b6
orb %r14b, %bpl
movzbl %bpl, %edi
movq %rdi, %r8
negq %r8
movq 0x40(%r11), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x40(%r11)
movq 0x28(%rsp), %rdx
movq %rdx, (%rax,%rcx,8)
cmpq %r8, %rdi
jg 0x20d790
negq %r12
decl 0x24(%rsp)
movb $0x1, %al
movl %eax, 0x4(%rsp)
movl $0x2, %eax
movq %rax, 0x38(%rsp)
movl $0x1, %eax
movq %rax, 0x30(%rsp)
movq $-0x10, 0xc8(%rsp)
movl $0x40, %eax
movq %rax, 0x90(%rsp)
movl $0x10, %eax
movq %rax, 0x80(%rsp)
movl $0x30, %eax
movq %rax, 0x78(%rsp)
movl $0x20, %eax
movq %rax, 0x48(%rsp)
movl $0x20, %r9d
xorl %r10d, %r10d
xorl %ebx, %ebx
movl $0x0, 0x14(%rsp)
movq %r13, 0x58(%rsp)
movq %r12, 0x8(%rsp)
movq %r9, 0xe8(%rsp)
movq %r10, %rcx
incq %r10
leaq -0x1(%rdi), %r12
leaq 0x1(%r8), %rax
movq %rcx, %rdx
notq %rdx
movq %rdx, 0x40(%rsp)
movq %rax, 0x98(%rsp)
cmpq %rax, %r12
movq %rdi, 0x60(%rsp)
movq %r8, 0x68(%rsp)
movq %r10, 0x18(%rsp)
movq %r12, 0xc0(%rsp)
movq %rcx, 0xd0(%rsp)
jg 0x20d4fb
subq 0xe0(%rsp), %rcx
movq %rcx, 0xd8(%rsp)
leaq -0x2(%rdi), %r15
movl $0x1, %r13d
subq %rdi, %r13
movq %rdi, %rbp
shlq $0x4, %rbp
movq %r15, %rax
incq %r15
cmpq %r15, %rdi
jge 0x20d227
movslq 0x10(%r11), %rcx
movq %r10, %rdx
subq %rcx, %rdx
movl %ebx, %r9d
js 0x20d231
movq %rdx, %rsi
negq %rsi
cmpq %rsi, %r15
setle %sil
cmpq %rdx, %rax
setg %dl
orb %sil, %dl
movq 0x8(%rsp), %r14
jne 0x20d236
movq 0x38(%rsp), %rdx
subq %rcx, %rdx
movq 0x30(%rsp), %rsi
subq %rcx, %rsi
imulq %rdx, %rsi
shlq $0x4, %rsi
addq 0x18(%r11), %rsi
movq -0x20(%rbp,%rsi), %r14
incq %r14
movb $0x2, %r9b
jmp 0x20d236
movq 0x8(%rsp), %r14
movl %ebx, %r9d
jmp 0x20d236
movq 0x8(%rsp), %r14
cmpq %r15, %rdi
jg 0x20d2a1
cmpq %r8, %r15
jg 0x20d2a1
movslq 0x8(%r11), %rcx
movq %r10, %rdx
subq %rcx, %rdx
cmpq %rdx, %r15
jg 0x20d2a1
testq %rdx, %rdx
js 0x20d2a1
negq %rdx
cmpq %rdx, %r15
jl 0x20d2a1
movq 0x38(%rsp), %rdx
subq %rcx, %rdx
movq 0x30(%rsp), %rsi
subq %rcx, %rsi
imulq %rdx, %rsi
shlq $0x4, %rsi
addq 0x18(%r11), %rsi
movq -0x10(%rbp,%rsi), %rcx
movzbl %r9b, %edx
shrb %r9b
cmpq %r14, %rcx
setl %sil
testb %sil, %r9b
movl $0x1, %esi
cmovel %esi, %edx
leaq 0x1(%rcx), %rcx
cmoveq %rcx, %r14
movl %edx, %r9d
cmpq %r8, %r15
jge 0x20d311
movslq 0xc(%r11), %rcx
movq %r10, %rdx
subq %rcx, %rdx
js 0x20d311
movq %rdx, %rsi
negq %rsi
leaq 0x2(%rax), %rdi
cmpq %rsi, %rdi
setl %sil
cmpq %rdx, %r15
setge %dl
orb %sil, %dl
jne 0x20d311
movq 0x38(%rsp), %rdx
subq %rcx, %rdx
movq 0x30(%rsp), %rsi
subq %rcx, %rsi
imulq %rdx, %rsi
shlq $0x4, %rsi
addq 0x18(%r11), %rsi
movq (%rbp,%rsi), %rcx
testb $0x3, %r9b
sete %dl
cmpq %r14, %rcx
setg %sil
orb %dl, %sil
movzbl %r9b, %r9d
movl $0x4, %edx
cmovnel %edx, %r9d
cmovneq %rcx, %r14
testq %r14, %r14
js 0x20d3f4
cmpq $0x0, 0xd8(%rsp)
jle 0x20d378
movq 0x30(%r11), %rcx
testq %rcx, %rcx
je 0x20d378
leaq (,%r14,2), %rdx
addq %r13, %rdx
movq (%r11), %rsi
movslq (%rsi), %rsi
imulq %rdx, %rsi
movq %rsi, %rdx
shrq $0x3f, %rdx
addq %rsi, %rdx
sarq %rdx
movslq 0x14(%r11), %rsi
imulq %r10, %rsi
subq %rsi, %rdx
movq 0xd8(%rsp), %rsi
movq (%rcx,%rsi,8), %rcx
subq 0xf0(%rsp), %rcx
cmpq %rcx, %rdx
jl 0x20d40a
cmpq 0x40(%rsp), %r15
setle %cl
cmpq 0xd0(%rsp), %r15
setg %dl
orb %cl, %dl
je 0x20d414
leaq (%r14,%r13), %r8
cmpq %r14, 0x58(%rsp)
jle 0x20d450
cmpq %r8, 0x50(%rsp)
jle 0x20d450
movq %r14, %rbx
subq %r12, %rbx
movl 0x74(%rsp), %edi
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
movq %r14, %rcx
movl %r9d, 0x4(%rsp)
callq 0x1ec2c6
movl 0x4(%rsp), %r9d
movq 0x18(%rsp), %r10
addq %rax, %r14
addq %rax, %rbx
movq %r14, %rcx
movq %rbx, %r8
movq 0xa8(%rsp), %r11
jmp 0x20d453
testb %r9b, %r9b
movl 0x4(%rsp), %ecx
movzbl %cl, %ecx
movl $0x0, %eax
cmovel %eax, %ecx
movl %ecx, 0x4(%rsp)
movq 0x8(%rsp), %rcx
jmp 0x20d4be
movq 0x18(%r11), %rcx
addq 0xc8(%rsp), %rcx
movq (%rbp,%rcx), %rcx
cmpq %r14, %rcx
jge 0x20d4b6
movq 0x50(%rsp), %rdx
addq %rdx, %rax
incq %rax
movq 0x58(%rsp), %rdx
cmpq %rax, %rdx
cmovlq %rdx, %rax
cmpq %rax, %r14
jle 0x20d393
jmp 0x20d4b6
movq %r14, %rcx
leaq (%r8,%rcx), %rax
movq (%r11), %rdx
movslq (%rdx), %rdx
imulq %rax, %rdx
movq %rdx, %rax
shrq $0x3f, %rax
addq %rdx, %rax
sarq %rax
movslq 0x14(%r11), %rdx
imulq %r10, %rdx
subq %rdx, %rax
cmpq 0x28(%rsp), %rax
jle 0x20d4b6
movq 0xa0(%rsp), %rsi
movq %rax, 0x10(%rsi)
movq %r8, %rdx
orq %rcx, %rdx
js 0x20d7a2
movq %rcx, (%rsi)
movq %r8, 0x8(%rsi)
movq %r10, 0x18(%rsi)
movq %r15, 0x20(%rsi)
movl $0x0, 0x4(%rsp)
movq %rax, 0x28(%rsp)
jmp 0x20d4be
movl $0x0, 0x4(%rsp)
movl %r9d, %ebx
movzbl %r9b, %r8d
movq %r11, %rdi
movq %r10, %rsi
movq %r15, %rdx
movq %r11, %r14
callq 0x20d7bb
movq %r14, %r11
movq 0x18(%rsp), %r10
incq %r12
decq %r13
addq $0x10, %rbp
movq 0x68(%rsp), %r8
cmpq %r8, %r15
movq 0x60(%rsp), %rdi
jle 0x20d1c7
testb $0x1, 0x4(%rsp)
je 0x20d516
movl 0x14(%rsp), %eax
cmpl 0x24(%rsp), %eax
jge 0x20d790
incl 0x14(%rsp)
jmp 0x20d524
movb $0x1, %al
movl %eax, 0x4(%rsp)
movl $0x0, 0x14(%rsp)
movq 0x38(%r11), %rax
cmpq %rax, 0x40(%r11)
movq %r11, %rbp
jb 0x20d562
leaq 0xa(%rax), %rcx
movq %rcx, 0x38(%r11)
movq 0x30(%r11), %rdi
leaq 0x50(,%rax,8), %rsi
leaq 0x1b8ed3(%rip), %rdx    # 0x3c641f
movl $0x17e, %ecx            # imm = 0x17E
callq 0x1094e6
movq %rbp, %r11
movq 0x18(%rsp), %r10
movq %rax, 0x30(%rbp)
movq 0x30(%r11), %rax
testq %rax, %rax
je 0x20d7a7
movl %ebx, %esi
movq 0x40(%r11), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x40(%r11)
movq 0x28(%rsp), %rdx
movq %rdx, (%rax,%rcx,8)
movzbl %sil, %r14d
movq 0x40(%rsp), %rax
cmpq %rax, 0xc0(%rsp)
movq 0x8(%rsp), %r13
jle 0x20d5d7
movq 0x60(%rsp), %r12
negq %r12
movq 0x40(%rsp), %r15
movq %r11, %rdi
movq %r10, %rsi
movq %r15, %rdx
movq %r13, %rcx
movl %r14d, %r8d
callq 0x20d7bb
movq %rbp, %r11
movq 0x18(%rsp), %r10
leaq (%r12,%r15), %rax
incq %rax
incq %r15
cmpq $-0x1, %rax
jne 0x20d5ab
movq 0x68(%rsp), %rax
addq $0x2, %rax
cmpq %r10, %rax
movq %r13, %r12
jg 0x20d614
movq 0x98(%rsp), %r15
incq %r15
movq %r11, %rdi
movq %r10, %rsi
movq %r15, %rdx
movq %r12, %rcx
movl %r14d, %r8d
callq 0x20d7bb
movq %rbp, %r11
movq 0x18(%rsp), %r10
cmpq %r10, %r15
jl 0x20d5f0
movq 0x88(%rsp), %rcx
cmpq 0x40(%rsp), %rcx
setl %al
cmpq %r10, %rcx
setg %cl
orb %al, %cl
movq 0x60(%rsp), %rdi
movq 0x68(%rsp), %r8
movq 0x58(%rsp), %r14
movq 0x50(%rsp), %r9
jne 0x20d670
movq 0xd0(%rsp), %rcx
addq $0x2, %rcx
imulq %r10, %rcx
shlq $0x4, %rcx
addq 0x18(%r11), %rcx
movq 0x88(%rsp), %rax
shlq $0x4, %rax
cmpq %r14, (%rax,%rcx)
je 0x20d790
movq 0x98(%rsp), %rdx
movq 0xc0(%rsp), %rsi
cmpq %rdx, %rsi
jg 0x20d6b2
movq %rdi, %rax
shlq $0x4, %rax
addq 0x80(%rsp), %rax
addq 0x18(%r11), %rax
cmpq %r12, (%rax)
jg 0x20d6af
leaq 0x1(%rsi), %rcx
addq $0x10, %rax
cmpq %r8, %rsi
movq %rcx, %rsi
jle 0x20d698
jmp 0x20d6b2
movq %rsi, %rdi
leaq -0x1(%rdi), %rax
cmpq %rax, %rdx
jl 0x20d6e5
movq %r8, %rax
shlq $0x4, %rax
addq 0x78(%rsp), %rax
addq 0x18(%r11), %rax
cmpq %r12, (%rax)
jg 0x20d6e2
leaq -0x1(%rdx), %rcx
addq $-0x10, %rax
cmpq %rdi, %rdx
movq %rcx, %rdx
jge 0x20d6cb
jmp 0x20d6e5
movq %rdx, %r8
testq %rdi, %rdi
jg 0x20d713
movq 0x18(%r11), %rax
addq 0x48(%rsp), %rax
xorl %ecx, %ecx
leaq (%r9,%rcx), %rdx
cmpq (%rax), %rdx
je 0x20d710
leaq -0x1(%rcx), %rdx
addq $-0x10, %rax
cmpq %rdi, %rcx
movq %rdx, %rcx
jg 0x20d6f5
jmp 0x20d713
movq %rcx, %rdi
testq %r8, %r8
movq 0x48(%rsp), %rsi
movq 0xe8(%rsp), %r9
js 0x20d748
leaq 0x1(%r8), %rax
movq 0x18(%r11), %rcx
addq %rsi, %rcx
xorl %edx, %edx
cmpq %r14, (%rcx)
je 0x20d745
incq %rdx
addq $0x10, %rcx
cmpq %rdx, %rax
jne 0x20d732
jmp 0x20d748
movq %rdx, %r8
incq 0x38(%rsp)
incq 0x30(%rsp)
addq %r9, 0xc8(%rsp)
addq $0x20, %r9
movq 0x90(%rsp), %rax
addq %rax, 0x80(%rsp)
addq %rax, 0x78(%rsp)
addq %rax, %rsi
movq %rsi, 0x48(%rsp)
addq $0x20, %rax
movq %rax, 0x90(%rsp)
cmpq %r8, %rdi
jle 0x20d152
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x81b89
callq 0x81bc2
callq 0x81b17
callq 0x81b50
callq 0x81bfb