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

  if (fci->buf.nextfree > 0)
  {
    const GtUword *ptr;

    gt_assert(fci->allfirstcodes != NULL);
    fci->codebuffer_total += fci->buf.nextfree;
    gt_radixsort_inplace_sort(fci->radixsort_codepos,fci->buf.nextfree);
    ptr = gt_firstcodes_find_insert(fci,fci->buf.spaceGtUwordPair[0].a);
    if (ptr != NULL)
    {
      fci->firstcodeposhits
        += gt_firstcodes_insertsuffixes_merge(fci,fci->buf.spaceGtUwordPair,
                                              ptr);
    }
    fci->flushcount++;
    fci->buf.nextfree = 0;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0xc0(%rdi), %rsi
testq %rsi, %rsi
je 0x1acee6
movq %rdi, %rbx
cmpq $0x0, 0x98(%rdi)
je 0x1acf0e
addq %rsi, 0x20(%rbx)
movq 0x70(%rbx), %rdi
callq 0x10fe4f
movq 0x28(%rbx), %rcx
movq 0x30(%rbx), %rdx
cmpq %rdx, %rcx
jg 0x1aced8
movq 0xe8(%rbx), %r12
movq (%r12), %rax
movq 0x98(%rbx), %rsi
leaq (%rsi,%rdx,8), %r8
leaq (%rsi,%rcx,8), %rdx
xorl %ebp, %ebp
movq %r8, %rcx
movq %rcx, %rdi
subq %rdx, %rdi
sarq %rdi
andq $-0x8, %rdi
leaq (%rdx,%rdi), %rsi
cmpq %rax, (%rdx,%rdi)
jbe 0x1acd68
leaq -0x8(%rsi), %rcx
movq %rsi, %rbp
jmp 0x1acd71
jae 0x1acd80
addq $0x8, %rsi
movq %rsi, %rdx
cmpq %rcx, %rdx
jbe 0x1acd48
testq %rbp, %rbp
jne 0x1acd83
jmp 0x1aced8
movq %rsi, %rbp
movq 0xc0(%rbx), %rax
shlq $0x4, %rax
leaq (%r12,%rax), %rdi
addq $-0x10, %rdi
xorl %r13d, %r13d
cmpq %r12, %rdi
jb 0x1aced4
cmpq %rbp, %r8
jb 0x1aced4
xorl %r13d, %r13d
movq %r8, 0x10(%rsp)
movq %rdi, 0x8(%rsp)
movq (%rbp), %rax
cmpq %rax, (%r12)
jbe 0x1acdcb
addq $0x8, %rbp
jmp 0x1acec6
jne 0x1acec2
movq %rbp, %rax
subq 0x98(%rbx), %rax
sarq $0x3, %rax
movq 0x190(%rbx), %rcx
testq %rcx, %rcx
je 0x1ace08
movq 0x180(%rbx), %rdx
xorl %r14d, %r14d
cmpq %rax, (%rdx,%r14,8)
jae 0x1ace0b
incq %r14
cmpq %r14, %rcx
jne 0x1acdf5
movq %rcx, %r14
jmp 0x1ace0b
xorl %r14d, %r14d
cmpq %rax, 0x110(%rbx)
jbe 0x1aceff
movq 0x140(%rbx), %rdx
movl (%rdx,%rax,4), %ecx
testl %ecx, %ecx
je 0x1ace2d
decl %ecx
movl %ecx, (%rdx,%rax,4)
jmp 0x1ace51
testq %r14, %r14
je 0x1acf13
movq 0x180(%rbx), %rcx
incq -0x8(%rcx,%r14,8)
decq %r14
movl $0xffffffff, (%rdx,%rax,4) # imm = 0xFFFFFFFF
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
shlq $0x20, %r14
orq %rcx, %r14
movq 0x18(%rbx), %rax
addq (%rbx), %rax
cmpq %rax, %r14
jae 0x1acf04
movq 0x78(%rbx), %r15
movq %r15, %rdi
callq 0x1fec06
testb %al, %al
je 0x1ace8e
movq 0xf8(%rbx), %rdi
movq 0x8(%r12), %rsi
callq 0x1e2c13
movq %rax, %rdx
jmp 0x1ace93
movq 0x8(%r12), %rdx
subq (%r15), %r14
jb 0x1acefa
cmpq 0x8(%r15), %r14
jae 0x1acef5
cmpq %rdx, 0x10(%r15)
jb 0x1acef5
movq 0x20(%r15), %rdi
testq %rdi, %rdi
je 0x1acf09
movq %r14, %rsi
callq 0xe3c78
incq %r13
movq 0x10(%rsp), %r8
movq 0x8(%rsp), %rdi
addq $0x10, %r12
cmpq %rdi, %r12
ja 0x1aced4
cmpq %r8, %rbp
jbe 0x1acdb8
addq %r13, 0x8(%rbx)
incl 0x50(%rbx)
movq $0x0, 0xc0(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x6418d
callq 0x641c4
callq 0x640e6
callq 0x6411d
callq 0x64156
callq 0x64232
callq 0x641fb