// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-lcpvalues.c
// Function: gt_Outlcpinfo_new
GtOutlcpinfo *gt_Outlcpinfo_new(const char *indexname,
                                unsigned int numofchars,
                                unsigned int prefixlength,
                                bool withdistribution,
                                bool swallow_tail_lcpvalues,
                                GtFinalProcessBucket final_process_bucket,
                                void *final_process_bucket_info,
                                GtError *err)
{
  bool haserr = false;
  GtOutlcpinfo *outlcpinfo;

  outlcpinfo = gt_malloc(sizeof (*outlcpinfo));
  outlcpinfo->sizeofinfo = sizeof (*outlcpinfo);
  outlcpinfo->lcpsubtab.lcptabsum = 0.0;
  outlcpinfo->swallow_tail_lcpvalues = swallow_tail_lcpvalues;
  if (withdistribution)
  {
    outlcpinfo->lcpsubtab.distlcpvalues = gt_disc_distri_new();
  } else
  {
    outlcpinfo->lcpsubtab.distlcpvalues = NULL;
  }
  if (indexname == NULL)
  {
    outlcpinfo->lcpsubtab.lcp2file = NULL;
    if (final_process_bucket != NULL)
    {
      outlcpinfo->lcpsubtab.lcpprocess
        = gt_malloc(sizeof (*outlcpinfo->lcpsubtab.lcpprocess));
      outlcpinfo->lcpsubtab.lcpprocess->final_process_bucket
        = final_process_bucket;
      outlcpinfo->lcpsubtab.lcpprocess->final_process_bucket_info
        = final_process_bucket_info;
    } else
    {
      outlcpinfo->lcpsubtab.lcpprocess = NULL;
    }
  } else
  {
    outlcpinfo->lcpsubtab.lcpprocess = NULL;
    outlcpinfo->lcpsubtab.lcp2file
      = gt_malloc(sizeof (*outlcpinfo->lcpsubtab.lcp2file));
    outlcpinfo->sizeofinfo += sizeof (*outlcpinfo->lcpsubtab.lcp2file);
    outlcpinfo->lcpsubtab.lcp2file->countoutputlcpvalues = 0;
    outlcpinfo->lcpsubtab.lcp2file->maxbranchdepth = 0;
    outlcpinfo->lcpsubtab.lcp2file->totalnumoflargelcpvalues = 0;
    outlcpinfo->lcpsubtab.lcp2file->reservoir = NULL;
    outlcpinfo->lcpsubtab.lcp2file->sizereservoir = 0;
    outlcpinfo->lcpsubtab.lcp2file->smalllcpvalues = NULL;
    GT_INITARRAY(&outlcpinfo->lcpsubtab.lcp2file->largelcpvalues,
                 Largelcpvalue);
    outlcpinfo->lcpsubtab.lcp2file->outfplcptab
      = gt_fa_fopen_with_suffix(indexname,GT_LCPTABSUFFIX,"wb",err);
    if (outlcpinfo->lcpsubtab.lcp2file->outfplcptab == NULL)
    {
      haserr = true;
    }
    if (!haserr)
    {
      outlcpinfo->lcpsubtab.lcp2file->outfpllvtab
        = gt_fa_fopen_with_suffix(indexname,GT_LARGELCPTABSUFFIX,"wb",err);
      if (outlcpinfo->lcpsubtab.lcp2file->outfpllvtab == NULL)
      {
        haserr = true;
      }
    }
  }
  outlcpinfo->numsuffixes2output = 0;
  outlcpinfo->minchanged = 0;
  if (!haserr && prefixlength > 0)
  {
    outlcpinfo->turnwheel = gt_turningwheel_new(prefixlength,numofchars);
    outlcpinfo->sizeofinfo += gt_turningwheel_size();
  } else
  {
    outlcpinfo->turnwheel = NULL;
  }
#ifdef SKDEBUG
  outlcpinfo->previoussuffix.startpos = 0;
#endif
  outlcpinfo->previoussuffix.code = 0;
  outlcpinfo->previoussuffix.prefixindex = 0;
  outlcpinfo->previoussuffix.defined = false;
  outlcpinfo->previousbucketwasempty = false;
  outlcpinfo->lcpsubtab.tableoflcpvalues.bucketoflcpvalues = NULL;
  outlcpinfo->lcpsubtab.tableoflcpvalues.numofentries = 0;
#ifndef NDEBUG
  outlcpinfo->lcpsubtab.tableoflcpvalues.isset = NULL;
#endif
  if (haserr)
  {
    gt_free(outlcpinfo);
    return NULL;
  }
  return outlcpinfo;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r13
movl %r8d, %ebp
movl %ecx, %r15d
movl %edx, 0x4(%rsp)
movl %esi, (%rsp)
movq %rdi, %r12
leaq 0x1bb46c(%rip), %rsi    # 0x357d42
movl $0x88, %edi
movl $0xe5, %edx
callq 0x93160
movq %rax, %r14
movq $0x88, 0x18(%rax)
andq $0x0, 0x78(%rax)
movq %rax, %rbx
movb %bpl, 0x39(%rax)
testl %r15d, %r15d
je 0x19c908
callq 0x6d958
jmp 0x19c90a
xorl %eax, %eax
movq %rax, 0x80(%rbx)
testq %r12, %r12
je 0x19c9c1
movq 0x48(%rsp), %r13
andq $0x0, 0x70(%rbx)
leaq 0x1bb417(%rip), %r15    # 0x357d42
pushq $0x58
popq %rdi
movq %r15, %rsi
movl $0x103, %edx            # imm = 0x103
callq 0x93160
movq %rax, 0x68(%rbx)
addq $0x58, 0x18(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x40(%rax)
andq $0x0, 0x50(%rax)
leaq 0x1a7c7e(%rip), %rsi    # 0x3445e1
leaq 0x159187(%rip), %rdx    # 0x2f5af1
movq %r12, %rdi
movq %r15, %rcx
movl $0x10e, %r8d            # imm = 0x10E
movq %r13, %r9
callq 0x8a449
movq 0x68(%rbx), %rcx
movq %rax, (%rcx)
testq %rax, %rax
je 0x19c9f1
leaq 0x1a7c91(%rip), %rsi    # 0x344622
leaq 0x159159(%rip), %rdx    # 0x2f5af1
leaq 0x1bb3a3(%rip), %rcx    # 0x357d42
movq %r12, %rdi
movl $0x116, %r8d            # imm = 0x116
movq %r13, %r9
callq 0x8a449
movq 0x68(%rbx), %rcx
movq %rax, 0x8(%rcx)
testq %rax, %rax
sete %bpl
jmp 0x19c9fd
andq $0x0, 0x68(%rbx)
testq %r13, %r13
je 0x19c9f6
movq 0x40(%rsp), %r15
leaq 0x1bb36b(%rip), %rsi    # 0x357d42
pushq $0x10
popq %rdi
movl $0xf6, %edx
callq 0x93160
movq %rax, 0x70(%rbx)
movq %r13, (%rax)
movq %r15, 0x8(%rax)
jmp 0x19c9fb
movb $0x1, %bpl
jmp 0x19c9fd
andq $0x0, 0x70(%rbx)
xorl %ebp, %ebp
andq $0x0, 0x8(%rbx)
andl $0x0, 0x10(%rbx)
addq $0x40, %r14
movl 0x4(%rsp), %edi
testl %edi, %edi
sete %al
orb %bpl, %al
je 0x19ca1e
andq $0x0, (%rbx)
jmp 0x19ca32
movl (%rsp), %esi
callq 0x1b4cf4
movq %rax, (%rbx)
callq 0x1b4dcc
addq %rax, 0x18(%rbx)
andq $0x0, 0x28(%rbx)
andl $0x0, 0x30(%rbx)
xorl %eax, %eax
movb %al, 0x20(%rbx)
movb %al, 0x38(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
andq $0x0, 0x10(%r14)
testb %bpl, %bpl
je 0x19ca6a
leaq 0x1bb2e7(%rip), %rsi    # 0x357d42
movq %rbx, %rdi
movl $0x135, %edx            # imm = 0x135
callq 0x936f9
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq