// File: /workspace/github_c_makefile_star2_O2/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 0x3e4421(%rip), %rax    # 0x437eb0
movq (%rax), %rdx
leaq 0x292e3b(%rip), %rsi    # 0x2e68d4
callq 0x92b50
movq %rax, %rbx
cmpb $0x1, 0x42(%r15)
jne 0x53b97
movq (%r15), %rsi
leaq 0x2a8f34(%rip), %rdi    # 0x2fc9ea
xorl %eax, %eax
callq 0x17070
movq 0x8(%r15), %rsi
testq %rsi, %rsi
je 0x53ad6
leaq 0x2a8f2c(%rip), %rdi    # 0x2fc9f9
xorl %eax, %eax
callq 0x17070
jmp 0x53ae2
leaq 0x2a97dd(%rip), %rdi    # 0x2fd2ba
callq 0x17b60
movq 0x10(%r15), %rsi
testq %rsi, %rsi
je 0x53afb
leaq 0x2a8f15(%rip), %rdi    # 0x2fca07
xorl %eax, %eax
callq 0x17070
jmp 0x53b07
leaq 0x2a97cb(%rip), %rdi    # 0x2fd2cd
callq 0x17b60
leaq 0x2a8f07(%rip), %rdi    # 0x2fca15
xorl %eax, %eax
callq 0x17070
movl 0x20(%r15), %eax
cmpl $0x2, %eax
je 0x53b2b
testl %eax, %eax
jne 0x53b3f
leaq 0x331e78(%rip), %rdi    # 0x3859a1
jmp 0x53b46
movl 0x1c(%r15), %esi
leaq 0x2dbce7(%rip), %rdi    # 0x32f81d
xorl %eax, %eax
callq 0x17070
jmp 0x53b4d
leaq 0x2a977d(%rip), %rdi    # 0x2fd2c3
xorl %eax, %eax
callq 0x17070
pushq $0xa
popq %rdi
callq 0x179c0
movq 0x30(%r15), %rdi
callq 0xad289
testq %rax, %rax
je 0x53b7d
movq 0x30(%r15), %rdi
callq 0xad1fa
leaq 0x29d314(%rip), %rdi    # 0x2f0e87
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq 0x38(%r15), %rdi
callq 0xad1fa
leaq 0x2a8e98(%rip), %rdi    # 0x2fca25
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq 0x38(%r15), %rdi
callq 0xad1fa
movq %rax, %r12
movq (%r15), %r13
movq 0x8(%r15), %rbp
movq 0x10(%r15), %r14
movq 0x30(%r15), %rdi
callq 0xad1fa
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 0x1b5d50
addq $0x20, %rsp
testl %eax, %eax
je 0x53c0a
pushq $-0x1
popq %rbp
movq %rbx, %rdi
callq 0x92fd0
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x30(%r15), %rdi
callq 0xad289
xorl %ebp, %ebp
testq %rax, %rax
je 0x53bf1
movl 0x20(%r15), %eax
cmpl $0x1, %eax
je 0x53bf1
xorl %ebp, %ebp
movl $0x0, %ecx
cmpl $0x2, %eax
jne 0x53c39
movl 0x1c(%r15), %eax
movl %eax, 0x14(%rsp)
movb $0x1, %cl
leaq 0x10(%rsp), %r14
movb %cl, (%r14)
movq 0x30(%r15), %rdi
callq 0xad1fa
movq %rax, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x1b56f7
negl %eax
sbbl %ebp, %ebp
jmp 0x53bf1