// File: /workspace/github_c_makefile_star2_O2/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 0x1bd3d0(%rip), %rdi    # 0x356f70
movl $0x604, %esi            # imm = 0x604
xorl %eax, %eax
callq 0x17070
pushq $0x4
popq %rcx
pushq $0x1
popq %rbx
leaq 0x1bd1d7(%rip), %r15    # 0x356d90
cmpq $0x10, %rcx
je 0x199d3e
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 0x197f04
testq %rax, %rax
je 0x199e1a
movq %rax, %r12
movl (%rax), %esi
movl 0x8(%rax), %edx
xorl %r13d, %r13d
leaq 0x1bd3b5(%rip), %rdi    # 0x356faf
xorl %eax, %eax
callq 0x17070
movq 0x80(%r12), %rax
leaq -0x1(%rax), %rcx
shrq $0x6, %rcx
cmpq $0x40, %rax
leaq 0x8(,%rcx,8), %r14
pushq $0x8
popq %rax
cmovbq %rax, %r14
xorl %edi, %edi
movq %r14, %rsi
movq %r15, %rdx
movl $0x297, %ecx            # imm = 0x297
callq 0x93472
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x17380
movq 0x30(%r12), %rbp
movl 0x8(%r12), %eax
leaq (,%rax,2), %r15
addq %rbp, %r15
xorl %r14d, %r14d
cmpq 0x48(%r12), %r14
ja 0x199cfe
movl 0xc(%r12), %eax
movl %r14d, %ecx
andl %eax, %ecx
cmpl %r13d, %ecx
jne 0x199d5d
cmpq %r15, %rbp
je 0x199c91
movzwl (%rbp), %ecx
movzwl %r13w, %edx
cmpl %ecx, %edx
ja 0x199d8e
cmpq %r15, %rbp
jae 0x199ce4
cmpw %r13w, (%rbp)
jne 0x199ce4
movq %r12, %rdi
movq %r14, %rsi
callq 0x19b9e2
testq %rbx, %rbx
je 0x199de2
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 0x199dbc
orq %rdi, %rsi
movq %rsi, (%rbx,%rdx,8)
addq $0x2, %rbp
movl 0xc(%r12), %eax
cmpl %eax, %r13d
jae 0x199cee
incl %r13d
jmp 0x199cf6
movq 0x30(%r12), %rbp
xorl %r13d, %r13d
incq %r14
jmp 0x199c5e
movq %rbx, %rdi
leaq 0x1bd088(%rip), %r15    # 0x356d90
movq %r15, %rsi
movl $0x2b5, %edx            # imm = 0x2B5
callq 0x936f9
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
pushq $0x1
popq %rbx
movl %ebx, %r8d
callq 0x19890c
movq %r12, %rdi
callq 0x198253
movq 0x10(%rsp), %rcx
incq %rcx
jmp 0x199bb9
leaq 0x1bd27a(%rip), %rdi    # 0x356fbf
pushq $0xc
popq %rsi
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x17070
movq 0x29e204(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x14b2a5(%rip), %rsi    # 0x2e5013
leaq 0x1bdd1d(%rip), %rdx    # 0x357a92
leaq 0x1bdd43(%rip), %rcx    # 0x357abf
leaq 0x1bd00d(%rip), %r8     # 0x356d90
movl $0x29c, %r9d            # imm = 0x29C
jmp 0x199e0e
movq 0x29e1d3(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x14b274(%rip), %rsi    # 0x2e5013
leaq 0x1bdd35(%rip), %rdx    # 0x357adb
leaq 0x1bdd12(%rip), %rcx    # 0x357abf
leaq 0x1bcfdc(%rip), %r8     # 0x356d90
movl $0x29d, %r9d            # imm = 0x29D
jmp 0x199e0e
movq 0x29e1a5(%rip), %rcx    # 0x437f68
movq (%rcx), %rdi
leaq 0x1bdd5c(%rip), %rsi    # 0x357b29
movq %rax, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0x17a50
pushq $0x2
popq %rdi
callq 0x178f0
movq 0x29e17f(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x14b220(%rip), %rsi    # 0x2e5013
leaq 0x1bdd19(%rip), %rdx    # 0x357b13
leaq 0x1bdcbe(%rip), %rcx    # 0x357abf
leaq 0x1bcf88(%rip), %r8     # 0x356d90
movl $0x2a1, %r9d            # imm = 0x2A1
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x29e147(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1bd166(%rip), %rsi    # 0x356f91
movl %ebx, %edx
xorl %eax, %eax
callq 0x17a50
jmp 0x199dda