// File: /workspace/github_c_makefile_star2_O1/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 %r9, %r12
movq %rcx, %r14
movq %rdx, 0x28(%rsp)
movq %rsi, %rbx
movq %rdi, %r13
cmpq %r9, %r8
movq %r9, %rax
movq %r8, 0x10(%rsp)
cmovgq %r8, %rax
movq %rax, (%rsp)
leaq 0x1b9c63(%rip), %rdi    # 0x3c6798
callq 0x17bd0
leaq 0x18002f(%rip), %rdi    # 0x38cb70
xorl %eax, %eax
callq 0x17070
movzbl (%r14), %esi
leaq 0x1b989a(%rip), %rdi    # 0x3c63ed
xorl %eax, %eax
callq 0x17070
movq 0x10(%r13), %rax
leaq 0x2(%rbx), %rbp
movq %rbx, 0x8(%rsp)
imulq %rbx, %rbp
cmpq %rbp, %rax
cmovbq %rax, %rbp
cmpq $0x2, %r12
jl 0x20cb9b
movl $0x1, %ebx
leaq 0x1b9869(%rip), %r15    # 0x3c63ed
movzbl (%r14,%rbx), %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0x17070
incq %rbx
cmpq %rbx, %r12
jne 0x20cb84
movq %r12, 0x18(%rsp)
cmpq $0x0, 0x10(%rsp)
js 0x20cd35
movq (%rsp), %r8
negq %r8
movq 0x8(%rsp), %rax
leaq 0x1(%rax), %r15
xorl %r12d, %r12d
movq $0x0, 0x20(%rsp)
movq 0x18(%rsp), %rbx
movq %r8, (%rsp)
movl $0xa, %edi
callq 0x17a20
testq %r12, %r12
je 0x20cbfb
movq 0x28(%rsp), %rax
movzbl -0x1(%rax,%r12), %esi
leaq 0x1b97fb(%rip), %rdi    # 0x3c63ed
xorl %eax, %eax
callq 0x17070
jmp 0x20cc09
leaq 0x17ff72(%rip), %rdi    # 0x38cb74
xorl %eax, %eax
callq 0x17070
testq %rbx, %rbx
movq 0x8(%rsp), %rdi
movq (%rsp), %r8
movl $0x0, %r9d
js 0x20cd11
xorl %eax, %eax
testq %rbp, %rbp
movq %rax, 0x30(%rsp)
je 0x20ccd8
movq %r12, %rbx
subq %rax, %rbx
xorl %eax, %eax
movq %r15, %r14
testq %rdi, %rdi
sets %cl
movq (%r13), %rdx
movq %rax, %rsi
shlq $0x4, %rsi
movq (%rdx,%rsi), %rdx
cmpq %r8, %rdx
sete %sil
cmpq %rdx, %r12
setne %dl
orb %sil, %dl
orb %dl, %cl
testb %dl, %dl
cmoveq %r9, %r14
testb %cl, %cl
jne 0x20ccca
xorl %ecx, %ecx
xorl %r14d, %r14d
cmpq %rcx, %rbx
setl %dl
cmpq %r14, %rbx
setg %sil
orb %dl, %sil
jne 0x20cc94
leaq 0x1(%r14), %rdx
imulq %r14, %rdx
addq %rbx, %rdx
cmpq %rdx, %rax
je 0x20cca4
incq %r14
decq %rcx
cmpq %r14, %r15
jne 0x20cc72
movq %r15, %r14
jmp 0x20ccca
leaq 0x1b9748(%rip), %rdi    # 0x3c63f3
movq %r14, %rsi
xorl %eax, %eax
callq 0x17070
xorl %r9d, %r9d
movq (%rsp), %r8
movq 0x8(%rsp), %rdi
movq 0x10(%r13), %rax
incq 0x20(%rsp)
incq %rax
cmpq %rbp, %rax
jb 0x20cc3c
jmp 0x20ccdb
movq %r15, %r14
cmpq %rdi, %r14
jle 0x20ccfa
leaq 0x1b9713(%rip), %rdi    # 0x3c63fa
xorl %eax, %eax
callq 0x17070
xorl %r9d, %r9d
movq (%rsp), %r8
movq 0x8(%rsp), %rdi
movq 0x30(%rsp), %rcx
leaq 0x1(%rcx), %rax
movq 0x18(%rsp), %rbx
cmpq %rbx, %rcx
jne 0x20cc23
leaq 0x1(%r12), %rax
cmpq 0x10(%rsp), %r12
movq %rax, %r12
jne 0x20cbd1
cvtsi2sdq 0x20(%rsp), %xmm0
mulsd 0x145abd(%rip), %xmm0   # 0x3527f0
jmp 0x20cd3e
xorpd %xmm0, %xmm0
movq 0x18(%rsp), %rbx
movq 0x10(%rsp), %rax
incq %rax
incq %rbx
imulq %rax, %rbx
cvtsi2sd %rbx, %xmm1
divsd %xmm1, %xmm0
leaq 0x1b96a2(%rip), %rdi    # 0x3c63ff
movb $0x1, %al
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x17070