// File: /workspace/github_c_makefile_star2_O1/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 0x1cb385(%rip), %rsi    # 0x3c0f1b
movl $0x88, %edi
movl $0xe5, %edx
callq 0x1092b2
movq %rax, %r14
movq %rax, %rbx
movq $0x88, 0x18(%rax)
movq $0x0, 0x78(%rax)
movb %bpl, 0x39(%rax)
testl %r15d, %r15d
je 0x1f5bcb
callq 0xe99dc
jmp 0x1f5bcd
xorl %eax, %eax
movq %rax, 0x80(%rbx)
testq %r12, %r12
je 0x1f5c91
movq 0x48(%rsp), %r13
xorl %ebp, %ebp
movq %rbp, 0x70(%rbx)
leaq 0x1cb32c(%rip), %r15    # 0x3c0f1b
movl $0x58, %edi
movq %r15, %rsi
movl $0x103, %edx            # imm = 0x103
callq 0x1092b2
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)
movq %rbp, 0x50(%rax)
leaq 0x1b7be8(%rip), %rsi    # 0x3ad810
leaq 0x168ede(%rip), %rdx    # 0x35eb0d
movq %r12, %rdi
movq %r15, %rcx
movl $0x10e, %r8d            # imm = 0x10E
movq %r13, %r9
callq 0x101dff
movq 0x68(%rbx), %rcx
movq %rax, (%rcx)
testq %rax, %rax
sete %bpl
je 0x1f5cd0
sete %r15b
leaq 0x1b7bf3(%rip), %rsi    # 0x3ad851
leaq 0x168ea8(%rip), %rdx    # 0x35eb0d
leaq 0x1cb2af(%rip), %rcx    # 0x3c0f1b
movq %r12, %rdi
movl $0x116, %r8d            # imm = 0x116
movq %r13, %r9
callq 0x101dff
movq 0x68(%rbx), %rcx
movq %rax, 0x8(%rcx)
testq %rax, %rax
sete %bpl
orb %r15b, %bpl
jmp 0x1f5cd0
movq $0x0, 0x68(%rbx)
testq %r13, %r13
je 0x1f5cc6
movq 0x40(%rsp), %r15
leaq 0x1cb271(%rip), %rsi    # 0x3c0f1b
movl $0x10, %edi
movl $0xf6, %edx
callq 0x1092b2
movq %rax, 0x70(%rbx)
movq %r13, (%rax)
movq %r15, 0x8(%rax)
jmp 0x1f5cce
movq $0x0, 0x70(%rbx)
xorl %ebp, %ebp
addq $0x40, %r14
movq $0x0, 0x8(%rbx)
movl $0x0, 0x10(%rbx)
movl 0x4(%rsp), %edi
testl %edi, %edi
je 0x1f5d06
testb %bpl, %bpl
jne 0x1f5d06
movl (%rsp), %esi
callq 0x20a814
movq %rax, (%rbx)
callq 0x20a880
addq %rax, 0x18(%rbx)
jmp 0x1f5d0d
movq $0x0, (%rbx)
xorl %eax, %eax
movq %rax, 0x28(%rbx)
movl $0x0, 0x30(%rbx)
movb %al, 0x20(%rbx)
movb %al, 0x38(%rbx)
movq %rax, 0x10(%r14)
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
testb %bpl, %bpl
je 0x1f5d46
leaq 0x1cb1e4(%rip), %rsi    # 0x3c0f1b
movq %rbx, %rdi
movl $0x135, %edx            # imm = 0x135
callq 0x109670
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq