// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/tools/gt_tallymer.c
// Function: gt_tyr_mkindex_runner
static int gt_tyr_mkindex_runner(GT_UNUSED int argc,
                                 GT_UNUSED const char **argv,
                                 GT_UNUSED int parsed_args,
                                 void *tool_arguments,
                                 GtError *err)
{
  Tyr_mkindex_options *arguments = tool_arguments;
  GtLogger *logger;
  bool haserr = false;

  logger = gt_logger_new(arguments->verbose, GT_LOGGER_DEFLT_PREFIX, stdout);
  if (arguments->verbose)
  {
    printf("# mersize="GT_WU"\n",arguments->mersize);
    if (arguments->userdefinedminocc > 0)
    {
      printf("# minocc="GT_WU"\n",arguments->userdefinedminocc);
    } else
    {
      printf("# minocc=undefined\n");
    }
    if (arguments->userdefinedmaxocc > 0)
    {
      printf("# maxocc="GT_WU"\n",arguments->userdefinedmaxocc);
    } else
    {
      printf("# maxocc=undefined\n");
    }
    printf("# prefixlength=");
    if (arguments->prefixlength.flag == Autoprefixlength)
    {
      printf("automatic");
    } else
    {
      if (arguments->prefixlength.flag == Determinedprefixlength)
      {
        printf("%u",arguments->prefixlength.value);
      } else
      {
        printf("undefined");
      }
    }
    printf("\n");
    if (gt_str_length(arguments->str_storeindex) > 0)
    {
      printf("# storeindex=%s\n",gt_str_get(arguments->str_storeindex));
    }
    printf("# inputindex=%s\n",gt_str_get(arguments->str_inputindex));
  }
  if (gt_merstatistics(gt_str_get(arguments->str_inputindex),
                    arguments->mersize,
                    arguments->userdefinedminocc,
                    arguments->userdefinedmaxocc,
                    gt_str_get(arguments->str_storeindex),
                    arguments->storecounts,
                    arguments->scanfile,
                    arguments->performtest,
                    logger,
                    err) != 0)
  {
    haserr = true;
  }
  if (!haserr &&
      gt_str_length(arguments->str_storeindex) > 0 &&
      arguments->prefixlength.flag != Undeterminedprefixlength)
  {
    Definedunsignedint callprefixlength;

    if (arguments->prefixlength.flag == Determinedprefixlength)
    {
      callprefixlength.defined = true;
      callprefixlength.valueunsignedint = arguments->prefixlength.value;
    } else
    {
      callprefixlength.defined = false;
    }
    if (gt_constructmerbuckets(gt_str_get(arguments->str_storeindex),
                               &callprefixlength,err) != 0)
    {
      haserr = true;
    }
  }
  gt_logger_delete(logger);
  return haserr ? - 1 : 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, 0x8(%rsp)
movq %rcx, %r15
movzbl 0x42(%rcx), %edi
movq 0x3ea9ea(%rip), %rax    # 0x4b8ed8
movq (%rax), %rdx
leaq 0x2783dc(%rip), %rsi    # 0x3468d4
callq 0x103e40
movq %rax, %rbx
cmpb $0x1, 0x42(%r15)
jne 0xce5f8
movq (%r15), %rsi
leaq 0x28e57f(%rip), %rdi    # 0x35ca94
xorl %eax, %eax
callq 0x17070
movq 0x8(%r15), %rsi
testq %rsi, %rsi
je 0xce535
leaq 0x28e577(%rip), %rdi    # 0x35caa3
xorl %eax, %eax
callq 0x17070
jmp 0xce541
leaq 0x28edf7(%rip), %rdi    # 0x35d333
callq 0x17bd0
movq 0x10(%r15), %rsi
testq %rsi, %rsi
je 0xce55a
leaq 0x28e560(%rip), %rdi    # 0x35cab1
xorl %eax, %eax
callq 0x17070
jmp 0xce566
leaq 0x28ede5(%rip), %rdi    # 0x35d346
callq 0x17bd0
leaq 0x28e552(%rip), %rdi    # 0x35cabf
xorl %eax, %eax
callq 0x17070
movl 0x20(%r15), %eax
cmpl $0x2, %eax
je 0xce58a
testl %eax, %eax
jne 0xce59e
leaq 0x317019(%rip), %rdi    # 0x3e55a1
jmp 0xce5a5
movl 0x1c(%r15), %esi
leaq 0x2c0f28(%rip), %rdi    # 0x38f4bd
xorl %eax, %eax
callq 0x17070
jmp 0xce5ac
leaq 0x28ed97(%rip), %rdi    # 0x35d33c
xorl %eax, %eax
callq 0x17070
movl $0xa, %edi
callq 0x17a20
movq 0x30(%r15), %rdi
callq 0x11b0ca
testq %rax, %rax
je 0xce5de
movq 0x30(%r15), %rdi
callq 0x11b0a1
leaq 0x2828a0(%rip), %rdi    # 0x350e74
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq 0x38(%r15), %rdi
callq 0x11b0a1
leaq 0x28e4e1(%rip), %rdi    # 0x35cacf
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq 0x38(%r15), %rdi
callq 0x11b0a1
movq %rax, %r12
movq (%r15), %r13
movq 0x8(%r15), %rbp
movq 0x10(%r15), %r14
movq 0x30(%r15), %rdi
callq 0x11b0a1
movzbl 0x40(%r15), %r9d
movzbl 0x43(%r15), %r10d
movzbl 0x41(%r15), %r11d
movq %r12, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movq %r14, %rcx
movq %rax, %r8
movq 0x8(%rsp), %r12
pushq %r12
pushq %rbx
pushq %r11
pushq %r10
callq 0x201cf4
addq $0x20, %rsp
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testl %eax, %eax
je 0xce66d
movq %rbx, %rdi
callq 0x1040e0
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x30(%r15), %rdi
callq 0x11b0ca
xorl %ebp, %ebp
testq %rax, %rax
je 0xce654
movl 0x20(%r15), %eax
cmpl $0x1, %eax
je 0xce654
xorl %ebp, %ebp
movl $0x0, %ecx
cmpl $0x2, %eax
jne 0xce69c
movl 0x1c(%r15), %eax
movl %eax, 0x14(%rsp)
movb $0x1, %cl
leaq 0x10(%rsp), %r14
movb %cl, (%r14)
movq 0x30(%r15), %rdi
callq 0x11b0a1
movq %rax, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x20169b
negl %eax
sbbl %ebp, %ebp
jmp 0xce654