// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/tools/gt_encseq_decode.c
// Function: gt_encseq_decode_option_parser_new
static GtOptionParser* gt_encseq_decode_option_parser_new(void *tool_arguments)
{
  GtOptionParser *op;
  GtOption *option,
           *optionsep,
           *optionseq,
           *optionseqrange,
           *optionmode;
  GtEncseqDecodeArguments *arguments =
                                      (GtEncseqDecodeArguments*) tool_arguments;
  static const char *modes[] = {"fasta", "concat", NULL};

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

  /* 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);

  /* -seq */
  optionseq = gt_option_new_uword("seq",
                                  "extract sequence identified by its number",
                                  &arguments->seq,
                                  GT_UNDEF_UWORD);
  gt_option_parser_add_option(op, optionseq);

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

  /* -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);

  /* -range */
  option = gt_option_new_range("range",
                               "concatenated range to extract "
                               "(implies '-output concat')",
                               &arguments->rng,
                               NULL);
  gt_option_parser_add_option(op, option);
  gt_option_imply(option, 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 %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x2ae12f(%rip), %rdi    # 0x35446f
leaq 0x2ae142(%rip), %rsi    # 0x354489
callq 0x10cc4e
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
callq 0x1014a2
movq %rax, 0x38(%r14)
movq 0x48(%r14), %rsi
movq %rbx, %rdi
callq 0x1014bc
leaq 0x2ae13b(%rip), %rdi    # 0x3544ab
leaq 0x2ae140(%rip), %rsi    # 0x3544b7
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x10f451
movq %rax, %r15
movq %rax, %rdi
callq 0x10fbdf
movq %rbx, %rdi
movq %r15, %rsi
callq 0x10cd10
leaq 0x50(%r14), %rdx
leaq 0x2b5d80(%rip), %rdi    # 0x35c122
leaq 0x2abb69(%rip), %rsi    # 0x351f12
movq $-0x1, %rcx
callq 0x10f4c7
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x28(%r14), %rdx
leaq 0x2dc259(%rip), %rdi    # 0x382627
leaq 0x2ae12c(%rip), %rsi    # 0x354501
xorl %ecx, %ecx
callq 0x10f913
movq %rax, %r12
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
movq %r12, %rdi
movq %r15, %rsi
callq 0x10fd9f
movq 0x8(%r14), %rdx
movq 0x41e440(%rip), %rcx    # 0x4c4840
leaq 0x41e439(%rip), %r8     # 0x4c4840
leaq 0x2cee69(%rip), %rdi    # 0x375277
leaq 0x2abbe3(%rip), %rsi    # 0x351ff8
callq 0x10fa04
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x18(%r14), %rdx
leaq 0x2e0389(%rip), %rdi    # 0x3867bc
leaq 0x2ae0ee(%rip), %rsi    # 0x354528
xorl %ecx, %ecx
callq 0x10f913
movq %rax, %r12
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
movq %r12, %rdi
movq %r15, %rsi
callq 0x10fbff
movq 0x10(%r14), %rdx
leaq 0x2abbc4(%rip), %rdi    # 0x352029
leaq 0x2ae0f5(%rip), %rsi    # 0x354561
leaq 0x2de806(%rip), %rcx    # 0x384c79
callq 0x10f987
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
movq %r14, %rdi
movq %r15, %rsi
callq 0x10fbff
movq %rbx, %rdi
movl $0x1, %esi
movl $0x1, %edx
callq 0x10d784
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq