// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x58, %rsp
movb %cl, %al
movq 0x80(%rsp), %rcx
movq 0x78(%rsp), %rcx
movq 0x70(%rsp), %rcx
movq 0x68(%rsp), %rcx
movq 0x60(%rsp), %rcx
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
andb $0x1, %al
movb %al, 0x3f(%rsp)
movq %r8, 0x30(%rsp)
movq %r9, 0x28(%rsp)
cmpq $0x0, 0x40(%rsp)
ja 0x285791
movq 0x3b6840(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2908a9(%rip), %rsi    # 0x516013
leaq 0x2fb53c(%rip), %rdx    # 0x580cad
leaq 0x2fb53e(%rip), %rcx    # 0x580cb6
leaq 0x2fb4df(%rip), %r8     # 0x580c5e
movl $0xa1, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x285793
movq 0x50(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
cmpq 0x48(%rsp), %rax
ja 0x285aad
movq 0x30(%rsp), %rax
movq 0x20(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x18(%rsp)
movq 0x80(%rsp), %rax
movq 0x18(%rsp), %rcx
addq 0x40(%rsp), %rcx
shrq $0x6, %rcx
movq (%rax,%rcx,8), %rax
movq 0x18(%rsp), %rcx
addq 0x40(%rsp), %rcx
andq $0x3f, %rcx
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
shrq %cl, %rdx
movq %rdx, %rcx
andq %rcx, %rax
cmpq $0x0, %rax
je 0x285a98
movq 0x18(%rsp), %rax
cmpq 0x60(%rsp), %rax
jne 0x285820
movq 0x68(%rsp), %rax
subq $0x1, %rax
movq %rax, (%rsp)
jmp 0x285833
movq 0x28(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0xb03a0
movq %rax, (%rsp)
movq (%rsp), %rax
movq %rax, 0x10(%rsp)
testb $0x1, 0x3f(%rsp)
jne 0x2859e4
movq 0x10(%rsp), %rcx
andq $0x3f, %rcx
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
shrq %cl, %rdx
movq 0x78(%rsp), %rax
movq 0x10(%rsp), %rcx
shrq $0x6, %rcx
orq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
jmp 0x285875
movq 0x70(%rsp), %rax
imulq $0x18, 0x10(%rsp), %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
addq $0x0, %rax
movq 0x70(%rsp), %rcx
imulq $0x18, 0x10(%rsp), %rdx
addq %rdx, %rcx
cmpq 0x8(%rcx), %rax
jb 0x285956
movq $0x1, 0x8(%rsp)
xorl %eax, %eax
cmpq 0x8(%rsp), %rax
jbe 0x2858ed
movq 0x3b66e4(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x29074d(%rip), %rsi    # 0x516013
leaq 0x2938da(%rip), %rdx    # 0x5191a7
leaq 0x2fb3e2(%rip), %rcx    # 0x580cb6
leaq 0x2fb383(%rip), %r8     # 0x580c5e
movl $0xaf, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2858ef
movq 0x8(%rsp), %rcx
movq 0x70(%rsp), %rax
imulq $0x18, 0x10(%rsp), %rdx
addq %rdx, %rax
addq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq 0x70(%rsp), %rax
imulq $0x18, 0x10(%rsp), %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq 0x70(%rsp), %rax
imulq $0x18, 0x10(%rsp), %rcx
addq %rcx, %rax
movq 0x8(%rax), %rsi
shlq $0x3, %rsi
leaq 0x2fb326(%rip), %rdx    # 0x580c5e
movl $0xaf, %ecx
callq 0xe8540
movq %rax, %rcx
movq 0x70(%rsp), %rax
imulq $0x18, 0x10(%rsp), %rdx
addq %rdx, %rax
movq %rcx, (%rax)
jmp 0x285958
movq 0x70(%rsp), %rax
imulq $0x18, 0x10(%rsp), %rcx
addq %rcx, %rax
cmpq $0x0, (%rax)
jne 0x2859a4
movq 0x3b662d(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x290696(%rip), %rsi    # 0x516013
leaq 0x2fb342(%rip), %rdx    # 0x580cc6
leaq 0x2fb32b(%rip), %rcx    # 0x580cb6
leaq 0x2fb2cc(%rip), %r8     # 0x580c5e
movl $0xaf, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2859a6
jmp 0x2859a8
movq 0x40(%rsp), %rdx
movq 0x70(%rsp), %rax
imulq $0x18, 0x10(%rsp), %rcx
addq %rcx, %rax
movq (%rax), %rax
movq 0x70(%rsp), %rsi
imulq $0x18, 0x10(%rsp), %rcx
addq %rcx, %rsi
movq 0x10(%rsi), %rcx
movq %rcx, %rdi
addq $0x1, %rdi
movq %rdi, 0x10(%rsi)
movq %rdx, (%rax,%rcx,8)
jmp 0x285a96
jmp 0x2859e6
movq 0x70(%rsp), %rax
imulq $0x18, 0x10(%rsp), %rcx
addq %rcx, %rax
cmpq $0x0, 0x10(%rax)
ja 0x285a33
movq 0x3b659e(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x290607(%rip), %rsi    # 0x516013
leaq 0x2fb2e6(%rip), %rdx    # 0x580cf9
leaq 0x2fb29c(%rip), %rcx    # 0x580cb6
leaq 0x2fb23d(%rip), %r8     # 0x580c5e
movl $0xb3, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x285a35
movq 0x70(%rsp), %rax
imulq $0x18, 0x10(%rsp), %rcx
addq %rcx, %rax
movq 0x10(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x10(%rax)
movq 0x70(%rsp), %rax
imulq $0x18, 0x10(%rsp), %rcx
addq %rcx, %rax
cmpq $0x0, 0x10(%rax)
jne 0x285a94
movq 0x10(%rsp), %rcx
andq $0x3f, %rcx
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
shrq %cl, %rdx
xorq $-0x1, %rdx
movq 0x78(%rsp), %rax
movq 0x10(%rsp), %rcx
shrq $0x6, %rcx
andq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
jmp 0x285a96
jmp 0x285a98
jmp 0x285a9a
movq 0x20(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x20(%rsp)
jmp 0x28579d
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)