// File: /workspace/github_c_makefile_star2_O3/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 0xa6f3a
movq %rdi, %r14
leaq 0x2a5716(%rip), %rdi    # 0x34c510
leaq 0x2a573c(%rip), %rsi    # 0x34c53d
callq 0x107bfe
movq %rax, %rbx
leaq 0x10(%r14), %rdx
leaq 0x2d27b8(%rip), %rdi    # 0x3795cc
leaq 0x2a575f(%rip), %rsi    # 0x34c57a
movl $0x1, %r8d
xorl %ecx, %ecx
callq 0x10a5d1
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x18(%r14), %rdx
leaq 0x2b7a37(%rip), %rdi    # 0x35e878
leaq 0x2a5769(%rip), %rsi    # 0x34c5b1
movl $0x1, %r8d
xorl %ecx, %ecx
callq 0x10a5d1
movq %rax, %r12
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
movq (%r14), %rdx
leaq 0x2dfd8b(%rip), %rdi    # 0x386bf8
leaq 0x2a5775(%rip), %rsi    # 0x34c5e9
xorl %ecx, %ecx
callq 0x10a770
movq %rax, %r13
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
movq 0x8(%r14), %rdx
leaq 0x2b1184(%rip), %rdi    # 0x358018
leaq 0x2a57d0(%rip), %rsi    # 0x34c66b
callq 0x10a7af
movq %rax, %rbp
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x20(%r14), %rdi
callq 0x10a280
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
movq 0x28(%r14), %rdi
addq $0x30, %r14
movq %rbx, %rsi
movq %r14, %rdx
callq 0x10ad87
movq %r15, %rdi
movq %r12, %rsi
callq 0x10a9e4
movq %r12, %rdi
movq %r15, %rsi
callq 0x10a9e4
movq %r15, %rdi
movq %r13, %rsi
callq 0x10ab96
movq %r12, %rdi
movq %r13, %rsi
callq 0x10ab96
movq %r15, %rdi
movq %rbp, %rsi
callq 0x10ab96
movq %r13, %rdi
movq %rbp, %rsi
callq 0x10ab96
leaq 0xa59a6(%rip), %rsi     # 0x14c8c4
movq %rbx, %rdi
xorl %edx, %edx
callq 0x107d3d
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1a89f