// File: /workspace/github_c_makefile_star2_O3/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 0x1eff10
cmpl %eax, %ebp
jae 0x1f8dbd
movl 0xb0(%rbx), %edi
testl %edi, %edi
jne 0x1f8c3f
xorl %edi, %edi
cmpb $0x1, 0x60(%rbx)
jne 0x1f8c3f
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
je 0x1f957f
leaq 0xc8(%rbx), %r14
callq 0x18c2f5
movq %r14, %rdi
movq %rax, %rsi
callq 0x10ba28
movl 0xb0(%rbx), %edi
movq 0x68(%rbx), %rsi
callq 0x1ef78e
movq %rax, 0x98(%rbx)
movl 0xb0(%rbx), %edi
movq 0x68(%rbx), %rsi
callq 0x1ef7b6
movq %rax, 0xa0(%rbx)
movl 0xb0(%rbx), %edi
movq 0x68(%rbx), %rsi
callq 0x1efec9
movq %rax, 0xa8(%rbx)
movq 0xd8(%rbx), %rdi
testq %rdi, %rdi
je 0x1f8c9d
movq 0x2c024a(%rip), %rax    # 0x4b8ed8
movq (%rax), %rdx
leaq 0x1c2001(%rip), %rsi    # 0x3bac99
callq 0x11cc90
movq %r12, 0x28(%rsp)
movq %r15, 0x30(%rsp)
movq 0x68(%rbx), %rdi
callq 0x1eff10
cmpl $0x2, %eax
jb 0x1f8d45
movq 0xd0(%rbx), %r14
movl 0xb0(%rbx), %ebp
movq 0x68(%rbx), %rsi
movl %ebp, %edi
callq 0x1efec9
movq 0x98(%rbx), %r9
movq 0xa0(%rbx), %r10
movq %r10, %r8
subq %r9, %r8
incq %r8
subq $0x8, %rsp
leaq 0x1c1fc6(%rip), %rsi    # 0x3bacb9
movq %r14, %rdi
movl %ebp, %edx
movq %rax, %rcx
xorl %eax, %eax
pushq %r10
callq 0x103fe1
addq $0x10, %rsp
movq 0x78(%rbx), %rdi
movq 0x98(%rbx), %rsi
movq 0xa0(%rbx), %rdx
callq 0x18afb7
movq 0x158(%rbx), %rdi
testq %rdi, %rdi
je 0x1f8d45
movq 0x98(%rbx), %rsi
movq 0xa0(%rbx), %rdx
callq 0x1ef1ac
movq %rax, 0x130(%rbx)
movq 0x68(%rbx), %rsi
movq 0x90(%rbx), %r14
movl 0xb0(%rbx), %edi
callq 0x1efea1
movq %r14, %rdi
movq %rax, %rsi
callq 0x1fcb2b
cmpl $0x0, 0x50(%rbx)
je 0x1f8e04
movq 0x90(%rbx), %rdi
xorl %esi, %esi
callq 0x1fc8da
movq %rax, 0x118(%rbx)
cmpl $0x2, 0x24(%rbx)
jb 0x1f8da1
movq (%rbx), %rdi
callq 0xe935b
testb %al, %al
je 0x1f8da1
cmpb $0x0, 0x59(%rbx)
je 0x1f90ea
movq (%rbx), %rdi
movl 0x8(%rbx), %esi
movl 0x24(%rbx), %edx
cmpb $0x1, 0x56(%rbx)
jne 0x1f8df0
movq %rbx, %rcx
callq 0x1f6a30
jmp 0x1f92f5
cmpb $0x1, 0xc0(%rbx)
jne 0x1f8dd8
cmpb $0x1, 0x60(%rbx)
jne 0x1f8dd1
callq 0x10bf8a
xorl %eax, %eax
jmp 0x1f953b
cmpl $0x0, 0x50(%rbx)
je 0x1f8f6f
movb $0x1, 0xc0(%rbx)
xorl %eax, %eax
jmp 0x1f8fb6
leaq -0x2368(%rip), %rcx     # 0x1f6a8f
movq %rbx, %r8
callq 0x1eebc6
jmp 0x1f92f5
cmpb $0x1, 0x55(%rbx)
jne 0x1f8fcc
movq 0x68(%rbx), %rdi
callq 0x1eff10
movl %eax, (%rsp)
cmpl $0x2, 0x24(%rbx)
jb 0x1f8d70
movq 0x100(%rbx), %rax
movl $0x1, %r12d
testq %rax, %rax
jne 0x1f8e3f
xorl %eax, %eax
xorl %edi, %edi
jmp 0x1f8f4b
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 0x1f8ef5
movq %rdi, %rbp
movq 0x78(%rbx), %rdi
shrl $0x4, %esi
movl %r12d, %edx
callq 0x18bf5e
movq %rbp, %rdi
cmpq 0x98(%rbx), %rax
jb 0x1f8ef5
movq %rax, %r14
cmpq 0xa0(%rbx), %rax
ja 0x1f8ef5
movq 0x78(%rbx), %rdi
movq %r14, %rsi
movl %r12d, %edx
callq 0x18bcf8
movq 0x80(%rbx), %rax
testq %rax, %rax
je 0x1f955c
movq 0x8(%rax), %rcx
testq %rcx, %rcx
je 0x1f8ebf
movq (%rcx,%r14,8), %rdx
decq %rdx
movq %rdx, (%rcx,%r14,8)
jmp 0x1f8ed5
movq (%rax), %rax
testq %rax, %rax
je 0x1f9566
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 0x1fc9e1
movq %rbp, %rdi
cmpl $0x1, (%rsp)
jne 0x1f8f34
movl 0x24(%rbx), %eax
decl %eax
cmpq %rax, %r12
jae 0x1f8f34
movq 0x108(%rbx), %rax
movl (%rax,%r13), %ecx
andl $0xf, %ecx
cmpq %rcx, %r12
jae 0x1f8f34
cmpq %r15, %rdi
jae 0x1f8f31
leaq (%rax,%r13), %rcx
movq %rdi, %rdx
shlq $0x4, %rdx
movupd (%rcx), %xmm0
movupd %xmm0, (%rax,%rdx)
incq %rdi
incq %r15
movq 0x100(%rbx), %rax
addq $0x10, %r13
cmpq %rax, %r15
jb 0x1f8e47
cmpl $0x1, (%rsp)
jne 0x1f8f5b
movq %rdi, 0x100(%rbx)
movq %rdi, %rax
incq %r12
movl 0x24(%rbx), %ecx
cmpq %rcx, %r12
jb 0x1f8e31
jmp 0x1f8d70
movq 0x18(%rbx), %rsi
movq 0x90(%rbx), %rdi
subq 0x10(%rbx), %rsi
callq 0x1fcb2b
movq 0x90(%rbx), %rdi
movl 0x8(%rbx), %esi
movq 0xe8(%rbx), %rdx
movq 0x18(%rbx), %rcx
movq 0xe0(%rbx), %r8
callq 0x1fcd3e
movb %al, 0xc0(%rbx)
movq 0xe0(%rbx), %rdi
callq 0x1fcd17
movq %rax, (%r12)
testq %r15, %r15
je 0x1f9534
movb $0x1, (%r15)
jmp 0x1f9534
movl 0x24(%rbx), %edx
cmpl $0x2, %edx
jb 0x1f8d70
movl $0x1, %r12d
leaq 0x38(%rsp), %r13
leaq 0x10(%rsp), %rbp
movq (%rbx), %rdi
movl 0x8(%rbx), %esi
movl 0x20(%rbx), %ecx
callq 0x1ec080
movq %rax, %r15
movq %r13, %rdi
movq %rax, %rsi
callq 0x1ec12d
testb %al, %al
je 0x1f90ce
movl 0x38(%rsp), %eax
cmpq %rax, %r12
ja 0x1f90c3
movq 0x40(%rsp), %rcx
subq %r12, %rcx
movq 0xa0(%rbx), %r8
movq %rbp, %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0x1ec2d8
testb %al, %al
je 0x1f90c3
movq 0x10(%rsp), %rsi
cmpq 0xa0(%rbx), %rsi
ja 0x1f954d
cmpq 0x98(%rbx), %rsi
jb 0x1f90c3
movq 0x78(%rbx), %rdi
movl %r12d, %edx
callq 0x18bcf8
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x1f9552
movq 0x80(%rbx), %rcx
testq %rcx, %rcx
je 0x1f9557
movq 0x8(%rcx), %rsi
testq %rsi, %rsi
je 0x1f9099
movq (%rsi,%rax,8), %rdx
decq %rdx
movq %rdx, (%rsi,%rax,8)
jmp 0x1f90ad
movq (%rcx), %rcx
testq %rcx, %rcx
je 0x1f9561
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 0x1fc9e1
movq %r13, %rdi
movq %r15, %rsi
jmp 0x1f8fff
movq %r15, %rdi
callq 0x1ec21f
incq %r12
movl 0x24(%rbx), %edx
cmpq %rdx, %r12
jb 0x1f8fe8
jmp 0x1f8d70
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 0x1f910c
movl 0x24(%rbx), %r12d
movl 0x8(%rbx), %eax
movl %eax, 0x8(%rsp)
movq %r15, %rdi
callq 0xed62d
movq %rax, 0x38(%rsp)
movq %r15, %rdi
callq 0xe7b9c
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 0xf6567
movl %eax, %r12d
movb %al, 0x78(%rsp)
movq %rbp, %rax
subq %r13, %rax
movq %rax, 0x58(%rsp)
movq %r15, %rdi
callq 0xe7bac
movq %rax, 0x60(%rsp)
movq %r15, 0x80(%rsp)
movq %rbp, (%rsp)
testb %r12b, %r12b
je 0x1f91bb
testb $0x1, (%rsp)
je 0x1f9584
shrq %r14
movq %r14, %rbp
movq %rbp, 0x50(%rsp)
movq %r15, %rdi
callq 0xeacd6
testb %al, %al
je 0x1f9248
movl 0x8(%rsp), %ebp
movl %ebp, %eax
andl $-0x3, %eax
movl %eax, 0x24(%rsp)
cmpl $0x1, %eax
movq (%rsp), %r14
jne 0x1f925d
xorl %r13d, %r13d
movq %r15, %rdi
xorl %esi, %esi
callq 0xeae2c
movq %rax, %r15
leaq 0x10(%rsp), %rsi
movq %rax, %rdi
callq 0xeae9a
testb %al, %al
je 0x1f92c7
xorl %r13d, %r13d
movq %r14, %r12
movq 0x18(%rsp), %rcx
cmpq %r12, %rcx
ja 0x1f956b
leaq 0x38(%rsp), %rdi
movl %ebp, %esi
movq %rbx, %rdx
movq %r12, %r8
callq 0x1fbb8c
movq 0x10(%rsp), %r12
movq %r15, %rdi
leaq 0x10(%rsp), %rsi
callq 0xeae9a
testb %al, %al
jne 0x1f920d
jmp 0x1f92ca
movl 0x8(%rsp), %ebp
movl %ebp, %eax
andl $-0x3, %eax
xorl %r13d, %r13d
movq (%rsp), %r14
movq %r14, %r12
jmp 0x1f92d6
movq %r15, %rdi
movl $0x1, %esi
callq 0xeae2c
movq %rax, %r15
leaq 0x10(%rsp), %rsi
movq %rax, %rdi
callq 0xeae9a
xorl %r13d, %r13d
testb %al, %al
je 0x1f92c7
leaq 0x10(%rsp), %r12
movq 0x10(%rsp), %r8
cmpq %r13, %r8
jb 0x1f9570
leaq 0x38(%rsp), %rdi
movl %ebp, %esi
movq %rbx, %rdx
movq %r13, %rcx
callq 0x1fbb8c
movq 0x18(%rsp), %r13
movq %r15, %rdi
movq %r12, %rsi
callq 0xeae9a
testb %al, %al
jne 0x1f9286
movq %r14, %r12
cmpq %r13, %r14
jae 0x1f92ca
callq 0x7cc21
movq %r14, %r12
movq %r15, %rdi
callq 0xeb455
movl 0x24(%rsp), %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 0x1fbb8c
movq 0x90(%rbx), %rdi
callq 0x1fc94f
movq 0xd8(%rbx), %rdi
testq %rdi, %rdi
je 0x1f9323
movq 0x2bfbc4(%rip), %rax    # 0x4b8ed8
movq (%rax), %rdx
leaq 0x1c19d3(%rip), %rsi    # 0x3bacf1
callq 0x11cc90
movl 0xb0(%rbx), %edi
movq 0x68(%rbx), %rsi
callq 0x1ef762
movq %rax, %r15
movq 0x68(%rbx), %rdi
callq 0x1eff10
cmpl $0x1, %eax
jne 0x1f9383
cmpq $0x0, 0xb8(%rbx)
jne 0x1f9383
cmpl $0x2, 0x24(%rbx)
jb 0x1f9383
xorl %r12d, %r12d
cmpl $0x0, 0x50(%rbx)
jne 0x1f9386
leaq 0x2c0ab5(%rip), %rax    # 0x4b9e18
cmpl $0x1, (%rax)
jne 0x1f9386
movq 0x78(%rbx), %rdi
movq (%rbx), %rsi
movl 0x8(%rbx), %edx
movl 0x20(%rbx), %r8d
movq %r15, %rcx
callq 0x1e7728
movq %rax, %r12
jmp 0x1f9386
xorl %r12d, %r12d
leaq 0x28(%rbx), %rbp
cmpl $0x0, 0xb0(%rbx)
jne 0x1f93dc
movq 0xd0(%rbx), %r14
movq %rbp, %rdi
callq 0x1e2ee0
movq %rax, %xmm1
punpckldq 0x14e531(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x14e539(%rip), %xmm1   # 0x3478f0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x14e535(%rip), %xmm0   # 0x347900
leaq 0x1c1933(%rip), %rsi    # 0x3bad05
movq %r14, %rdi
movb $0x1, %al
callq 0x103fe1
cmpb $0x0, 0x58(%rbx)
jne 0x1f94ef
cmpq $0x0, 0x88(%rbx)
movl 0x4c(%rbx), %r14d
je 0x1f941c
testl %r14d, %r14d
jne 0x1f9575
movl 0x48(%rbx), %r14d
testl %r14d, %r14d
je 0x1f957a
leaq 0x2729(%rip), %rax      # 0x1fbb3a
movq %rax, (%rsp)
movq %rbx, 0x8(%rsp)
jmp 0x1f942d
movq $0x0, 0x8(%rsp)
movq $0x0, (%rsp)
movq 0x78(%rbx), %rdi
movq 0x98(%rbx), %rsi
movq 0xa0(%rbx), %rdx
movq %r15, %rcx
callq 0x18bf91
leaq 0x2c09ca(%rip), %rax    # 0x4b9e18
cmpl $0x2, (%rax)
movq 0x90(%rbx), %rdi
movq (%rbx), %rcx
movl 0x8(%rbx), %r10d
movl 0x20(%rbx), %r11d
movl 0x24(%rbx), %r13d
jb 0x1f94a6
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 0x10(%rsp)
pushq 0x10(%rsp)
pushq %rbp
pushq %r14
pushq %r13
pushq %r11
pushq %r15
callq 0x1e4d00
addq $0x40, %rsp
jmp 0x1f94ef
movq 0x98(%rbx), %r9
leaq 0xc8(%rbx), %rax
subq $0x8, %rsp
movq %r15, %rsi
movq %r12, %rdx
movl %r10d, %r8d
pushq 0xd0(%rbx)
pushq %rax
pushq 0x20(%rsp)
pushq 0x20(%rsp)
pushq %rbp
pushq %r14
pushq 0xb8(%rbx)
pushq %r13
pushq %r11
pushq 0x78(%rbx)
pushq 0xa0(%rbx)
callq 0x1e2f11
addq $0x60, %rsp
testq %r12, %r12
je 0x1f9512
movq 0x90(%rbx), %rsi
movq 0xd0(%rbx), %rdx
movq %r12, %rdi
callq 0x1e7e24
movq %r12, %rdi
callq 0x1e83a4
incl 0xb0(%rbx)
movq 0xa8(%rbx), %rax
movq 0x28(%rsp), %rcx
movq %rax, (%rcx)
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0x1f9534
movb $0x0, (%rax)
movq 0x90(%rbx), %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x7cb7a
callq 0x7cb41
callq 0x7cb0a
callq 0x7cbea
callq 0x7cad3
callq 0x7cbb3
callq 0x7cc93
callq 0x7cc5a
callq 0x7cd05
callq 0x7cd3e
callq 0x7cd77
callq 0x7cccc