// File: /workspace/github_c_makefile_star2_O1/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 0x1ccd43(%rip), %rdi    # 0x3c0130
movl $0x604, %esi            # imm = 0x604
xorl %eax, %eax
callq 0x17070
movl $0x4, %ecx
leaq 0x1ccb4b(%rip), %r15    # 0x3bff50
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 0x1f1b80
testq %rax, %rax
je 0x1f35ac
movq %rax, %rbp
movl (%rax), %esi
movl 0x8(%rax), %edx
xorl %r12d, %r12d
leaq 0x1ccd2e(%rip), %rdi    # 0x3c016f
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 0x1094e6
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x173a0
movq 0x30(%rbp), %r14
movl 0x8(%rbp), %eax
leaq (%r14,%rax,2), %r13
xorl %r15d, %r15d
movl 0xc(%rbp), %eax
andl %r12d, %eax
cmpl %r15d, %eax
jne 0x1f3592
cmpq %r13, %r14
je 0x1f34c0
movzwl (%r14), %eax
movzwl %r15w, %ecx
cmpl %eax, %ecx
ja 0x1f3597
cmpq %r13, %r14
jae 0x1f350d
cmpw %r15w, (%r14)
jne 0x1f350d
movq %rbp, %rdi
movq %r12, %rsi
callq 0x1f4f82
testq %rbx, %rbx
je 0x1f35a7
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 0x1f359c
orq %rdi, %rsi
movq %rsi, (%rbx,%rdx,8)
addq $0x2, %r14
cmpl 0xc(%rbp), %r15d
jae 0x1f3518
incl %r15d
jmp 0x1f351f
movq 0x30(%rbp), %r14
xorl %r15d, %r15d
incq %r12
cmpq 0x48(%rbp), %r12
jbe 0x1f349c
movq %rbx, %rdi
leaq 0x1cca1a(%rip), %r15    # 0x3bff50
movq %r15, %rsi
movl $0x2b5, %edx            # imm = 0x2B5
callq 0x109670
movq %rbp, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x1, %r8d
callq 0x1f23c9
movq %rbp, %rdi
callq 0x1f1e44
movq 0x10(%rsp), %rcx
incq %rcx
cmpq $0x10, %rcx
jne 0x1f3405
leaq 0x1ccc07(%rip), %rdi    # 0x3c017f
movl $0xc, %esi
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x17070
callq 0x79607
callq 0x79640
movq %rax, %rdi
movq %r12, %rsi
callq 0x79679
callq 0x796a0
movl %ebx, %edi
callq 0x796d9