// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/tools/gt_extractseq.c
// Function: gt_extractseq_option_parser_new
static GtOptionParser* gt_extractseq_option_parser_new(void *tool_arguments)
{
  ExtractSeqArguments *arguments = tool_arguments;
  GtOptionParser *op;
  GtOption *frompos_option, *topos_option, *match_option, *width_option,
         *fastakeyfile_option;
  gt_assert(arguments);

  /* init */
  op = gt_option_parser_new("[option ...] [sequence_file(s)] | fastaindex",
                            "Extract sequences from given sequence file(s) or "
                            "fastaindex.");

  /* -frompos */
  frompos_option = gt_option_new_uword_min(FROMPOS_OPTION_STR,
                                        "extract sequence from this position\n"
                                        "counting from 1 on",
                                        &arguments->frompos, 0, 1UL);
  gt_option_parser_add_option(op, frompos_option);

  /* -topos */
  topos_option = gt_option_new_uword_min(TOPOS_OPTION_STR,
                                      "extract sequence up to this position\n"
                                      "counting from 1 on",
                                      &arguments->topos, 0, 1UL);
  gt_option_parser_add_option(op, topos_option);

  /* -match */
  match_option = gt_option_new_string("match", "extract all sequences whose "
                                   "description matches the given pattern.\n"
                                   "The given pattern must be a valid extended "
                                   "regular expression.", arguments->pattern,
                                   NULL);
  gt_option_parser_add_option(op, match_option);

  /* -keys */
  fastakeyfile_option = gt_option_new_filename("keys",
                                               "extract substrings for keys "
                                               "in specified file",
                                     arguments->fastakeyfile);
  gt_option_parser_add_option(op, fastakeyfile_option);

  /* -width */
  width_option = gt_option_new_width(&arguments->width);
  gt_option_parser_add_option(op, width_option);

  /* output file options */
  gt_output_file_info_register_options(arguments->ofi, op, &arguments->outfp);

  /* option implications */
  gt_option_imply(frompos_option, topos_option);
  gt_option_imply(topos_option, frompos_option);

  /* option exclusions */
  gt_option_exclude(frompos_option, match_option);
  gt_option_exclude(topos_option, match_option);
  gt_option_exclude(frompos_option, fastakeyfile_option);
  gt_option_exclude(match_option, fastakeyfile_option);

  gt_option_parser_set_comment_func(op, gt_gtdata_show_help, NULL);
  return op;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0xa92ca
movq %rdi, %r14
leaq 0x2ac3b5(%rip), %rdi    # 0x35553f
leaq 0x2ac3db(%rip), %rsi    # 0x35556c
callq 0x10cc4e
movq %rax, %rbx
leaq 0x10(%r14), %rdx
leaq 0x2d9746(%rip), %rdi    # 0x3828ea
leaq 0x2ac3fe(%rip), %rsi    # 0x3555a9
movl $0x1, %r8d
xorl %ecx, %ecx
callq 0x10f7ed
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x18(%r14), %rdx
leaq 0x2be7a3(%rip), %rdi    # 0x367974
leaq 0x2ac408(%rip), %rsi    # 0x3555e0
movl $0x1, %r8d
xorl %ecx, %ecx
callq 0x10f7ed
movq %rax, %r12
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
movq (%r14), %rdx
leaq 0x2e6ddb(%rip), %rdi    # 0x38ffd8
leaq 0x2ac414(%rip), %rsi    # 0x355618
xorl %ecx, %ecx
callq 0x10f987
movq %rax, %r13
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
movq 0x8(%r14), %rdx
leaq 0x2b7e47(%rip), %rdi    # 0x36106b
leaq 0x2ac46f(%rip), %rsi    # 0x35569a
callq 0x10f9c6
movq %rax, %rbp
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x20(%r14), %rdi
callq 0x10f49c
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
movq 0x28(%r14), %rdi
addq $0x30, %r14
movq %rbx, %rsi
movq %r14, %rdx
callq 0x10ffa3
movq %r15, %rdi
movq %r12, %rsi
callq 0x10fbff
movq %r12, %rdi
movq %r15, %rsi
callq 0x10fbff
movq %r15, %rdi
movq %r13, %rsi
callq 0x10fd9f
movq %r12, %rdi
movq %r13, %rsi
callq 0x10fd9f
movq %r15, %rdi
movq %rbp, %rsi
callq 0x10fd9f
movq %r13, %rdi
movq %rbp, %rsi
callq 0x10fd9f
leaq 0xaabee(%rip), %rsi     # 0x153e9c
movq %rbx, %rdi
xorl %edx, %edx
callq 0x10cd8d
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1a962