// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/eis-seqranges.c
// Function: gt_SRLApplyRangesToSubString
void
gt_SRLApplyRangesToSubString(struct seqRangeList *rangeList,
                          Symbol *subString,
                          GtUword start,
                          GtUword len,
                          GtUword subStringOffset,
                          seqRangeListSearchHint *hint)
{
  struct seqRange *nextRange;
  GtUword inSeqPos = start;
  unsigned symBits = rangeList->symBits;
  gt_assert(rangeList);
  nextRange = gt_SRLFindPositionNext(rangeList, inSeqPos, hint);
  do {
    if (inSeqPos < nextRange->startPos)
    {
      inSeqPos = nextRange->startPos;
    }
    else
    {
      size_t i;
      unsigned maxSubstPos =
        GT_MIN(nextRange->startPos + seqRangeLen(nextRange, symBits),
            start + len) - subStringOffset;
      Symbol sym = MRAEncRevMapSymbol(rangeList->alphabet,
                                      seqRangeSym(nextRange, symBits));
      for (i = inSeqPos - subStringOffset; i < maxSubstPos; ++i)
        subString[i] = sym;
      inSeqPos = subStringOffset + maxSubstPos;
      ++nextRange;
    }
  } while (inSeqPos < start + len);
}

// Assembly:
subq $0x78, %rsp
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movq %rdx, 0x60(%rsp)
movq %rcx, 0x58(%rsp)
movq %r8, 0x50(%rsp)
movq %r9, 0x48(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x70(%rsp), %rax
movl 0x28(%rax), %eax
movl %eax, 0x34(%rsp)
cmpq $0x0, 0x70(%rsp)
jne 0x4b2488
movq 0x189b49(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x63bb2(%rip), %rsi     # 0x516013
leaq 0x104d5e(%rip), %rdx    # 0x5b71c6
leaq 0x104ea4(%rip), %rcx    # 0x5b7313
leaq 0x104d36(%rip), %r8     # 0x5b71ac
movl $0x2bf, %r9d            # imm = 0x2BF
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4b248a
movq 0x70(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x48(%rsp), %rdx
callq 0x4b0c80
movq %rax, 0x40(%rsp)
movq 0x38(%rsp), %rax
movq 0x40(%rsp), %rcx
cmpq (%rcx), %rax
jae 0x4b24c4
movq 0x40(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x38(%rsp)
jmp 0x4b25cb
movq 0x40(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x40(%rsp), %rdi
movl 0x34(%rsp), %esi
callq 0x4b06a0
movq %rax, %rcx
movq 0x18(%rsp), %rax
addq %rcx, %rax
movq 0x60(%rsp), %rcx
addq 0x58(%rsp), %rcx
cmpq %rcx, %rax
jae 0x4b2526
movq 0x40(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x40(%rsp), %rdi
movl 0x34(%rsp), %esi
callq 0x4b06a0
movq %rax, %rcx
movq 0x8(%rsp), %rax
addq %rcx, %rax
movq %rax, 0x10(%rsp)
jmp 0x4b2535
movq 0x60(%rsp), %rax
addq 0x58(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
subq 0x50(%rsp), %rax
movl %eax, 0x24(%rsp)
movq 0x70(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, (%rsp)
movq 0x40(%rsp), %rdi
movl 0x34(%rsp), %esi
callq 0x4b06d0
movq (%rsp), %rdi
movzbl %al, %esi
callq 0x4b0b90
movb %al, 0x23(%rsp)
movq 0x38(%rsp), %rax
subq 0x50(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movl 0x24(%rsp), %ecx
cmpq %rcx, %rax
jae 0x4b25ac
movb 0x23(%rsp), %dl
movq 0x68(%rsp), %rax
movq 0x28(%rsp), %rcx
movb %dl, (%rax,%rcx)
movq 0x28(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x28(%rsp)
jmp 0x4b257d
movq 0x50(%rsp), %rax
movl 0x24(%rsp), %ecx
addq %rcx, %rax
movq %rax, 0x38(%rsp)
movq 0x40(%rsp), %rax
addq $0x10, %rax
movq %rax, 0x40(%rsp)
jmp 0x4b25cd
movq 0x38(%rsp), %rax
movq 0x60(%rsp), %rcx
addq 0x58(%rsp), %rcx
cmpq %rcx, %rax
jb 0x4b24a3
addq $0x78, %rsp
retq
nopw (%rax,%rax)