// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/sfx-lcpvalues.c
// Function: gt_Outlcpinfo_nonspecialsbucket
void gt_Outlcpinfo_nonspecialsbucket(GtOutlcpinfo *outlcpinfo,
                                     unsigned int prefixlength,
                                     const GtSuffixsortspace *sssp,
                                     GtLcpvalues *tableoflcpvalues,
                                     const GtBucketspecification *bucketspec,
                                     GtCodetype code)
{
  if (outlcpinfo != NULL)
  {
    GtUword lcpvalue;
    Suffixwithcode firstsuffixofbucket;

    if (outlcpinfo->previoussuffix.defined)
    {

      /* compute lcpvalue of first element of bucket with
         last element of previous bucket */
      firstsuffixofbucket.code = code;
      firstsuffixofbucket.prefixindex = prefixlength;
#ifdef SKDEBUG
      firstsuffixofbucket.startpos
        = gt_suffixsortspace_get(sssp,0,bucketspec->left);
      /*
      gt_bcktab_consistencyofsuffix(__LINE__,
                                    encseq,readmode,bcktab,numofchars,
                                    &firstsuffixofbucket);
      */
#endif
      lcpvalue = computelocallcpvalue(&outlcpinfo->previoussuffix,
                                      &firstsuffixofbucket,
                                      outlcpinfo->minchanged);
    } else
    {
      /* first part first code */
      lcpvalue = 0;
    }
    gt_lcptab_update(tableoflcpvalues,0,0,lcpvalue);
    /* all other lcp-values are computed and they can be output */
    if (outlcpinfo->lcpsubtab.lcp2file != NULL)
    {
      outlcpvalues(&outlcpinfo->lcpsubtab,
                   bucketspec->nonspecialsinbucket,
                   bucketspec->left);
    } else
    {
      if (outlcpinfo->lcpsubtab.lcpprocess != NULL)
      {
        outlcpinfo->lcpsubtab.lcpprocess->final_process_bucket(
            outlcpinfo->lcpsubtab.lcpprocess->final_process_bucket_info,
            sssp,
            tableoflcpvalues,
            0,
            bucketspec->nonspecialsinbucket,
            bucketspec->left);
      }
    }
    /* previoussuffix becomes last nonspecial element in current bucket */
    outlcpinfo->previoussuffix.code = code;
    outlcpinfo->previoussuffix.prefixindex = prefixlength;
#ifdef SKDEBUG
    outlcpinfo->previoussuffix.startpos
      = gt_suffixsortspace_get(sssp,0,
                               bucketspec->left
                                 + bucketspec->nonspecialsinbucket - 1);
    /*
    gt_bcktab_consistencyofsuffix(__LINE__,
                                  encseq,readmode,bcktab,numofchars,
                                  &outlcpinfo->previoussuffix);
    */
#endif
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x1eccba
movq %r8, %r13
movq %rcx, %r15
movq %rdx, %r12
movl %esi, %ebp
movq %rdi, %r14
cmpb $0x1, 0x20(%rdi)
movq %r9, (%rsp)
jne 0x1ecadb
leaq 0x20(%r14), %rdi
movl 0x10(%r14), %ecx
movq %r9, %rsi
movl %ebp, %edx
callq 0x1ecce2
jmp 0x1ecadd
xorl %eax, %eax
testq %r15, %r15
je 0x1eccd8
movq 0x8(%r15), %rdx
testq %rdx, %rdx
je 0x1eccd8
movq 0x20(%r15), %rcx
cmpq 0x10(%r15), %rcx
jae 0x1eccd8
movabsq $-0x8000000000000000, %rbx # imm = 0x8000000000000000
movq (%r15), %rsi
testq %rsi, %rsi
je 0x1ecb25
movq %rbx, %rdi
shrq %cl, %rdi
shrq $0x6, %rcx
orq %rdi, (%rsi,%rcx,8)
movq 0x20(%r15), %rcx
movl %eax, (%rdx,%rcx,4)
cmpq $0xff, %rax
jb 0x1ecb34
incq 0x18(%r15)
movq 0x68(%r14), %rdi
testq %rdi, %rdi
je 0x1ecc8f
movq (%r13), %r12
movq 0x8(%r13), %r15
movq $0x0, 0x20(%rdi)
movq 0x58(%r14), %rsi
testq %rsi, %rsi
je 0x1ecb89
cmpq 0x18(%rdi), %rsi
jb 0x1ecb89
movq 0x10(%rdi), %rdi
shlq $0x4, %rsi
leaq 0x1cad73(%rip), %rdx    # 0x3b78e2
movl $0x184, %ecx            # imm = 0x184
callq 0x104461
movq 0x68(%r14), %rdi
movq %rax, 0x10(%rdi)
movq 0x58(%r14), %rax
movq %rax, 0x18(%rdi)
testq %r15, %r15
je 0x1ecc5d
xorl %r13d, %r13d
movq 0x48(%r14), %rax
testq %rax, %rax
je 0x1eccc9
movq 0x60(%r14), %rdx
leaq (%rdx,%r13), %rcx
cmpq 0x50(%r14), %rcx
jae 0x1eccc9
movq 0x40(%r14), %rsi
testq %rsi, %rsi
je 0x1ecbd1
movq %rbx, %rdi
shrq %cl, %rdi
shrq $0x6, %rcx
testq %rdi, (%rsi,%rcx,8)
je 0x1eccce
leaq (%rax,%rdx,4), %rax
movl (%rax,%r13,4), %esi
movq 0x68(%r14), %rax
cmpq %rsi, 0x28(%rax)
jae 0x1ecbe7
movq %rsi, 0x28(%rax)
cmpl $0xfe, %esi
ja 0x1ecbf3
movl %esi, %ecx
jmp 0x1ecc20
movq 0x20(%rax), %rcx
cmpq 0x18(%rax), %rcx
jae 0x1eccd3
movq 0x10(%rax), %rdx
leaq 0x1(%rcx), %rdi
movq %rdi, 0x20(%rax)
shlq $0x4, %rcx
leaq (%r12,%r13), %rdi
movq %rdi, (%rdx,%rcx)
movq %rsi, 0x8(%rdx,%rcx)
movb $-0x1, %cl
movq 0x50(%rax), %rax
movb %cl, (%rax,%r13)
xorps %xmm0, %xmm0
cvtsi2sd %rsi, %xmm0
addsd 0x78(%r14), %xmm0
movsd %xmm0, 0x78(%r14)
movq 0x80(%r14), %rdi
testq %rdi, %rdi
je 0x1ecc4d
callq 0xe54fb
incq %r13
cmpq %r13, %r15
jne 0x1ecb95
movq 0x68(%r14), %rdi
movq %r15, %rsi
callq 0x1ecf59
movq 0x68(%r14), %rax
movq 0x20(%rax), %rdx
testq %rdx, %rdx
je 0x1eccae
addq %rdx, 0x30(%rax)
movq 0x8(%rax), %rcx
testq %rcx, %rcx
je 0x1eccdd
movq 0x10(%rax), %rdi
movl $0x10, %esi
callq 0x11f89c
jmp 0x1eccae
movq 0x70(%r14), %rax
testq %rax, %rax
je 0x1eccae
movq 0x8(%rax), %rdi
movq (%r13), %r9
movq 0x8(%r13), %r8
movq %r12, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
callq *(%rax)
movq (%rsp), %rax
movq %rax, 0x28(%r14)
movl %ebp, 0x30(%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x78a51
callq 0x789e1
callq 0x78a18
callq 0x78ac1
callq 0x78a88