// File: /workspace/github_c_makefile_star2_O3/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 0x1cb534(%rip), %rsi    # 0x3b78e2
movl $0x88, %edi
movl $0xe5, %edx
callq 0x104226
movq %rax, %r14
movq %rax, %rbx
movq $0x88, 0x18(%rax)
movq $0x0, 0x78(%rax)
movb %bpl, 0x39(%rax)
testl %r15d, %r15d
je 0x1ec3e3
callq 0xe54e0
jmp 0x1ec3e5
xorl %eax, %eax
addq $0x40, %r14
movq %rax, 0x80(%rbx)
testq %r12, %r12
je 0x1ec4a2
movq 0x48(%rsp), %r13
xorl %ebp, %ebp
movq %rbp, 0x70(%rbx)
leaq 0x1cb4d7(%rip), %r15    # 0x3b78e2
movl $0x58, %edi
movq %r15, %rsi
movl $0x103, %edx            # imm = 0x103
callq 0x104226
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 0x1b7e2d(%rip), %rsi    # 0x3a4271
leaq 0x169696(%rip), %rdx    # 0x355ae1
movq %r12, %rdi
movq %r15, %rcx
movl $0x10e, %r8d            # imm = 0x10E
movq %r13, %r9
callq 0xfcf97
movq 0x68(%rbx), %rcx
movq %rax, (%rcx)
testq %rax, %rax
je 0x1ec4d7
leaq 0x1b7e40(%rip), %rsi    # 0x3a42b2
leaq 0x169668(%rip), %rdx    # 0x355ae1
leaq 0x1cb462(%rip), %rcx    # 0x3b78e2
movq %r12, %rdi
movl $0x116, %r8d            # imm = 0x116
movq %r13, %r9
callq 0xfcf97
movq 0x68(%rbx), %rcx
movq %rax, 0x8(%rcx)
testq %rax, %rax
sete %bpl
jmp 0x1ec4f5
movq $0x0, 0x68(%rbx)
testq %r13, %r13
je 0x1ec4eb
movq 0x40(%rsp), %r15
leaq 0x1cb427(%rip), %rsi    # 0x3b78e2
movl $0x10, %edi
movl $0xf6, %edx
callq 0x104226
movq %rax, 0x70(%rbx)
movq %r13, (%rax)
movq %r15, 0x8(%rax)
jmp 0x1ec4f3
movq $0x0, 0x8(%rbx)
movl $0x0, 0x10(%rbx)
movb $0x1, %bpl
jmp 0x1ec512
movq $0x0, 0x70(%rbx)
xorl %ebp, %ebp
movq $0x0, 0x8(%rbx)
movl $0x0, 0x10(%rbx)
movl 0x4(%rsp), %edi
testl %edi, %edi
sete %al
orb %bpl, %al
je 0x1ec51b
movq $0x0, (%rbx)
jmp 0x1ec52f
movl (%rsp), %esi
callq 0x200fa8
movq %rax, (%rbx)
callq 0x201014
addq %rax, 0x18(%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 0x1ec568
leaq 0x1cb389(%rip), %rsi    # 0x3b78e2
movq %rbx, %rdi
movl $0x135, %edx            # imm = 0x135
callq 0x1045eb
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq