// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x88, %rsp
movl %edi, 0x84(%rsp)
movq %rsi, 0x78(%rsp)
movl %edx, 0x74(%rsp)
movq %rcx, 0x68(%rsp)
movq %r8, 0x60(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x58(%rsp)
movl $0x0, 0x54(%rsp)
movq $0x0, 0x48(%rsp)
movq $0x0, 0x40(%rsp)
movq $0x0, 0x38(%rsp)
movq $0x0, 0x30(%rsp)
cmpq $0x0, 0x60(%rsp)
je 0x21cc7
movq 0x60(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x21c8f
jmp 0x21cc7
movq 0x61a30a(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4f4373(%rip), %rsi    # 0x516013
leaq 0x4f4518(%rip), %rdx    # 0x5161bf
leaq 0x4f6c05(%rip), %rcx    # 0x5188b3
leaq 0x4f6ad3(%rip), %r8     # 0x518788
movl $0x74, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x21cc9
jmp 0x21ccb
cmpq $0x0, 0x58(%rsp)
jne 0x21d0b
movq 0x61a2c6(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4f432f(%rip), %rsi    # 0x516013
leaq 0x558e74(%rip), %rdx    # 0x57ab5f
leaq 0x4f6bc1(%rip), %rcx    # 0x5188b3
leaq 0x4f6a8f(%rip), %r8     # 0x518788
movl $0x75, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x21d0d
callq 0x11aa90
testb $0x1, %al
jne 0x21d18
jmp 0x21d77
leaq 0x552a32(%rip), %rdi    # 0x574751
callq 0x1213a0
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rdi
callq 0x1213f0
cmpq $0x0, 0x40(%rsp)
jne 0x21d73
movq 0x61a25e(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4f42c7(%rip), %rsi    # 0x516013
leaq 0x5147f9(%rip), %rdx    # 0x53654c
leaq 0x4f6b59(%rip), %rcx    # 0x5188b3
leaq 0x4f6a27(%rip), %r8     # 0x518788
movl $0x7a, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x21d75
jmp 0x21d77
movq 0x58(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x11dfa0
cmpq $0x0, %rax
jne 0x21dce
movq 0x58(%rsp), %rax
movq (%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
callq 0x83ee0
movq %rax, 0x28(%rsp)
movq 0x58(%rsp), %rax
movq 0x10(%rax), %rdi
movq 0x28(%rsp), %rsi
callq 0x11d650
movq 0x28(%rsp), %rdi
leaq 0x4f69c4(%rip), %rsi    # 0x518788
movl $0x80, %edx
callq 0xe88c0
cmpq $0x0, 0x40(%rsp)
je 0x21df1
movq 0x40(%rsp), %rdi
movq 0x61a156(%rip), %rax    # 0x63bf38
movq (%rax), %rdx
leaq 0x4f6ae9(%rip), %rsi    # 0x5188d5
callq 0x121930
callq 0xb7a40
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rdi
callq 0xba590
movq 0x30(%rsp), %rdi
callq 0xbacc0
movq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x11dee0
movq 0x20(%rsp), %rdi
movq %rax, %rsi
movq 0x60(%rsp), %rdx
callq 0xb7aa0
movq %rax, 0x38(%rsp)
movq 0x30(%rsp), %rdi
callq 0xb7e50
cmpq $0x0, 0x38(%rsp)
jne 0x21e86
movq 0x60(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x11dee0
movq 0x18(%rsp), %rdi
movq %rax, %rdx
leaq 0x4f6a6a(%rip), %rsi    # 0x5188e1
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x54(%rsp)
jne 0x21edb
movq 0x38(%rsp), %rdi
callq 0xb0f00
movq %rax, %rdi
callq 0x7f400
testb $0x1, %al
jne 0x21ed9
movq 0x60(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x11dee0
movq 0x10(%rsp), %rdi
movq %rax, %rdx
leaq 0x4f6a32(%rip), %rsi    # 0x5188fc
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x21edb
cmpl $0x0, 0x54(%rsp)
jne 0x21f1d
movq 0x58(%rsp), %rax
movq (%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq 0x60(%rsp), %rcx
callq 0x1bd400
movq %rax, 0x48(%rsp)
cmpq $0x0, 0x48(%rsp)
jne 0x21f1b
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x21f1d
cmpl $0x0, 0x54(%rsp)
jne 0x21f42
movq 0x58(%rsp), %rax
testb $0x1, 0x19(%rax)
je 0x21f42
movq 0x48(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x1be310
movl %eax, 0x54(%rsp)
cmpl $0x0, 0x54(%rsp)
jne 0x21f7c
movq 0x48(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x58(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x11dee0
movq 0x8(%rsp), %rdi
movq %rax, %rsi
movq 0x40(%rsp), %rdx
movq 0x60(%rsp), %rcx
callq 0x1be420
movl %eax, 0x54(%rsp)
cmpq $0x0, 0x40(%rsp)
je 0x21fa2
movq 0x40(%rsp), %rdi
movq 0x619fa8(%rip), %rax    # 0x63bf38
movq (%rax), %rsi
callq 0x121d70
movq 0x40(%rsp), %rdi
callq 0x121f00
movq 0x48(%rsp), %rdi
callq 0x1bf190
movq 0x38(%rsp), %rdi
callq 0xae070
movl 0x54(%rsp), %eax
addq $0x88, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)