// File: /workspace/github_c_makefile_star2_O1/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, 0x10(%rsp)
movq %rcx, %r15
movzbl 0x42(%rcx), %edi
movq 0x3f34a6(%rip), %rax    # 0x4c3ee8
movq (%rax), %rdx
leaq 0x27ee88(%rip), %rsi    # 0x34f8d4
callq 0x108ed0
movq %rax, %rbx
cmpb $0x1, 0x42(%r15)
jne 0xd0b4c
movq (%r15), %rsi
leaq 0x2950cb(%rip), %rdi    # 0x365b34
xorl %eax, %eax
callq 0x17070
movq 0x8(%r15), %rsi
testq %rsi, %rsi
je 0xd0a89
leaq 0x2950c3(%rip), %rdi    # 0x365b43
xorl %eax, %eax
callq 0x17070
jmp 0xd0a95
leaq 0x295974(%rip), %rdi    # 0x366404
callq 0x17bd0
movq 0x10(%r15), %rsi
testq %rsi, %rsi
je 0xd0aae
leaq 0x2950ac(%rip), %rdi    # 0x365b51
xorl %eax, %eax
callq 0x17070
jmp 0xd0aba
leaq 0x295962(%rip), %rdi    # 0x366417
callq 0x17bd0
leaq 0x29509e(%rip), %rdi    # 0x365b5f
xorl %eax, %eax
callq 0x17070
movl 0x20(%r15), %eax
cmpl $0x2, %eax
je 0xd0ade
testl %eax, %eax
jne 0xd0af2
leaq 0x31e285(%rip), %rdi    # 0x3eed61
jmp 0xd0af9
movl 0x1c(%r15), %esi
leaq 0x2c7dfb(%rip), %rdi    # 0x3988e4
xorl %eax, %eax
callq 0x17070
jmp 0xd0b00
leaq 0x295914(%rip), %rdi    # 0x36640d
xorl %eax, %eax
callq 0x17070
movl $0xa, %edi
callq 0x17a20
movq 0x30(%r15), %rdi
callq 0x120d4c
testq %rax, %rax
je 0xd0b32
movq 0x30(%r15), %rdi
callq 0x120d23
leaq 0x289387(%rip), %rdi    # 0x359eaf
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq 0x38(%r15), %rdi
callq 0x120d23
leaq 0x29502d(%rip), %rdi    # 0x365b6f
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq 0x38(%r15), %rdi
callq 0x120d23
movq %rax, %r12
movq (%r15), %r13
movq 0x8(%r15), %rbp
movq 0x10(%r15), %r14
movq 0x30(%r15), %rdi
callq 0x120d23
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 0x10(%rsp), %r12
pushq %r12
pushq %rbx
pushq %r11
pushq %r10
callq 0x20b5c4
addq $0x20, %rsp
xorl %r14d, %r14d
testl %eax, %eax
setne %bpl
je 0xd0bc7
movq %rbx, %rdi
callq 0x10916a
movzbl %bpl, %eax
negl %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x30(%r15), %rdi
callq 0x120d4c
testq %rax, %rax
je 0xd0baa
movl 0x20(%r15), %eax
cmpl $0x1, %eax
je 0xd0baa
cmpl $0x2, %eax
jne 0xd0bf2
movb $0x1, 0x8(%rsp)
movl 0x1c(%r15), %eax
movl %eax, 0xc(%rsp)
jmp 0xd0bf7
movb $0x0, 0x8(%rsp)
movq 0x30(%r15), %rdi
callq 0x120d23
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0x20af62
testl %eax, %eax
movb %bpl, %r14b
movl $0x1, %ebp
cmovel %r14d, %ebp
jmp 0xd0baa