// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/tools/gt_compreads_refdecompress.c
// Function: gt_compreads_refdecompress_runner
static int gt_compreads_refdecompress_runner(GT_UNUSED int argc,
                                    GT_UNUSED const char **argv,
                                    GT_UNUSED int parsed_args,
                                    void *tool_arguments, GtError *err)
{
  GtCsrRcrDecodeArguments *arguments = tool_arguments;
  int had_err = 0;
  GtRcrDecoder *rcrd = NULL;
  GtTimer *timer = NULL;
  GtEncseq *encseq = NULL;
  GtEncseqLoader *el = NULL;

  gt_error_check(err);
  gt_assert(arguments);

  if (gt_showtime_enabled()) {
    timer = gt_timer_new_with_progress_description("start");
    gt_timer_start(timer);
    gt_assert(timer);
  }

  if (gt_str_length(arguments->name) == 0) {
    char *basename = gt_basename(gt_str_get(arguments->file));
    gt_str_set(arguments->name, basename);
    gt_free(basename);
  }
  if (timer != NULL)
    gt_timer_show_progress(timer, "load encseq", stdout);
  el = gt_encseq_loader_new();
  gt_encseq_loader_enable_autosupport(el);
  gt_encseq_loader_require_description_support(el);
  encseq = gt_encseq_loader_load(el, gt_str_get(arguments->ref), err);
  gt_encseq_loader_delete(el);
  if (!encseq) {
    gt_error_set(err, "Could not load GtEncseq %s", gt_str_get(arguments->ref));
    had_err = -1;
  }

  if (!had_err) {
    if (!gt_alphabet_is_dna(gt_encseq_alphabet(encseq))) {
      gt_error_set(err, "Alphabet in %s has to be DNA",
                   gt_str_get(arguments->ref));
      had_err = -1;
    }
  }

  if (!had_err) {
    rcrd = gt_rcr_decoder_new(gt_str_get(arguments->file), encseq, timer,
                              err);
    if (rcrd == NULL)
      had_err = -1;
  }
  if (!had_err &&
      arguments->qnames)
    had_err = gt_rcr_decoder_enable_description_support(rcrd, err);
  if (!had_err)
    had_err = gt_rcr_decoder_decode(rcrd,
                                    gt_str_get(arguments->name), timer, err);
  if (timer != NULL) {
    gt_timer_show_progress_final(timer, stdout);
    gt_timer_delete(timer);
  }
  gt_rcr_decoder_delete(rcrd);
  gt_encseq_delete(encseq);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %r15
testq %r8, %r8
je 0x1d097
movq %r14, %rdi
callq 0x89eb7
testb %al, %al
jne 0x1d2a6
testq %r15, %r15
je 0x1d27c
callq 0xaaf34
testb %al, %al
je 0x1d0f2
leaq 0x2e223d(%rip), %rdi    # 0x2ff2ed
callq 0xaf4a5
movq %rax, %rbx
movq %rax, %rdi
callq 0xaf4d6
testq %rbx, %rbx
jne 0x1d0f4
movq 0x41ae9c(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2c7f3d(%rip), %rsi    # 0x2e5013
leaq 0x2e80ed(%rip), %rdx    # 0x3051ca
leaq 0x2ca795(%rip), %rcx    # 0x2e7879
leaq 0x2ca663(%rip), %r8     # 0x2e774e
pushq $0x7a
jmp 0x1d2ce
xorl %ebx, %ebx
movq 0x10(%r15), %rdi
callq 0xad289
testq %rax, %rax
jne 0x1d135
movq (%r15), %rdi
callq 0xad1fa
movq %rax, %rdi
callq 0x5a384
movq %rax, %r12
movq 0x10(%r15), %rdi
movq %rax, %rsi
callq 0xacc8b
leaq 0x2ca626(%rip), %rsi    # 0x2e774e
movq %r12, %rdi
movl $0x80, %edx
callq 0x936f9
testq %rbx, %rbx
je 0x1d153
movq 0x41ad6f(%rip), %rax    # 0x437eb0
movq (%rax), %rdx
leaq 0x2ca750(%rip), %rsi    # 0x2e789b
movq %rbx, %rdi
callq 0xaf86f
callq 0x791cd
movq %rax, %r13
movq %rax, %rdi
callq 0x7cee0
movq %r13, %rdi
callq 0x7d470
movq 0x8(%r15), %rdi
callq 0xad1fa
movq %r13, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x7921d
movq %rax, %r12
movq %r13, %rdi
callq 0x79f01
testq %r12, %r12
je 0x1d1ff
movq %r12, %rdi
callq 0x754dd
movq %rax, %rdi
callq 0x5741b
testb %al, %al
je 0x1d211
movq (%r15), %rdi
callq 0xad1fa
movq %rax, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x10afe9
testq %rax, %rax
je 0x1d274
movq %rax, %r13
cmpb $0x1, 0x19(%r15)
jne 0x1d1e1
movq %r13, %rdi
movq %r14, %rsi
callq 0x10ba2b
testl %eax, %eax
jne 0x1d1fb
movq 0x10(%r15), %rdi
callq 0xad1fa
movq %r13, %rdi
movq %rax, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x10bad6
movl %eax, %ebp
jmp 0x1d234
movq 0x8(%r15), %rdi
callq 0xad1fa
leaq 0x2ca698(%rip), %rsi    # 0x2e78a7
jmp 0x1d221
movq 0x8(%r15), %rdi
callq 0xad1fa
leaq 0x2ca6a1(%rip), %rsi    # 0x2e78c2
xorl %r13d, %r13d
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x89dbb
pushq $-0x1
popq %rbp
testq %rbx, %rbx
je 0x1d253
movq 0x41ac70(%rip), %rax    # 0x437eb0
movq (%rax), %rsi
movq %rbx, %rdi
callq 0xafb49
movq %rbx, %rdi
callq 0xafc5b
movq %r13, %rdi
callq 0x10c978
movq %r12, %rdi
callq 0x735fd
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $-0x1
popq %rbp
xorl %r13d, %r13d
jmp 0x1d234
movq 0x41ace5(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2c7d86(%rip), %rsi    # 0x2e5013
leaq 0x32b3bf(%rip), %rdx    # 0x348653
leaq 0x2ca5de(%rip), %rcx    # 0x2e7879
leaq 0x2ca4ac(%rip), %r8     # 0x2e774e
pushq $0x75
jmp 0x1d2ce
movq 0x41acbb(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2c7d5c(%rip), %rsi    # 0x2e5013
leaq 0x2c7f01(%rip), %rdx    # 0x2e51bf
leaq 0x2ca5b4(%rip), %rcx    # 0x2e7879
leaq 0x2ca482(%rip), %r8     # 0x2e774e
pushq $0x74
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390