// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/sfx-diffcov.c
// Function: gt_differencecover_prepare_sample
GtDifferencecover *gt_differencecover_prepare_sample(
                                        unsigned int vparam,
                                        const GtEncseq *encseq,
                                        GtReadmode readmode,
                                        unsigned int prefixlength,
                                        const Sfxstrategy *sfxstrategy,
                                        GtOutlcpinfo *outlcpinfosample,
                                        GtLogger *logger,
                                        GtTimer *sfxprogress,
                                        GtError *err)
{
  GtDifferencecover *dcov = NULL;

  gt_assert(vparam > 0);
  if (sfxprogress != NULL)
  {
    gt_timer_show_progress(sfxprogress,
                           (outlcpinfosample == NULL)
                           ? "sorting difference cover sample"
                           : ("sorting difference cover sample "
                             "and determine their lcp values"),
                           stdout);
  }
  dcov = gt_differencecover_new(vparam,encseq,readmode,
                                prefixlength,logger);
  if (dcov == NULL)
  {
    gt_error_set(err,"no difference cover modulo %u found",vparam);
  } else
  {
    if (gt_differencecover_vparamverify(dcov,err) != 0)
    {
      gt_differencecover_delete(dcov);
      dcov = NULL;
    } else
    {
      gt_assert(sfxstrategy != NULL);
      gt_logger_log(logger,"presorting sample suffixes according to "
                           "difference cover modulo %u",vparam);
      if (prefixlength > 0)
      {
        dc_differencecover_sortsample(dcov,outlcpinfosample,sfxstrategy,
                                      sfxprogress,sfxstrategy->dccheck);
      } else
      {
        dc_differencecover_sortsample0(dcov,outlcpinfosample,sfxstrategy,
                                       sfxprogress,sfxstrategy->dccheck);
      }
    }
  }
  return dcov;
}

// Assembly:
subq $0x38, %rsp
movq 0x50(%rsp), %rax
movq 0x48(%rsp), %rax
movq 0x40(%rsp), %rax
movl %edi, 0x34(%rsp)
movq %rsi, 0x28(%rsp)
movl %edx, 0x24(%rsp)
movl %ecx, 0x20(%rsp)
movq %r8, 0x18(%rsp)
movq %r9, 0x10(%rsp)
movq $0x0, 0x8(%rsp)
cmpl $0x0, 0x34(%rsp)
ja 0x2bda16
movq 0x37e5bb(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x258624(%rip), %rsi    # 0x516013
leaq 0x2cbeb2(%rip), %rdx    # 0x5898a8
leaq 0x2cbeb6(%rip), %rcx    # 0x5898b3
leaq 0x2cbdb7(%rip), %r8     # 0x5897bb
movl $0x6ee, %r9d            # imm = 0x6EE
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2bda18
cmpq $0x0, 0x48(%rsp)
je 0x2bda4f
movq 0x48(%rsp), %rdi
movq 0x10(%rsp), %rcx
leaq 0x2cbec4(%rip), %rsi    # 0x5898f5
leaq 0x2cbe9d(%rip), %rax    # 0x5898d5
cmpq $0x0, %rcx
cmoveq %rax, %rsi
movq 0x37e4f1(%rip), %rax    # 0x63bf38
movq (%rax), %rdx
callq 0x121930
movl 0x34(%rsp), %edi
movq 0x28(%rsp), %rsi
movl 0x24(%rsp), %edx
movl 0x20(%rsp), %ecx
movq 0x40(%rsp), %r8
callq 0x2bd090
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x2bda93
movq 0x50(%rsp), %rdi
movl 0x34(%rsp), %edx
leaq 0x2cbead(%rip), %rsi    # 0x589934
movb $0x0, %al
callq 0xd88c0
jmp 0x2bdb75
movq 0x8(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x2bdb80
cmpl $0x0, %eax
je 0x2bdabf
movq 0x8(%rsp), %rdi
callq 0x2bd790
movq $0x0, 0x8(%rsp)
jmp 0x2bdb73
jmp 0x2bdac1
cmpq $0x0, 0x18(%rsp)
jne 0x2bdb01
movq 0x37e4d0(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x258539(%rip), %rsi    # 0x516013
leaq 0x2cc1fc(%rip), %rdx    # 0x589cdd
leaq 0x2cbdcb(%rip), %rcx    # 0x5898b3
leaq 0x2cbccc(%rip), %r8     # 0x5897bb
movl $0x705, %r9d            # imm = 0x705
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2bdb03
movq 0x40(%rsp), %rdi
movl 0x34(%rsp), %edx
leaq 0x2cbe45(%rip), %rsi    # 0x589958
movb $0x0, %al
callq 0xe7cd0
cmpl $0x0, 0x20(%rsp)
jbe 0x2bdb4a
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x48(%rsp), %rcx
movq 0x18(%rsp), %rax
movb 0x32(%rax), %al
andb $0x1, %al
movzbl %al, %r8d
callq 0x2bdbe0
jmp 0x2bdb71
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x48(%rsp), %rcx
movq 0x18(%rsp), %rax
movb 0x32(%rax), %al
andb $0x1, %al
movzbl %al, %r8d
callq 0x2bf060
jmp 0x2bdb73
jmp 0x2bdb75
movq 0x8(%rsp), %rax
addq $0x38, %rsp
retq
nop