// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/esa-shulen.c
// Function: gt_sfx_multiesa2shulengthdist
int gt_sfx_multiesa2shulengthdist(GtBUstate_shulen *bustate,
                                  const GtUword *bucketofsuffixes,
                                  const uint32_t *bucketofsuffixes_uint32,
                                  const GtLcpvaluetype *lcptab_bucket,
                                  GtUword numberofsuffixes,
                                  GtError *err)
{
  bool haserr = false;

  if (bustate->previousbucketlastsuffix != ULONG_MAX &&
      gt_esa_bottomup_RAM_previousfromlast_shulen(
                                 bustate->previousbucketlastsuffix,
                                 (GtUword) lcptab_bucket[0],
                                 bustate->stack,
                                 bustate,
                                 err) != 0)
  {
    haserr = true;
  }
  if (!haserr)
  {
    if (gt_esa_bottomup_RAM_shulen(bucketofsuffixes,
                                   bucketofsuffixes_uint32,
                                   lcptab_bucket,
                                   numberofsuffixes,
                                   bustate->stack,
                                   bustate,
                                   err) != 0)
    {
      haserr = true;
    }
  }
  bustate->idxoffset += numberofsuffixes;
  return haserr ? -1 : 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %r14
movq %rcx, %rbp
movq %rdx, 0x28(%rsp)
movq %rsi, %r15
movq %rdi, %r8
movq 0x28(%rdi), %rdi
cmpq $-0x1, %rdi
movq %r8, (%rsp)
je 0x1a6958
movl (%rbp), %esi
movq 0x40(%r8), %rdx
movq %r8, %rcx
callq 0x1a6ccf
movq (%rsp), %r8
movq 0x40(%r8), %r12
cmpq $-0x1, 0x28(%r8)
je 0x1a695c
movb 0x30(%r8), %bl
jmp 0x1a69be
movq 0x40(%r8), %r12
movq 0x10(%r12), %rsi
cmpq 0x8(%r12), %rsi
jae 0x1a696e
movq (%r12), %rax
jmp 0x1a698f
jne 0x1a6cca
movq (%r12), %rdi
leaq 0x20(%rsi), %rdx
callq 0x1a6fba
movq %rax, (%r12)
addq $0x20, 0x8(%r12)
movq (%rsp), %r8
testq %rax, %rax
je 0x1a6cc5
movq 0x10(%r12), %rcx
movq %rcx, %rdx
shlq $0x5, %rdx
incq %rcx
xorps %xmm0, %xmm0
movups %xmm0, (%rax,%rdx)
movq %rcx, 0x10(%r12)
movq $-0x1, 0x10(%rax,%rdx)
movb $0x1, %bl
testq %r14, %r14
je 0x1a6cc0
movq %r14, 0x20(%rsp)
decq %r14
movq %r14, 0x30(%rsp)
je 0x1a6c63
xorl %r14d, %r14d
xorl %r13d, %r13d
movq %r15, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
testq %r15, %r15
je 0x1a69f5
movq (%r15,%r14,8), %rax
jmp 0x1a69fe
movq 0x28(%rsp), %rax
movl (%rax,%r14,4), %eax
movq %rax, 0x18(%rsp)
movq 0x10(%r12), %rax
testq %rax, %rax
je 0x1a6ca2
movl 0x4(%rbp,%r14,4), %ebp
movq (%r12), %rdx
shlq $0x5, %rax
movq -0x20(%rdx,%rax), %rsi
cmpq %rbp, %rsi
jb 0x1a6a57
addq %rax, %rdx
testq %rsi, %rsi
sete %al
andb %bl, %al
movzbl %bl, %ebx
movl $0x0, %ecx
cmovnel %ecx, %ebx
addq $-0x8, %rdx
movzbl %al, %edi
movq 0x18(%rsp), %rcx
movq (%rsp), %r8
callq 0x1a7094
movq (%rsp), %r8
testq %r13, %r13
jne 0x1a6ca7
movq (%r12), %r15
movq 0x10(%r12), %rsi
movq %rsi, %rax
shlq $0x5, %rax
cmpq %rbp, -0x20(%r15,%rax)
jbe 0x1a6bbc
decq %rsi
movq %rsi, 0x10(%r12)
movq %rsi, %rax
shlq $0x5, %rax
leaq (%r15,%rax), %r13
movq 0x20(%r8), %rcx
addq %r14, %rcx
movq %rcx, 0x10(%r15,%rax)
movq -0x20(%r15,%rax), %rax
cmpq %rbp, %rax
jb 0x1a6aed
testq %rax, %rax
sete %cl
andb %bl, %cl
movzbl %bl, %ebx
movl $0x0, %edx
cmovnel %edx, %ebx
leaq -0x8(%r13), %rdx
addq $0x18, %r13
movzbl %cl, %edi
movq %rax, %rsi
movq %r13, %rcx
movq (%rsp), %r8
callq 0x1a7172
movq (%rsp), %r8
movq (%r12), %r15
movq 0x10(%r12), %rsi
movq %rsi, %rax
shlq $0x5, %rax
movq -0x20(%r15,%rax), %rax
xorl %r13d, %r13d
cmpq %rbp, %rax
ja 0x1a6a7b
jae 0x1a6c4b
movq 0x8(%r12), %rax
testq %r13, %r13
je 0x1a6bc7
movq 0x8(%r13), %r13
cmpq %rax, %rsi
jb 0x1a6b40
jne 0x1a6cb6
leaq 0x20(%rsi), %rdx
movq %r15, %rdi
callq 0x1a6fba
movq %rax, (%r12)
addq $0x20, 0x8(%r12)
testq %rax, %rax
je 0x1a6cbb
movq %rax, %r15
movq 0x10(%r12), %rsi
movq (%rsp), %r8
movq %rsi, %rax
shlq $0x5, %rax
movq %rbp, (%r15,%rax)
movq %r13, 0x8(%r15,%rax)
incq %rsi
movq %rsi, 0x10(%r12)
movq $-0x1, 0x10(%r15,%rax)
cmpq $0x0, 0x18(%r15,%rax)
jne 0x1a6c48
addq %rax, %r15
movq (%r8), %rdi
shlq $0x3, %rdi
leaq 0x1fe5e9(%rip), %rsi    # 0x3a5167
movl $0x11f, %edx            # imm = 0x11F
callq 0x104226
movq (%rsp), %r8
movq %rax, 0x18(%r15)
movq (%r8), %rdx
testq %rdx, %rdx
movq 0x10(%rsp), %rbp
je 0x1a6baf
shlq $0x3, %rdx
movq %rax, %rdi
xorl %esi, %esi
callq 0x173a0
movq (%rsp), %r8
xorl %r13d, %r13d
movq 0x8(%rsp), %r15
jmp 0x1a6c55
jae 0x1a6c48
movq 0x8(%r12), %rax
cmpq %rax, %rsi
jb 0x1a6c00
jne 0x1a6cac
leaq 0x20(%rax), %rdx
movq %r15, %rdi
movq %rax, %rsi
callq 0x1a6fba
movq %rax, (%r12)
addq $0x20, 0x8(%r12)
testq %rax, %rax
je 0x1a6cb1
movq %rax, %r15
movq 0x10(%r12), %rsi
movq (%rsp), %r8
movq %rsi, %rax
shlq $0x5, %rax
leaq (%r15,%rax), %rdx
addq $0x18, %rdx
movq %rbp, -0x18(%rdx)
movq 0x20(%r8), %rax
addq %r14, %rax
movq %rax, -0x10(%rdx)
incq %rsi
movq %rsi, 0x10(%r12)
movq $-0x1, -0x8(%rdx)
movl $0x1, %edi
movq %rbp, %rsi
movq 0x18(%rsp), %rcx
movq (%rsp), %r8
callq 0x1a7094
movq (%rsp), %r8
xorl %r13d, %r13d
movq 0x8(%rsp), %r15
movq 0x10(%rsp), %rbp
incq %r14
cmpq 0x30(%rsp), %r14
jne 0x1a69ea
testq %r15, %r15
je 0x1a6c74
movq 0x20(%rsp), %rcx
movq -0x8(%r15,%rcx,8), %rax
jmp 0x1a6c82
movq 0x20(%rsp), %rcx
movq 0x28(%rsp), %rax
movl -0x4(%rax,%rcx,4), %eax
movq %rax, 0x28(%r8)
andb $0x1, %bl
movb %bl, 0x30(%r8)
addq %rcx, 0x20(%r8)
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x62e14
callq 0x62cf7
callq 0x62da2
callq 0x62ddb
callq 0x62d30
callq 0x62d69
callq 0x62e4d
callq 0x62e86
callq 0x62cbe