// File: /workspace/github_c_makefile_star2_O1/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
movq 0x990(%rdi), %rax
testq %rax, %rax
jne 0x1e7e8a
cmpq $0x0, 0x998(%rbx)
je 0x1e801c
cmpb $0x1, 0x8f1(%rbx)
jne 0x1e7eae
movq 0x948(%rbx), %rdi
callq 0x120db4
addq $0x950, %rbx            # imm = 0x950
movq %rbx, %r15
jmp 0x1e80f3
movq 0x998(%rbx), %rcx
testq %rax, %rax
je 0x1e7fab
testq %rcx, %rcx
jne 0x1e8106
movq 0x948(%rbx), %rdi
callq 0x120d4c
testq %rax, %rax
je 0x1e810b
movq 0x948(%rbx), %rdi
callq 0x120d4c
testq %rax, %rax
je 0x1e7f24
xorl %r15d, %r15d
movq 0x948(%rbx), %rdi
movq 0x990(%rbx), %r14
callq 0x120d23
movsbl (%rax,%r15), %esi
movq %r14, %rdi
callq 0xe91d8
incq %r15
movq 0x948(%rbx), %rdi
callq 0x120d4c
cmpq %rax, %r15
jb 0x1e7ef0
movq 0x990(%rbx), %rdi
callq 0xe928a
movq 0x9b0(%rbx), %rax
incq (%rax)
leaq 0x950(%rbx), %r15
movq 0x950(%rbx), %rdi
callq 0x120d4c
testq %rax, %rax
je 0x1e80e7
movq (%r15), %rdi
callq 0x120d4c
testq %rax, %rax
je 0x1e7f9a
xorl %r12d, %r12d
movq 0x950(%rbx), %rdi
movq 0x990(%rbx), %r14
callq 0x120d23
movsbl (%rax,%r12), %esi
movq %r14, %rdi
callq 0xe91d8
incq %r12
movq 0x950(%rbx), %rdi
callq 0x120d4c
cmpq %rax, %r12
jb 0x1e7f66
movq 0x990(%rbx), %rdi
callq 0xe928a
jmp 0x1e80dd
testq %rcx, %rcx
je 0x1e8110
movq 0x948(%rbx), %rdi
callq 0x120d4c
testq %rax, %rax
je 0x1e8115
cmpb $0x1, 0x9a0(%rbx)
jne 0x1e7fde
movq 0x948(%rbx), %rdi
callq 0x1e830a
movq 0x948(%rbx), %rdi
callq 0x120d4c
testq %rax, %rax
je 0x1e8028
movq %rax, %r14
movq 0x948(%rbx), %rdi
callq 0x120d23
cmpb $0xa, -0x1(%rax,%r14)
je 0x1e802b
movq 0x948(%rbx), %rdi
movl $0xa, %esi
callq 0x120ba5
incq %r14
jmp 0x1e802b
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
xorl %r14d, %r14d
movq 0x9a8(%rbx), %rax
cmpq (%rax), %r14
jbe 0x1e803a
movq %r14, (%rax)
movq 0x948(%rbx), %rdi
callq 0x120d23
movq 0x998(%rbx), %rsi
movq %rax, %rdi
callq 0x1255e8
movq 0x9b0(%rbx), %rax
incq (%rax)
leaq 0x950(%rbx), %r15
movq 0x950(%rbx), %rdi
callq 0x120d4c
testq %rax, %rax
je 0x1e80e7
cmpb $0x1, 0x9a0(%rbx)
jne 0x1e8088
movq (%r15), %rdi
callq 0x1e830a
movq (%r15), %rdi
callq 0x120d4c
movq %rax, %r14
movq (%r15), %rdi
callq 0x120d23
cmpb $0xa, -0x1(%rax,%r14)
je 0x1e80b3
movq (%r15), %rdi
movl $0xa, %esi
callq 0x120ba5
incq %r14
movq 0x9a8(%rbx), %rax
cmpq (%rax), %r14
jbe 0x1e80c2
movq %r14, (%rax)
movq 0x950(%rbx), %rdi
callq 0x120d23
movq 0x998(%rbx), %rsi
movq %rax, %rdi
callq 0x1255e8
movq 0x9b0(%rbx), %rax
incq (%rax)
movq 0x948(%rbx), %rdi
callq 0x120db4
movq (%r15), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x120db4
callq 0x75972
callq 0x759ab
callq 0x75a1d
callq 0x759e4