// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/eis-blockcomp.c
// Function: writeOutputBuffer
static int
writeOutputBuffer(struct blockCompositionSeq *newSeqIdx,
                  struct appendState *aState, bitInsertFunc biFunc,
                  GtUword lastUpdatePos, size_t bucketLen,
                  unsigned callBackDataOffsetBits, void *cbState,
                  const partialSymSum *buckLast)
{
  if (biFunc)
    if (appendCallBackOutput(aState, newSeqIdx, biFunc,
                             lastUpdatePos, bucketLen,
                             callBackDataOffsetBits, cbState)
        == (BitOffset)-1)
    {
      perror("error condition while writing block-compressed"
             " index data");
      return -1;
    }
  if (!updateIdxOutput(newSeqIdx, aState, buckLast))
  {
    perror("error condition while writing block-compressed"
           " index data");
    return -1;
  }
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
testq %rdx, %rdx
je 0x30a368
testq %rbx, %rbx
je 0x30a556
movq %r8, %r15
movq %rcx, %r13
movq %rdx, %r12
movq 0x40(%rsp), %rbp
testl %r9d, %r9d
je 0x30a2d7
movl 0xc0(%r14), %eax
movl 0xe0(%r14), %ecx
addq %rax, %rcx
movl 0x44(%rbx), %esi
addq %rcx, %rsi
movq (%rbx), %rdi
movq 0x28(%rbx), %rcx
movl 0x40(%rbx), %eax
subq %rax, %rcx
movl %r9d, %edx
callq 0x2f388c
movl 0x44(%rbx), %eax
movl 0xc0(%r14), %ecx
addq %rax, %rcx
movl 0xe0(%r14), %eax
movl 0x68(%r14), %esi
movl 0xb8(%r14), %edx
addq %rax, %rdx
addq %rcx, %rdx
imull 0xb0(%r14), %esi
addq %rdx, %rsi
movq (%rbx), %rdi
movq 0x8(%rbx), %rdx
movq 0x28(%rbx), %rcx
movq %rbp, (%rsp)
movq %r13, %r8
movq %r15, %r9
callq *%r12
cmpq $-0x1, %rax
je 0x30a523
movl 0xc0(%r14), %ecx
movl 0xe0(%r14), %edx
addq %rcx, %rdx
movl 0x68(%r14), %ecx
movl 0xb8(%r14), %esi
addq %rdx, %rsi
imull 0xb0(%r14), %ecx
movl 0x44(%rbx), %edx
addq %rsi, %rdx
addq %rcx, %rdx
addq 0x90(%r14), %rdx
movq %rdx, 0x20(%rbx)
addq %rax, 0x28(%rbx)
testq %r14, %r14
je 0x30a536
testq %rbx, %rbx
je 0x30a536
movq 0x48(%rsp), %r12
testq %r12, %r12
je 0x30a536
movq 0x30(%r14), %rdi
movq 0x38(%rbx), %rax
addq %rdi, %rax
leaq 0x30(%rbx), %r15
movq 0x30(%rbx), %rcx
movq %rcx, %rdx
shrq $0x3, %rdx
addq 0x38(%r14), %rdx
cmpq %rdx, %rax
jae 0x30a53b
cmpl $0x40, 0xbc(%r14)
ja 0x30a551
movzwl 0xc4(%r14), %ebp
testw %bp, %bp
je 0x30a413
movb $0x1, %r13b
leal -0x1(%r13), %eax
movq (%rbx), %rdi
movq 0xd0(%r14), %rcx
movq 0xd8(%r14), %rdx
movzbl %al, %eax
leal (,%rax,4), %r8d
movl (%rdx,%r8), %esi
addl 0x44(%rbx), %esi
movl (%rcx,%r8), %edx
movq (%r12,%rax,8), %rcx
callq 0x2f388c
movzbl %r13b, %eax
movl %eax, %r13d
incb %r13b
cmpw %ax, %bp
ja 0x30a3cd
movq (%r15), %rcx
movq (%rbx), %rdi
movl 0x44(%rbx), %eax
movl 0xc0(%r14), %edx
movl 0xe0(%r14), %esi
addq %rax, %rsi
callq 0x2f388c
movq 0x18(%r14), %rdi
movq 0x38(%rbx), %rsi
addq 0x30(%r14), %rsi
xorl %edx, %edx
callq 0x17cf0
testl %eax, %eax
jne 0x30a523
movq (%rbx), %rdi
movq 0x20(%rbx), %r12
shrq $0x3, %r12
movq 0x18(%r14), %rcx
movl $0x1, %esi
movq %r12, %rdx
callq 0x11f89c
movl 0x20(%rbx), %eax
andl $0x7, %eax
movl %eax, 0x44(%rbx)
je 0x30a47a
movq (%rbx), %rax
movb (%rax,%r12), %cl
movb %cl, (%rax)
movq 0x18(%r14), %rdi
movq (%r15), %rsi
shrq $0x3, %rsi
addq 0x38(%r14), %rsi
xorl %edx, %edx
callq 0x17cf0
testl %eax, %eax
jne 0x30a523
movq 0x8(%rbx), %rdi
movq 0x28(%rbx), %r15
shrq $0x3, %r15
movq 0x18(%r14), %rcx
movl $0x1, %esi
movq %r15, %rdx
callq 0x11f89c
movq 0x28(%rbx), %rax
testb $0x7, %al
je 0x30a4d2
movq 0x8(%rbx), %rax
movb (%rax,%r15), %cl
movb %cl, (%rax)
movq 0x28(%rbx), %rax
movl %eax, %ecx
andl $0x7, %ecx
jmp 0x30a4d4
xorl %ecx, %ecx
addq %r12, 0x38(%rbx)
movl 0xb8(%r14), %edx
movl 0xc0(%r14), %esi
movl 0xe0(%r14), %edi
addq %rsi, %rdi
movl 0x40(%rbx), %esi
movl 0x44(%rbx), %r8d
addq %rdx, %r8
addq %rdi, %r8
movq %r8, 0x20(%rbx)
subq %rsi, %rax
addq %rax, 0x30(%rbx)
movq %rcx, 0x28(%rbx)
movl %ecx, 0x40(%rbx)
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xd6661(%rip), %rdi     # 0x3e0b8b
callq 0x17690
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x30a514
callq 0x8f7f0
addq $0x38, %rbx
addq $0x38, %r14
movq %rbx, %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x8f829
callq 0x8f915
callq 0x8f7b7