// File: /workspace/github_c_makefile_star2_O2/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 0x1a137a
cmpl %eax, %ebp
jae 0x1ab7a7
movl 0xb0(%rbx), %edi
testl %edi, %edi
jne 0x1ab62b
xorl %edi, %edi
cmpb $0x1, 0x60(%rbx)
jne 0x1ab62b
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
je 0x1abf98
leaq 0xc8(%rbx), %r14
callq 0x1359e8
movq %r14, %rdi
movq %rax, %rsi
callq 0x9c79c
movl 0xb0(%rbx), %edi
movq 0x68(%rbx), %rsi
callq 0x1a0914
movq %rax, 0x98(%rbx)
movl 0xb0(%rbx), %edi
movq 0x68(%rbx), %rsi
callq 0x1a096b
movq %rax, 0xa0(%rbx)
movl 0xb0(%rbx), %edi
movq 0x68(%rbx), %rsi
callq 0x1a129e
movq %rax, 0xa8(%rbx)
movq 0xd8(%rbx), %rdi
testq %rdi, %rdi
je 0x1ab689
movq 0x28c836(%rip), %rax    # 0x437eb0
movq (%rax), %rdx
leaq 0x1afa75(%rip), %rsi    # 0x35b0f9
callq 0xaf86f
movq %r12, 0x28(%rsp)
movq %r15, 0x30(%rsp)
movq 0x68(%rbx), %rdi
callq 0x1a137a
cmpl $0x2, %eax
jb 0x1ab72f
movq 0xd0(%rbx), %r14
movl 0xb0(%rbx), %ebp
movq 0x68(%rbx), %rsi
movl %ebp, %edi
callq 0x1a129e
movq 0x98(%rbx), %r9
movq 0xa0(%rbx), %r10
movq %r10, %r8
subq %r9, %r8
incq %r8
subq $0x8, %rsp
leaq 0x1afa3a(%rip), %rsi    # 0x35b119
movq %r14, %rdi
movl %ebp, %edx
movq %rax, %rcx
xorl %eax, %eax
pushq %r10
callq 0x92e71
popq %rax
popq %rcx
movq 0x78(%rbx), %rdi
movq 0x98(%rbx), %rsi
movq 0xa0(%rbx), %rdx
callq 0x1342ef
movq 0x158(%rbx), %rdi
testq %rdi, %rdi
je 0x1ab72f
movq 0x98(%rbx), %rsi
movq 0xa0(%rbx), %rdx
callq 0x1a010c
movq %rax, 0x130(%rbx)
movq 0x68(%rbx), %rsi
movq 0x90(%rbx), %r14
movl 0xb0(%rbx), %edi
callq 0x1a1247
movq %r14, %rdi
movq %rax, %rsi
callq 0x1afc29
cmpl $0x0, 0x50(%rbx)
je 0x1ab7ee
movq 0x90(%rbx), %rdi
xorl %esi, %esi
callq 0x1af79b
movq %rax, 0x118(%rbx)
cmpl $0x2, 0x24(%rbx)
jb 0x1ab78b
movq (%rbx), %rdi
callq 0x72478
testb %al, %al
je 0x1ab78b
cmpb $0x0, 0x59(%rbx)
je 0x1aba3b
movq (%rbx), %rdi
movl 0x8(%rbx), %esi
movl 0x24(%rbx), %edx
cmpb $0x1, 0x56(%rbx)
jne 0x1ab7da
movq %rbx, %rcx
callq 0x1a90f7
jmp 0x1abc1a
cmpb $0x1, 0xc0(%rbx)
jne 0x1ab7c2
cmpb $0x1, 0x60(%rbx)
jne 0x1ab7bb
callq 0x9cce9
xorl %eax, %eax
jmp 0x1abe62
cmpl $0x0, 0x50(%rbx)
je 0x1ab90a
movb $0x1, 0xc0(%rbx)
xorl %eax, %eax
jmp 0x1ab951
leaq -0x2683(%rip), %rcx     # 0x1a915e
movq %rbx, %r8
callq 0x19f959
jmp 0x1abc1a
cmpb $0x1, 0x55(%rbx)
jne 0x1ab967
movq 0x68(%rbx), %rdi
callq 0x1a137a
movl %eax, 0x8(%rsp)
pushq $0x1
popq %r12
movl 0x24(%rbx), %eax
cmpq %rax, %r12
jae 0x1ab75a
xorl %r13d, %r13d
xorl %edi, %edi
xorl %r15d, %r15d
cmpq 0x100(%rbx), %r15
jae 0x1ab8f4
movq 0x108(%rbx), %rax
movl (%rax,%r13), %esi
movl %esi, %ecx
andl $0xf, %ecx
cmpq %rcx, %r12
ja 0x1ab8aa
movq %rdi, %rbp
movq 0x78(%rbx), %rdi
shrl $0x4, %esi
movl %r12d, %edx
callq 0x1355b0
movq %rbp, %rdi
cmpq 0x98(%rbx), %rax
jb 0x1ab8aa
movq %rax, %r14
cmpq 0xa0(%rbx), %rax
ja 0x1ab8aa
movq 0x78(%rbx), %rdi
movq %r14, %rsi
movl %r12d, %edx
callq 0x135121
movq 0x80(%rbx), %rdi
movq %r14, %rsi
callq 0x1ac149
movq 0x90(%rbx), %rdi
movq 0x108(%rbx), %rcx
movq 0x8(%rcx,%r13), %rcx
subq %r12, %rcx
xorl %esi, %esi
movq %rax, %rdx
callq 0x1af9c7
movq %rbp, %rdi
cmpl $0x1, 0x8(%rsp)
jne 0x1ab8e8
movl 0x24(%rbx), %eax
decl %eax
cmpq %rax, %r12
jae 0x1ab8e8
movq 0x108(%rbx), %rax
movl (%rax,%r13), %ecx
andl $0xf, %ecx
cmpq %rcx, %r12
jae 0x1ab8e8
cmpq %r15, %rdi
jae 0x1ab8e5
leaq (%rax,%r13), %rcx
movq %rdi, %rdx
shlq $0x4, %rdx
movups (%rcx), %xmm0
movups %xmm0, (%rax,%rdx)
incq %rdi
incq %r15
addq $0x10, %r13
jmp 0x1ab81d
cmpl $0x1, 0x8(%rsp)
jne 0x1ab902
movq %rdi, 0x100(%rbx)
incq %r12
jmp 0x1ab809
movq 0x18(%rbx), %rsi
movq 0x90(%rbx), %rdi
subq 0x10(%rbx), %rsi
callq 0x1afc29
movq 0x90(%rbx), %rdi
movl 0x8(%rbx), %esi
movq 0xe8(%rbx), %rdx
movq 0x18(%rbx), %rcx
movq 0xe0(%rbx), %r8
callq 0x1b006b
movb %al, 0xc0(%rbx)
movq 0xe0(%rbx), %rdi
callq 0x1b0011
movq %rax, (%r12)
testq %r15, %r15
je 0x1abe5b
movb $0x1, (%r15)
jmp 0x1abe5b
leaq 0x38(%rsp), %r12
leaq 0x18(%rsp), %r13
pushq $0x1
popq %rbp
movl 0x24(%rbx), %edx
cmpq %rdx, %rbp
jae 0x1ab75a
movq (%rbx), %rdi
movl 0x8(%rbx), %esi
movl 0x20(%rbx), %ecx
callq 0x19c470
movq %rax, %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x19c518
testb %al, %al
je 0x1aba2b
movl 0x38(%rsp), %eax
cmpq %rax, %rbp
ja 0x1ab991
movq 0x40(%rsp), %rcx
subq %rbp, %rcx
movq 0xa0(%rbx), %r8
movq %r13, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x19c777
testb %al, %al
je 0x1ab991
movq 0x18(%rsp), %rsi
cmpq 0xa0(%rbx), %rsi
ja 0x1abe74
cmpq 0x98(%rbx), %rsi
jb 0x1ab991
movq 0x78(%rbx), %rdi
movl %ebp, %edx
callq 0x135121
movq 0x18(%rsp), %rsi
testq %rsi, %rsi
je 0x1abea2
movq 0x80(%rbx), %rdi
callq 0x1ac149
movq 0x90(%rbx), %rdi
movq 0x40(%rsp), %rcx
subq %rbp, %rcx
xorl %esi, %esi
movq %rax, %rdx
callq 0x1af9c7
jmp 0x1ab991
movq %r15, %rdi
callq 0x19c62f
incq %rbp
jmp 0x1ab974
movq (%rbx), %r13
movl 0x50(%rbx), %r14d
leaq 0x120(%rbx), %rax
leaq 0x24(%rbx), %rcx
testl %r14d, %r14d
cmoveq %rcx, %rax
movl (%rax), %r15d
jne 0x1aba5d
movl 0x24(%rbx), %r14d
movl 0x8(%rbx), %ebp
movq %r13, %rdi
callq 0x776db
movq %rax, 0x38(%rsp)
movq %r13, %rdi
callq 0x7055e
movq %rax, %r12
decq %rax
movq %rax, 0x10(%rsp)
shrq $0x5, %rax
incq %rax
cmpq $0x20, %r12
pushq $0x1
popq %rcx
cmovbq %rcx, %rax
movq %r12, 0x40(%rsp)
leal (%r15,%r15), %ecx
negb %cl
pushq $-0x1
popq %rdx
shrq %cl, %rdx
movq %rax, 0x48(%rsp)
movq %rdx, 0x68(%rsp)
movl %r15d, 0x70(%rsp)
movl %r14d, 0x74(%rsp)
movq %r13, %rdi
callq 0x81dea
movl %eax, %r14d
movb %al, 0x78(%rsp)
movq %r12, %rax
subq %r15, %rax
movq %rax, 0x58(%rsp)
movq %r13, %rdi
callq 0x705a1
movq %rax, 0x60(%rsp)
movq %r13, 0x80(%rsp)
movq %r12, 0x8(%rsp)
testb %r14b, %r14b
je 0x1abb03
testb $0x1, 0x8(%rsp)
je 0x1abfc9
movq 0x10(%rsp), %r12
shrq %r12
movq %r12, 0x50(%rsp)
movq %r13, %rdi
callq 0x740a6
testb %al, %al
je 0x1abb76
movl %ebp, %eax
andl $-0x3, %eax
movl %eax, 0x10(%rsp)
cmpl $0x1, %eax
jne 0x1abb88
xorl %r15d, %r15d
movq %r13, %rdi
xorl %esi, %esi
callq 0x741f0
movq %rax, %r13
leaq 0x18(%rsp), %r14
movq 0x8(%rsp), %r12
movq %r13, %rdi
movq %r14, %rsi
callq 0x7428b
testb %al, %al
je 0x1abbd7
movq 0x20(%rsp), %rcx
cmpq %r12, %rcx
ja 0x1abeda
leaq 0x38(%rsp), %rdi
movl %ebp, %esi
movq %rbx, %rdx
movq %r12, %r8
callq 0x1ae9e3
movq 0x18(%rsp), %r12
jmp 0x1abb3c
movl %ebp, %eax
andl $-0x3, %eax
xorl %r15d, %r15d
movq 0x8(%rsp), %r14
movq %r14, %r12
jmp 0x1abbfb
pushq $0x1
popq %rsi
movq %r13, %rdi
callq 0x741f0
movq %rax, %r13
xorl %r15d, %r15d
leaq 0x18(%rsp), %r12
leaq 0x38(%rsp), %r14
movq %r13, %rdi
movq %r12, %rsi
callq 0x7428b
testb %al, %al
je 0x1abbde
movq 0x18(%rsp), %r8
cmpq %r15, %r8
jb 0x1abf08
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
movq %r15, %rcx
callq 0x1ae9e3
movq 0x20(%rsp), %r15
jmp 0x1abba3
movq 0x8(%rsp), %r14
jmp 0x1abbef
movq 0x8(%rsp), %r14
movq %r14, %r12
cmpq %r15, %r14
jb 0x1abffa
movq %r13, %rdi
callq 0x74a09
movl 0x10(%rsp), %eax
xorl %ecx, %ecx
cmpl $0x1, %eax
cmovneq %r15, %rcx
cmoveq %r12, %r14
leaq 0x38(%rsp), %rdi
movl %ebp, %esi
movq %rbx, %rdx
movq %r14, %r8
callq 0x1ae9e3
movq 0x90(%rbx), %rdi
callq 0x1af869
movq 0xd8(%rbx), %rdi
testq %rdi, %rdi
je 0x1abc48
movq 0x28c277(%rip), %rax    # 0x437eb0
movq (%rax), %rdx
leaq 0x1af50e(%rip), %rsi    # 0x35b151
callq 0xaf86f
movl 0xb0(%rbx), %edi
movq 0x68(%rbx), %rsi
callq 0x1a08b9
movq %rax, %r15
movq 0x68(%rbx), %rdi
callq 0x1a137a
cmpl $0x1, %eax
jne 0x1abca8
cmpq $0x0, 0xb8(%rbx)
jne 0x1abca8
cmpl $0x2, 0x24(%rbx)
jb 0x1abca8
xorl %r12d, %r12d
cmpl $0x0, 0x50(%rbx)
jne 0x1abcab
leaq 0x28d140(%rip), %rax    # 0x438dc8
cmpl $0x1, (%rax)
jne 0x1abcab
movq 0x78(%rbx), %rdi
movq (%rbx), %rsi
movl 0x8(%rbx), %edx
movl 0x20(%rbx), %r8d
movq %r15, %rcx
callq 0x196fd0
movq %rax, %r12
jmp 0x1abcab
xorl %r12d, %r12d
leaq 0x28(%rbx), %rbp
cmpl $0x0, 0xb0(%rbx)
jne 0x1abd01
movq 0xd0(%rbx), %r14
movq %rbp, %rdi
callq 0x191f08
movq %rax, %xmm1
punpckldq 0x13bc0c(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x13bc14(%rip), %xmm1   # 0x2e78f0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x13bc10(%rip), %xmm0   # 0x2e7900
leaq 0x1af46e(%rip), %rsi    # 0x35b165
movq %r14, %rdi
movb $0x1, %al
callq 0x92e71
cmpb $0x0, 0x58(%rbx)
jne 0x1abe16
cmpq $0x0, 0x88(%rbx)
movl 0x4c(%rbx), %r14d
je 0x1abd42
testl %r14d, %r14d
jne 0x1abf36
movl 0x48(%rbx), %r14d
testl %r14d, %r14d
je 0x1abf67
leaq 0x2c28(%rip), %rax      # 0x1ae95e
movq %rax, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
jmp 0x1abd54
movq $0x0, 0x10(%rsp)
movq $0x0, 0x8(%rsp)
movq 0x78(%rbx), %rdi
movq 0x98(%rbx), %rsi
movq 0xa0(%rbx), %rdx
movq %r15, %rcx
callq 0x1355e3
leaq 0x28d053(%rip), %rax    # 0x438dc8
cmpl $0x2, (%rax)
movq 0x90(%rbx), %rdi
movq (%rbx), %rcx
movl 0x8(%rbx), %r10d
movl 0x20(%rbx), %r11d
movl 0x24(%rbx), %r13d
jb 0x1abdcd
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 %r14
pushq %r13
pushq %r11
pushq %r15
callq 0x193bcd
addq $0x40, %rsp
jmp 0x1abe16
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 0x28(%rsp)
pushq 0x28(%rsp)
pushq %rbp
pushq %r14
pushq 0xb8(%rbx)
pushq %r13
pushq %r11
pushq 0x78(%rbx)
pushq 0xa0(%rbx)
callq 0x191f39
addq $0x60, %rsp
testq %r12, %r12
je 0x1abe39
movq 0x90(%rbx), %rsi
movq 0xd0(%rbx), %rdx
movq %r12, %rdi
callq 0x19774d
movq %r12, %rdi
callq 0x197e37
incl 0xb0(%rbx)
movq 0xa8(%rbx), %rax
movq 0x28(%rsp), %rcx
movq %rax, (%rcx)
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0x1abe5b
movb $0x0, (%rax)
movq 0x90(%rbx), %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x28c0ed(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x13918e(%rip), %rsi    # 0x2e5013
leaq 0x1af363(%rip), %rdx    # 0x35b1ef
leaq 0x1af378(%rip), %rcx    # 0x35b20b
leaq 0x1ae7e2(%rip), %r8     # 0x35a67c
movl $0x1f4, %r9d            # imm = 0x1F4
jmp 0x1abece
movq 0x28c0bf(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x139160(%rip), %rsi    # 0x2e5013
leaq 0x1af217(%rip), %rdx    # 0x35b0d1
leaq 0x1af34a(%rip), %rcx    # 0x35b20b
leaq 0x1ae7b4(%rip), %r8     # 0x35a67c
movl $0x1f8, %r9d            # imm = 0x1F8
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x28c087(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x139128(%rip), %rsi    # 0x2e5013
leaq 0x1aeefc(%rip), %rdx    # 0x35adee
leaq 0x1af331(%rip), %rcx    # 0x35b22a
leaq 0x1aeed4(%rip), %r8     # 0x35add4
movl $0x111, %r9d            # imm = 0x111
jmp 0x1abece
movq 0x28c059(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1390fa(%rip), %rsi    # 0x2e5013
leaq 0x199d48(%rip), %rdx    # 0x345c68
leaq 0x1af303(%rip), %rcx    # 0x35b22a
leaq 0x1aeea6(%rip), %r8     # 0x35add4
movl $0x125, %r9d            # imm = 0x125
jmp 0x1abece
movq 0x28c02b(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1390cc(%rip), %rsi    # 0x2e5013
leaq 0x1af23b(%rip), %rdx    # 0x35b189
leaq 0x1af185(%rip), %rcx    # 0x35b0da
leaq 0x1ae720(%rip), %r8     # 0x35a67c
movl $0x820, %r9d            # imm = 0x820
jmp 0x1abece
movq 0x28bffa(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x13909b(%rip), %rsi    # 0x2e5013
leaq 0x1af238(%rip), %rdx    # 0x35b1b7
leaq 0x1af154(%rip), %rcx    # 0x35b0da
leaq 0x1ae6ef(%rip), %r8     # 0x35a67c
movl $0x825, %r9d            # imm = 0x825
jmp 0x1abece
movq 0x28bfc9(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x13906a(%rip), %rsi    # 0x2e5013
leaq 0x1aebbb(%rip), %rdx    # 0x35ab6b
leaq 0x1af123(%rip), %rcx    # 0x35b0da
leaq 0x1ae6be(%rip), %r8     # 0x35a67c
movl $0x7a2, %r9d            # imm = 0x7A2
jmp 0x1abece
movq 0x28bf98(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x139039(%rip), %rsi    # 0x2e5013
leaq 0x1aedcb(%rip), %rdx    # 0x35adac
leaq 0x1af242(%rip), %rcx    # 0x35b22a
leaq 0x1aede5(%rip), %r8     # 0x35add4
movl $0x100, %r9d            # imm = 0x100
jmp 0x1abece
movq 0x28bf67(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x139008(%rip), %rsi    # 0x2e5013
leaq 0x1aedf1(%rip), %rdx    # 0x35ae03
leaq 0x1af211(%rip), %rcx    # 0x35b22a
leaq 0x1aedb4(%rip), %r8     # 0x35add4
movl $0x134, %r9d            # imm = 0x134
jmp 0x1abece