// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x4ec85d(%rip), %rdi    # 0x51c4a7
leaq 0x4ec870(%rip), %rsi    # 0x51c4c1
callq 0xf1420
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xd7350
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x38(%rax)
movq 0x38(%rsp), %rdi
movq 0x8(%rsp), %rax
movq 0x48(%rax), %rsi
callq 0xd73c0
movq 0x8(%rsp), %rdx
leaq 0x4ec84f(%rip), %rdi    # 0x51c4e3
leaq 0x4ec854(%rip), %rsi    # 0x51c4ef
xorl %ecx, %ecx
callq 0xf5f20
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rdi
callq 0xf6ff0
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0xf1600
movq 0x8(%rsp), %rdx
addq $0x50, %rdx
leaq 0x4f44a8(%rip), %rdi    # 0x524178
leaq 0x4ea279(%rip), %rsi    # 0x519f50
movq $-0x1, %rcx
callq 0xf5fe0
movq %rax, 0x20(%rsp)
movq 0x38(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0xf1600
movq 0x8(%rsp), %rdx
addq $0x28, %rdx
leaq 0x51b920(%rip), %rdi    # 0x54b627
leaq 0x4ec82b(%rip), %rsi    # 0x51c539
xorl %eax, %eax
movl %eax, %ecx
callq 0xf68a0
movq %rax, 0x18(%rsp)
movq 0x38(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0xf1600
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0xf7320
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdx
movq 0x60ca96(%rip), %rcx    # 0x63c7e0
leaq 0x50df2e(%rip), %rdi    # 0x53dc7f
leaq 0x4ea2de(%rip), %rsi    # 0x51a036
leaq 0x60ca81(%rip), %r8     # 0x63c7e0
callq 0xf6b30
movq %rax, 0x10(%rsp)
movq 0x38(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0xf1600
movq 0x8(%rsp), %rdx
addq $0x18, %rdx
leaq 0x51fc6c(%rip), %rdi    # 0x54f9f4
leaq 0x4ec7d1(%rip), %rsi    # 0x51c560
xorl %eax, %eax
movl %eax, %ecx
callq 0xf68a0
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0xf1600
movq 0x30(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0xf7090
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rdx
leaq 0x4ea29c(%rip), %rdi    # 0x51a067
leaq 0x4ec7c7(%rip), %rsi    # 0x51c599
leaq 0x51e055(%rip), %rcx    # 0x54de2e
callq 0xf69f0
movq %rax, 0x28(%rsp)
movq 0x38(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0xf1600
movq 0x28(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0xf7090
movq 0x38(%rsp), %rdi
movl $0x1, %edx
movl %edx, %esi
callq 0xf2a40
movq 0x38(%rsp), %rax
addq $0x48, %rsp
retq
nopl (%rax)