// File: /workspace/github_c_makefile_star2_O3/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 0x9b3b8
movq %r14, %rdi
callq 0xfcc32
testb %al, %al
jne 0x9b502
testq %r15, %r15
je 0x9b4fd
callq 0x119160
testb %al, %al
je 0x9b3eb
leaq 0x306dc0(%rip), %rdi    # 0x3a2191
callq 0x11c986
movq %rax, %rbx
movq %rax, %rdi
callq 0x11c9e3
testq %rbx, %rbx
jne 0x9b3ed
callq 0x18929
xorl %ebx, %ebx
movq 0x8(%r15), %rdi
callq 0x11b0ca
testq %rax, %rax
je 0x9b411
movq 0x8(%r15), %rdi
callq 0x11b0a1
movq %rax, %rdi
movq %r14, %rsi
callq 0xd1957
jmp 0x9b416
callq 0xd0ece
testq %rax, %rax
je 0x9b46f
movq %rax, %r12
testq %rbx, %rbx
je 0x9b43c
movq 0x41daae(%rip), %rax    # 0x4b8ed8
movq (%rax), %rdx
leaq 0x2f3b4d(%rip), %rsi    # 0x38ef81
movq %rbx, %rdi
callq 0x11cc90
movzbl (%r15), %edx
movq 0x20(%r15), %rdi
movq 0x30(%r15), %rcx
movq %r12, %rsi
movq %rbx, %r8
movq %r14, %r9
callq 0x14f6db
movq %rax, %r13
testq %rax, %rax
je 0x9b479
cmpb $0x1, 0x1(%r15)
jne 0x9b480
movq %r13, %rdi
callq 0x14fe03
jmp 0x9b48f
movl $0x1, %ebp
xorl %r12d, %r12d
jmp 0x9b4c5
movl $0x1, %ebp
jmp 0x9b4bd
cmpb $0x1, 0x2(%r15)
jne 0x9b48f
movq %r13, %rdi
callq 0x14fde5
movq 0x28(%r15), %rsi
movq %r13, %rdi
callq 0x14fe21
movq 0x18(%r15), %rdi
callq 0x11b0a1
movq %r13, %rdi
movq %rax, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x14fe4d
xorl %ebp, %ebp
testl %eax, %eax
setne %bpl
movq %r13, %rdi
callq 0x15052b
movq %r12, %rdi
callq 0xd0e1c
testq %rbx, %rbx
je 0x9b4ec
movq 0x41d9ff(%rip), %rax    # 0x4b8ed8
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x11cf39
movq %rbx, %rdi
callq 0x11d054
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x18962
callq 0x188f0
nop