// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/tools/gt_compreads_decompress.c
// Function: gt_compreads_decompress_runner
static int gt_compreads_decompress_runner(GT_UNUSED int argc,
                                    GT_UNUSED const char **argv,
                                    GT_UNUSED int parsed_args,
                                    void *tool_arguments, GtError *err)
{
  GtCsrHcrDecodeArguments *arguments = tool_arguments;
  int had_err = 0;
  GtAlphabet *alpha = NULL;
  GtHcrDecoder *hcrd = NULL;
  GtTimer *timer = NULL;
  GtUword start,
                end;

  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->smap) > 0) {
    alpha = gt_alphabet_new_from_file_no_suffix(gt_str_get(arguments->smap),
                                                err);
    if (!alpha)
      had_err = -1;
  }
  else {
    alpha = gt_alphabet_new_dna();
    if (!alpha)
      had_err = -1;
  }

  if (!had_err) {
    if (timer != NULL)
      gt_timer_show_progress(timer, "decoding", stdout);

    if (gt_str_length(arguments->name) == 0) {
      char *basenameptr;
      basenameptr = gt_basename(gt_str_get(arguments->file));
      gt_str_set(arguments->name, basenameptr);
      gt_free(basenameptr);
    }
    hcrd = gt_hcr_decoder_new(gt_str_get(arguments->file), alpha,
                              arguments->descs, timer, err);
    if (hcrd == NULL)
      had_err = -1;
    else {
      if (arguments->bench != 0) {
        had_err = gt_compreads_decompress_benchmark(hcrd,
                                                    arguments->bench,
                                                    timer, err);
      }
      else {
        if (arguments->rng.start != GT_UNDEF_UWORD
            && arguments->rng.end != GT_UNDEF_UWORD) {
          if (arguments->rng.start >= gt_hcr_decoder_num_of_reads(hcrd)
                || arguments->rng.end >= gt_hcr_decoder_num_of_reads(hcrd)) {
            gt_error_set(err, "range " GT_WU "-" GT_WU " includes a read "
                              "number exceeding the total number of reads ("
                              GT_WU ")",
                              arguments->rng.start,
                              arguments->rng.end,
                              gt_hcr_decoder_num_of_reads(hcrd));
            had_err = -1;
          }
          start = arguments->rng.start;
          end = arguments->rng.end;
        }
        else {
          start = 0;
          end = gt_hcr_decoder_num_of_reads(hcrd) - 1;
        }
        if (!had_err) {
          gt_log_log("filebasename: %s", gt_str_get(arguments->name));
          if (gt_hcr_decoder_decode_range(hcrd, gt_str_get(arguments->name),
                                          start, end, arguments->width,
                                          timer, err)
            != 0)
            had_err = -1;
        }
      }
    }
    gt_hcr_decoder_delete(hcrd);
  }
  gt_alphabet_delete(alpha);
  if (timer != NULL) {
    gt_timer_show_progress_final(timer, stdout);
    gt_timer_delete(timer);
  }
  if (had_err)
    gt_assert(gt_error_is_set(err));
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4048, %rsp           # imm = 0x4048
movq %r8, %r12
movq %rcx, %r13
testq %r8, %r8
je 0x9b75a
movq %r12, %rdi
callq 0xfcc32
testb %al, %al
jne 0x9bb67
testq %r13, %r13
je 0x9bb62
callq 0x119160
testb %al, %al
je 0x9b78d
leaq 0x306a1e(%rip), %rdi    # 0x3a2191
callq 0x11c986
movq %rax, %rbx
movq %rax, %rdi
callq 0x11c9e3
testq %rbx, %rbx
jne 0x9b78f
callq 0x18a44
xorl %ebx, %ebx
movq 0x20(%r13), %rdi
callq 0x11b0ca
testq %rax, %rax
je 0x9b7b3
movq 0x20(%r13), %rdi
callq 0x11b0a1
movq %rax, %rdi
movq %r12, %rsi
callq 0xd1957
jmp 0x9b7b8
callq 0xd0ece
testq %rax, %rax
je 0x9b920
movq %rax, %r15
testq %rbx, %rbx
je 0x9b7e2
movq 0x41d708(%rip), %rax    # 0x4b8ed8
movq (%rax), %rdx
leaq 0x2ab92e(%rip), %rsi    # 0x347108
movq %rbx, %rdi
callq 0x11cc90
movq 0x30(%r13), %rdi
callq 0x11b0ca
testq %rax, %rax
jne 0x9b82a
movq 0x18(%r13), %rdi
callq 0x11b0a1
movq %rax, %rdi
callq 0xd3e84
movq %rbx, %r14
movq %rax, %rbx
movq 0x30(%r13), %rdi
movq %rax, %rsi
callq 0x11ad62
leaq 0x2ab844(%rip), %rsi    # 0x34705e
movq %rbx, %rdi
movq %r14, %rbx
movl $0xdb, %edx
callq 0x1045eb
movq 0x18(%r13), %rdi
callq 0x11b0a1
movzbl (%r13), %edx
movq %rax, %rdi
movq %r15, %rsi
movq %rbx, %rcx
movq %r12, %r8
callq 0x14e8d4
movq %rax, %r14
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x9bb0f
movq %r15, 0x8(%rsp)
movq 0x8(%r13), %r15
testq %r15, %r15
movq %rbx, 0x10(%rsp)
je 0x9b92d
leaq 0x2040(%rsp), %rdi
movl $0x2000, %edx           # imm = 0x2000
xorl %esi, %esi
callq 0x173a0
leaq 0x40(%rsp), %rdi
movl $0x2000, %edx           # imm = 0x2000
xorl %esi, %esi
callq 0x173a0
movq %r14, 0x28(%rsp)
movq %r14, %rdi
callq 0x14f6a0
movq %rax, %r13
leaq 0x2abada(%rip), %rdi    # 0x347387
callq 0x11acc9
movq %rax, %rbp
callq 0x11ac6c
movq %rax, %r14
movq %rbp, %rdi
movq %r15, %rsi
callq 0x11ae72
leaq 0x2abac4(%rip), %rsi    # 0x347393
movq %rbp, %rdi
callq 0x11acf3
movq %rbp, %rdi
movq %r13, 0x20(%rsp)
movq %r13, %rsi
callq 0x11ae72
leaq 0x3202f4(%rip), %rsi    # 0x3bbbe2
movq %rbp, %rdi
callq 0x11acf3
testq %rbx, %rbx
movq %r12, 0x30(%rsp)
je 0x9b979
movq 0x41d5d1(%rip), %rax    # 0x4b8ed8
movq (%rax), %rdx
leaq 0x2aba8d(%rip), %rsi    # 0x34739e
movq %rbx, %rdi
callq 0x11cc90
movq %rbx, 0x18(%rsp)
jmp 0x9b992
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
xorl %r15d, %r15d
jmp 0x9bb17
movq 0x38(%r13), %rbx
cmpq $-0x1, %rbx
je 0x9ba78
cmpq $-0x1, 0x40(%r13)
je 0x9ba78
movq %r14, %rdi
callq 0x14f6a0
cmpq %rax, %rbx
jae 0x9bad5
movq 0x40(%r13), %rbx
movq %r14, %rdi
callq 0x14f6a0
cmpq %rax, %rbx
jae 0x9bad5
movq 0x38(%r13), %r15
movq 0x40(%r13), %rbx
jmp 0x9ba89
leaq 0x2aba1e(%rip), %rdi    # 0x34739e
callq 0x11c986
movq %rax, 0x18(%rsp)
movq %rax, %rdi
callq 0x11c9e3
decq 0x20(%rsp)
movq %rbp, 0x38(%rsp)
movq %rbp, %rdi
callq 0x11b0a1
leaq 0x32d0fe(%rip), %rbx    # 0x3c8aa9
movq %rbx, %rdi
movq %rax, %rsi
xorl %eax, %eax
callq 0x103d72
leaq 0x40(%rsp), %r12
leaq 0x2040(%rsp), %r13
xorl %ebp, %ebp
testl %ebp, %ebp
jne 0x9ba35
movq 0x20(%rsp), %rdi
callq 0x105d85
movq %rax, %rbp
leaq 0x2ab9d4(%rip), %rdi    # 0x3473b3
movq %rax, %rsi
xorl %eax, %eax
callq 0x103d72
movq 0x28(%rsp), %rdi
movq %rbp, %rsi
movq %r12, %rdx
movq %r13, %rcx
movq %r14, %r8
movq 0x30(%rsp), %r9
callq 0x14ef46
movl %eax, %ebp
movq %r14, %rdi
callq 0x11b0a1
movq %rbx, %rdi
movq %rax, %rsi
xorl %eax, %eax
callq 0x103d72
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x103d72
movq %rbx, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x103d72
decq %r15
jne 0x9b9c7
movq 0x38(%rsp), %rdi
callq 0x11bdbf
movq %r14, %rdi
callq 0x11bdbf
callq 0x119160
testb %al, %al
jne 0x9ba5f
movq 0x18(%rsp), %rdi
callq 0x11d054
movq 0x30(%rsp), %r12
movq 0x10(%rsp), %rbx
movq 0x8(%rsp), %r15
movq 0x28(%rsp), %r14
jmp 0x9bb0f
movq %r14, %rdi
callq 0x14f6a0
movq %rax, %rbx
decq %rbx
xorl %r15d, %r15d
movq 0x30(%r13), %rdi
callq 0x11b0a1
leaq 0x2ab8dd(%rip), %rdi    # 0x347376
xorl %ebp, %ebp
movq %rax, %rsi
xorl %eax, %eax
callq 0x103d72
movq 0x30(%r13), %rdi
callq 0x11b0a1
movq 0x10(%r13), %r8
movq %r12, (%rsp)
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
movq %rbx, %rcx
movq 0x10(%rsp), %rbx
movq %rbx, %r9
callq 0x14f3d7
negl %eax
sbbl %ebp, %ebp
jmp 0x9bb0a
movq 0x38(%r13), %rbx
movq %r14, %r15
movq 0x40(%r13), %r14
movq %r15, %rdi
callq 0x14f6a0
leaq 0x2ab838(%rip), %rsi    # 0x347327
movq %r12, %rdi
movq %rbx, %rdx
movq %r14, %rcx
movq %r15, %r14
movq %rax, %r8
xorl %eax, %eax
callq 0xfcb67
movq 0x10(%rsp), %rbx
movq 0x8(%rsp), %r15
movq %r14, %rdi
callq 0x14ef03
movq %r15, %rdi
callq 0xd0e1c
testq %rbx, %rbx
je 0x9bb3e
movq 0x41d3ad(%rip), %rax    # 0x4b8ed8
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x11cf39
movq %rbx, %rdi
callq 0x11d054
testl %ebp, %ebp
je 0x9bb4e
movq %r12, %rdi
callq 0xfcc32
testb %al, %al
je 0x9bb6c
movl %ebp, %eax
addq $0x4048, %rsp           # imm = 0x4048
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x18a7d
callq 0x189d2
callq 0x18a0b
nopl (%rax)