// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/firstcodes.c
// Function: gt_firstcodes_accumulatecounts_flush
static void gt_firstcodes_accumulatecounts_flush(void *data)
{
  GtFirstcodesinfo *fci = (GtFirstcodesinfo *) data;

  if (fci->buf.nextfree > 0)
  {
    GtUword foundindex, foundcode;

    gt_assert(fci->allfirstcodes != NULL);
    fci->codebuffer_total += fci->buf.nextfree;
    gt_radixsort_inplace_sort(fci->radixsort_code,fci->buf.nextfree);
    foundindex = gt_firstcodes_find_accu(&foundcode,
                                         fci->allfirstcodes,
                                         fci->allfirstcodes0_save,
                                         fci->differentcodes,
                                         fci->tab.differencemask,
                                         fci->binsearchcache,
                                         fci->buf.spaceGtUword[0]);
    if (foundindex != ULONG_MAX)
    {
      fci->firstcodehits
        += gt_firstcodes_accumulatecounts_merge(&fci->tab,
                                                fci->allfirstcodes,
                                                fci->differentcodes,
                                                fci->buf.spaceGtUword,
                                                fci->buf.spaceGtUword
                                                + fci->buf.nextfree - 1,
                                                foundindex,
                                                foundcode);
    }
    fci->flushcount++;
    fci->buf.nextfree = 0;
  }
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
cmpq $0x0, 0xc0(%rax)
jbe 0x249aa3
jmp 0x249938
movq 0x18(%rsp), %rax
cmpq $0x0, 0x98(%rax)
jne 0x24997f
movq 0x3f2652(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2cc6bb(%rip), %rsi    # 0x516013
leaq 0x32ebc0(%rip), %rdx    # 0x57851f
leaq 0x32edc4(%rip), %rcx    # 0x57872a
leaq 0x32e88f(%rip), %r8     # 0x5781fc
movl $0x89, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x249981
movq 0x18(%rsp), %rax
movq 0xc0(%rax), %rcx
movq 0x18(%rsp), %rax
addq 0x20(%rax), %rcx
movq %rcx, 0x20(%rax)
movq 0x18(%rsp), %rax
movq 0x68(%rax), %rdi
movq 0x18(%rsp), %rax
movq 0xc0(%rax), %rsi
callq 0x101870
movq 0x18(%rsp), %rax
movq 0x98(%rax), %rsi
movq 0x18(%rsp), %rax
movq 0xa0(%rax), %rdx
movq 0x18(%rsp), %rax
movq 0x38(%rax), %rcx
movq 0x18(%rsp), %rax
movq 0x168(%rax), %r8
movq 0x18(%rsp), %rax
movq 0x48(%rax), %r9
movq 0x18(%rsp), %rax
movq 0xf0(%rax), %rax
movq (%rax), %rax
leaq 0x8(%rsp), %rdi
movq %rax, (%rsp)
callq 0x4baaa0
movq %rax, 0x10(%rsp)
cmpq $-0x1, 0x10(%rsp)
je 0x249a85
movq 0x18(%rsp), %rdi
addq $0x110, %rdi            # imm = 0x110
movq 0x18(%rsp), %rax
movq 0x98(%rax), %rsi
movq 0x18(%rsp), %rax
movq 0x38(%rax), %rdx
movq 0x18(%rsp), %rax
movq 0xf0(%rax), %rcx
movq 0x18(%rsp), %rax
movq 0xf0(%rax), %r8
movq 0x18(%rsp), %rax
movq 0xc0(%rax), %rax
shlq $0x3, %rax
addq %rax, %r8
addq $-0x8, %r8
movq 0x10(%rsp), %r9
movq 0x8(%rsp), %rax
movq %rax, (%rsp)
callq 0x4bfc00
movq %rax, %rcx
movq 0x18(%rsp), %rax
addq (%rax), %rcx
movq %rcx, (%rax)
movq 0x18(%rsp), %rax
movl 0x50(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x50(%rax)
movq 0x18(%rsp), %rax
movq $0x0, 0xc0(%rax)
addq $0x28, %rsp
retq
nopl (%rax,%rax)