// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/rdj-ovlfind-gusfield.c
// Function: processspecials
static inline
void processspecials(GtUword specials_leftbound,
                     GtUword rightbound,
                     GtUword offset,
                     bool visited,
                     const GtUword *suftab,
                     const GtEncseq *encseq,
                     GtUword totallength,
                     GtUword nofsequences,
                     GtArrayGtUword *matchlen_stacks,
                     GtBitsequence *has_match,
                     GtBitsequence *sspbittab)
{
  GtUword pos, leafnumber;
  GtUword seqnum;

  gt_assert(offset>0);

  for (pos = specials_leftbound; pos <= rightbound; pos++)
  {
    leafnumber = suftab[pos];
    if ((bool)GT_ISIBITSET(sspbittab, leafnumber + offset))
    {
      seqnum = (leafnumber == totallength)
               ? nofsequences-1
               : gt_encseq_seqnum(encseq,leafnumber);
      if (!visited)
      {
        GT_SETIBIT(has_match, seqnum);
        GT_STOREINARRAY(&(matchlen_stacks[seqnum]),
                        GtUword, 1, offset);
      }
      else
      {
        gt_assert(matchlen_stacks[seqnum].nextfreeGtUword>0);
        matchlen_stacks[seqnum].nextfreeGtUword--;
        if (matchlen_stacks[seqnum].nextfreeGtUword == 0)
        {
          GT_UNSETIBIT(has_match, seqnum);
        }
      }
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, 0x8(%rsp)
movq %r8, %r14
movl %ecx, %ebp
movq %rsi, %r12
movq %rdi, %r13
movq 0x70(%rsp), %rbx
movq 0x60(%rsp), %r8
movq 0x50(%rsp), %r15
movq 0x58(%rsp), %rax
movabsq $-0x8000000000000000, %r9 # imm = 0x8000000000000000
decq %rax
movq %rax, 0x10(%rsp)
movq %rdx, (%rsp)
cmpq %r12, %r13
ja 0x17a71b
movq (%r14,%r13,8), %rsi
leaq (%rsi,%rdx), %rcx
movq %r9, %rax
shrq %cl, %rax
shrq $0x6, %rcx
testq %rax, (%rbx,%rcx,8)
je 0x17a713
movq 0x10(%rsp), %rcx
cmpq %r15, %rsi
je 0x17a635
movq 0x8(%rsp), %rdi
callq 0x74c9d
movabsq $-0x8000000000000000, %r9 # imm = 0x8000000000000000
movq 0x60(%rsp), %r8
movq (%rsp), %rdx
movq %rax, %rcx
testb %bpl, %bpl
je 0x17a67a
imulq $0x18, %rcx, %rsi
movq 0x10(%r8,%rsi), %rax
testq %rax, %rax
je 0x17a758
addq %r8, %rsi
addq $0x10, %rsi
decq %rax
movq %rax, (%rsi)
jne 0x17a713
movq %r9, %rax
shrq %cl, %rax
notq %rax
shrq $0x6, %rcx
movq 0x68(%rsp), %rsi
andq %rax, (%rsi,%rcx,8)
jmp 0x17a713
movq %r12, %r15
movq %r14, %r12
movq %rbx, %r14
movl %ebp, %ebx
movq %r9, %rax
shrq %cl, %rax
imulq $0x18, %rcx, %rsi
shrq $0x6, %rcx
movq 0x68(%rsp), %rdi
orq %rax, (%rdi,%rcx,8)
leaq (%r8,%rsi), %rbp
movq 0x8(%r8,%rsi), %rax
cmpq %rax, 0x10(%r8,%rsi)
jae 0x17a6b2
movq (%rbp), %rax
jmp 0x17a6ee
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rbp)
movq (%rbp), %rdi
leaq 0x8(,%rax,8), %rsi
leaq 0x1d3dc9(%rip), %rdx    # 0x34e496
movl $0xaf, %ecx
callq 0x93472
movabsq $-0x8000000000000000, %r9 # imm = 0x8000000000000000
movq 0x60(%rsp), %r8
movq (%rsp), %rdx
movq %rax, (%rbp)
testq %rax, %rax
je 0x17a72a
movq 0x10(%rbp), %rcx
leaq 0x1(%rcx), %rsi
movq %rsi, 0x10(%rbp)
movq %rdx, (%rax,%rcx,8)
movl %ebx, %ebp
movq %r14, %rbx
movq %r12, %r14
movq %r15, %r12
movq 0x50(%rsp), %r15
incq %r13
jmp 0x17a5e6
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2bd837(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x16a8d8(%rip), %rsi    # 0x2e5013
leaq 0x1d3db3(%rip), %rdx    # 0x34e4f5
leaq 0x1d3d9c(%rip), %rcx    # 0x34e4e5
leaq 0x1d3d46(%rip), %r8     # 0x34e496
movl $0xaf, %r9d
jmp 0x17a784
movq 0x2bd809(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x16a8aa(%rip), %rsi    # 0x2e5013
leaq 0x1d3db8(%rip), %rdx    # 0x34e528
leaq 0x1d3d6e(%rip), %rcx    # 0x34e4e5
leaq 0x1d3d18(%rip), %r8     # 0x34e496
movl $0xb3, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390