// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/tools/gt_tallymer.c
// Function: gt_tyr_mkindex_option_parser_new
static GtOptionParser *gt_tyr_mkindex_option_parser_new(void *tool_arguments)
{
  GtOptionParser *op;
  GtOption *option,
           *optionminocc,
           *optionmaxocc,
           *optionpl,
           *optionstoreindex,
           *optionstorecounts,
           *optionscan,
           *optionesa;
  Tyr_mkindex_options *arguments = tool_arguments;

  op = gt_option_parser_new("[options] -esa suffixerator-index [options]",
                            "Count and index k-mers in the given enhanced "
                            "suffix array for a fixed value of k.");
  gt_option_parser_set_mail_address(op, "<kurtz@zbh.uni-hamburg.de>");

  optionesa = gt_option_new_string("esa","specify suffixerator-index\n"
                                   "(mandatory option)",
                                   arguments->str_inputindex,
                                   NULL);
  gt_option_is_mandatory(optionesa);
  gt_option_parser_add_option(op, optionesa);

  option = gt_option_new_uword("mersize",
                               "Specify the mer size.",
                               &arguments->mersize,
                               20UL);
  gt_option_parser_add_option(op, option);

  optionminocc
    = gt_option_new_uword("minocc",
                          "Specify the minimum occurrence number for "
                          "the mers to output/index",
                          &arguments->userdefinedminocc,
                          0);
  gt_option_parser_add_option(op, optionminocc);

  optionmaxocc
    = gt_option_new_uword("maxocc",
                          "Specify the maximum occurrence number for "
                          "the mers to output/index",
                          &arguments->userdefinedmaxocc,
                          0);
  gt_option_parser_add_option(op, optionmaxocc);

  optionpl = gt_option_new_uint_min("pl",
                 "specify prefix length for bucket boundary construction\n"
                 "recommendation: use without argument;\n"
                 "then a reasonable prefix length is automatically determined",
                 &arguments->userdefinedprefixlength,
                 0,
                 1U);
  gt_option_argument_is_optional(optionpl);
  gt_option_parser_add_option(op, optionpl);
  arguments->refoptionpl = gt_option_ref(optionpl);

  optionstoreindex = gt_option_new_string("indexname",
                                          "store the mers specified by options "
                                          "-maxocc and -minocc in an index",
                                          arguments->str_storeindex, NULL);
  gt_option_parser_add_option(op, optionstoreindex);

  optionstorecounts = gt_option_new_bool("counts", "store counts of the mers",
                                         &arguments->storecounts,false);
  gt_option_parser_add_option(op, optionstorecounts);

  option = gt_option_new_bool("test", "perform tests to verify program "
                                      "correctness", &arguments->performtest,
                                      false);
  gt_option_is_development_option(option);
  gt_option_parser_add_option(op, option);

  optionscan = gt_option_new_bool("scan",
                                  "read enhanced suffix array sequentially "
                                  "instead of mapping it to memory",
                                  &arguments->scanfile,
                                  false);
  gt_option_parser_add_option(op, optionscan);

  option = gt_option_new_verbose(&arguments->verbose);
  gt_option_parser_add_option(op, option);

  gt_option_imply(optionpl, optionstoreindex);
  gt_option_imply(optionstorecounts, optionstoreindex);
  gt_option_imply_either_2(optionstoreindex,optionminocc,optionmaxocc);
  return op;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
leaq 0x2a8f0e(%rip), %rdi    # 0x2fc731
leaq 0x2a8f33(%rip), %rsi    # 0x2fc75d
callq 0x97df5
movq %rax, %rbx
leaq 0x292a93(%rip), %rsi    # 0x2e62cc
movq %rax, %rdi
callq 0x98288
movq 0x38(%r14), %rdx
leaq 0x2a63b1(%rip), %rdi    # 0x2f9bfd
leaq 0x2a8f5c(%rip), %rsi    # 0x2fc7af
xorl %ecx, %ecx
callq 0x9ad12
movq %rax, %r15
movq %rax, %rdi
callq 0x9ae37
movq %rbx, %rdi
movq %r15, %rsi
callq 0x97f31
leaq 0x2a96bf(%rip), %rdi    # 0x2fcf36
leaq 0x2a8f5f(%rip), %rsi    # 0x2fc7dd
pushq $0x14
popq %rcx
movq %r14, %rdx
callq 0x9a9e6
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x8(%r14), %rdx
leaq 0x2a8f54(%rip), %rdi    # 0x2fc7f3
leaq 0x2a8f54(%rip), %rsi    # 0x2fc7fa
xorl %ecx, %ecx
callq 0x9a9e6
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x10(%r14), %rdx
leaq 0x2a8bda(%rip), %rdi    # 0x2fc4a2
leaq 0x2a8f6e(%rip), %rsi    # 0x2fc83d
xorl %ecx, %ecx
callq 0x9a9e6
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x18(%r14), %rdx
leaq 0x2bc351(%rip), %rdi    # 0x30fc42
leaq 0x2a8f88(%rip), %rsi    # 0x2fc880
pushq $0x1
popq %r8
xorl %ecx, %ecx
callq 0x9abef
movq %rax, %r13
movq %rax, %rdi
callq 0x9b488
movq %rbx, %rdi
movq %r13, %rsi
callq 0x97f31
movq %r13, %rdi
callq 0x97db0
movq %rax, 0x28(%r14)
movq 0x30(%r14), %rdx
leaq 0x2b212d(%rip), %rdi    # 0x305a5d
leaq 0x2a8fe2(%rip), %rsi    # 0x2fc919
xorl %ecx, %ecx
callq 0x9ad12
movq %rax, %rbp
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x40(%r14), %rdx
leaq 0x2e36d5(%rip), %rdi    # 0x33702c
leaq 0x2a8fff(%rip), %rsi    # 0x2fc95d
xorl %ecx, %ecx
callq 0x9a997
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x41(%r14), %rdx
leaq 0x294065(%rip), %rdi    # 0x2e79e3
leaq 0x2a8ff1(%rip), %rsi    # 0x2fc976
xorl %ecx, %ecx
callq 0x9a997
movq %rax, %r12
movq %rax, %rdi
callq 0x9b10a
movq %rbx, %rdi
movq %r12, %rsi
callq 0x97f31
leaq 0x43(%r14), %rdx
leaq 0x299b09(%rip), %rdi    # 0x2ed4b6
leaq 0x2a8fee(%rip), %rsi    # 0x2fc9a2
xorl %ecx, %ecx
callq 0x9a997
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
addq $0x42, %r14
movq %r14, %rdi
callq 0x9a9b6
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
movq %r13, %rdi
movq %rbp, %rsi
callq 0x9b14d
movq %r15, %rdi
movq %rbp, %rsi
callq 0x9b14d
movq %rbp, %rdi
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0x9b1ed
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq