// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/rdj-contfinder.c
// Function: gt_contfinder_process_buckets
static inline void gt_contfinder_process_buckets(
    const GtContfinder contfinder, const GtContfinderBucketInfo parentbucket,
    gt_contfinder_seqnum_t **bucketsize,
    GtStackGtContfinderBucketInfo *stackptr, GtBitsequence **bucketcontained)
{
  GtContfinderBucketInfo subbucket;
  gt_contfinder_seqnum_t i;
  gt_contfinder_overflow_t overflow;

  /* process buckets with overflow = 0 */
  subbucket.seqnums = parentbucket.seqnums;
  subbucket.seqnums_offset = parentbucket.seqnums_offset;
  subbucket.depth = parentbucket.depth + GT_CONTFINDER_KMERSIZE;
  for (i = 0; i < GT_CONTFINDER_NOFBUCKETS(0); ++i)
  {
    subbucket.nofseqs = bucketsize[0][i];
    if (subbucket.nofseqs > 0)
    {
      if (subbucket.nofseqs > (size_t)1)
      {
        if (subbucket.nofseqs <= GT_CONTFINDER_INSERTION_SORT_MAX)
          gt_contfinder_insertion_sort(contfinder, subbucket);
        else
        {
          GT_STACK_PUSH(stackptr, subbucket);
        }
      }
      for (overflow = (gt_contfinder_overflow_t)1;
          overflow <= GT_CONTFINDER_KMERSIZE; overflow++)
      {
        GT_SETIBIT(bucketcontained[overflow - 1], i >> (overflow << 1));
      }
    }
    subbucket.seqnums_offset += subbucket.nofseqs;
  }

  /* process buckets with overflow > 0 */
  for (overflow = (gt_contfinder_overflow_t)1;
      overflow <= GT_CONTFINDER_KMERSIZE; overflow++)
  {
    for (i = 0; i < GT_CONTFINDER_NOFBUCKETS(overflow); ++i)
    {
      subbucket.nofseqs = bucketsize[overflow][i];
      if (subbucket.nofseqs > 0)
        gt_contfinder_mark_as_contained(contfinder, subbucket,
            (bool)GT_ISIBITSET(bucketcontained[overflow - 1], i));
      subbucket.seqnums_offset += subbucket.nofseqs;
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, 0x90(%rsp)
movq 0x130(%rsp), %rax
movq 0x138(%rsp), %r15
movq %rax, 0x70(%rsp)
movq %r15, 0x78(%rsp)
movq 0x148(%rsp), %rax
addq $0x4, %rax
movq %rax, 0x88(%rsp)
leaq 0x28(%rsi), %rax
movq %rax, 0x98(%rsp)
xorl %r13d, %r13d
pushq $0xa
popq %r14
cmpq $0x100, %r13            # imm = 0x100
je 0x175e63
movq 0x90(%rsp), %rax
movq (%rax), %rax
movl (%rax,%r13,4), %ebp
movl %ebp, 0x80(%rsp)
testq %rbp, %rbp
je 0x175e53
cmpl $0x1, %ebp
je 0x175e28
cmpl $0x1f, %ebp
ja 0x175d29
movq %r14, %rcx
movq %rsp, %rdi
leaq 0xe0(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movups 0x70(%rsp), %xmm0
movups 0x80(%rsp), %xmm1
movups %xmm1, 0x60(%rsp)
movups %xmm0, 0x50(%rsp)
callq 0x1757d9
jmp 0x175e28
movq 0x10(%r12), %rsi
cmpq (%r12), %rsi
jne 0x175dec
cmpq 0x18(%r12), %rsi
jne 0x175d43
xorl %edi, %edi
jmp 0x175d4b
movq 0x8028(%r12), %rdi
movq %rbp, 0xa0(%rsp)
addq 0x20(%r12), %rsi
shlq $0x5, %rsi
leaq 0x1d7572(%rip), %rdx    # 0x34d2d5
movl $0x251, %ecx            # imm = 0x251
callq 0x93472
movq %rax, 0x8028(%r12)
movq (%r12), %rdx
cmpq 0x18(%r12), %rdx
jne 0x175d94
shlq $0x5, %rdx
movq %rax, %rdi
movq 0x98(%rsp), %rsi
callq 0x17630
cmpq $0x0, 0x8030(%r12)
je 0x175dd2
xorl %r14d, %r14d
xorl %ebp, %ebp
movq 0x20(%r12), %rax
cmpq %rax, %rbp
jae 0x175dd7
movq (%r12), %rdi
shlq $0x5, %rdi
addq 0x8028(%r12), %rdi
addq %r14, %rdi
callq *0x8030(%r12)
incq %rbp
addq $0x20, %r14
jmp 0x175da4
movq 0x20(%r12), %rax
addq %rax, (%r12)
movq 0x10(%r12), %rsi
pushq $0xa
popq %r14
movq 0xa0(%rsp), %rbp
movq 0x8028(%r12), %rax
leaq 0x1(%rsi), %rcx
movq %rcx, 0x10(%r12)
shlq $0x5, %rsi
movups 0x70(%rsp), %xmm0
movups 0x80(%rsp), %xmm1
movups %xmm1, 0x10(%rax,%rsi)
movups %xmm0, (%rax,%rsi)
movq 0x10(%r12), %rax
cmpq %rax, 0x8(%r12)
jae 0x175e28
movq %rax, 0x8(%r12)
xorl %eax, %eax
cmpq $0x8, %rax
je 0x175e53
movq (%rbx,%rax,4), %rsi
addq $0x2, %rax
movl %r13d, %edx
movl %eax, %ecx
shrl %cl, %edx
movabsq $-0x8000000000000000, %rdi # imm = 0x8000000000000000
movl %edx, %ecx
shrq %cl, %rdi
orq %rdi, (%rsi)
jmp 0x175e2a
addq %rbp, %r15
movq %r15, 0x78(%rsp)
incq %r13
jmp 0x175cbd
pushq $0x1
popq %r12
cmpq $0x5, %r12
je 0x175f14
pushq $0x8
popq %rbp
subl %r12d, %ebp
subl %r12d, %ebp
xorl %r13d, %r13d
movl %r13d, %eax
movl %ebp, %ecx
shrl %cl, %eax
testl %eax, %eax
jne 0x175f0c
movq 0x90(%rsp), %rax
movq (%rax,%r12,8), %rax
movl (%rax,%r13,4), %r14d
movl %r14d, 0x80(%rsp)
testq %r14, %r14
je 0x175efc
movq -0x8(%rbx,%r12,8), %rdx
movl %r13d, %esi
shrl $0x6, %esi
movabsq $-0x8000000000000000, %rdi # imm = 0x8000000000000000
movl %r13d, %ecx
shrq %cl, %rdi
xorl %eax, %eax
testq %rdi, (%rdx,%rsi,8)
setne %al
pushq $0xa
popq %rcx
movq %rsp, %rdi
leaq 0xe0(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movups 0x70(%rsp), %xmm0
movups 0x80(%rsp), %xmm1
movups %xmm1, 0x60(%rsp)
movups %xmm0, 0x50(%rsp)
movl %eax, %edi
callq 0x17564e
addq %r14, %r15
movq %r15, 0x78(%rsp)
incq %r13
jmp 0x175e7d
incq %r12
jmp 0x175e67
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop