// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/tools/gt_encseq_encode.c
// Function: gt_encseq_encode_runner
static int gt_encseq_encode_runner(GT_UNUSED int argc, const char **argv,
                               int parsed_args, GT_UNUSED void *tool_arguments,
                               GtError *err)
{
  int had_err = 0,
      i;
  GtEncseqEncodeArguments *arguments =
                                      (GtEncseqEncodeArguments*) tool_arguments;
  GtStrArray *infiles;
  gt_error_check(err);

  infiles = gt_str_array_new();
  for (i = parsed_args; i < argc; i++) {
    gt_str_array_add_cstr(infiles, argv[i]);
  }

  if (gt_str_length(arguments->indexname) == 0UL) {
    if (gt_str_array_size(infiles) > 1UL) {
      gt_error_set(err,"if more than one input file is given, then "
                       "option -indexname is mandatory");
      had_err = -1;
    } else {
      char *basenameptr;
      basenameptr = gt_basename(gt_str_array_get(infiles, 0UL));
      gt_str_set(arguments->indexname, basenameptr);
      gt_free(basenameptr);
    }
  }

  if (!had_err) {
    gt_assert(gt_str_length(arguments->indexname) > 0UL);
    had_err = encode_sequence_files(infiles,
                                    arguments->eopts,
                                    gt_str_get(arguments->indexname),
                                    arguments->verbose,
                                    arguments->no_esq_header,
                                    err);
  }

  if (!had_err && arguments->showstats)
    show_encoded_statistics(infiles, gt_str_get(arguments->indexname));

  gt_str_array_delete(infiles);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r15
movq %rcx, %r14
movl %edx, %ebp
movq %rsi, %r12
movl %edi, %r13d
testq %r8, %r8
je 0x26633
movq %r15, %rdi
callq 0x89eb7
testb %al, %al
jne 0x268fb
callq 0xae154
movq %rax, %rbx
movslq %ebp, %rbp
movslq %r13d, %r13
cmpq %r13, %rbp
jge 0x26657
movq (%r12,%rbp,8), %rsi
movq %rbx, %rdi
callq 0xae22f
incq %rbp
jmp 0x26641
movq 0x10(%r14), %rdi
callq 0xad289
testq %rax, %rax
jne 0x266c2
movq %rbx, %rdi
callq 0xae61c
cmpq $0x2, %rax
jb 0x2668d
leaq 0x2c5155(%rip), %rsi    # 0x2eb7cf
movq %r15, %rdi
xorl %eax, %eax
callq 0x89dbb
pushq $-0x1
popq %r15
jmp 0x26886
movq %rbx, %rdi
xorl %esi, %esi
callq 0xae386
movq %rax, %rdi
callq 0x5a384
movq %rax, %r12
movq 0x10(%r14), %rdi
movq %rax, %rsi
callq 0xacc8b
leaq 0x2c5021(%rip), %rsi    # 0x2eb6d6
movq %r12, %rdi
movl $0xb4, %edx
callq 0x936f9
movq 0x10(%r14), %rdi
callq 0xad289
testq %rax, %rax
je 0x268cd
movq (%r14), %r13
movq 0x10(%r14), %rdi
callq 0xad1fa
movq %rax, (%rsp)
movb 0x9(%r14), %r12b
movb 0xa(%r14), %bpl
testq %r15, %r15
je 0x26701
movq %r15, %rdi
callq 0x89eb7
testb %al, %al
jne 0x26929
testq %rbx, %rbx
je 0x268a0
movq %rbx, %rdi
callq 0xae61c
testq %r13, %r13
je 0x268a0
testq %rax, %rax
je 0x268a0
movq 0x41183d(%rip), %rax    # 0x437f68
movq (%rax), %rdx
movzbl %bpl, %edi
leaq 0x2c019b(%rip), %rsi    # 0x2e68d4
callq 0x92b50
movq %rax, %rbp
movq %r13, %rdi
movq %r15, %rsi
callq 0x7a1c0
movq %rax, %r13
testq %rax, %rax
je 0x26783
movq %r13, %rdi
movq %rbp, %rsi
callq 0x7ad75
testb %r12b, %r12b
je 0x2676c
movq %r13, %rdi
callq 0x7aba0
movq %r13, %rdi
movq %rbx, %rsi
movq (%rsp), %rdx
movq %r15, %rcx
callq 0x7adb8
movl %eax, %r15d
jmp 0x26787
pushq $-0x1
popq %r15
movq %r13, %rdi
callq 0x7a80c
movq %rbp, %rdi
callq 0x92fd0
testl %r15d, %r15d
jne 0x26886
xorl %r15d, %r15d
cmpb $0x1, 0x8(%r14)
jne 0x26886
movq 0x10(%r14), %rdi
callq 0xad1fa
movq %rax, %r14
xorl %r15d, %r15d
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0xae61c
cmpq %r15, %rax
jbe 0x267e7
movq %rbx, %rdi
movq %r15, %rsi
callq 0xae386
movq %rax, %rdi
callq 0x8e0a6
addq %rax, %rbp
incq %r15
jmp 0x267bf
leaq 0x2c509d(%rip), %rsi    # 0x2eb88b
movq %r14, %rdi
callq 0x2695f
movq %rax, %r15
leaq 0x2c021b(%rip), %rsi    # 0x2e6a1b
movq %r14, %rdi
callq 0x2695f
movq %rax, %r12
addq %r15, %r12
leaq 0x2c020b(%rip), %rsi    # 0x2e6a20
movq %r14, %rdi
callq 0x2695f
movq %rax, %r15
leaq 0x2c01fe(%rip), %rsi    # 0x2e6a25
movq %r14, %rdi
callq 0x2695f
movq %rax, %r13
addq %r15, %r13
addq %r12, %r13
leaq 0x2c01eb(%rip), %rsi    # 0x2e6a2a
movq %r14, %rdi
callq 0x2695f
movq %rax, %r15
leaq 0x2c01de(%rip), %rsi    # 0x2e6a2f
movq %r14, %rdi
callq 0x2695f
addq %r15, %rax
addq %r13, %rax
cvtsi2sd %rax, %xmm0
cvtsi2sd %rbp, %xmm1
divsd %xmm1, %xmm0
mulsd 0x2c2f6b(%rip), %xmm0   # 0x2e97e0
leaq 0x2c5014(%rip), %rdi    # 0x2eb890
movb $0x1, %al
callq 0x17070
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0xae662
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x4116c1(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2be762(%rip), %rsi    # 0x2e5013
leaq 0x2c4fa1(%rip), %rdx    # 0x2eb859
leaq 0x2c4f84(%rip), %rcx    # 0x2eb843
leaq 0x2c4e10(%rip), %r8     # 0x2eb6d6
pushq $0x69
jmp 0x26951
movq 0x411694(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2be735(%rip), %rsi    # 0x2e5013
leaq 0x2c4f34(%rip), %rdx    # 0x2eb819
leaq 0x2c4ecb(%rip), %rcx    # 0x2eb7b7
leaq 0x2c4de3(%rip), %r8     # 0x2eb6d6
movl $0xb9, %r9d
jmp 0x26953
movq 0x411666(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2be707(%rip), %rsi    # 0x2e5013
leaq 0x2be8ac(%rip), %rdx    # 0x2e51bf
leaq 0x2c4e9d(%rip), %rcx    # 0x2eb7b7
leaq 0x2c4db5(%rip), %r8     # 0x2eb6d6
movl $0xa4, %r9d
jmp 0x26953
movq 0x411638(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2be6d9(%rip), %rsi    # 0x2e5013
leaq 0x2be87e(%rip), %rdx    # 0x2e51bf
leaq 0x2c4efb(%rip), %rcx    # 0x2eb843
leaq 0x2c4d87(%rip), %r8     # 0x2eb6d6
pushq $0x68
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390