// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/tools/gt_compreads_compress.c
// Function: gt_compreads_compress_runner
static int gt_compreads_compress_runner(GT_UNUSED int argc,
                                    GT_UNUSED const char **argv,
                                    GT_UNUSED int parsed_args,
                                    void *tool_arguments, GtError *err)
{
  GtCsrHcrEncodeArguments *arguments = tool_arguments;
  int had_err = 0;
  GtAlphabet *alpha = NULL;
  GtHcrEncoder *hcre = NULL;
  GtTimer *timer = 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->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, "encoding", stdout);
    hcre = gt_hcr_encoder_new(arguments->files, alpha, arguments->descs,
                              arguments->qrng, timer, err);
    if (!hcre)
      had_err = 1;
    else {
      if (arguments->pagewise)
        gt_hcr_encoder_set_sampling_page(hcre);
      else if (arguments->regular)
        gt_hcr_encoder_set_sampling_regular(hcre);

      gt_hcr_encoder_set_sampling_rate(hcre, arguments->srate);

      if (gt_hcr_encoder_encode(hcre, gt_str_get(arguments->name),
                                timer, err) != 0)
        had_err = 1;
    }
    gt_hcr_encoder_delete(hcre);
  }
  gt_alphabet_delete(alpha);
  if (timer != NULL) {
    gt_timer_show_progress_final(timer, stdout);
    gt_timer_delete(timer);
  }
  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 0x9d5dc
movq %r14, %rdi
callq 0x101a9a
testb %al, %al
jne 0x9d723
testq %r15, %r15
je 0x9d71e
callq 0x11ed94
testb %al, %al
je 0x9d60f
leaq 0x30e0fc(%rip), %rdi    # 0x3ab6f1
callq 0x1226d6
movq %rax, %rbx
movq %rax, %rdi
callq 0x122733
testq %rbx, %rbx
jne 0x9d611
callq 0x18929
xorl %ebx, %ebx
movq 0x8(%r15), %rdi
callq 0x120d4c
testq %rax, %rax
je 0x9d635
movq 0x8(%r15), %rdi
callq 0x120d23
movq %rax, %rdi
movq %r14, %rsi
callq 0xd3e83
jmp 0x9d63a
callq 0xd340f
movq %rax, %r12
testq %rax, %rax
je 0x9d693
testq %rbx, %rbx
je 0x9d660
movq 0x42689a(%rip), %rax    # 0x4c3ee8
movq (%rax), %rdx
leaq 0x2fad50(%rip), %rsi    # 0x3983a8
movq %rbx, %rdi
callq 0x1229c8
movzbl (%r15), %edx
movq 0x20(%r15), %rdi
movq 0x30(%r15), %rcx
movq %r12, %rsi
movq %rbx, %r8
movq %r14, %r9
callq 0x156fab
movq %rax, %r13
testq %rax, %rax
je 0x9d69a
cmpb $0x1, 0x1(%r15)
jne 0x9d6a1
movq %r13, %rdi
callq 0x1576bc
jmp 0x9d6b0
movl $0x1, %ebp
jmp 0x9d6e6
movl $0x1, %ebp
jmp 0x9d6de
cmpb $0x1, 0x2(%r15)
jne 0x9d6b0
movq %r13, %rdi
callq 0x15769e
movq 0x28(%r15), %rsi
movq %r13, %rdi
callq 0x1576da
movq 0x18(%r15), %rdi
callq 0x120d23
movq %r13, %rdi
movq %rax, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x157706
xorl %ebp, %ebp
testl %eax, %eax
setne %bpl
movq %r13, %rdi
callq 0x157e5e
movq %r12, %rdi
callq 0xd335d
testq %rbx, %rbx
je 0x9d70d
movq 0x4267ee(%rip), %rax    # 0x4c3ee8
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x122c67
movq %rbx, %rdi
callq 0x122d79
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x18962
callq 0x188f0