// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/xdrop.c
// Function: gt_showfrontvalues
void gt_showfrontvalues(const GtArrayGtXdropfrontvalue *fronts,
                       GtWord distance,
                       const unsigned char *useqptr,
                       const unsigned char *vseqptr,
                       GtWord ulen,
                       GtWord vlen)
{
  GtUword l, max_l;
  GtWord i, j, k, d, filled = 0, integermax = GT_MAX(ulen,vlen),
       integermin = -integermax;

  printf("frontvalues:\n");
  printf("        ");
  printf("%-3c ", vseqptr[0]);
  /* print vseq */
  max_l = GT_MIN(fronts->nextfreeGtXdropfrontvalue,
              (GtUword) GT_XDROP_FRONTIDX(distance, distance));
  for (i = 1L; i < vlen; i++)
    printf("%-3c ", vseqptr[i]);

  for (i = 0; i <= ulen; i++) {
    printf("\n");
    /* print useq */
    if (i != 0)
      printf("%-3c ", useqptr[i - 1]);
    else
      printf("    ");

    for (j = 0; j <= vlen; j++) {
      d = distance + 1;
      k = i - j;
      for (l = 0; l < max_l; l++) {
        if (fronts->spaceGtXdropfrontvalue[l].row == integermin)
          continue;

        if (i == fronts->spaceGtXdropfrontvalue[l].row) {
          for (d = 0; d <= distance; d++) {
            if (k >= -d && k <= d && l == GT_XDROP_FRONTIDX(d, i - j)) {
#ifndef S_SPLINT_S
              printf("%-3" GT_WDS " ", d);
#else
              printf("%-3ld ", d);
#endif
              l = fronts->nextfreeGtXdropfrontvalue;
              filled++;
              break;
            }
          }
        }
      }
      if (d > distance)
        printf(".   ");

    }
  }
  printf("\n%.2f percent of matrix filled\n",
           (double) filled * 100.00 / ((ulen + 1) * (vlen + 1)));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, %r14
movq %rdx, 0x20(%rsp)
movq %rsi, %r12
movq %rdi, %r13
cmpq %r9, %r8
movq %r9, 0x10(%rsp)
movq %r8, 0x18(%rsp)
cmovgq %r8, %r9
movq %r9, (%rsp)
leaq 0x1a623f(%rip), %rdi    # 0x35d56b
callq 0x17b60
leaq 0x16c880(%rip), %rdi    # 0x323bb8
xorl %eax, %eax
callq 0x17070
movzbl (%r14), %esi
leaq 0x1a5e76(%rip), %r15    # 0x35d1c0
movq %r15, %rdi
xorl %eax, %eax
callq 0x17070
movq 0x10(%r13), %rax
movq %rax, 0x8(%rsp)
leaq 0x2(%r12), %rbp
imulq %r12, %rbp
pushq $0x1
popq %rbx
cmpq 0x10(%rsp), %rbx
jge 0x1b7384
movzbl (%r14,%rbx), %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0x17070
incq %rbx
jmp 0x1b7369
movq (%rsp), %r8
negq %r8
movq 0x8(%rsp), %rax
cmpq %rbp, %rax
cmovbq %rax, %rbp
leaq 0x1(%r12), %rax
movq %rax, 0x28(%rsp)
movq $0x0, 0x8(%rsp)
xorl %ebx, %ebx
movq %r8, (%rsp)
cmpq 0x18(%rsp), %rbx
jg 0x1b74be
pushq $0xa
popq %rdi
callq 0x179c0
testq %rbx, %rbx
je 0x1b73e2
movq 0x20(%rsp), %rax
movzbl -0x1(%rax,%rbx), %esi
leaq 0x1a5de7(%rip), %rdi    # 0x35d1c0
xorl %eax, %eax
callq 0x17070
jmp 0x1b73f0
leaq 0x16c7d3(%rip), %rdi    # 0x323bbc
xorl %eax, %eax
callq 0x17070
xorl %eax, %eax
movq (%rsp), %r8
cmpq 0x10(%rsp), %rax
jg 0x1b74b6
movq %rbx, %r15
movq %rax, 0x30(%rsp)
subq %rax, %r15
movq 0x28(%rsp), %r14
xorl %eax, %eax
cmpq %rbp, %rax
jae 0x1b7492
movq (%r13), %rcx
movq %rax, %rdx
shlq $0x4, %rdx
movq (%rcx,%rdx), %rcx
cmpq %r8, %rcx
sete %dl
cmpq %rcx, %rbx
setne %cl
orb %dl, %cl
jne 0x1b748d
xorl %ecx, %ecx
xorl %r14d, %r14d
cmpq %r12, %r14
jg 0x1b748d
cmpq %rcx, %r15
setge %sil
cmpq %r14, %r15
setle %dil
leaq 0x1(%r14), %rdx
testb %dil, %sil
je 0x1b7467
movq %rdx, %rsi
imulq %r14, %rsi
addq %r15, %rsi
cmpq %rsi, %rax
je 0x1b746f
decq %rcx
movq %rdx, %r14
jmp 0x1b743c
leaq 0x1a5d50(%rip), %rdi    # 0x35d1c6
movq %r14, %rsi
xorl %eax, %eax
callq 0x17070
movq (%rsp), %r8
movq 0x10(%r13), %rax
incq 0x8(%rsp)
incq %rax
jmp 0x1b7413
cmpq %r12, %r14
jle 0x1b74a9
leaq 0x1a5d2f(%rip), %rdi    # 0x35d1cd
xorl %eax, %eax
callq 0x17070
movq (%rsp), %r8
movq 0x30(%rsp), %rax
incq %rax
jmp 0x1b73f6
incq %rbx
jmp 0x1b73b0
cvtsi2sdq 0x8(%rsp), %xmm0
mulsd 0x132313(%rip), %xmm0   # 0x2e97e0
movq 0x18(%rsp), %rcx
incq %rcx
movq 0x10(%rsp), %rax
incq %rax
imulq %rcx, %rax
cvtsi2sd %rax, %xmm1
divsd %xmm1, %xmm0
leaq 0x1a5ce1(%rip), %rdi    # 0x35d1d2
movb $0x1, %al
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x17070