// File: /workspace/github_c_makefile_star2_O2/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 0x19d2a0
movq %r8, %r13
movq %rcx, %r15
movq %rdx, %r12
movl %esi, %ebp
movq %rdi, %r14
cmpb $0x1, 0x20(%rdi)
movq %r9, 0x8(%rsp)
jne 0x19d0c8
leaq 0x20(%r14), %rdi
leaq 0x10(%rsp), %rsi
movq %r9, 0x8(%rsi)
movl %ebp, 0x10(%rsi)
movl 0x10(%r14), %edx
callq 0x19d398
jmp 0x19d0ca
xorl %eax, %eax
testq %r15, %r15
je 0x19d33d
movq 0x8(%r15), %rdx
testq %rdx, %rdx
je 0x19d33d
movq 0x20(%r15), %rcx
cmpq 0x10(%r15), %rcx
jae 0x19d33d
movabsq $-0x8000000000000000, %rbx # imm = 0x8000000000000000
movq (%r15), %rsi
testq %rsi, %rsi
je 0x19d112
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 0x19d121
incq 0x18(%r15)
movq 0x68(%r14), %rax
testq %rax, %rax
je 0x19d274
movq (%r13), %r12
movq 0x8(%r13), %r15
andq $0x0, 0x20(%rax)
movq 0x58(%r14), %rsi
testq %rsi, %rsi
je 0x19d173
cmpq 0x18(%rax), %rsi
jb 0x19d173
movq 0x10(%rax), %rdi
shlq $0x4, %rsi
leaq 0x1babe9(%rip), %rdx    # 0x357d42
movl $0x184, %ecx            # imm = 0x184
callq 0x93472
movq 0x68(%r14), %rcx
movq %rax, 0x10(%rcx)
movq 0x58(%r14), %rax
movq %rax, 0x18(%rcx)
xorl %r13d, %r13d
cmpq %r13, %r15
je 0x19d23c
movq 0x48(%r14), %rax
testq %rax, %rax
je 0x19d2af
movq 0x60(%r14), %rdx
leaq (%rdx,%r13), %rcx
cmpq 0x50(%r14), %rcx
jae 0x19d2af
movq 0x40(%r14), %rsi
testq %rsi, %rsi
je 0x19d1bb
movq %rbx, %rdi
shrq %cl, %rdi
shrq $0x6, %rcx
testq %rdi, (%rsi,%rcx,8)
je 0x19d2d9
leaq (%rax,%rdx,4), %rax
movl (%rax,%r13,4), %esi
movq 0x68(%r14), %rax
cmpq %rsi, 0x28(%rax)
jae 0x19d1d1
movq %rsi, 0x28(%rax)
cmpl $0xfe, %esi
ja 0x19d1dd
movl %esi, %ecx
jmp 0x19d20a
movq 0x20(%rax), %rcx
cmpq 0x18(%rax), %rcx
jae 0x19d30f
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)
cvtsi2sd %rsi, %xmm0
addsd 0x78(%r14), %xmm0
movsd %xmm0, 0x78(%r14)
movq 0x80(%r14), %rdi
testq %rdi, %rdi
je 0x19d234
callq 0x6d96d
incq %r13
jmp 0x19d176
movq 0x68(%r14), %rdi
movq %r15, %rsi
callq 0x19d65f
movq 0x68(%r14), %rax
movq 0x20(%rax), %rdx
testq %rdx, %rdx
je 0x19d293
addq %rdx, 0x30(%rax)
movq 0x8(%rax), %rcx
testq %rcx, %rcx
je 0x19d367
movq 0x10(%rax), %rdi
pushq $0x10
popq %rsi
callq 0xb302c
jmp 0x19d293
movq 0x70(%r14), %rax
testq %rax, %rax
je 0x19d293
movq 0x8(%rax), %rdi
movq (%r13), %r9
movq 0x8(%r13), %r8
movq %r12, %rsi
movq %r15, %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
movq 0x29acb2(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x147d53(%rip), %rsi    # 0x2e5013
leaq 0x1b8a27(%rip), %rdx    # 0x355cee
leaq 0x1b8abd(%rip), %rcx    # 0x355d8b
leaq 0x1b8ac9(%rip), %r8     # 0x355d9e
pushq $0x5b
jmp 0x19d301
movq 0x29ac88(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x147d29(%rip), %rsi    # 0x2e5013
leaq 0x1b8ac7(%rip), %rdx    # 0x355db8
leaq 0x1b8a93(%rip), %rcx    # 0x355d8b
leaq 0x1b8a9f(%rip), %r8     # 0x355d9e
pushq $0x5e
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x29ac52(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x147cf3(%rip), %rsi    # 0x2e5013
leaq 0x1bac68(%rip), %rdx    # 0x357f8f
leaq 0x1bac54(%rip), %rcx    # 0x357f82
leaq 0x1baa0d(%rip), %r8     # 0x357d42
movl $0x196, %r9d            # imm = 0x196
jmp 0x19d303
movq 0x29ac24(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x147cc5(%rip), %rsi    # 0x2e5013
leaq 0x1b8999(%rip), %rdx    # 0x355cee
leaq 0x1b8bf1(%rip), %rcx    # 0x355f4d
leaq 0x1b8a3b(%rip), %r8     # 0x355d9e
pushq $0x3f
jmp 0x19d301
movq 0x29abfa(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x147c9b(%rip), %rsi    # 0x2e5013
leaq 0x1bac88(%rip), %rdx    # 0x358007
leaq 0x1babfc(%rip), %rcx    # 0x357f82
leaq 0x1ba9b5(%rip), %r8     # 0x357d42
movl $0x1a9, %r9d            # imm = 0x1A9
jmp 0x19d303