// File: /workspace/github_c_makefile_star2_O2/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, %rbx
movq %rcx, %r12
movq %rdx, 0x8(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdi, %r14
movq 0x28(%rdi), %rdi
cmpq $-0x1, %rdi
je 0x152e3b
movl (%r12), %esi
movq 0x40(%r14), %rdx
movq %r14, %rcx
callq 0x153280
movq 0x40(%r14), %r15
cmpq $-0x1, 0x28(%r14)
je 0x152e3f
movb 0x30(%r14), %r13b
jmp 0x152e93
movq 0x40(%r14), %r15
movq 0x10(%r15), %rsi
cmpq 0x8(%r15), %rsi
jae 0x152e4e
movq (%r15), %rax
jmp 0x152e68
jne 0x15324f
movq (%r15), %rdi
leaq 0x20(%rsi), %rdx
callq 0x153607
movq %rax, (%r15)
addq $0x20, 0x8(%r15)
testq %rax, %rax
je 0x153235
movq 0x10(%r15), %rcx
movq %rcx, %rdx
shlq $0x5, %rdx
incq %rcx
xorps %xmm0, %xmm0
movups %xmm0, (%rax,%rdx)
movq %rcx, 0x10(%r15)
orq $-0x1, 0x10(%rax,%rdx)
movb $0x1, %r13b
movq %r12, 0x28(%rsp)
testq %rbx, %rbx
je 0x153207
movq %rbx, (%rsp)
leaq -0x1(%rbx), %rax
movq %rax, 0x30(%rsp)
xorl %ebp, %ebp
movq $0x0, 0x20(%rsp)
movq 0x20(%rsp), %r12
cmpq 0x30(%rsp), %r12
je 0x1530c8
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x152ed9
movq (%rax,%r12,8), %r8
jmp 0x152ee2
movq 0x8(%rsp), %rax
movl (%rax,%r12,4), %r8d
movq 0x10(%r15), %rax
testq %rax, %rax
je 0x15310b
movq 0x28(%rsp), %rcx
movl 0x4(%rcx,%r12,4), %ebx
movq (%r15), %rdx
shlq $0x5, %rax
movq -0x20(%rdx,%rax), %rsi
cmpq %rbx, %rsi
movq %r8, 0x18(%rsp)
jb 0x152f3a
addq %rax, %rdx
testq %rsi, %rsi
sete %al
andb %r13b, %al
movzbl %r13b, %r13d
movl $0x0, %ecx
cmovnel %ecx, %r13d
addq $-0x8, %rdx
movzbl %al, %edi
movq %r8, %rcx
movq %r14, %r8
callq 0x1536bd
testq %rbp, %rbp
jne 0x15313c
leaq 0x1(%r12), %rax
movq %rax, 0x20(%rsp)
movq (%r15), %rcx
movq 0x10(%r15), %rsi
movq %rsi, %rdx
shlq $0x5, %rdx
movq %rdx, %rdi
xorq $-0x18, %rdi
pushq $0x8
popq %r8
subq %rdx, %r8
xorl %ebp, %ebp
cmpq %rbx, -0x20(%rcx,%rdx)
jbe 0x152fd5
decq %rsi
movq %rsi, 0x10(%r15)
leaq (%rcx,%rdx), %rbp
addq $-0x20, %rbp
movq 0x20(%r14), %rax
addq %r12, %rax
movq %rax, 0x10(%rbp)
movq -0x20(%rbp), %rax
addq $0x20, %rdi
addq $0x20, %r8
addq $-0x20, %rdx
cmpq %rbx, %rax
jb 0x152f6b
testq %rax, %rax
sete %sil
andb %r13b, %sil
movzbl %r13b, %r13d
movl $0x0, %edx
cmovnel %edx, %r13d
movq %rcx, %rdx
subq %r8, %rdx
subq %rdi, %rcx
movzbl %sil, %edi
movq %rax, %rsi
movq %r14, %r8
callq 0x1537bd
jmp 0x152f4d
jae 0x152eb9
testq %rbp, %rbp
je 0x153051
movq 0x8(%rbp), %r12
movq 0x8(%r15), %rax
cmpq %rax, %rsi
jb 0x153017
jne 0x15316d
leaq 0x20(%rsi), %rdx
movq %rcx, %rdi
callq 0x153607
movq %rax, (%r15)
addq $0x20, 0x8(%r15)
testq %rax, %rax
je 0x153187
movq %rax, %rcx
movq 0x10(%r15), %rsi
movq %rsi, %rax
shlq $0x5, %rax
leaq (%rcx,%rax), %rdx
addq $0x18, %rdx
movq %rbx, -0x18(%rdx)
movq %r12, -0x10(%rdx)
incq %rsi
movq %rsi, 0x10(%r15)
orq $-0x1, -0x8(%rdx)
pushq $0x1
popq %rdi
movq %rbx, %rsi
xorl %ecx, %ecx
movq %r14, %r8
callq 0x1537bd
xorl %ebp, %ebp
jmp 0x152eb9
movq 0x8(%r15), %rax
cmpq %rax, %rsi
jb 0x153084
jne 0x1531b5
leaq 0x20(%rsi), %rdx
movq %rcx, %rdi
callq 0x153607
movq %rax, (%r15)
addq $0x20, 0x8(%r15)
testq %rax, %rax
je 0x1531cf
movq %rax, %rcx
movq 0x10(%r15), %rsi
movq 0x18(%rsp), %r8
movq %rsi, %rax
shlq $0x5, %rax
leaq (%rcx,%rax), %rdx
addq $0x18, %rdx
movq %rbx, -0x18(%rdx)
addq 0x20(%r14), %r12
movq %r12, -0x10(%rdx)
incq %rsi
movq %rsi, 0x10(%r15)
orq $-0x1, -0x8(%rdx)
pushq $0x1
popq %rdi
movq %rbx, %rsi
movq %r8, %rcx
movq %r14, %r8
callq 0x1536bd
xorl %ebp, %ebp
jmp 0x152eb9
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x1530dd
movq (%rsp), %rcx
movq -0x8(%rax,%rcx,8), %rax
jmp 0x1530ea
movq (%rsp), %rcx
movq 0x8(%rsp), %rax
movl -0x4(%rax,%rcx,4), %eax
movq %rax, 0x28(%r14)
andb $0x1, %r13b
movb %r13b, 0x30(%r14)
addq %rcx, 0x20(%r14)
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2e4e56(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x191ef7(%rip), %rsi    # 0x2e5013
leaq 0x1f18e7(%rip), %rdx    # 0x344a0a
leaq 0x1f258d(%rip), %rcx    # 0x3456b7
leaq 0x1f2560(%rip), %r8     # 0x345691
movl $0xae, %r9d
jmp 0x1531fb
movq 0x2e4e25(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x191ec6(%rip), %rsi    # 0x2e5013
leaq 0x1f18d5(%rip), %rdx    # 0x344a29
leaq 0x1f255c(%rip), %rcx    # 0x3456b7
leaq 0x1f252f(%rip), %r8     # 0x345691
movl $0xc3, %r9d
jmp 0x1531fb
movq 0x2e4df4(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x191e95(%rip), %rsi    # 0x2e5013
leaq 0x1f1812(%rip), %rdx    # 0x344997
jmp 0x15319f
movq 0x2e4dda(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x191e7b(%rip), %rsi    # 0x2e5013
leaq 0x1f184b(%rip), %rdx    # 0x3449ea
leaq 0x1f2511(%rip), %rcx    # 0x3456b7
leaq 0x1f24e4(%rip), %r8     # 0x345691
movl $0xe8, %r9d
jmp 0x1531fb
movq 0x2e4dac(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x191e4d(%rip), %rsi    # 0x2e5013
leaq 0x1f17ca(%rip), %rdx    # 0x344997
jmp 0x1531e7
movq 0x2e4d92(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x191e33(%rip), %rsi    # 0x2e5013
leaq 0x1f1803(%rip), %rdx    # 0x3449ea
leaq 0x1f24c9(%rip), %rcx    # 0x3456b7
leaq 0x1f249c(%rip), %r8     # 0x345691
movl $0xf7, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x2e4d5a(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x191dfb(%rip), %rsi    # 0x2e5013
leaq 0x1f218b(%rip), %rdx    # 0x3453aa
leaq 0x1f2491(%rip), %rcx    # 0x3456b7
leaq 0x1f2464(%rip), %r8     # 0x345691
movl $0xa7, %r9d
jmp 0x1531fb
movq 0x2e4d2c(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x191dcd(%rip), %rsi    # 0x2e5013
leaq 0x1f179d(%rip), %rdx    # 0x3449ea
jmp 0x153267
movq 0x2e4d12(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x191db3(%rip), %rsi    # 0x2e5013
leaq 0x1f1730(%rip), %rdx    # 0x344997
leaq 0x1f2449(%rip), %rcx    # 0x3456b7
leaq 0x1f241c(%rip), %r8     # 0x345691
movl $0xa1, %r9d
jmp 0x1531fb