// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/idx-limdfs.c
// Function: gt_fromitv2sortedmatchpositions
GtArrayGtUword *gt_fromitv2sortedmatchpositions(
                                             Limdfsresources *limdfsresources,
                                             GtUword leftbound,
                                             GtUword rightbound,
                                             GtUword offset)
{
  Indexbounds itv;
  GtIdxMatch match;

  gt_assert(limdfsresources != NULL &&
            limdfsresources->genericindex != NULL);
  limdfsresources->mstatspos.nextfreeGtUword = 0;
  itv.leftbound = leftbound;
  itv.rightbound = rightbound;
  itv.offset = offset;
  match.dbabsolute = true;
  match.dblen = itv.offset;
  match.dbsubstring = limdfsresources->currentpathspace;
  match.querystartpos = 0;
  match.querylen = offset;
  match.distance = 0;
  match.alignment = NULL;
  (limdfsresources->genericindex->withesa
       ? gen_esa_overinterval
       : gen_pck_overinterval)
    (limdfsresources->genericindex,
     storemstatsposition,
     &limdfsresources->mstatspos,
     &itv,
     limdfsresources->genericindex->totallength,
     &match);
  qsort(limdfsresources->mstatspos.spaceGtUword,
        (size_t) limdfsresources->mstatspos.nextfreeGtUword,
        sizeof (GtUword), comparepositions);
  if (limdfsresources->genericindex->withesa)
  {
    limdfsresources->numberofmatches += (rightbound - leftbound + 1);
  } else
  {
    limdfsresources->numberofmatches += (rightbound - leftbound);
  }
  return &limdfsresources->mstatspos;
}

// Assembly:
subq $0x98, %rsp
movq %rdi, 0x90(%rsp)
movq %rsi, 0x88(%rsp)
movq %rdx, 0x80(%rsp)
movq %rcx, 0x78(%rsp)
cmpq $0x0, 0x90(%rsp)
je 0x255331
movq 0x90(%rsp), %rax
cmpq $0x0, 0xd8(%rax)
jne 0x255369
movq 0x3e6c68(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2c0cd1(%rip), %rsi    # 0x516013
leaq 0x324da4(%rip), %rdx    # 0x57a0ed
leaq 0x324dde(%rip), %rcx    # 0x57a12e
leaq 0x324c3a(%rip), %r8     # 0x579f91
movl $0x1f5, %r9d            # imm = 0x1F5
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x25536b
movq 0x90(%rsp), %rax
movq $0x0, 0x110(%rax)
movq 0x88(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x50(%rsp)
movb $0x1, 0x8(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x90(%rsp), %rax
movq 0x118(%rax), %rax
movq %rax, 0x28(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x38(%rsp)
movq $0x0, 0x40(%rsp)
movq $0x0, 0x48(%rsp)
movq 0x90(%rsp), %rax
movq 0xd8(%rax), %rax
movb 0x18(%rax), %dl
leaq 0x18d(%rip), %rax       # 0x255590
leaq 0x106(%rip), %rcx       # 0x255510
testb $0x1, %dl
cmovneq %rcx, %rax
movq 0x90(%rsp), %rcx
movq 0xd8(%rcx), %rdi
movq 0x90(%rsp), %rdx
addq $0x100, %rdx            # imm = 0x100
movq 0x90(%rsp), %rcx
movq 0xd8(%rcx), %rcx
movq 0x8(%rcx), %r8
leaq 0x297(%rip), %rsi       # 0x2556e0
leaq 0x50(%rsp), %rcx
leaq 0x8(%rsp), %r9
callq *%rax
movq 0x90(%rsp), %rax
movq 0x100(%rax), %rdi
movq 0x90(%rsp), %rax
movq 0x110(%rax), %rsi
movl $0x8, %edx
leaq 0x3a1(%rip), %rcx       # 0x255820
callq 0x19e70
movq 0x90(%rsp), %rax
movq 0xd8(%rax), %rax
testb $0x1, 0x18(%rax)
je 0x2554c5
movq 0x80(%rsp), %rcx
subq 0x88(%rsp), %rcx
addq $0x1, %rcx
movq 0x90(%rsp), %rax
addq 0x128(%rax), %rcx
movq %rcx, 0x128(%rax)
jmp 0x2554eb
movq 0x80(%rsp), %rcx
subq 0x88(%rsp), %rcx
movq 0x90(%rsp), %rax
addq 0x128(%rax), %rcx
movq %rcx, 0x128(%rax)
movq 0x90(%rsp), %rax
addq $0x100, %rax            # imm = 0x100
addq $0x98, %rsp
retq
nopw %cs:(%rax,%rax)