// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/tools/gt_encseq_decode.c
// Function: decode_sequence_file
static int decode_sequence_file(const char *seqfile,
                                GtEncseqDecodeArguments *args,
                                GtError *err)
{
  GtEncseqLoader *encseq_loader;
  GtEncseq *encseq;
  int had_err = 0;
  gt_error_check(err);
  gt_assert(seqfile);
  encseq_loader = gt_encseq_loader_new();
  if (!had_err && gt_encseq_options_lossless_value(args->eopts)) {
    gt_encseq_loader_require_lossless_support(encseq_loader);
  }
  if (!(encseq = gt_encseq_loader_load(encseq_loader, seqfile, err)))
    had_err = -1;
  if (!had_err && gt_encseq_options_mirrored_value(args->eopts)) {
    if (!gt_alphabet_is_dna(gt_encseq_alphabet(encseq))) {
      gt_error_set(err, "mirroring is only defined on DNA sequences");
      had_err = -1;
    }
    if (!had_err)
      had_err = gt_encseq_mirror(encseq, err);
  }
  if (!had_err)
    had_err = output_sequence(encseq, args, seqfile, err);
  gt_encseq_delete(encseq);
  gt_encseq_loader_delete(encseq_loader);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2038, %rsp           # imm = 0x2038
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, %rbx
testq %rdx, %rdx
je 0xa41f1
movq %r13, %rdi
callq 0xfcc32
testb %al, %al
jne 0xa46d0
testq %rbx, %rbx
je 0xa46c6
callq 0xef0cd
movq %rax, %r15
movq 0x38(%r12), %rdi
callq 0xfc726
testb %al, %al
je 0xa4218
movq %r15, %rdi
callq 0xf2371
movq %r15, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0xef129
movq %rax, %r14
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0xa46a2
movq 0x38(%r12), %rdi
callq 0xfc76d
testb %al, %al
je 0xa4272
movq %r14, %rdi
callq 0xebcd9
movq %rax, %rdi
callq 0xd1749
testb %al, %al
je 0xa4330
movq %r14, %rdi
movq %r13, %rsi
callq 0xf24ac
movl %eax, %ebp
testl %eax, %eax
jne 0xa46a2
movq %r13, 0x18(%rsp)
movq %r15, 0x8(%rsp)
movq %r14, %rdi
callq 0xec569
movb %al, 0x7(%rsp)
testb %al, %al
jne 0xa429d
leaq 0x2a7352(%rip), %rdi    # 0x34b5e5
movq %rbx, %rsi
xorl %eax, %eax
callq 0x11f68c
movq 0x8(%r12), %rdi
callq 0x11b0a1
leaq 0x2d5862(%rip), %rsi    # 0x379b10
movq %rax, %rdi
callq 0x17a40
testl %eax, %eax
movq %r12, 0x10(%rsp)
je 0xa434b
movq 0x8(%r12), %rdi
callq 0x11b0a1
leaq 0x2a4d90(%rip), %rsi    # 0x349064
movq %rax, %rdi
callq 0x17a40
xorl %ebp, %ebp
testl %eax, %eax
movq 0x8(%rsp), %r15
jne 0xa46a2
movq %r14, %rdi
callq 0xe7b9c
movq %rax, %rbx
decq %rbx
movq 0x18(%r12), %r13
cmpq $-0x1, %r13
je 0xa4371
movq 0x20(%r12), %rdx
cmpq $-0x1, %rdx
je 0xa4371
cmpq %rbx, %rdx
jbe 0xa45a3
leaq 0x2a737e(%rip), %rsi    # 0x34b69d
movq 0x18(%rsp), %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0xfcb67
jmp 0xa4341
leaq 0x2a7273(%rip), %rsi    # 0x34b5aa
movq %r13, %rdi
xorl %eax, %eax
callq 0xfcb67
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0xa46a2
movq 0x50(%r12), %rbx
cmpq $-0x1, %rbx
je 0xa4379
movq %r14, %rdi
callq 0xe7bac
movq 0x50(%r12), %r13
cmpq %rax, %rbx
jae 0xa43c2
leaq 0x1(%r13), %rax
jmp 0xa43f3
xorl %r13d, %r13d
jmp 0xa45a6
movq 0x28(%r12), %rbx
cmpq $-0x1, %rbx
je 0xa43e8
cmpq $-0x1, 0x30(%r12)
je 0xa43e8
movq %r14, %rdi
callq 0xe7bac
cmpq %rax, %rbx
jae 0xa466a
movq 0x30(%r12), %rbx
movq %r14, %rdi
callq 0xe7bac
cmpq %rax, %rbx
jae 0xa466a
movq 0x28(%r12), %r13
movq 0x30(%r12), %rax
incq %rax
jmp 0xa43f3
movq %r14, %rdi
callq 0xe7bac
leaq 0x2a723c(%rip), %rsi    # 0x34b60d
movq 0x18(%rsp), %rdi
movq %r13, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xfcb67
jmp 0xa4698
movq %r14, %rdi
callq 0xe7bac
xorl %r13d, %r13d
cmpq %rax, %r13
jae 0xa42c3
movq 0x414ad5(%rip), %r15    # 0x4b8ed8
movq %rax, 0x28(%rsp)
movl 0x40(%r12), %eax
orl $0x2, %eax
movq %r14, %rdi
movq %r13, %rsi
cmpl $0x3, %eax
jne 0xa4479
callq 0xeb6ee
movq %r14, %rdi
callq 0xe7bac
movq %r13, %r12
notq %r12
leaq (%rax,%r12), %rsi
movq %r14, %rdi
callq 0xeb9d2
movq %rax, %rbx
movq %r14, %rdi
callq 0xe7b9c
movq %rax, %rbp
movq %r14, %rdi
callq 0xe7bac
leaq (%rax,%r12), %rsi
movq %r14, %rdi
callq 0xeb6ee
addq %rbx, %rax
subq %rax, %rbp
cmpb $0x0, 0x7(%rsp)
je 0xa44b3
movq %r14, %rdi
callq 0xe7bac
movq %rax, %rdx
addq %r12, %rdx
jmp 0xa4499
callq 0xeb6ee
movq %rax, %rbp
movq %r14, %rdi
movq %r13, %rsi
callq 0xeb9d2
movq %rax, %rbx
cmpb $0x0, 0x7(%rsp)
je 0xa44b3
movq %r13, %rdx
movq %r14, %rdi
leaq 0x20(%rsp), %rsi
callq 0xec19e
movq %rax, %r12
testq %rax, %rax
jne 0xa44de
jmp 0xa46cb
movl $0x2000, %esi           # imm = 0x2000
leaq 0x30(%rsp), %r12
movq %r12, %rdi
leaq 0x31ca85(%rip), %rdx    # 0x3c0f4c
movq %r13, %rcx
xorl %eax, %eax
callq 0x17c60
movq %r12, %rdi
callq 0x172f0
movq %rax, 0x20(%rsp)
movq (%r15), %rsi
movl $0x3e, %edi
callq 0x11f81a
movq 0x20(%rsp), %rdx
movq (%r15), %rcx
movl $0x1, %esi
movq %r12, %rdi
callq 0x11f89c
movq (%r15), %rsi
movl $0xa, %edi
callq 0x11f81a
movq 0x10(%rsp), %r12
cmpb $0x1, (%r12)
jne 0xa4543
testq %rbx, %rbx
je 0xa4580
movl 0x40(%r12), %edx
movq %r14, %rdi
movq %rbp, %rsi
callq 0xe7e3c
movsbl %al, %edi
movq (%r15), %rsi
callq 0x11f81a
incq %rbp
decq %rbx
jne 0xa451e
jmp 0xa4580
movl 0x40(%r12), %esi
movq %r14, %rdi
movq %rbp, %rdx
callq 0xe91b2
movq %rax, %r12
testq %rbx, %rbx
je 0xa4573
movq %r12, %rdi
callq 0xe8b85
movsbl %al, %edi
movq (%r15), %rsi
callq 0x11f81a
decq %rbx
jne 0xa455b
movq %r12, %rdi
callq 0xe9204
movq 0x10(%rsp), %r12
movq (%r15), %rsi
movl $0xa, %edi
callq 0x11f81a
incq %r13
movq 0x28(%rsp), %rax
cmpq %rax, %r13
jne 0xa4408
jmp 0xa42c3
movq %rdx, %rbx
cmpb $0x1, (%r12)
jne 0xa45f7
cmpq %rbx, %r13
ja 0xa4652
movq 0x41491b(%rip), %r15    # 0x4b8ed8
movq 0x10(%rsp), %r12
movl 0x40(%r12), %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0xe7e3c
cmpb $-0x1, %al
jne 0xa45e2
movq 0x10(%r12), %rdi
callq 0x11b0a1
movb (%rax), %al
movsbl %al, %edi
movq (%r15), %rsi
callq 0x11f81a
incq %r13
cmpq %rbx, %r13
jbe 0xa45c2
jmp 0xa4652
movl 0x40(%r12), %esi
movq %r14, %rdi
movq %r13, %rdx
callq 0xe91b2
testq %rax, %rax
je 0xa4652
movq %rax, %r12
cmpq %rbx, %r13
ja 0xa464a
movq 0x4148bd(%rip), %r15    # 0x4b8ed8
movq %r12, %rdi
callq 0xe8b85
cmpb $-0x1, %al
jne 0xa4637
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x11b0a1
movb (%rax), %al
movsbl %al, %edi
movq (%r15), %rsi
callq 0x11f81a
incq %r13
cmpq %rbx, %r13
jbe 0xa461b
movq %r12, %rdi
callq 0xe9204
movq 0x41487f(%rip), %rax    # 0x4b8ed8
movq (%rax), %rsi
movl $0xa, %edi
callq 0x11f81a
xorl %ebp, %ebp
jmp 0xa469d
movq 0x28(%r12), %rbx
movq 0x30(%r12), %r15
movq %r14, %rdi
callq 0xe7bac
leaq 0x2a6fc3(%rip), %rsi    # 0x34b646
movq 0x18(%rsp), %rdi
movq %rbx, %rdx
movq %r15, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0xfcb67
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq 0x8(%rsp), %r15
movq %r14, %rdi
callq 0xea375
movq %r15, %rdi
callq 0xefbe3
movl %ebp, %eax
addq $0x2038, %rsp           # imm = 0x2038
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1a35d
callq 0x1a324
callq 0x1a2eb
nopl (%rax)