// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/sfx-suffixer.c
// Function: sfx_derivespecialcodesonthefly
static void sfx_derivespecialcodesonthefly(Sfxiterator *sfi)
{
  GtCodetype code;
  unsigned int prefixindex;
  GtUword stidx;
  Enumcodeatposition *ecp;
  Specialcontext specialcontext;

  for (prefixindex=1U; prefixindex < sfi->prefixlength; prefixindex++)
  {
    ecp = gt_Enumcodeatposition_new(sfi->encseq,sfi->readmode,
                                    sfi->prefixlength,
                                    sfi->numofchars);
    while (gt_Enumcodeatposition_next(&specialcontext,ecp))
    {
      if (prefixindex <= specialcontext.maxprefixindex)
      {
        if (gt_Enumcodeatposition_filledqgramcodestopatmax(
                                            &code,
                                            ecp,
                                            prefixindex,
                                            specialcontext.position-prefixindex,
                                            sfi->currentmaxcode))
        {
          gt_assert(code <= sfi->currentmaxcode);
          if (code >= sfi->currentmincode)
          {
            gt_bcktab_updatespecials(sfi->bcktab,code,prefixindex);
            gt_assert(code > 0);
            stidx = gt_bcktab_leftborder_insertionindex(sfi->leftborder,code);
            /* from right to left */
            gt_suffixsortspace_set(sfi->suffixsortspace,0,stidx,
                                   specialcontext.position - prefixindex);
          }
        }
      }
    }
    gt_Enumcodeatposition_delete(ecp);
    ecp = NULL;
  }
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movl $0x1, 0x24(%rsp)
movl 0x24(%rsp), %eax
movq 0x30(%rsp), %rcx
cmpl 0x24(%rcx), %eax
jae 0x2e78f0
movq 0x30(%rsp), %rax
movq (%rax), %rdi
movq 0x30(%rsp), %rax
movl 0x8(%rax), %esi
movq 0x30(%rsp), %rax
movl 0x24(%rax), %edx
movq 0x30(%rsp), %rax
movl 0x20(%rax), %ecx
callq 0x2c56f0
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rsi
movq %rsp, %rdi
callq 0x2c5860
testb $0x1, %al
jne 0x2e7783
jmp 0x2e78cd
movl 0x24(%rsp), %eax
cmpl (%rsp), %eax
ja 0x2e78c8
movq 0x10(%rsp), %rsi
movl 0x24(%rsp), %edx
movq 0x8(%rsp), %rcx
movl 0x24(%rsp), %eax
subq %rax, %rcx
movq 0x30(%rsp), %rax
movq 0xa0(%rax), %r8
leaq 0x28(%rsp), %rdi
callq 0x2c5ce0
testb $0x1, %al
jne 0x2e77c4
jmp 0x2e78c6
jmp 0x2e77c6
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rcx
cmpq 0xa0(%rcx), %rax
jbe 0x2e7811
movq 0x3547c0(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x22e829(%rip), %rsi    # 0x516013
leaq 0x2a65c9(%rip), %rdx    # 0x58ddba
leaq 0x2a65de(%rip), %rcx    # 0x58ddd6
leaq 0x2a5a35(%rip), %r8     # 0x58d234
movl $0x1f4, %r9d            # imm = 0x1F4
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2e7813
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rcx
cmpq 0x98(%rcx), %rax
jb 0x2e78c4
movq 0x30(%rsp), %rax
movq 0x78(%rax), %rdi
movq 0x28(%rsp), %rsi
movl 0x24(%rsp), %edx
callq 0x205410
cmpq $0x0, 0x28(%rsp)
ja 0x2e7881
movq 0x354750(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x22e7b9(%rip), %rsi    # 0x516013
leaq 0x2a643b(%rip), %rdx    # 0x58dc9c
leaq 0x2a656e(%rip), %rcx    # 0x58ddd6
leaq 0x2a59c5(%rip), %r8     # 0x58d234
movl $0x1f8, %r9d            # imm = 0x1F8
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2e7883
movq 0x30(%rsp), %rax
movq 0x80(%rax), %rdi
movq 0x28(%rsp), %rsi
callq 0x2e2960
movq %rax, 0x18(%rsp)
movq 0x30(%rsp), %rax
movq 0x90(%rax), %rdi
movq 0x18(%rsp), %rdx
movq 0x8(%rsp), %rcx
movl 0x24(%rsp), %eax
subq %rax, %rcx
xorl %eax, %eax
movl %eax, %esi
callq 0x2ea0a0
jmp 0x2e78c6
jmp 0x2e78c8
jmp 0x2e776d
movq 0x10(%rsp), %rdi
callq 0x2c5b00
movq $0x0, 0x10(%rsp)
movl 0x24(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x24(%rsp)
jmp 0x2e7731
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)