// File: /workspace/github_c_makefile_star2_O1/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
subq $0x28, %rsp
testq %rdi, %rdi
je 0x1f64bc
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r13
movl %esi, %ebp
movq %rdi, %r14
cmpb $0x1, 0x20(%rdi)
movq %r9, 0x8(%rsp)
jne 0x1f62cd
leaq 0x20(%r14), %rdi
leaq 0x10(%rsp), %rsi
movq %r9, 0x8(%rsi)
movl %ebp, 0x10(%rsi)
movl 0x10(%r14), %edx
callq 0x1f64e9
jmp 0x1f62cf
xorl %eax, %eax
testq %r12, %r12
je 0x1f64da
movq 0x8(%r12), %rdx
testq %rdx, %rdx
je 0x1f64da
movq 0x20(%r12), %rcx
cmpq 0x10(%r12), %rcx
jae 0x1f64da
movabsq $-0x8000000000000000, %rbx # imm = 0x8000000000000000
movq (%r12), %rsi
testq %rsi, %rsi
je 0x1f6317
movq %rbx, %rdi
shrq %cl, %rdi
shrq $0x6, %rcx
orq %rdi, (%rsi,%rcx,8)
movq 0x20(%r12), %rcx
movl %eax, (%rdx,%rcx,4)
cmpq $0xff, %rax
jb 0x1f632c
incq 0x18(%r12)
cmpq $0x0, 0x68(%r14)
je 0x1f6491
movq 0x68(%r14), %rax
testq %rax, %rax
je 0x1f64df
movq (%r15), %r12
movq 0x8(%r15), %r15
movq $0x0, 0x20(%rax)
movq 0x58(%r14), %rsi
testq %rsi, %rsi
je 0x1f638b
cmpq 0x18(%rax), %rsi
jb 0x1f638b
movq 0x10(%rax), %rdi
shlq $0x4, %rsi
leaq 0x1cabaa(%rip), %rdx    # 0x3c0f1b
movl $0x184, %ecx            # imm = 0x184
callq 0x1094e6
movq 0x68(%r14), %rcx
movq %rax, 0x10(%rcx)
movq 0x58(%r14), %rax
movq %rax, 0x18(%rcx)
testq %r15, %r15
je 0x1f645b
xorl %r13d, %r13d
movq 0x48(%r14), %rax
testq %rax, %rax
je 0x1f64cb
movq 0x60(%r14), %rdx
leaq (%rdx,%r13), %rcx
cmpq 0x50(%r14), %rcx
jae 0x1f64cb
movq 0x40(%r14), %rsi
testq %rsi, %rsi
je 0x1f63d3
movq %rbx, %rdi
shrq %cl, %rdi
shrq $0x6, %rcx
testq %rdi, (%rsi,%rcx,8)
je 0x1f64d0
leaq (%rax,%rdx,4), %rax
movl (%rax,%r13,4), %esi
movq 0x68(%r14), %rax
cmpq %rsi, 0x28(%rax)
jae 0x1f63e9
movq %rsi, 0x28(%rax)
cmpl $0xfe, %esi
ja 0x1f63f5
movl %esi, %ecx
jmp 0x1f6422
movq 0x20(%rax), %rcx
cmpq 0x18(%rax), %rcx
jae 0x1f64d5
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 0x1f644f
callq 0xe99f7
incq %r13
cmpq %r13, %r15
jne 0x1f6397
movq 0x68(%r14), %rdi
movq %r15, %rsi
callq 0x1f6754
movq 0x68(%r14), %rax
movq 0x20(%rax), %rdx
testq %rdx, %rdx
je 0x1f64af
addq %rdx, 0x30(%rax)
movq 0x8(%rax), %rcx
testq %rcx, %rcx
je 0x1f64e4
movq 0x10(%rax), %rdi
movl $0x10, %esi
callq 0x125658
jmp 0x1f64af
movq 0x70(%r14), %rax
testq %rax, %rax
je 0x1f64af
movq 0x8(%rax), %rdi
movq (%r15), %r9
movq 0x8(%r15), %r8
movq %r13, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq *(%rax)
movq 0x8(%rsp), %rax
movq %rax, 0x28(%r14)
movl %ebp, 0x30(%r14)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x7a717
callq 0x7a6a7
callq 0x7a6de
callq 0x7a7c0
callq 0x7a787
callq 0x7a74e