// File: /workspace/github_c_makefile_star2_O0/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:
subq $0xd8, %rsp
leaq 0x130(%rsp), %rax
leaq 0xe0(%rsp), %rcx
movq %rcx, 0x78(%rsp)
movq %rdi, 0xd0(%rsp)
movq %rsi, 0xc8(%rsp)
movq %rdx, 0xc0(%rsp)
movq (%rax), %rcx
movq %rcx, 0xa0(%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0xa8(%rsp)
movq 0x18(%rax), %rax
addq $0x4, %rax
movq %rax, 0xb8(%rsp)
movl $0x0, 0x9c(%rsp)
cmpl $0x100, 0x9c(%rsp) # imm = 0x100
jae 0x27c8fd
movq 0xd0(%rsp), %rax
movq (%rax), %rax
movl 0x9c(%rsp), %ecx
movl (%rax,%rcx,4), %eax
movl %eax, 0xb0(%rsp)
cmpl $0x0, 0xb0(%rsp)
jbe 0x27c8d0
movl 0xb0(%rsp), %eax
cmpq $0x1, %rax
jbe 0x27c840
movl 0xb0(%rsp), %eax
cmpq $0x1f, %rax
ja 0x27c5ff
movq 0x78(%rsp), %rcx
movups 0xa0(%rsp), %xmm0
movups 0xb0(%rsp), %xmm1
movq %rsp, %rax
movups %xmm1, 0x60(%rax)
movups %xmm0, 0x50(%rax)
movups 0x40(%rcx), %xmm0
movups %xmm0, 0x40(%rax)
movups (%rcx), %xmm0
movups 0x10(%rcx), %xmm1
movups 0x20(%rcx), %xmm2
movups 0x30(%rcx), %xmm3
movups %xmm3, 0x30(%rax)
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0x27bd50
jmp 0x27c83e
movq 0xc8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0xc8(%rsp), %rcx
cmpq (%rcx), %rax
jne 0x27c7ae
movq $0x20, 0x90(%rsp)
movq 0x90(%rsp), %rax
movq 0xc8(%rsp), %rcx
movq (%rcx), %rcx
movq 0xc8(%rsp), %rdx
addq 0x20(%rdx), %rcx
imulq %rcx, %rax
movq %rax, 0x88(%rsp)
movq 0xc8(%rsp), %rax
movq (%rax), %rax
movq 0xc8(%rsp), %rcx
cmpq 0x18(%rcx), %rax
jne 0x27c675
xorl %eax, %eax
movq %rax, 0x70(%rsp)
jmp 0x27c689
movq 0xc8(%rsp), %rax
movq 0x8028(%rax), %rax
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rdi
movq 0x88(%rsp), %rsi
leaq 0x3033a5(%rip), %rdx    # 0x57fa42
movl $0x251, %ecx            # imm = 0x251
callq 0xe8540
movq %rax, %rcx
movq 0xc8(%rsp), %rax
movq %rcx, 0x8028(%rax)
movq 0xc8(%rsp), %rax
movq (%rax), %rax
movq 0xc8(%rsp), %rcx
cmpq 0x18(%rcx), %rax
jne 0x27c707
movq 0xc8(%rsp), %rax
movq 0x8028(%rax), %rdi
movq 0xc8(%rsp), %rsi
addq $0x28, %rsi
movq 0x90(%rsp), %rdx
movq 0xc8(%rsp), %rax
imulq 0x18(%rax), %rdx
callq 0x19610
movq 0xc8(%rsp), %rax
cmpq $0x0, 0x8030(%rax)
je 0x27c794
movq $0x0, 0x80(%rsp)
movq 0x80(%rsp), %rax
movq 0xc8(%rsp), %rcx
cmpq 0x20(%rcx), %rax
jae 0x27c792
movq 0xc8(%rsp), %rax
movq 0x8030(%rax), %rax
movq 0xc8(%rsp), %rcx
movq 0x8028(%rcx), %rdi
movq 0xc8(%rsp), %rcx
movq (%rcx), %rcx
shlq $0x5, %rcx
addq %rcx, %rdi
movq 0x80(%rsp), %rcx
shlq $0x5, %rcx
addq %rcx, %rdi
callq *%rax
movq 0x80(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x80(%rsp)
jmp 0x27c725
jmp 0x27c794
movq 0xc8(%rsp), %rax
movq 0x20(%rax), %rcx
movq 0xc8(%rsp), %rax
addq (%rax), %rcx
movq %rcx, (%rax)
movq 0xc8(%rsp), %rax
movq 0x8028(%rax), %rax
movq 0xc8(%rsp), %rdx
movq 0x10(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x10(%rdx)
shlq $0x5, %rcx
addq %rcx, %rax
movq 0xa0(%rsp), %rcx
movq %rcx, (%rax)
movq 0xa8(%rsp), %rcx
movq %rcx, 0x8(%rax)
movq 0xb0(%rsp), %rcx
movq %rcx, 0x10(%rax)
movq 0xb8(%rsp), %rcx
movq %rcx, 0x18(%rax)
movq 0xc8(%rsp), %rax
movq 0x8(%rax), %rax
movq 0xc8(%rsp), %rcx
cmpq 0x10(%rcx), %rax
jae 0x27c83c
movq 0xc8(%rsp), %rax
movq 0x10(%rax), %rcx
movq 0xc8(%rsp), %rax
movq %rcx, 0x8(%rax)
jmp 0x27c83e
jmp 0x27c840
movb $0x1, 0x9b(%rsp)
movzbl 0x9b(%rsp), %eax
cmpq $0x4, %rax
ja 0x27c8ce
movl 0x9c(%rsp), %eax
movzbl 0x9b(%rsp), %ecx
shll %ecx
shrl %cl, %eax
andl $0x3f, %eax
movl %eax, %eax
movl %eax, %ecx
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
shrq %cl, %rdx
movq 0xc0(%rsp), %rax
movzbl 0x9b(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movl 0x9c(%rsp), %esi
movzbl 0x9b(%rsp), %ecx
shll %ecx
shrl %cl, %esi
movl %esi, %ecx
shrl $0x6, %ecx
movl %ecx, %ecx
orq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movb 0x9b(%rsp), %al
addb $0x1, %al
movb %al, 0x9b(%rsp)
jmp 0x27c848
jmp 0x27c8d0
movl 0xb0(%rsp), %eax
addq 0xa8(%rsp), %rax
movq %rax, 0xa8(%rsp)
movl 0x9c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x9c(%rsp)
jmp 0x27c556
movb $0x1, 0x9b(%rsp)
movzbl 0x9b(%rsp), %eax
cmpq $0x4, %rax
ja 0x27ca67
movl $0x0, 0x9c(%rsp)
movl 0x9c(%rsp), %eax
movzbl 0x9b(%rsp), %ecx
movl %ecx, %edx
movl $0x4, %ecx
subq %rdx, %rcx
shlq %rcx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
cmpl %ecx, %eax
jae 0x27ca50
movq 0xd0(%rsp), %rax
movzbl 0x9b(%rsp), %ecx
movq (%rax,%rcx,8), %rax
movl 0x9c(%rsp), %ecx
movl (%rax,%rcx,4), %eax
movl %eax, 0xb0(%rsp)
cmpl $0x0, 0xb0(%rsp)
jbe 0x27ca23
movq 0x78(%rsp), %rdx
movq 0xc0(%rsp), %rax
movzbl 0x9b(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movl 0x9c(%rsp), %ecx
shrl $0x6, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
movl 0x9c(%rsp), %ecx
andl $0x3f, %ecx
movl %ecx, %ecx
movabsq $-0x8000000000000000, %rsi # imm = 0x8000000000000000
shrq %cl, %rsi
movq %rsi, %rcx
andq %rcx, %rax
cmpq $0x0, %rax
setne %al
movups 0xa0(%rsp), %xmm0
movups 0xb0(%rsp), %xmm1
movq %rsp, %rcx
movups %xmm1, 0x60(%rcx)
movups %xmm0, 0x50(%rcx)
movups 0x40(%rdx), %xmm0
movups %xmm0, 0x40(%rcx)
movups (%rdx), %xmm0
movups 0x10(%rdx), %xmm1
movups 0x20(%rdx), %xmm2
movups 0x30(%rdx), %xmm3
movups %xmm3, 0x30(%rcx)
movups %xmm2, 0x20(%rcx)
movups %xmm1, 0x10(%rcx)
movups %xmm0, (%rcx)
movzbl %al, %edi
andl $0x1, %edi
callq 0x27ba70
movl 0xb0(%rsp), %eax
addq 0xa8(%rsp), %rax
movq %rax, 0xa8(%rsp)
movl 0x9c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x9c(%rsp)
jmp 0x27c922
jmp 0x27ca52
movb 0x9b(%rsp), %al
addb $0x1, %al
movb %al, 0x9b(%rsp)
jmp 0x27c905
addq $0xd8, %rsp
retq
nop