// File: /workspace/github_c_makefile_star2_O2/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 0x1c001
movq %r14, %rdi
callq 0x89eb7
testb %al, %al
jne 0x1c19c
testq %r15, %r15
je 0x1c16e
callq 0xaaf34
testb %al, %al
je 0x1c060
leaq 0x2e32d3(%rip), %rdi    # 0x2ff2ed
callq 0xaf4a5
movq %rax, %rbx
movq %rax, %rdi
callq 0xaf4d6
testq %rbx, %rbx
jne 0x1c062
movq 0x41bf32(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2c8fd3(%rip), %rsi    # 0x2e5013
leaq 0x2e9183(%rip), %rdx    # 0x3051ca
leaq 0x2caff3(%rip), %rcx    # 0x2e7041
leaq 0x2cab37(%rip), %r8     # 0x2e6b8c
movl $0xfe, %r9d
jmp 0x1c1c8
xorl %ebx, %ebx
movq 0x8(%r15), %rdi
callq 0xad289
pushq $0x1
popq %rbp
testq %rax, %rax
je 0x1c089
movq 0x8(%r15), %rdi
callq 0xad1fa
movq %rax, %rdi
movq %r14, %rsi
callq 0x5773d
jmp 0x1c08e
callq 0x56967
testq %rax, %rax
je 0x1c0e7
movq %rax, %r12
testq %rbx, %rbx
je 0x1c0b4
movq 0x41be0e(%rip), %rax    # 0x437eb0
movq (%rax), %rdx
leaq 0x313235(%rip), %rsi    # 0x32f2e1
movq %rbx, %rdi
callq 0xaf86f
movzbl (%r15), %edx
movq 0x20(%r15), %rdi
movq 0x30(%r15), %rcx
movq %r12, %rsi
movq %rbx, %r8
movq %r14, %r9
callq 0xeac20
movq %rax, %r13
testq %rax, %rax
je 0x1c0ec
cmpb $0x1, 0x1(%r15)
jne 0x1c0f1
movq %r13, %rdi
callq 0xeb3c9
jmp 0x1c100
xorl %r12d, %r12d
jmp 0x1c136
pushq $0x1
popq %rbp
jmp 0x1c12e
cmpb $0x1, 0x2(%r15)
jne 0x1c100
movq %r13, %rdi
callq 0xeb378
movq 0x28(%r15), %rsi
movq %r13, %rdi
callq 0xeb41a
movq 0x18(%r15), %rdi
callq 0xad1fa
movq %r13, %rdi
movq %rax, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0xeb4ac
xorl %ebp, %ebp
testl %eax, %eax
setne %bpl
movq %r13, %rdi
callq 0xebcc0
movq %r12, %rdi
callq 0x568b5
testq %rbx, %rbx
je 0x1c15d
movq 0x41bd66(%rip), %rax    # 0x437eb0
movq (%rax), %rsi
movq %rbx, %rdi
callq 0xafb49
movq %rbx, %rdi
callq 0xafc5b
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x41bdf3(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2c8e94(%rip), %rsi    # 0x2e5013
leaq 0x32c4cd(%rip), %rdx    # 0x348653
leaq 0x2caeb4(%rip), %rcx    # 0x2e7041
leaq 0x2ca9f8(%rip), %r8     # 0x2e6b8c
movl $0xfa, %r9d
jmp 0x1c1c8
movq 0x41bdc5(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2c8e66(%rip), %rsi    # 0x2e5013
leaq 0x2c900b(%rip), %rdx    # 0x2e51bf
leaq 0x2cae86(%rip), %rcx    # 0x2e7041
leaq 0x2ca9ca(%rip), %r8     # 0x2e6b8c
movl $0xf9, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390