// File: /workspace/github_c_makefile_star2_O3/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 0xa6010
movq %rdi, %r14
leaq 0x2a5579(%rip), %rdi    # 0x34b460
leaq 0x2a5fe0(%rip), %rsi    # 0x34bece
callq 0x107bfe
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
callq 0xfc63a
movq %rax, 0x28(%r14)
movq 0x38(%r14), %rsi
movq %rbx, %rdi
callq 0xfc654
leaq 0x2a5585(%rip), %rdi    # 0x34b49c
leaq 0x2a558a(%rip), %rsi    # 0x34b4a8
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x10a235
movq %rax, %r15
movq %rax, %rdi
callq 0x10a9c4
movq %rbx, %rdi
movq %r15, %rsi
callq 0x107cc0
leaq 0x40(%r14), %rdx
leaq 0x31b4e4(%rip), %rdi    # 0x3c142d
leaq 0x2a5fb1(%rip), %rsi    # 0x34bf01
movq $-0x1, %rcx
callq 0x10a2ab
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x18(%r14), %rdx
leaq 0x2d3397(%rip), %rdi    # 0x379309
leaq 0x2a5579(%rip), %rsi    # 0x34b4f2
xorl %ecx, %ecx
callq 0x10a6f7
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
movq 0x8(%r14), %rdx
movq 0x4138ca(%rip), %rcx    # 0x4b9860
leaq 0x4138c3(%rip), %r8     # 0x4b9860
leaq 0x2c6083(%rip), %rdi    # 0x36c027
leaq 0x2a303d(%rip), %rsi    # 0x348fe8
callq 0x10a7ed
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
movq 0x10(%r14), %rdx
leaq 0x2a3050(%rip), %rdi    # 0x349019
leaq 0x2a5582(%rip), %rsi    # 0x34b552
leaq 0x2d5932(%rip), %rcx    # 0x37b909
callq 0x10a770
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
movq %r14, %rdi
movq %r15, %rsi
callq 0x10a9e4
movq %rbx, %rdi
movl $0x1, %esi
movl $0x1, %edx
callq 0x10874b
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
callq 0x1a5c0