// File: /workspace/github_c_makefile_star2_O2/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
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
testq %rdx, %rdx
je 0x2a8fd1
testq %rbx, %rbx
je 0x2a92b5
movq %rcx, %r13
movq %rdx, %r12
movq %r8, 0x10(%rsp)
testl %r9d, %r9d
je 0x2a8f73
movl 0xc0(%r14), %eax
movl 0xe0(%r14), %ecx
addq %rcx, %rax
movl 0x44(%rbx), %esi
addq %rax, %rsi
movq (%rbx), %rdi
movq 0x28(%rbx), %rcx
movl 0x40(%rbx), %eax
subq %rax, %rcx
movl %r9d, %edx
callq 0x28dfac
movq (%rbx), %rbp
movl 0x44(%rbx), %r15d
movq %r14, %rdi
callq 0x2aa38a
addq %rax, %r15
movq 0x8(%rbx), %rdx
movq 0x28(%rbx), %rcx
movq 0x50(%rsp), %rax
movq %rax, (%rsp)
movq %rbp, %rdi
movq %r15, %rsi
movq %r13, %r8
movq 0x10(%rsp), %r9
callq *%r12
cmpq $-0x1, %rax
je 0x2a9170
movq %rax, %r15
movq %r14, %rdi
callq 0x2aa38a
movl 0x44(%rbx), %ecx
addq %rax, %rcx
addq 0x90(%r14), %rcx
movq %rcx, 0x20(%rbx)
addq %r15, 0x28(%rbx)
testq %r14, %r14
je 0x2a9180
testq %rbx, %rbx
je 0x2a9180
movq 0x58(%rsp), %r15
testq %r15, %r15
je 0x2a9180
movq 0x30(%r14), %rdx
movq 0x38(%rbx), %rax
addq %rdx, %rax
movq 0x30(%rbx), %rcx
shrq $0x3, %rcx
addq 0x38(%r14), %rcx
cmpq %rcx, %rax
jae 0x2a91b1
cmpl $0x40, 0xbc(%r14)
ja 0x2a9287
movzwl 0xc4(%r14), %ebp
xorl %r12d, %r12d
movzbl %r12b, %r12d
movq (%rbx), %rdi
movl 0x44(%rbx), %esi
cmpw %r12w, %bp
jbe 0x2a9064
movq 0xd0(%r14), %rax
movq 0xd8(%r14), %rcx
leal (,%r12,4), %edx
addl (%rcx,%rdx), %esi
movl (%rax,%rdx), %edx
movq (%r15,%r12,8), %rcx
callq 0x28dfac
incb %r12b
jmp 0x2a902a
movl 0xc0(%r14), %edx
movl 0xe0(%r14), %eax
addq %rsi, %rax
movq 0x30(%rbx), %rcx
movq %rax, %rsi
callq 0x28dfac
movq 0x18(%r14), %rdi
movq 0x38(%rbx), %rsi
addq 0x30(%r14), %rsi
xorl %edx, %edx
callq 0x17c70
testl %eax, %eax
jne 0x2a9170
movq (%rbx), %rdi
movq 0x20(%rbx), %r15
shrq $0x3, %r15
movq 0x18(%r14), %rcx
pushq $0x1
popq %rsi
movq %r15, %rdx
callq 0xb302c
movl 0x20(%rbx), %eax
andl $0x7, %eax
movl %eax, 0x44(%rbx)
je 0x2a90ca
movq (%rbx), %rax
movb (%rax,%r15), %cl
movb %cl, (%rax)
movq 0x18(%r14), %rdi
movq 0x30(%rbx), %rsi
shrq $0x3, %rsi
addq 0x38(%r14), %rsi
xorl %edx, %edx
callq 0x17c70
testl %eax, %eax
jne 0x2a9170
movq 0x8(%rbx), %rdi
movq 0x28(%rbx), %r12
shrq $0x3, %r12
movq 0x18(%r14), %rcx
pushq $0x1
popq %rsi
movq %r12, %rdx
callq 0xb302c
movq 0x28(%rbx), %rax
testb $0x7, %al
je 0x2a9121
movq 0x8(%rbx), %rax
movb (%rax,%r12), %cl
movb %cl, (%rax)
movq 0x28(%rbx), %rax
movl %eax, %ecx
andl $0x7, %ecx
jmp 0x2a9123
xorl %ecx, %ecx
addq %r15, 0x38(%rbx)
movl 0xe0(%r14), %edx
movl 0xb8(%r14), %esi
movl 0xc0(%r14), %edi
addq %rdx, %rdi
movl 0x40(%rbx), %edx
movl 0x44(%rbx), %r8d
addq %rsi, %r8
addq %rdi, %r8
movq %r8, 0x20(%rbx)
subq %rdx, %rax
addq %rax, 0x30(%rbx)
movq %rcx, 0x28(%rbx)
movl %ecx, 0x40(%rbx)
pushq $0x1
popq %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xd7dc4(%rip), %rdi     # 0x380f3b
callq 0x17660
pushq $-0x1
jmp 0x2a9160
movq 0x18ede1(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x3be82(%rip), %rsi     # 0x2e5013
leaq 0xd80b6(%rip), %rdx     # 0x38124e
leaq 0xd80c8(%rip), %rcx     # 0x381267
leaq 0xd7bda(%rip), %r8      # 0x380d80
movl $0x716, %r9d            # imm = 0x716
jmp 0x2a92e1
movq 0x18edb0(%rip), %r15    # 0x437f68
movq (%r15), %rdi
leaq 0xd80b5(%rip), %rsi     # 0x381277
xorl %eax, %eax
callq 0x17a50
movq (%r15), %rdi
movq 0x38(%rbx), %rdx
leaq 0xd80af(%rip), %rsi     # 0x381286
xorl %eax, %eax
callq 0x17a50
movq (%r15), %rdi
movq 0x38(%r14), %rdx
leaq 0xd80ac(%rip), %rsi     # 0x381298
xorl %eax, %eax
callq 0x17a50
movq (%r15), %rdi
leaq 0xd80dc(%rip), %rsi     # 0x3812d9
pushq $0x8
popq %rdx
xorl %eax, %eax
callq 0x17a50
movq (%r15), %rdi
movq 0x30(%rbx), %rdx
leaq 0xd8093(%rip), %rsi     # 0x3812a8
xorl %eax, %eax
callq 0x17a50
movq (%r15), %rdi
movq 0x30(%rbx), %rdx
shrq $0x3, %rdx
leaq 0xd8095(%rip), %rsi     # 0x3812c3
xorl %eax, %eax
callq 0x17a50
movq (%r15), %rdi
leaq 0xd80f1(%rip), %rsi     # 0x381330
pushq $0x1
popq %rdx
xorl %eax, %eax
callq 0x17a50
movq (%r15), %rdi
movq 0x30(%rbx), %rdx
shrq $0x3, %rdx
leaq 0xd80b1(%rip), %rsi     # 0x38130c
xorl %eax, %eax
callq 0x17a50
movq (%r15), %rdi
movq 0x30(%rbx), %rdx
shrq $0x3, %rdx
addq 0x38(%r14), %rdx
leaq 0xd8072(%rip), %rsi     # 0x3812ea
xorl %eax, %eax
callq 0x17a50
pushq $0x2
popq %rdi
callq 0x178f0
movq 0x18ecda(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x3bd7b(%rip), %rsi     # 0x2e5013
leaq 0xd80a7(%rip), %rdx     # 0x381346
leaq 0xd7fc1(%rip), %rcx     # 0x381267
leaq 0xd7ad3(%rip), %r8      # 0x380d80
movl $0x736, %r9d            # imm = 0x736
jmp 0x2a92e1
movq 0x18ecac(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x3bd4d(%rip), %rsi     # 0x2e5013
leaq 0x8a74a(%rip), %rdx     # 0x333a17
leaq 0xd7f65(%rip), %rcx     # 0x381239
leaq 0xd7aa5(%rip), %r8      # 0x380d80
movl $0x6f9, %r9d            # imm = 0x6F9
xorl %eax, %eax
callq 0x17a50
callq 0x17390