// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/sfx-diffcov.c
// Function: gt_differencecover_check
void gt_differencecover_check(const GtEncseq *encseq,GtReadmode readmode)
{
  GtDifferencecover *dcov;
  size_t logmod;
  const size_t startlogmod = (size_t) 4;
  unsigned int vparam;
  bool withcheck = true;

  printf("sizeof (differencecovertab)="GT_WU"\n",
          (GtUword) sizeof (differencecovertab));
  for (logmod = startlogmod;
       logmod < sizeof (differencecoversizes)/sizeof (differencecoversizes[0]);
       logmod++)
  {
    vparam = 1U << logmod;
    dcov = gt_differencecover_new(vparam,encseq,readmode,0,NULL);
    if (dcov == NULL)
    {
      fprintf(stderr,"no difference cover for v=%u\n",vparam);
      exit(GT_EXIT_PROGRAMMING_ERROR);
    }
    printf("v=%u (size=%u)\n",dcov->vparam,dcov->size);
    if (withcheck)
    {
      dc_validate_samplepositions(dcov);
    }
    dc_differencecover_sortsample(dcov,NULL,NULL,NULL,withcheck);
    gt_differencecover_delete(dcov);
  }
  printf("# %u difference covers checked\n",
          (unsigned int) (logmod - startlogmod));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, 0x4(%rsp)
movq %rdi, 0x8(%rsp)
leaq 0x1cce4c(%rip), %rdi    # 0x3b6b10
movl $0x604, %esi            # imm = 0x604
xorl %eax, %eax
callq 0x17070
movl $0x4, %ecx
leaq 0x1ccc54(%rip), %r15    # 0x3b6930
movl $0x1, %ebx
movq %rcx, 0x10(%rsp)
shll %cl, %ebx
movl %ebx, %edi
movq 0x8(%rsp), %rsi
movl 0x4(%rsp), %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x1e841c
testq %rax, %rax
je 0x1e9e87
movq %rax, %rbp
movl (%rax), %esi
movl 0x8(%rax), %edx
xorl %r12d, %r12d
leaq 0x1cce37(%rip), %rdi    # 0x3b6b4f
xorl %eax, %eax
callq 0x17070
movq 0x80(%rbp), %rax
leaq -0x1(%rax), %rcx
shrq $0x6, %rcx
cmpq $0x40, %rax
leaq 0x8(,%rcx,8), %r14
movl $0x8, %eax
cmovbq %rax, %r14
xorl %edi, %edi
movq %r14, %rsi
movq %r15, %rdx
movl $0x297, %ecx            # imm = 0x297
callq 0x104461
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x173a0
movq 0x30(%rbp), %r14
movl 0x8(%rbp), %ecx
movl 0xc(%rbp), %eax
leaq (%r14,%rcx,2), %r13
xorl %r15d, %r15d
movl %r12d, %ecx
andl %eax, %ecx
cmpl %r15d, %ecx
jne 0x1e9e6d
cmpq %r13, %r14
je 0x1e9d99
movzwl (%r14), %ecx
movzwl %r15w, %edx
cmpl %ecx, %edx
ja 0x1e9e72
cmpq %r13, %r14
jae 0x1e9de9
cmpw %r15w, (%r14)
jne 0x1e9de9
movq %rbp, %rdi
movq %r12, %rsi
callq 0x1eb7b2
testq %rbx, %rbx
je 0x1e9e82
movq %rax, %rdx
shrq $0x6, %rdx
movq (%rbx,%rdx,8), %rsi
movabsq $-0x8000000000000000, %rdi # imm = 0x8000000000000000
movl %eax, %ecx
shrq %cl, %rdi
testq %rdi, %rsi
jne 0x1e9e77
orq %rdi, %rsi
movq %rsi, (%rbx,%rdx,8)
addq $0x2, %r14
movl 0xc(%rbp), %eax
cmpl %eax, %r15d
jae 0x1e9df3
incl %r15d
jmp 0x1e9dfa
movq 0x30(%rbp), %r14
xorl %r15d, %r15d
incq %r12
cmpq 0x48(%rbp), %r12
jbe 0x1e9d76
movq %rbx, %rdi
leaq 0x1ccb1f(%rip), %r15    # 0x3b6930
movq %r15, %rsi
movl $0x2b5, %edx            # imm = 0x2B5
callq 0x1045eb
movq %rbp, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x1, %r8d
callq 0x1e8c6f
movq %rbp, %rdi
callq 0x1e86ed
movq 0x10(%rsp), %rcx
incq %rcx
cmpq $0x10, %rcx
jne 0x1e9cdc
leaq 0x1ccd0c(%rip), %rdi    # 0x3b6b5f
movl $0xc, %esi
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x17070
callq 0x7797a
callq 0x779b3
movq %rax, %rdi
movq %r12, %rsi
callq 0x779ec
callq 0x77a13
movl %ebx, %edi
callq 0x77a4c