// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/randomcodes.c
// Function: gt_randomcodes_insertsuffixes_flush
static void gt_randomcodes_insertsuffixes_flush(void *data)
{
  GtRandomcodesinfo *fci = (GtRandomcodesinfo *) data;

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

    gt_assert(fci->allrandomcodes != NULL);
    fci->codebuffer_total += fci->buf.nextfree;
    gt_radixsort_inplace_sort(fci->radixsort_codepos, fci->buf.nextfree);
    ptr = gt_randomcodes_find_insert(fci, fci->buf.spaceGtUwordPair[0].a);
    gt_assert(ptr != NULL);
    fci->total_inserted += gt_randomcodes_insertsuffixes_merge(fci,
        fci->buf.spaceGtUwordPair, ptr);
    gt_assert(fci->total_inserted == fci->codebuffer_total);
    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 0x171227
movq %rdi, %rbx
cmpq $0x0, 0xa0(%rdi)
je 0x171263
addq %rsi, 0x20(%rbx)
movq 0x80(%rbx), %rdi
callq 0xa0ea4
movq 0xe8(%rbx), %r13
movq (%r13), %rsi
movq %rbx, %rdi
callq 0x16ca1e
testq %rax, %rax
je 0x171294
movq %rax, %r14
movq 0x30(%rbx), %rbp
movq 0xc0(%rbx), %rax
shlq $0x4, %rax
leaq (%rax,%r13), %r12
addq $-0x10, %r12
shlq $0x3, %rbp
addq 0xa0(%rbx), %rbp
xorl %esi, %esi
movq %r14, %rax
cmpq %r12, %r13
ja 0x17120a
cmpq %rbp, %r14
ja 0x17120a
movq (%r13), %rcx
cmpq (%r14), %rcx
jbe 0x171115
addq $0x8, %r14
addq $0x8, %rax
jmp 0x1710f0
subq 0xa0(%rbx), %rax
sarq $0x3, %rax
movq 0x1a0(%rbx), %r15
xorl %ecx, %ecx
cmpq %rcx, %r15
je 0x171143
movq 0x190(%rbx), %rdx
cmpq %rax, (%rdx,%rcx,8)
jae 0x171140
incq %rcx
jmp 0x171129
movq %rcx, %r15
cmpq %rax, 0x110(%rbx)
jbe 0x1712f6
movq 0x150(%rbx), %rcx
movl (%rcx,%rax,4), %edx
testl %edx, %edx
movq %rsi, 0x8(%rsp)
je 0x171167
decl %edx
jmp 0x171185
testq %r15, %r15
je 0x171374
movq 0x190(%rbx), %rdx
incq -0x8(%rdx,%r15,8)
decq %r15
movl 0x188(%rbx), %edx
movl %edx, 0x4(%rsp)
movl %edx, (%rcx,%rax,4)
movb 0x18c(%rbx), %cl
shlq %cl, %r15
movq 0x88(%rbx), %rdi
movq %rdi, 0x10(%rsp)
callq 0x1b2640
testb %al, %al
je 0x1711bf
movq 0xf8(%rbx), %rdi
movq 0x8(%r13), %rsi
callq 0x191c81
movq %rax, %rdx
jmp 0x1711c3
movq 0x8(%r13), %rdx
movl 0x4(%rsp), %eax
addq %rax, %r15
movq 0x10(%rsp), %rax
subq (%rax), %r15
jb 0x171320
cmpq 0x8(%rax), %r15
jae 0x171236
cmpq %rdx, 0x10(%rax)
jb 0x171236
movq 0x20(%rax), %rdi
testq %rdi, %rdi
je 0x17134a
movq %r15, %rsi
callq 0x6bc0a
movq 0x8(%rsp), %rsi
incq %rsi
addq $0x10, %r13
jmp 0x1710ed
addq 0x8(%rbx), %rsi
movq %rsi, 0x8(%rbx)
cmpq 0x20(%rbx), %rsi
jne 0x1712c5
incl 0x70(%rbx)
andq $0x0, 0xc0(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2c6d2b(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x173dcc(%rip), %rsi    # 0x2e5013
leaq 0x1d52f9(%rip), %rdx    # 0x346547
leaq 0x1d52e1(%rip), %rcx    # 0x346536
leaq 0x1db8b0(%rip), %r8     # 0x34cb0c
pushq $0x26
jmp 0x17139c
movq 0x2c6cfe(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x173d9f(%rip), %rsi    # 0x2e5013
leaq 0x1db3d8(%rip), %rdx    # 0x34c653
leaq 0x1db801(%rip), %rcx    # 0x34ca83
leaq 0x1db164(%rip), %r8     # 0x34c3ed
movl $0x183, %r9d            # imm = 0x183
jmp 0x17139e
movq 0x2c6ccd(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x173d6e(%rip), %rsi    # 0x2e5013
leaq 0x1db160(%rip), %rdx    # 0x34c40c
leaq 0x1db7d0(%rip), %rcx    # 0x34ca83
leaq 0x1db133(%rip), %r8     # 0x34c3ed
movl $0x187, %r9d            # imm = 0x187
jmp 0x17139e
movq 0x2c6c9c(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x173d3d(%rip), %rsi    # 0x2e5013
leaq 0x1db7ca(%rip), %rdx    # 0x34caa7
leaq 0x1db79f(%rip), %rcx    # 0x34ca83
leaq 0x1db102(%rip), %r8     # 0x34c3ed
movl $0x18a, %r9d            # imm = 0x18A
jmp 0x17139e
movq 0x2c6c6b(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x173d0c(%rip), %rsi    # 0x2e5013
leaq 0x1db7c6(%rip), %rdx    # 0x34cad4
leaq 0x1db7d9(%rip), %rcx    # 0x34caee
leaq 0x1db69a(%rip), %r8     # 0x34c9b6
pushq $0x73
jmp 0x17139c
movq 0x2c6c41(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x173ce2(%rip), %rsi    # 0x2e5013
leaq 0x1d51e1(%rip), %rdx    # 0x346519
leaq 0x1d51f7(%rip), %rcx    # 0x346536
leaq 0x1db7c6(%rip), %r8     # 0x34cb0c
pushq $0x24
jmp 0x17139c
movq 0x2c6c17(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x173cb8(%rip), %rsi    # 0x2e5013
leaq 0x1d5223(%rip), %rdx    # 0x346585
leaq 0x1d51cd(%rip), %rcx    # 0x346536
leaq 0x1db79c(%rip), %r8     # 0x34cb0c
pushq $0x27
jmp 0x17139c
movq 0x2c6bed(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x173c8e(%rip), %rsi    # 0x2e5013
leaq 0x1d517d(%rip), %rdx    # 0x346509
leaq 0x1db75b(%rip), %rcx    # 0x34caee
leaq 0x1db61c(%rip), %r8     # 0x34c9b6
pushq $0x7a
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390