// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/match/sfx-suffixer.c
// Function: gt_Sfxiterator_next
const GtSuffixsortspace *gt_Sfxiterator_next(GtUword *numberofsuffixes,
                                             bool *specialsuffixes,
                                             Sfxiterator *sfi)
{
  if (sfi->part < gt_suftabparts_numofparts(sfi->suftabparts))
  {
    gt_sfxiterator_preparethispart(sfi);
    *numberofsuffixes = sfi->widthofpart;
    if (specialsuffixes != NULL)
    {
      *specialsuffixes = false;
    }
    return sfi->suffixsortspace;
  }
  if (sfi->exhausted)
  {
    if (sfi->withprogressbar)
    {
      gt_progressbar_stop();
    }
    return NULL;
  }
  if (sfi->sfxstrategy.spmopt_minlength == 0)
  {
    gt_suffixsortspace_partoffset_set(sfi->suffixsortspace,
                                      sfi->totallength-sfi->specialcharacters);
    sfi->exhausted = gt_SSSPbuf_fillspecialnextpage(sfi->suffixsortspace,
                                                    sfi->readmode,
                                                    sfi->sri,
                                                    sfi->totallength,
                                                    sfi->sssp_buf);
    *numberofsuffixes = gt_SSSPbuf_filled(sfi->sssp_buf);
  } else
  {
    sfi->exhausted = true;
    *numberofsuffixes = 0;
  }
  if (specialsuffixes != NULL)
  {
    *specialsuffixes = true;
  }
  return sfi->suffixsortspace;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
movl 0xb0(%rdx), %ebp
movq 0x68(%rdx), %rdi
callq 0x1f969d
cmpl %eax, %ebp
jae 0x2024dc
cmpl $0x0, 0xb0(%rbx)
jne 0x202358
cmpb $0x1, 0x60(%rbx)
jne 0x202358
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
je 0x202ca5
leaq 0xc8(%rbx), %r14
callq 0x1949a8
movq %r14, %rdi
movq %rax, %rsi
callq 0x110c6c
movl 0xb0(%rbx), %edi
movq 0x68(%rbx), %rsi
callq 0x1f8f44
movq %rax, 0x98(%rbx)
movl 0xb0(%rbx), %edi
movq 0x68(%rbx), %rsi
callq 0x1f8f6c
movq %rax, 0xa0(%rbx)
movl 0xb0(%rbx), %edi
movq 0x68(%rbx), %rsi
callq 0x1f9656
movq %rax, 0xa8(%rbx)
movq 0xd8(%rbx), %rdi
testq %rdi, %rdi
je 0x2023bc
movq 0x2c1b3b(%rip), %rax    # 0x4c3ee8
movq (%rax), %rdx
leaq 0x1c1f52(%rip), %rsi    # 0x3c4309
callq 0x1229c8
movq %r12, 0x28(%rsp)
movq %r15, 0x30(%rsp)
movq 0x68(%rbx), %rdi
callq 0x1f969d
cmpl $0x2, %eax
jb 0x202464
movq 0xd0(%rbx), %r14
movl 0xb0(%rbx), %ebp
movq 0x68(%rbx), %rsi
movl %ebp, %edi
callq 0x1f9656
movq 0x98(%rbx), %r9
movq 0xa0(%rbx), %r10
movq %r10, %r8
subq %r9, %r8
incq %r8
subq $0x8, %rsp
leaq 0x1c1f17(%rip), %rsi    # 0x3c4329
movq %r14, %rdi
movl %ebp, %edx
movq %rax, %rcx
xorl %eax, %eax
pushq %r10
callq 0x10906e
addq $0x10, %rsp
movq 0x78(%rbx), %rdi
movq 0x98(%rbx), %rsi
movq 0xa0(%rbx), %rdx
callq 0x19360b
movq 0x158(%rbx), %rdi
testq %rdi, %rdi
je 0x202464
movq 0x98(%rbx), %rsi
movq 0xa0(%rbx), %rdx
callq 0x1f896a
movq %rax, 0x130(%rbx)
movq 0x68(%rbx), %rsi
movq 0x90(%rbx), %r14
movl 0xb0(%rbx), %edi
callq 0x1f962e
movq %r14, %rdi
movq %rax, %rsi
callq 0x206229
cmpl $0x0, 0x50(%rbx)
je 0x202523
movq 0x90(%rbx), %rdi
xorl %esi, %esi
callq 0x205fd8
movq %rax, 0x118(%rbx)
cmpl $0x2, 0x24(%rbx)
jb 0x2024c0
movq (%rbx), %rdi
callq 0xed91a
testb %al, %al
je 0x2024c0
cmpb $0x0, 0x59(%rbx)
je 0x202803
movq (%rbx), %rdi
movl 0x8(%rbx), %esi
movl 0x24(%rbx), %edx
cmpb $0x1, 0x56(%rbx)
jne 0x20250f
movq %rbx, %rcx
callq 0x2001c2
jmp 0x202a03
cmpb $0x1, 0xc0(%rbx)
jne 0x2024f7
cmpb $0x1, 0x60(%rbx)
jne 0x2024f0
callq 0x111189
xorl %eax, %eax
jmp 0x202c61
cmpl $0x0, 0x50(%rbx)
je 0x202688
movb $0x1, 0xc0(%rbx)
xorl %eax, %eax
jmp 0x2026cf
leaq -0x22f5(%rip), %rcx     # 0x200221
movq %rbx, %r8
callq 0x1f8393
jmp 0x202a03
cmpb $0x1, 0x55(%rbx)
jne 0x2026e5
movq 0x68(%rbx), %rdi
callq 0x1f969d
movl %eax, 0x8(%rsp)
cmpl $0x2, 0x24(%rbx)
jb 0x20248f
movl $0x1, %r12d
cmpq $0x0, 0x100(%rbx)
je 0x202664
xorl %r13d, %r13d
xorl %r15d, %r15d
xorl %edi, %edi
movq 0x108(%rbx), %rax
movl (%rax,%r13), %esi
movl %esi, %ecx
andl $0xf, %ecx
cmpq %rcx, %r12
ja 0x20260e
movq %rdi, %rbp
movq 0x78(%rbx), %rdi
shrl $0x4, %esi
movl %r12d, %edx
callq 0x1945d9
movq %rbp, %rdi
cmpq 0x98(%rbx), %rax
jb 0x20260e
movq %rax, %r14
cmpq 0xa0(%rbx), %rax
ja 0x20260e
movq 0x78(%rbx), %rdi
movq %r14, %rsi
movl %r12d, %edx
callq 0x19436f
movq 0x80(%rbx), %rax
testq %rax, %rax
je 0x202c78
movq 0x8(%rax), %rcx
testq %rcx, %rcx
je 0x2025d8
movq (%rcx,%r14,8), %rdx
decq %rdx
movq %rdx, (%rcx,%r14,8)
jmp 0x2025ee
movq (%rax), %rax
testq %rax, %rax
je 0x202c87
movl (%rax,%r14,4), %edx
decl %edx
movl %edx, (%rax,%r14,4)
movq 0x90(%rbx), %rdi
movq 0x108(%rbx), %rax
movq 0x8(%rax,%r13), %rcx
subq %r12, %rcx
xorl %esi, %esi
callq 0x2060df
movq %rbp, %rdi
cmpl $0x1, 0x8(%rsp)
jne 0x20264e
movl 0x24(%rbx), %eax
decl %eax
cmpq %rax, %r12
jae 0x20264e
movq 0x108(%rbx), %rax
movl (%rax,%r13), %ecx
andl $0xf, %ecx
cmpq %rcx, %r12
jae 0x20264e
cmpq %r15, %rdi
jae 0x20264b
leaq (%rax,%r13), %rcx
movq %rdi, %rdx
shlq $0x4, %rdx
movupd (%rcx), %xmm0
movupd %xmm0, (%rax,%rdx)
incq %rdi
incq %r15
addq $0x10, %r13
cmpq 0x100(%rbx), %r15
jb 0x202560
jmp 0x202666
xorl %edi, %edi
cmpl $0x1, 0x8(%rsp)
jne 0x202674
movq %rdi, 0x100(%rbx)
incq %r12
movl 0x24(%rbx), %eax
cmpq %rax, %r12
jb 0x20254a
jmp 0x20248f
movq 0x18(%rbx), %rsi
movq 0x90(%rbx), %rdi
subq 0x10(%rbx), %rsi
callq 0x206229
movq 0x90(%rbx), %rdi
movl 0x8(%rbx), %esi
movq 0xe8(%rbx), %rdx
movq 0x18(%rbx), %rcx
movq 0xe0(%rbx), %r8
callq 0x20643d
movb %al, 0xc0(%rbx)
movq 0xe0(%rbx), %rdi
callq 0x206416
movq %rax, (%r12)
testq %r15, %r15
je 0x202c5a
movb $0x1, (%r15)
jmp 0x202c5a
movl 0x24(%rbx), %edx
cmpl $0x2, %edx
jb 0x20248f
movl $0x1, %r12d
leaq 0x38(%rsp), %r13
leaq 0x18(%rsp), %rbp
movq (%rbx), %rdi
movl 0x8(%rbx), %esi
movl 0x20(%rbx), %ecx
callq 0x1f5868
movq %rax, %r15
movq %r13, %rdi
movq %rax, %rsi
callq 0x1f5915
testb %al, %al
je 0x2027e7
movl 0x38(%rsp), %eax
cmpq %rax, %r12
ja 0x2027dc
movq 0x40(%rsp), %rcx
subq %r12, %rcx
movq 0xa0(%rbx), %r8
movq %rbp, %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0x1f5ac0
testb %al, %al
je 0x2027dc
movq 0x18(%rsp), %rsi
cmpq 0xa0(%rbx), %rsi
ja 0x202c73
cmpq 0x98(%rbx), %rsi
jb 0x2027dc
movq 0x78(%rbx), %rdi
movl %r12d, %edx
callq 0x19436f
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x202c7d
movq 0x80(%rbx), %rcx
testq %rcx, %rcx
je 0x202c82
movq 0x8(%rcx), %rsi
testq %rsi, %rsi
je 0x2027b2
movq (%rsi,%rax,8), %rdx
decq %rdx
movq %rdx, (%rsi,%rax,8)
jmp 0x2027c6
movq (%rcx), %rcx
testq %rcx, %rcx
je 0x202c8c
movl (%rcx,%rax,4), %edx
decl %edx
movl %edx, (%rcx,%rax,4)
movq 0x90(%rbx), %rdi
movq 0x40(%rsp), %rcx
subq %r12, %rcx
xorl %esi, %esi
callq 0x2060df
movq %r13, %rdi
movq %r15, %rsi
jmp 0x202718
movq %r15, %rdi
callq 0x1f5a07
incq %r12
movl 0x24(%rbx), %edx
cmpq %rdx, %r12
jb 0x202701
jmp 0x20248f
movq (%rbx), %r15
movl 0x50(%rbx), %r12d
leaq 0x120(%rbx), %rax
leaq 0x24(%rbx), %rcx
testl %r12d, %r12d
cmoveq %rcx, %rax
movl (%rax), %r13d
jne 0x202825
movl 0x24(%rbx), %r12d
movl 0x8(%rbx), %eax
movl %eax, 0x10(%rsp)
movq %r15, %rdi
callq 0xf1c71
movq %rax, 0x38(%rsp)
movq %r15, %rdi
callq 0xec1d8
movq %rax, %rbp
leaq -0x1(%rax), %r14
movq %r14, %rax
shrq $0x5, %rax
incq %rax
cmpq $0x20, %rbp
movl $0x1, %edx
cmovaeq %rax, %rdx
movq %rbp, 0x40(%rsp)
leal (,%r13,2), %ecx
negb %cl
movq $-0x1, %rax
shrq %cl, %rax
movq %rdx, 0x48(%rsp)
movq %rax, 0x68(%rsp)
movl %r13d, 0x70(%rsp)
movl %r12d, 0x74(%rsp)
movq %r15, %rdi
callq 0xfac80
movl %eax, %r12d
movb %al, 0x78(%rsp)
movq %rbp, %rax
subq %r13, %rax
movq %rax, 0x58(%rsp)
movq %r15, %rdi
callq 0xec1e8
movq %rax, 0x60(%rsp)
movq %r15, 0x80(%rsp)
movq %rbp, 0x8(%rsp)
testb %r12b, %r12b
je 0x2028d6
testb $0x1, 0x8(%rsp)
je 0x202caa
shrq %r14
movq %r14, %rbp
movq %rbp, 0x50(%rsp)
movq %r15, %rdi
callq 0xef27f
testb %al, %al
je 0x20295d
movl 0x10(%rsp), %ebp
movl %ebp, %eax
andl $-0x3, %eax
cmpl $0x1, %eax
movq 0x8(%rsp), %r14
jne 0x20296e
xorl %r13d, %r13d
movq %r15, %rdi
xorl %esi, %esi
callq 0xef3d9
movq %rax, %r15
leaq 0x18(%rsp), %rsi
movq %rax, %rdi
callq 0xef451
testb %al, %al
je 0x2029cb
xorl %r13d, %r13d
movq %r14, %r12
movq 0x20(%rsp), %rcx
cmpq %r12, %rcx
ja 0x202c96
leaq 0x38(%rsp), %rdi
movl %ebp, %esi
movq %rbx, %rdx
movq %r12, %r8
callq 0x2052a6
movq 0x18(%rsp), %r12
movq %r15, %rdi
leaq 0x18(%rsp), %rsi
callq 0xef451
testb %al, %al
jne 0x202925
jmp 0x2029ce
xorl %r13d, %r13d
movq 0x8(%rsp), %r14
movq %r14, %r12
movl 0x10(%rsp), %ebp
jmp 0x2029df
movq %r15, %rdi
movl $0x1, %esi
callq 0xef3d9
movq %rax, %r15
leaq 0x18(%rsp), %rsi
movq %rax, %rdi
callq 0xef451
xorl %r13d, %r13d
testb %al, %al
je 0x2029cb
leaq 0x18(%rsp), %r12
movq 0x18(%rsp), %r8
cmpq %r13, %r8
jb 0x202c9b
leaq 0x38(%rsp), %rdi
movl %ebp, %esi
movq %rbx, %rdx
movq %r13, %rcx
callq 0x2052a6
movq 0x20(%rsp), %r13
movq %r15, %rdi
movq %r12, %rsi
callq 0xef451
testb %al, %al
jne 0x202997
movq %r14, %r12
cmpq %r13, %r14
jb 0x202caf
movq %r15, %rdi
callq 0xefa48
movl %ebp, %eax
andl $-0x3, %eax
xorl %ecx, %ecx
cmpl $0x1, %eax
cmovneq %r13, %rcx
cmoveq %r12, %r14
leaq 0x38(%rsp), %rdi
movl %ebp, %esi
movq %rbx, %rdx
movq %r14, %r8
callq 0x2052a6
movq 0x90(%rbx), %rdi
callq 0x20604d
movq 0xd8(%rbx), %rdi
testq %rdi, %rdi
je 0x202a31
movq 0x2c14c6(%rip), %rax    # 0x4c3ee8
movq (%rax), %rdx
leaq 0x1c1935(%rip), %rsi    # 0x3c4361
callq 0x1229c8
movl 0xb0(%rbx), %edi
movq 0x68(%rbx), %rsi
callq 0x1f8f18
movq %rax, %r14
movq 0x68(%rbx), %rdi
callq 0x1f969d
cmpl $0x1, %eax
jne 0x202a91
cmpq $0x0, 0xb8(%rbx)
jne 0x202a91
cmpl $0x2, 0x24(%rbx)
jb 0x202a91
xorl %r12d, %r12d
cmpl $0x0, 0x50(%rbx)
jne 0x202a94
leaq 0x2c23a7(%rip), %rax    # 0x4c4e18
cmpl $0x1, (%rax)
jne 0x202a94
movq 0x78(%rbx), %rdi
movq (%rbx), %rsi
movl 0x8(%rbx), %edx
movl 0x20(%rbx), %r8d
movq %r14, %rcx
callq 0x1f0e7c
movq %rax, %r12
jmp 0x202a94
xorl %r12d, %r12d
leaq 0x28(%rbx), %rbp
cmpl $0x0, 0xb0(%rbx)
jne 0x202af0
movq %r14, %r15
movq 0xd0(%rbx), %r14
movq %rbp, %rdi
callq 0x1ec770
movq %rax, %xmm1
punpckldq 0x14de20(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x14de28(%rip), %xmm1   # 0x3508f0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x14de24(%rip), %xmm0   # 0x350900
leaq 0x1c1892(%rip), %rsi    # 0x3c4375
movq %r14, %rdi
movq %r15, %r14
movb $0x1, %al
callq 0x10906e
cmpb $0x0, 0x58(%rbx)
jne 0x202c15
movq 0x88(%rbx), %rax
leaq 0x4c(%rbx), %rcx
testq %rax, %rax
je 0x202b2a
cmpl $0x0, (%rcx)
jne 0x202ca0
leaq 0x48(%rbx), %rcx
leaq 0x2736(%rip), %rdx      # 0x205254
movq %rdx, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
jmp 0x202b3c
movq $0x0, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
testq %rax, %rax
sete %al
movl (%rcx), %r15d
testl %r15d, %r15d
setne %cl
orb %al, %cl
je 0x202c91
movq 0x78(%rbx), %rdi
movq 0x98(%rbx), %rsi
movq 0xa0(%rbx), %rdx
movq %r14, %rcx
callq 0x19460c
leaq 0x2c22a4(%rip), %rax    # 0x4c4e18
cmpl $0x2, (%rax)
movq 0x90(%rbx), %rdi
movq (%rbx), %rcx
movl 0x8(%rbx), %r10d
movl 0x20(%rbx), %r11d
movl 0x24(%rbx), %r13d
jb 0x202bcc
movq 0x78(%rbx), %rax
movq 0x98(%rbx), %r8
movq 0xa0(%rbx), %r9
movq %rcx, %rsi
movl %r10d, %edx
movq %rax, %rcx
pushq 0xd0(%rbx)
pushq 0x18(%rsp)
pushq 0x18(%rsp)
pushq %rbp
pushq %r15
pushq %r13
pushq %r11
pushq %r14
callq 0x1ee55a
addq $0x40, %rsp
jmp 0x202c15
movq 0x98(%rbx), %r9
leaq 0xc8(%rbx), %rax
subq $0x8, %rsp
movq %r14, %rsi
movq %r12, %rdx
movl %r10d, %r8d
pushq 0xd0(%rbx)
pushq %rax
pushq 0x28(%rsp)
pushq 0x28(%rsp)
pushq %rbp
pushq %r15
pushq 0xb8(%rbx)
pushq %r13
pushq %r11
pushq 0x78(%rbx)
pushq 0xa0(%rbx)
callq 0x1ec7a1
addq $0x60, %rsp
testq %r12, %r12
je 0x202c38
movq 0x90(%rbx), %rsi
movq 0xd0(%rbx), %rdx
movq %r12, %rdi
callq 0x1f1593
movq %r12, %rdi
callq 0x1f1b08
incl 0xb0(%rbx)
movq 0xa8(%rbx), %rax
movq 0x28(%rsp), %rcx
movq %rax, (%rcx)
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0x202c5a
movb $0x0, (%rax)
movq 0x90(%rbx), %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x7e984
callq 0x7e9f4
callq 0x7e94b
callq 0x7e914
callq 0x7e9bd
callq 0x7e8dd
callq 0x7eb48
callq 0x7ea9d
callq 0x7ea2b
callq 0x7eb0f
callq 0x7eb81
callq 0x7ead6
callq 0x7ea64