// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/bioseq.c
// Function: bioseq_new_with_recreate_and_type
static GtBioseq* bioseq_new_with_recreate_and_type(GtStr *sequence_file,
                                                   bool recreate, GtError *err)
{
  GtBioseq *bs;
  int had_err = 0;
  gt_error_check(err);
  bs = gt_calloc(1, sizeof *bs);
  if (!strcmp(gt_str_get(sequence_file), "-"))
    bs->use_stdin = true;
  if (!bs->use_stdin && !gt_file_exists(gt_str_get(sequence_file))) {
    gt_error_set(err, "sequence file \"%s\" does not exist or is not readable",
                 gt_str_get(sequence_file));
    had_err = -1;
  }
  if (!had_err) {
    bs->sequence_file = gt_str_ref(sequence_file);
    had_err = bioseq_fill(bs, recreate, err);
  }
  if (had_err) {
    gt_bioseq_delete(bs);
    return NULL;
  }
  gt_assert(bs->encseq);
  bs->descriptions = gt_calloc(gt_encseq_num_of_sequences(bs->encseq),
                               sizeof (char*));
  return bs;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2038, %rsp           # imm = 0x2038
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r15
testq %rdx, %rdx
je 0xba71c
movq %r14, %rdi
callq 0x3566a
testb %al, %al
jne 0xbab8f
leaq 0x46e3f(%rip), %rdx     # 0x101562
movl $0x1, %edi
movl $0x30, %esi
movl $0xe3, %ecx
callq 0x3601f
movq %rax, %rbx
movq %r15, %rdi
callq 0x3c40b
leaq 0x33626(%rip), %rsi     # 0xedd6f
movq %rax, %rdi
callq 0xb890
testl %eax, %eax
jne 0xba758
movb $0x1, (%rbx)
cmpb $0x0, (%rbx)
jne 0xba775
movq %r15, %rdi
callq 0x3c40b
movq %rax, %rdi
callq 0x75bdc
testb %al, %al
je 0xbab4a
movq %r15, %rdi
callq 0x3c561
movq %rax, 0x8(%rbx)
cmpq $0x0, 0x20(%rbx)
jne 0xbab85
movq %rax, %r15
cmpb $0x1, (%rbx)
jne 0xba7ae
leaq 0x472f2(%rip), %rdi     # 0x101a8d
callq 0x3c03d
movq %rax, %r15
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3c1dc
movq %r15, %rdi
callq 0x3c4fb
movq %rax, %r12
leaq 0x472d4(%rip), %rsi     # 0x101a94
movq %rax, %rdi
callq 0x3c067
movq %r15, %rdi
callq 0x3c4fb
leaq 0x472c2(%rip), %rsi     # 0x101a99
movq %rax, 0x18(%rsp)
movq %rax, %rdi
callq 0x3c067
movq %r15, %rdi
callq 0x3c4fb
leaq 0x472ab(%rip), %rsi     # 0x101a9e
movq %rax, 0x10(%rsp)
movq %rax, %rdi
callq 0x3c067
movq %r15, %rdi
callq 0x3c4fb
leaq 0x47294(%rip), %rsi     # 0x101aa3
movq %rax, 0x8(%rsp)
movq %rax, %rdi
callq 0x3c067
movq %r15, %rdi
callq 0x3c4fb
leaq 0x4727d(%rip), %rsi     # 0x101aa8
movq %rax, (%rsp)
movq %rax, %rdi
callq 0x3c067
testb %bpl, %bpl
jne 0xba8e5
cmpb $0x0, (%rbx)
jne 0xba8e5
movq %r12, %rdi
callq 0x3c40b
movq %rax, %rdi
callq 0x75bdc
testb %al, %al
je 0xba8e5
movq 0x18(%rsp), %rdi
callq 0x3c40b
movq %rax, %rdi
callq 0x75bdc
testb %al, %al
je 0xba8e5
movq 0x10(%rsp), %rdi
callq 0x3c40b
movq %rax, %rdi
callq 0x75bdc
testb %al, %al
je 0xba8e5
movq 0x8(%rsp), %rdi
callq 0x3c40b
movq %rax, %rdi
callq 0x75bdc
testb %al, %al
je 0xba8e5
movq (%rsp), %rdi
callq 0x3c40b
movq %rax, %rdi
callq 0x75bdc
testb %al, %al
je 0xba8e5
movq 0x8(%rbx), %rdi
callq 0x3c40b
movq %r12, %r13
movq %rax, %r12
movq %r13, %rdi
callq 0x3c40b
movq %r12, %rdi
movq %r13, %r12
movq %rax, %rsi
callq 0x75c8f
testb %al, %al
je 0xbaa61
testq %r14, %r14
je 0xba8fa
movq %r14, %rdi
callq 0x3566a
testb %al, %al
jne 0xbab94
cmpb $0x0, (%rbx)
jne 0xba91b
movq 0x8(%rbx), %rdi
callq 0x3c40b
movq %rax, 0x98471(%rip)     # 0x152d80
leaq 0xe0a(%rip), %rdi       # 0xbb720
callq 0xd800c
cmpb $0x1, (%rbx)
movq %r12, 0x28(%rsp)
jne 0xba9bf
movq %r14, 0x20(%rsp)
callq 0x3bfe0
movq %rax, %rbp
leaq 0x46c25(%rip), %rdx     # 0x101562
movq %rax, %rdi
xorl %esi, %esi
movl $0x74, %ecx
callq 0x7425e
testq %rax, %rax
je 0xbaba3
movq %rax, %r13
movq 0x96631(%rip), %r14     # 0x150f90
movq (%r14), %rcx
leaq 0x30(%rsp), %rdi
movl $0x1, %esi
movl $0x2000, %edx           # imm = 0x2000
callq 0xb940
testl %eax, %eax
jle 0xba9b0
leaq 0x30(%rsp), %r12
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl $0x1, %esi
movq %r12, %rdi
movq %rax, %rdx
movq %r13, %rcx
callq 0xbcb0
movq (%r14), %rcx
movl $0x1, %esi
movl $0x2000, %edx           # imm = 0x2000
movq %r12, %rdi
callq 0xb940
testl %eax, %eax
jg 0xba97f
movq %r13, %rdi
callq 0x73f9e
movq 0x20(%rsp), %r14
jmp 0xba9cb
movq 0x8(%rbx), %rdi
callq 0x3c561
movq %rax, %rbp
movq %rbp, %rdi
callq 0x3c434
testq %rax, %rax
je 0xbab8a
callq 0xc71cf
movq %rax, %r13
movq %rax, %rdi
callq 0xc723c
movq %r13, %rdi
callq 0xc724f
movq %r13, %rdi
callq 0xc722c
movq %r13, %rdi
callq 0xc74d7
callq 0x3d23c
movq %rax, %r12
movq %rax, %rdi
movq %rbp, %rsi
callq 0x3d3a8
movq %rbp, %rdi
callq 0x3d1eb
movq %r15, %rdi
callq 0x3c40b
movq %r13, %rdi
movq %r12, %rsi
movq %rax, %rdx
movq %r14, %rcx
callq 0xc773e
movl %eax, %ebp
cmpb $0x0, (%rbx)
jne 0xbaa44
callq 0xd80fb
movq %r12, %rdi
callq 0x3d573
movq %r13, %rdi
callq 0xc75c1
testl %ebp, %ebp
movq 0x28(%rsp), %r12
je 0xbaa61
xorl %ebp, %ebp
jmp 0xbaacc
callq 0xc6473
movq %rax, %r13
movq %rax, %rdi
callq 0xc9750
movq %r13, %rdi
callq 0xc9736
movq %r13, %rdi
callq 0xc984a
movq %r13, %rdi
callq 0xc973b
movq %r13, %rdi
callq 0xc985c
movq %r15, %rdi
callq 0x3c40b
movq %r13, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0xc64cf
movq %rax, 0x20(%rbx)
testq %rax, %rax
setne %bpl
jne 0xbaac4
movq %r14, %rdi
callq 0x3566a
testb %al, %al
je 0xbaba8
movq %r13, %rdi
callq 0xc6fd1
testb %bpl, %bpl
je 0xbaadc
cmpq $0x0, 0x20(%rbx)
je 0xbab99
cmpb $0x1, (%rbx)
jne 0xbaae9
movq %r15, %rdi
callq 0x3d1eb
movq %r12, %rdi
callq 0x3d1eb
movq 0x18(%rsp), %rdi
callq 0x3d1eb
movq 0x8(%rsp), %rdi
callq 0x3d1eb
movq 0x10(%rsp), %rdi
callq 0x3d1eb
movq (%rsp), %rdi
callq 0x3d1eb
testb %bpl, %bpl
je 0xbab66
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0xbab9e
callq 0xbef6c
leaq 0x46a30(%rip), %rdx     # 0x101562
movl $0x8, %esi
movq %rax, %rdi
movl $0xf5, %ecx
callq 0x3601f
movq %rax, 0x18(%rbx)
jmp 0xbab70
movq %r15, %rdi
callq 0x3c40b
leaq 0x46ee7(%rip), %rsi     # 0x101a40
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x3559f
movq %rbx, %rdi
callq 0xbac08
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x2038, %rsp           # imm = 0x2038
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x28769
callq 0x28884
callq 0x28730
callq 0x287a2
callq 0x2884b
callq 0x28812
callq 0x288bd
callq 0x287d9