// File: /workspace/github_c_makefile_star2_O1/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
testq %rdi, %rdi
je 0x319d01
movq %rcx, %rbx
movq %rsi, %r14
movq %rdi, %r15
addq %rdx, %rbx
movl 0x28(%rdi), %r12d
movq %rdx, %rsi
movq %r8, %rdx
callq 0x318eb5
cmpq %rbx, (%rax)
jae 0x319ce4
movq %rax, %r13
movl $0x40, %eax
movq %r12, 0x18(%rsp)
subl %r12d, %eax
movl %eax, 0xc(%rsp)
movq %rbx, 0x10(%rsp)
cmpq $0x0, 0x18(%r15)
je 0x319c69
movq 0x20(%r15), %rdi
callq 0x1a67a7
movl %eax, %ebx
movq 0x10(%r15), %rbp
leaq 0xd1837(%rip), %rdi     # 0x3eb42b
movq %r14, %rsi
callq 0x178c0
testw %bx, %bx
je 0x319c5a
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 0x319cfc
movzbl 0x118(%rcx,%rax), %edx
movq 0x18(%r15), %rcx
addq %r12, %rcx
movq (%rcx,%rax,8), %rcx
movq %r14, %rdi
leaq 0xd17fc(%rip), %rsi     # 0x3eb441
xorl %eax, %eax
callq 0x17ab0
movzbl %bpl, %eax
movl %eax, %ebp
incb %bpl
cmpq %rbx, %rax
jb 0x319c1b
leaq 0xafabe(%rip), %rdi     # 0x3c971f
movq %r14, %rsi
callq 0x178c0
movq 0x20(%r15), %r12
leaq 0x8(%r13), %rbx
movq %rbx, %rdi
xorl %esi, %esi
movq %r13, %rbp
movq 0x18(%rsp), %r13
movl %r13d, %edx
callq 0x2fddcc
cmpl $0x1, (%r12)
jne 0x319cfc
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 0x2fcc2c
movq %r14, %rdi
leaq 0xd1793(%rip), %rsi     # 0x3eb44e
movl %r12d, %edx
movq 0x20(%rsp), %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x17ab0
testl %eax, %eax
js 0x319ce8
leaq 0x10(%rbp), %r13
movq 0x10(%rsp), %rbx
cmpq %rbx, 0x10(%rbp)
jb 0x319bd3
xorl %eax, %eax
jmp 0x319ced
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x173b0
callq 0x92496
nop