// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x38, %rsp
movb %r8b, %al
movq 0x48(%rsp), %r8
movq 0x40(%rsp), %r8
movq %rdi, 0x28(%rsp)
movl %esi, 0x24(%rsp)
movl %edx, 0x20(%rsp)
andb $0x1, %cl
movb %cl, 0x1f(%rsp)
andb $0x1, %al
movb %al, 0x1e(%rsp)
movq %r9, 0x10(%rsp)
movb $0x0, 0xf(%rsp)
movl $0x88, %edi
leaq 0x2c48d7(%rip), %rsi    # 0x58a808
movl $0xe5, %edx
callq 0xe80f0
movq %rax, (%rsp)
movq (%rsp), %rax
movq $0x88, 0x18(%rax)
movq (%rsp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x78(%rax)
movb 0x1e(%rsp), %cl
movq (%rsp), %rax
andb $0x1, %cl
movb %cl, 0x39(%rax)
testb $0x1, 0x1f(%rsp)
je 0x2c5f81
callq 0xa5080
movq %rax, %rcx
movq (%rsp), %rax
movq %rcx, 0x80(%rax)
jmp 0x2c5f90
movq (%rsp), %rax
movq $0x0, 0x80(%rax)
cmpq $0x0, 0x28(%rsp)
jne 0x2c6001
movq (%rsp), %rax
movq $0x0, 0x68(%rax)
cmpq $0x0, 0x10(%rsp)
je 0x2c5ff0
movl $0x10, %edi
leaq 0x2c4850(%rip), %rsi    # 0x58a808
movl $0xf6, %edx
callq 0xe80f0
movq %rax, %rcx
movq (%rsp), %rax
movq %rcx, 0x70(%rax)
movq 0x10(%rsp), %rcx
movq (%rsp), %rax
movq 0x70(%rax), %rax
movq %rcx, (%rax)
movq 0x40(%rsp), %rcx
movq (%rsp), %rax
movq 0x70(%rax), %rax
movq %rcx, 0x8(%rax)
jmp 0x2c5ffc
movq (%rsp), %rax
movq $0x0, 0x70(%rax)
jmp 0x2c6171
movq (%rsp), %rax
movq $0x0, 0x70(%rax)
movl $0x58, %edi
leaq 0x2c47ef(%rip), %rsi    # 0x58a808
movl $0x103, %edx            # imm = 0x103
callq 0xe80f0
movq %rax, %rcx
movq (%rsp), %rax
movq %rcx, 0x68(%rax)
movq (%rsp), %rax
movq 0x18(%rax), %rcx
addq $0x58, %rcx
movq %rcx, 0x18(%rax)
movq (%rsp), %rax
movq 0x68(%rax), %rax
movq $0x0, 0x38(%rax)
movq (%rsp), %rax
movq 0x68(%rax), %rax
movq $0x0, 0x28(%rax)
movq (%rsp), %rax
movq 0x68(%rax), %rax
movq $0x0, 0x30(%rax)
movq (%rsp), %rax
movq 0x68(%rax), %rax
movq $0x0, 0x40(%rax)
movq (%rsp), %rax
movq 0x68(%rax), %rax
movq $0x0, 0x48(%rax)
movq (%rsp), %rax
movq 0x68(%rax), %rax
movq $0x0, 0x50(%rax)
movq (%rsp), %rax
movq 0x68(%rax), %rax
movq $0x0, 0x10(%rax)
movq (%rsp), %rax
movq 0x68(%rax), %rax
movq $0x0, 0x20(%rax)
movq (%rsp), %rax
movq 0x68(%rax), %rax
movq $0x0, 0x18(%rax)
movq 0x28(%rsp), %rdi
movq 0x48(%rsp), %r9
leaq 0x2b0957(%rip), %rsi    # 0x576a36
leaq 0x260ab7(%rip), %rdx    # 0x526b9d
leaq 0x2c471b(%rip), %rcx    # 0x58a808
movl $0x10e, %r8d            # imm = 0x10E
callq 0xd92c0
movq %rax, %rcx
movq (%rsp), %rax
movq 0x68(%rax), %rax
movq %rcx, (%rax)
movq (%rsp), %rax
movq 0x68(%rax), %rax
cmpq $0x0, (%rax)
jne 0x2c6119
movb $0x1, 0xf(%rsp)
testb $0x1, 0xf(%rsp)
jne 0x2c616f
movq 0x28(%rsp), %rdi
movq 0x48(%rsp), %r9
leaq 0x2b0946(%rip), %rsi    # 0x576a77
leaq 0x260a65(%rip), %rdx    # 0x526b9d
leaq 0x2c46c9(%rip), %rcx    # 0x58a808
movl $0x116, %r8d            # imm = 0x116
callq 0xd92c0
movq %rax, %rcx
movq (%rsp), %rax
movq 0x68(%rax), %rax
movq %rcx, 0x8(%rax)
movq (%rsp), %rax
movq 0x68(%rax), %rax
cmpq $0x0, 0x8(%rax)
jne 0x2c616d
movb $0x1, 0xf(%rsp)
jmp 0x2c616f
jmp 0x2c6171
movq (%rsp), %rax
movq $0x0, 0x8(%rax)
movq (%rsp), %rax
movl $0x0, 0x10(%rax)
testb $0x1, 0xf(%rsp)
jne 0x2c61c3
cmpl $0x0, 0x20(%rsp)
jbe 0x2c61c3
movl 0x20(%rsp), %edi
movl 0x24(%rsp), %esi
callq 0x2f3460
movq %rax, %rcx
movq (%rsp), %rax
movq %rcx, (%rax)
callq 0x2f35c0
movq %rax, %rcx
movq (%rsp), %rax
addq 0x18(%rax), %rcx
movq %rcx, 0x18(%rax)
jmp 0x2c61ce
movq (%rsp), %rax
movq $0x0, (%rax)
movq (%rsp), %rax
movq $0x0, 0x28(%rax)
movq (%rsp), %rax
movl $0x0, 0x30(%rax)
movq (%rsp), %rax
movb $0x0, 0x20(%rax)
movq (%rsp), %rax
movb $0x0, 0x38(%rax)
movq (%rsp), %rax
movq $0x0, 0x48(%rax)
movq (%rsp), %rax
movq $0x0, 0x50(%rax)
movq (%rsp), %rax
movq $0x0, 0x40(%rax)
testb $0x1, 0xf(%rsp)
je 0x2c6240
movq (%rsp), %rdi
leaq 0x2c45dd(%rip), %rsi    # 0x58a808
movl $0x135, %edx            # imm = 0x135
callq 0xe88c0
movq $0x0, 0x30(%rsp)
jmp 0x2c6249
movq (%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)