// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r9, 0x28(%rsp)
movq %r8, 0x30(%rsp)
testl %edi, %edi
je 0x198878
movl %ecx, %ebp
movl %edx, %ebx
movq %rsi, %r15
movl %edi, %r13d
movq 0xb8(%rsp), %rdi
movq 0xb0(%rsp), %r14
testq %rdi, %rdi
je 0x19845b
cmpq $0x0, 0x28(%rsp)
leaq 0x1bea69(%rip), %rax    # 0x356eaa
leaq 0x1bea82(%rip), %rsi    # 0x356eca
cmoveq %rax, %rsi
movq 0x29fa5d(%rip), %rax    # 0x437eb0
movq (%rax), %rdx
callq 0xaf86f
movq 0xc0(%rsp), %r12
movl %r13d, %edi
movq %r15, %rsi
movl %ebx, %edx
movl %ebp, %ecx
movq %r14, %r8
callq 0x197f04
testq %rax, %rax
je 0x1984a4
movq %rax, %rbx
movl (%rax), %edx
cmpl 0x18(%rax), %edx
jae 0x1984bf
leaq 0x1beca7(%rip), %rsi    # 0x357132
movq %r12, %rdi
xorl %eax, %eax
callq 0x89dbb
movq %rbx, %rdi
callq 0x198253
xorl %ebx, %ebx
jmp 0x198840
leaq 0x1bea5e(%rip), %rsi    # 0x356f09
xorl %ebx, %ebx
movq %r12, %rdi
movl %r13d, %edx
xorl %eax, %eax
callq 0x89dbb
jmp 0x198840
movq 0x30(%rsp), %r12
testq %r12, %r12
je 0x1988a6
leaq 0x1bea59(%rip), %rsi    # 0x356f2d
xorl %r15d, %r15d
movq %r14, %rdi
movl %r13d, %edx
xorl %eax, %eax
callq 0x92e71
movb 0x32(%r12), %al
testl %ebp, %ebp
je 0x19850e
movzbl %al, %r8d
movq %rbx, %rdi
movq 0x28(%rsp), %rsi
movq %r12, %rdx
movq 0xb8(%rsp), %rcx
callq 0x19890c
jmp 0x198840
movb %al, 0x27(%rsp)
movb $0x0, 0x6f(%rsp)
andq $0x0, 0x70(%rbx)
andq $0x0, 0x58(%rbx)
andq $0x0, 0x88(%rbx)
andq $0x0, 0xc0(%rbx)
pushq $0x10
popq %rdi
callq 0x19af6e
movq %rax, 0x100(%rbx)
andq $0x0, 0x90(%rbx)
andq $0x0, 0x50(%rbx)
movq 0x30(%rbx), %r14
movl 0x8(%rbx), %eax
leaq (%r14,%rax,2), %rbp
pushq $0x1
popq %rdx
xorl %r12d, %r12d
xorl %r13d, %r13d
movq 0x48(%rbx), %rax
cmpq %rax, %r13
ja 0x1985c5
cmpq %rbp, %r14
jae 0x1985ae
cmpw %r15w, (%r14)
jne 0x1985ae
incq 0x70(%rbx)
movq %rdx, %rcx
cmpq %rax, %r13
jae 0x1985a7
movq 0x60(%rbx), %rdi
movq %r12, 0x38(%rsp)
movq %rdx, %r12
movl 0x68(%rbx), %edx
movq %r13, %rsi
callq 0x705e4
movq %r12, %rdx
movq 0x38(%rsp), %r12
xorl %ecx, %ecx
cmpb $-0x2, %al
setae %cl
addq %rcx, %r12
addq $0x2, %r14
cmpl 0xc(%rbx), %r15d
jae 0x1985b9
incl %r15d
jmp 0x1985c0
movq 0x30(%rbx), %r14
xorl %r15d, %r15d
incq %r13
jmp 0x198561
movq 0x70(%rbx), %rdx
movq %rdx, %rcx
subq %r12, %rcx
movq %rcx, 0x78(%rbx)
movq 0x140(%rbx), %rdi
movq %rdx, %xmm1
movq 0x14f2f9(%rip), %xmm2   # 0x2e78e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x14f2fd(%rip), %xmm3   # 0x2e78f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x1511d5(%rip), %xmm0   # 0x2e97e0
incq %rax
movq %rax, %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movl 0x18(%rbx), %ecx
leaq 0x1bf417(%rip), %rsi    # 0x357a4c
movb $0x1, %al
callq 0x92e71
movq 0x140(%rbx), %rdi
leaq 0x1bec53(%rip), %rsi    # 0x35729d
xorl %r13d, %r13d
movq %r12, %rdx
xorl %eax, %eax
callq 0x92e71
movq 0x48(%rbx), %rsi
movq 0x78(%rbx), %rdi
movq 0x140(%rbx), %rcx
xorl %edx, %edx
callq 0x1af288
movq %rax, 0x148(%rbx)
movq 0x30(%rbx), %r14
movl 0x8(%rbx), %eax
leaq (%r14,%rax,2), %r15
xorl %ebp, %ebp
xorl %r12d, %r12d
cmpq 0x48(%rbx), %r12
jae 0x1986d1
cmpq %r15, %r14
jae 0x1986bd
cmpw %bp, (%r14)
jne 0x1986bd
movq 0x60(%rbx), %rdi
movl 0x68(%rbx), %edx
movq %r12, %rsi
callq 0x705e4
cmpb $-0x3, %al
ja 0x1986b9
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x19b0b3
incq %r13
addq $0x2, %r14
cmpl 0xc(%rbx), %ebp
jae 0x1986c6
incl %ebp
jmp 0x1986cc
movq 0x30(%rbx), %r14
xorl %ebp, %ebp
incq %r12
jmp 0x198684
cmpq 0x78(%rbx), %r13
jne 0x1988d4
movq 0x60(%rbx), %rdi
callq 0x740b6
xorb $0x1, %al
movq 0x48(%rbx), %r8
movq 0x78(%rbx), %rcx
movq 0x140(%rbx), %r9
movzbl %al, %edx
leaq 0x40(%rsp), %r14
movq %r14, %rdi
movq 0x30(%rsp), %rsi
callq 0x19b328
movl 0x14(%rbx), %esi
movl 0x18(%rbx), %edx
movq 0x78(%rbx), %rcx
movq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x19cabf
movq 0x148(%rbx), %rdi
movq 0x78(%rbx), %rsi
movq 0x60(%rbx), %rdx
movl 0x68(%rbx), %ecx
movl (%rbx), %r9d
movq 0x140(%rbx), %rax
movq %rax, 0x18(%rsp)
movq %rbx, 0x10(%rsp)
leaq 0x2e00(%rip), %rax      # 0x19b54e
movq %rax, 0x8(%rsp)
movq %r14, (%rsp)
movq %r15, %r8
callq 0x193aaa
cmpb $0x0, 0x27(%rsp)
je 0x19881a
movq 0x78(%rbx), %rax
testq %rax, %rax
je 0x1987aa
movq 0x60(%rbx), %rdx
movl 0x68(%rbx), %ecx
movq 0x148(%rbx), %r8
movl (%rbx), %esi
andl $0x0, 0x10(%rsp)
movq %rsi, 0x18(%rsp)
andl $0x0, 0x8(%rsp)
movq %rax, (%rsp)
leaq 0x1be5f3(%rip), %rdi    # 0x356d90
movl $0x6b9, %esi            # imm = 0x6B9
xorl %r9d, %r9d
callq 0x1b074a
movq %rbx, %rdi
callq 0x19b649
movq 0x78(%rbx), %rax
testq %rax, %rax
je 0x198822
movq 0x60(%rbx), %rdx
movl 0x68(%rbx), %ecx
movq 0x148(%rbx), %r8
andq $0x0, 0x18(%rsp)
andl $0x0, 0x10(%rsp)
movq %rax, (%rsp)
andl $0x0, 0x8(%rsp)
leaq 0x1be5ac(%rip), %rdi    # 0x356d90
xorl %r14d, %r14d
movl $0x6c9, %esi            # imm = 0x6C9
xorl %r9d, %r9d
callq 0x1b074a
cmpq 0x78(%rbx), %r14
jae 0x198822
movq %rbx, %rdi
movq %r14, %rsi
callq 0x19ba4a
movq %rbx, %rdi
movq %rax, %rsi
callq 0x19a078
cmpq %rax, %r14
jne 0x198852
incq %r14
jmp 0x1987f4
movq %rbx, %rdi
callq 0x19b649
movq 0x148(%rbx), %rdi
xorl %esi, %esi
callq 0x1af510
andq $0x0, 0x148(%rbx)
movq %rbx, %rdi
callq 0x19b8e4
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x29f70f(%rip), %rcx    # 0x437f68
movq (%rcx), %rdi
leaq 0x1bf185(%rip), %rsi    # 0x3579e8
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x17a50
pushq $0x2
popq %rdi
callq 0x178f0
movq 0x29f6e9(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x14c78a(%rip), %rsi    # 0x2e5013
leaq 0x1be5ed(%rip), %rdx    # 0x356e7d
leaq 0x1be5f1(%rip), %rcx    # 0x356e88
leaq 0x1be4f2(%rip), %r8     # 0x356d90
movl $0x6ee, %r9d            # imm = 0x6EE
jmp 0x198900
movq 0x29f6bb(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x14c75c(%rip), %rsi    # 0x2e5013
leaq 0x1be9f4(%rip), %rdx    # 0x3572b2
leaq 0x1be5c3(%rip), %rcx    # 0x356e88
leaq 0x1be4c4(%rip), %r8     # 0x356d90
movl $0x705, %r9d            # imm = 0x705
jmp 0x198900
movq 0x29f68d(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x14c72e(%rip), %rsi    # 0x2e5013
leaq 0x1bea02(%rip), %rdx    # 0x3572ee
leaq 0x1bf180(%rip), %rcx    # 0x357a73
leaq 0x1be496(%rip), %r8     # 0x356d90
movl $0x6a1, %r9d            # imm = 0x6A1
xorl %eax, %eax
callq 0x17a50
callq 0x17390