// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/eis-seqranges.c
// Function: gt_SRLPrintRangesInfo
int
gt_SRLPrintRangesInfo(struct seqRangeList *rangeList,
                   FILE *fp,
                   GtUword start,
                   GtUword len,
                   seqRangeListSearchHint *hint)
{
  struct seqRange *nextRange;
  GtUword end = start + len;
  unsigned symBits = rangeList->symBits;
  int result = 0;
  gt_assert(rangeList);
  nextRange = gt_SRLFindPositionNext(rangeList, start, hint);
  while (nextRange->startPos < end)
  {
    if (rangeList->partialSymSums)
    {
      size_t numSyms = gt_MRAEncGetSize(rangeList->alphabet);
      size_t pOff = nextRange - rangeList->ranges;
      Symbol sym;
      fputs("# range partial sums:", fp);
      for (sym = 0; sym < numSyms; ++sym)
        fprintf(fp, " sum[%u]="GT_WU"",
                MRAEncRevMapSymbol(rangeList->alphabet, sym),
                rangeList->partialSymSums[pOff * numSyms + sym]);
      fputs("\n", fp);
    }
    if (result +=
        fprintf(fp, "# range overlap: symbol %u, start="GT_WU", length="
                GT_WU"\n", MRAEncRevMapSymbol(rangeList->alphabet,
                                              seqRangeSym(nextRange, symBits)),
                nextRange->startPos, seqRangeLen(nextRange, symBits)) < 0)
    {
      result = -1;
      break;
    }
    ++nextRange;
  }
  return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %rbx
movq %rsi, %r14
movq %rdi, %r15
addq %rdx, %rbx
movl 0x28(%rdi), %r12d
movq %rdx, %rsi
movq %r8, %rdx
callq 0x30ed36
movq %rbx, 0x18(%rsp)
cmpq %rbx, (%rax)
jae 0x30fb43
movq %rax, %r13
movl $0x40, %eax
movq %r12, 0x10(%rsp)
subl %r12d, %eax
movl %eax, 0xc(%rsp)
cmpq $0x0, 0x18(%r15)
je 0x30fac8
movq 0x20(%r15), %rdi
callq 0x19e077
movl %eax, %ebx
movq 0x10(%r15), %rbp
leaq 0xd22b5(%rip), %rdi     # 0x3e1d08
movq %r14, %rsi
callq 0x178c0
testw %bx, %bx
je 0x30fab9
movzwl %bx, %ebx
movq %r13, %r12
subq %rbp, %r12
sarq $0x4, %r12
imulq %rbx, %r12
movb $0x1, %bpl
shlq $0x3, %r12
xorl %eax, %eax
movq 0x20(%r15), %rcx
cmpl $0x1, (%rcx)
jne 0x30fb5b
movzbl 0x118(%rcx,%rax), %edx
movq 0x18(%r15), %rcx
addq %r12, %rcx
movq (%rcx,%rax,8), %rcx
movq %r14, %rdi
leaq 0xd227a(%rip), %rsi     # 0x3e1d1e
xorl %eax, %eax
callq 0x17ab0
movzbl %bpl, %eax
movl %eax, %ebp
incb %bpl
cmpq %rbx, %rax
jb 0x30fa7a
leaq 0xb05df(%rip), %rdi     # 0x3c009f
movq %r14, %rsi
callq 0x178c0
movq 0x20(%r15), %r12
leaq 0x8(%r13), %rbx
movq %rbx, %rdi
xorl %esi, %esi
movq %r13, %rbp
movq 0x10(%rsp), %r13
movl %r13d, %edx
callq 0x2f4934
cmpl $0x1, (%r12)
jne 0x30fb5b
movzbl %al, %eax
movzbl 0x118(%r12,%rax), %r12d
movq (%rbp), %rax
movq %rax, 0x20(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
movl 0xc(%rsp), %edx
callq 0x2f37dc
movq %r14, %rdi
leaq 0xd2211(%rip), %rsi     # 0x3e1d2b
movl %r12d, %edx
movq 0x20(%rsp), %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x17ab0
testl %eax, %eax
js 0x30fb47
leaq 0x10(%rbp), %r13
movq 0x18(%rsp), %rcx
cmpq %rcx, 0x10(%rbp)
jb 0x30fa32
xorl %eax, %eax
jmp 0x30fb4c
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x173b0