// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/reads2twobit.c
// Function: gt_reads2twobit_finalize_descriptions
static void gt_reads2twobit_finalize_descriptions(
    GtReads2TwobitEncodeState *state)
{
  if (state->descs != NULL || state->descsfp != NULL)
  {
    if (state->invalid_mode)
    {
      gt_str_reset(state->dbuf);
      gt_str_reset(state->dbuf2);
    }
    else if (state->descs != NULL)
    {
      gt_assert(state->descsfp == NULL);
      gt_reads2twobit_finalize_descriptions_membased(state);
    }
    else
    {
      gt_assert(state->descsfp != NULL);
      gt_reads2twobit_finalize_descriptions_diskbased(state);
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, 0x990(%rdi)
je 0x18c547
cmpb $0x1, 0x8f1(%rbx)
je 0x18c562
cmpq $0x0, 0x998(%rbx)
jne 0x18c743
movq 0x948(%rbx), %rdi
callq 0xad289
testq %rax, %rax
je 0x18c771
xorl %r15d, %r15d
movq 0x948(%rbx), %rdi
callq 0xad289
movq 0x990(%rbx), %r14
cmpq %rax, %r15
jae 0x18c57d
movq 0x948(%rbx), %rdi
callq 0xad1fa
movsbl (%rax,%r15), %esi
movq %r14, %rdi
callq 0x6d043
incq %r15
jmp 0x18c511
cmpq $0x0, 0x998(%rbx)
je 0x18c5ed
cmpb $0x0, 0x8f1(%rbx)
je 0x18c5f9
movq 0x948(%rbx), %rdi
callq 0xad357
addq $0x950, %rbx            # imm = 0x950
movq %rbx, %r15
jmp 0x18c730
movq %r14, %rdi
callq 0x6d157
movq 0x9b0(%rbx), %rax
incq (%rax)
leaq 0x950(%rbx), %r15
movq 0x950(%rbx), %rdi
callq 0xad289
testq %rax, %rax
je 0x18c724
xorl %r12d, %r12d
movq 0x950(%rbx), %rdi
callq 0xad289
movq 0x990(%rbx), %r14
cmpq %rax, %r12
jae 0x18c5e0
movq (%r15), %rdi
callq 0xad1fa
movsbl (%rax,%r12), %esi
movq %r14, %rdi
callq 0x6d043
incq %r12
jmp 0x18c5ae
movq %r14, %rdi
callq 0x6d157
jmp 0x18c71a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x948(%rbx), %rdi
callq 0xad289
testq %rax, %rax
je 0x18c79f
cmpb $0x1, 0x9a0(%rbx)
jne 0x18c623
movq 0x948(%rbx), %rdi
callq 0x18ca3a
movq 0x948(%rbx), %rdi
callq 0xad289
testq %rax, %rax
je 0x18c675
movq %rax, %r14
movq 0x948(%rbx), %rdi
callq 0xad1fa
cmpb $0xa, -0x1(%rax,%r14)
je 0x18c65d
movq 0x948(%rbx), %rdi
pushq $0xa
popq %rsi
callq 0xaced9
incq %r14
leaq 0x9a8(%rbx), %r12
movq 0x9a8(%rbx), %rax
cmpq (%rax), %r14
jbe 0x18c67c
movq %r14, (%rax)
jmp 0x18c67c
leaq 0x9a8(%rbx), %r12
movq 0x948(%rbx), %rdi
callq 0xad1fa
movq 0x998(%rbx), %rsi
movq %rax, %rdi
callq 0xb2f4f
movq 0x9b0(%rbx), %rax
incq (%rax)
leaq 0x950(%rbx), %r15
movq 0x950(%rbx), %rdi
callq 0xad289
testq %rax, %rax
je 0x18c724
cmpb $0x1, 0x9a0(%rbx)
jne 0x18c6ca
movq (%r15), %rdi
callq 0x18ca3a
movq (%r15), %rdi
callq 0xad289
movq %rax, %r14
movq (%r15), %rdi
callq 0xad1fa
cmpb $0xa, -0x1(%rax,%r14)
je 0x18c6f3
movq (%r15), %rdi
pushq $0xa
popq %rsi
callq 0xaced9
incq %r14
movq (%r12), %rax
cmpq (%rax), %r14
jbe 0x18c6ff
movq %r14, (%rax)
movq 0x950(%rbx), %rdi
callq 0xad1fa
movq 0x998(%rbx), %rsi
movq %rax, %rdi
callq 0xb2f4f
movq 0x9b0(%rbx), %rax
incq (%rax)
movq 0x948(%rbx), %rdi
callq 0xad357
movq (%r15), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xad357
movq 0x2ab81e(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1588bf(%rip), %rsi    # 0x2e5013
leaq 0x1c6634(%rip), %rdx    # 0x352d8f
leaq 0x1c6644(%rip), %rcx    # 0x352da6
leaq 0x1c5eed(%rip), %r8     # 0x352656
movl $0x2e9, %r9d            # imm = 0x2E9
jmp 0x18c7cb
movq 0x2ab7f0(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x158891(%rip), %rsi    # 0x2e5013
leaq 0x1c6ace(%rip), %rdx    # 0x353257
leaq 0x1c6651(%rip), %rcx    # 0x352de1
leaq 0x1c5ebf(%rip), %r8     # 0x352656
movl $0x2c9, %r9d            # imm = 0x2C9
jmp 0x18c7cb
movq 0x2ab7c2(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x158863(%rip), %rsi    # 0x2e5013
leaq 0x1c6aa0(%rip), %rdx    # 0x353257
leaq 0x1c6652(%rip), %rcx    # 0x352e10
leaq 0x1c5e91(%rip), %r8     # 0x352656
movl $0x2a3, %r9d            # imm = 0x2A3
xorl %eax, %eax
callq 0x17a50
callq 0x17390