// File: /workspace/github_c_makefile_star2_O3/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 0x1de751
cmpb $0x1, 0x8f1(%rbx)
je 0x1de764
cmpq $0x0, 0x998(%rbx)
jne 0x1de8d9
movq 0x948(%rbx), %rdi
callq 0x11b0ca
testq %rax, %rax
je 0x1de8de
movq 0x948(%rbx), %rdi
callq 0x11b0ca
testq %rax, %rax
je 0x1de6ca
xorl %r15d, %r15d
movq 0x948(%rbx), %rdi
movq 0x990(%rbx), %r14
callq 0x11b0a1
movsbl (%rax,%r15), %esi
movq %r14, %rdi
callq 0xe4cfc
incq %r15
movq 0x948(%rbx), %rdi
callq 0x11b0ca
cmpq %rax, %r15
jb 0x1de696
movq 0x990(%rbx), %rdi
callq 0xe4dae
movq 0x9b0(%rbx), %rax
incq (%rax)
leaq 0x950(%rbx), %r15
movq 0x950(%rbx), %rdi
callq 0x11b0ca
testq %rax, %rax
je 0x1de8ba
movq (%r15), %rdi
callq 0x11b0ca
testq %rax, %rax
je 0x1de740
xorl %r12d, %r12d
movq 0x950(%rbx), %rdi
movq 0x990(%rbx), %r14
callq 0x11b0a1
movsbl (%rax,%r12), %esi
movq %r14, %rdi
callq 0xe4cfc
incq %r12
movq 0x950(%rbx), %rdi
callq 0x11b0ca
cmpq %rax, %r12
jb 0x1de70c
movq 0x990(%rbx), %rdi
callq 0xe4dae
jmp 0x1de8b0
cmpq $0x0, 0x998(%rbx)
je 0x1de77f
cmpb $0x0, 0x8f1(%rbx)
je 0x1de78b
movq 0x948(%rbx), %rdi
callq 0x11b132
addq $0x950, %rbx            # imm = 0x950
movq %rbx, %r15
jmp 0x1de8c6
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x948(%rbx), %rdi
callq 0x11b0ca
testq %rax, %rax
je 0x1de8e3
cmpb $0x1, 0x9a0(%rbx)
jne 0x1de7b5
movq 0x948(%rbx), %rdi
callq 0x1deae9
movq 0x948(%rbx), %rdi
callq 0x11b0ca
testq %rax, %rax
je 0x1de809
movq %rax, %r14
movq 0x948(%rbx), %rdi
callq 0x11b0a1
cmpb $0xa, -0x1(%rax,%r14)
je 0x1de7f1
movq 0x948(%rbx), %rdi
movl $0xa, %esi
callq 0x11af23
incq %r14
leaq 0x9a8(%rbx), %r12
movq 0x9a8(%rbx), %rax
cmpq (%rax), %r14
jbe 0x1de810
movq %r14, (%rax)
jmp 0x1de810
leaq 0x9a8(%rbx), %r12
movq 0x948(%rbx), %rdi
callq 0x11b0a1
movq 0x998(%rbx), %rsi
movq %rax, %rdi
callq 0x11f82c
movq 0x9b0(%rbx), %rax
incq (%rax)
leaq 0x950(%rbx), %r15
movq 0x950(%rbx), %rdi
callq 0x11b0ca
testq %rax, %rax
je 0x1de8ba
cmpb $0x1, 0x9a0(%rbx)
jne 0x1de85e
movq (%r15), %rdi
callq 0x1deae9
movq (%r15), %rdi
callq 0x11b0ca
movq %rax, %r14
movq (%r15), %rdi
callq 0x11b0a1
cmpb $0xa, -0x1(%rax,%r14)
je 0x1de889
movq (%r15), %rdi
movl $0xa, %esi
callq 0x11af23
incq %r14
movq (%r12), %rax
cmpq (%rax), %r14
jbe 0x1de895
movq %r14, (%rax)
movq 0x950(%rbx), %rdi
callq 0x11b0a1
movq 0x998(%rbx), %rsi
movq %rax, %rdi
callq 0x11f82c
movq 0x9b0(%rbx), %rax
incq (%rax)
movq 0x948(%rbx), %rdi
callq 0x11b132
movq (%r15), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x11b132
callq 0x73d1e
callq 0x73d57
callq 0x73d90