// File: /workspace/github_c_makefile_star2_O1/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 0x2950ae(%rip), %rdi    # 0x36587b
leaq 0x2950d3(%rip), %rsi    # 0x3658a7
callq 0x10cc4e
movq %rax, %rbx
leaq 0x27eae9(%rip), %rsi    # 0x34f2cc
movq %rax, %rdi
callq 0x10ceab
movq 0x38(%r14), %rdx
leaq 0x29248c(%rip), %rdi    # 0x362c82
leaq 0x2950fc(%rip), %rsi    # 0x3658f9
xorl %ecx, %ecx
callq 0x10f987
movq %rax, %r15
movq %rax, %rdi
callq 0x10fa96
movq %rbx, %rdi
movq %r15, %rsi
callq 0x10cd10
leaq 0x29585f(%rip), %rdi    # 0x366080
leaq 0x2950ff(%rip), %rsi    # 0x365927
movl $0x14, %ecx
movq %r14, %rdx
callq 0x10f4c7
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x8(%r14), %rdx
leaq 0x2950f2(%rip), %rdi    # 0x36593d
leaq 0x2950f2(%rip), %rsi    # 0x365944
xorl %ecx, %ecx
callq 0x10f4c7
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x10(%r14), %rdx
leaq 0x294d78(%rip), %rdi    # 0x3655ec
leaq 0x29510c(%rip), %rsi    # 0x365987
xorl %ecx, %ecx
callq 0x10f4c7
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x18(%r14), %rdx
leaq 0x2a8305(%rip), %rdi    # 0x378ba2
leaq 0x295126(%rip), %rsi    # 0x3659ca
xorl %ecx, %ecx
movl $0x1, %r8d
callq 0x10f73b
movq %rax, %r13
movq %rax, %rdi
callq 0x10fe42
movq %rbx, %rdi
movq %r13, %rsi
callq 0x10cd10
movq %r13, %rdi
callq 0x10cc3c
movq %rax, 0x28(%r14)
movq 0x30(%r14), %rdx
leaq 0x29e434(%rip), %rdi    # 0x36ed12
leaq 0x29517e(%rip), %rsi    # 0x365a63
xorl %ecx, %ecx
callq 0x10f987
movq %rax, %rbp
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x40(%r14), %rdx
leaq 0x2cf894(%rip), %rdi    # 0x3a0199
leaq 0x29519b(%rip), %rsi    # 0x365aa7
xorl %ecx, %ecx
callq 0x10f451
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x41(%r14), %rdx
leaq 0x2800b7(%rip), %rdi    # 0x3509e3
leaq 0x29518d(%rip), %rsi    # 0x365ac0
xorl %ecx, %ecx
callq 0x10f451
movq %rax, %r12
movq %rax, %rdi
callq 0x10fbef
movq %rbx, %rdi
movq %r12, %rsi
callq 0x10cd10
leaq 0x43(%r14), %rdx
leaq 0x285b8b(%rip), %rdi    # 0x3564e6
leaq 0x29518a(%rip), %rsi    # 0x365aec
xorl %ecx, %ecx
callq 0x10f451
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
addq $0x42, %r14
movq %r14, %rdi
callq 0x10f473
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
movq %r13, %rdi
movq %rbp, %rsi
callq 0x10fbff
movq %r15, %rdi
movq %rbp, %rsi
callq 0x10fbff
movq %rbp, %rdi
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0x10fc6f
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq