// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/tools/gt_encseq_sample.c
// Function: gt_encseq_sample_option_parser_new
static GtOptionParser* gt_encseq_sample_option_parser_new(void *tool_arguments)
{
  GtEncseqSampleArguments *arguments = (GtEncseqSampleArguments*)tool_arguments;
  GtOptionParser *op;
  GtOption *option,
           *optionsep,
           *optionlen,
           *optionseqrange,
           *optionmode;
  gt_assert(arguments);
  static const char *modes[] = {"fasta", "concat", NULL};

  /* init */
  op = gt_option_parser_new("(sequence_file|indexname)",
                            "Decode/extract encoded sequences by random "
                            "choice.");

  /* encseq options */
  arguments->eopts = gt_encseq_options_register_loading(op, NULL);
  gt_encseq_options_add_readmode_option(op, arguments->dir);

  /* -singlechars */
  option = gt_option_new_bool("singlechars",
                              "do not use a GtEncseqReader but access each "
                              "sequence character separately",
                              &arguments->singlechars,
                              false);
  gt_option_is_extended_option(option);
  gt_option_parser_add_option(op, option);

  /* -length */
  optionlen = gt_option_new_uword("length",
                                  "minimum length to be extracted",
                                  &arguments->len,
                                  GT_UNDEF_UWORD);
  gt_option_parser_add_option(op, optionlen);

  /* -seqrange */
  optionseqrange = gt_option_new_range("seqrange",
                                       "extract multiple consecutive sequences",
                                       &arguments->seqrng,
                                       NULL);
  gt_option_parser_add_option(op, optionseqrange);

  /* -output */
  optionmode = gt_option_new_choice("output",
                                    "specify output format "
                                    "(choose from fasta|concat)",
                                    arguments->mode,
                                    modes[0],
                                    modes);
  gt_option_parser_add_option(op, optionmode);

  /* -sepchar */
  optionsep = gt_option_new_string("sepchar",
                                   "specify character to print as GT_SEPARATOR",
                                   arguments->sepchar, "|");
  gt_option_parser_add_option(op, optionsep);
  gt_option_imply(optionsep, optionmode);

  gt_option_parser_set_min_max_args(op, 1, 1);

  return op;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x27ee3
movq %rdi, %r14
leaq 0x2c369d(%rip), %rdi    # 0x2eb460
leaq 0x2c4104(%rip), %rsi    # 0x2ebece
callq 0x97df5
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
callq 0x88f82
movq %rax, 0x28(%r14)
movq 0x38(%r14), %rsi
movq %rbx, %rdi
callq 0x88fcd
leaq 0x2c36a9(%rip), %rdi    # 0x2eb49c
leaq 0x2c36ae(%rip), %rsi    # 0x2eb4a8
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x9a997
movq %rax, %r15
movq %rax, %rdi
callq 0x9b0c7
movq %rbx, %rdi
movq %r15, %rsi
callq 0x97f31
leaq 0x40(%r14), %rdx
leaq 0x339a18(%rip), %rdi    # 0x36183d
leaq 0x2c40d5(%rip), %rsi    # 0x2ebf01
pushq $-0x1
popq %rcx
callq 0x9a9e6
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x18(%r14), %rdx
leaq 0x2f180d(%rip), %rdi    # 0x319657
leaq 0x2c36a1(%rip), %rsi    # 0x2eb4f2
xorl %ecx, %ecx
callq 0x9aca4
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
movq 0x8(%r14), %rdx
movq 0x4109a2(%rip), %rcx    # 0x438810
leaq 0x41099b(%rip), %r8     # 0x438810
leaq 0x2e448b(%rip), %rdi    # 0x30c307
leaq 0x2c1165(%rip), %rsi    # 0x2e8fe8
callq 0x9ad83
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
movq 0x10(%r14), %rdx
leaq 0x2c1178(%rip), %rdi    # 0x2e9019
leaq 0x2c36aa(%rip), %rsi    # 0x2eb552
leaq 0x2f3dfa(%rip), %rcx    # 0x31bca9
callq 0x9ad12
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
movq %r14, %rdi
movq %r15, %rsi
callq 0x9b14d
pushq $0x1
popq %rdx
movq %rbx, %rdi
movl %edx, %esi
callq 0x98c6b
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq 0x41007e(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2bd11f(%rip), %rsi    # 0x2e5013
leaq 0x320758(%rip), %rdx    # 0x348653
leaq 0x2c3fa9(%rip), %rcx    # 0x2ebeab
leaq 0x2c3f85(%rip), %r8     # 0x2ebe8e
pushq $0x55
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390