// File: /workspace/github_c_makefile_star2_O2/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 0x28fc8
movq %rdi, %r14
leaq 0x2c3686(%rip), %rdi    # 0x2ec510
leaq 0x2c36ac(%rip), %rsi    # 0x2ec53d
callq 0x97df5
movq %rax, %rbx
leaq 0x10(%r14), %rdx
leaq 0x2f0a76(%rip), %rdi    # 0x31991a
leaq 0x2c36cf(%rip), %rsi    # 0x2ec57a
pushq $0x1
popq %r12
xorl %ecx, %ecx
movq %r12, %r8
callq 0x9ac58
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x18(%r14), %rdx
leaq 0x2d595a(%rip), %rdi    # 0x2fe82c
leaq 0x2c36d8(%rip), %rsi    # 0x2ec5b1
xorl %ecx, %ecx
movq %r12, %r8
callq 0x9ac58
movq %rax, %r12
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
movq (%r14), %rdx
leaq 0x2fe0fd(%rip), %rdi    # 0x326ff8
leaq 0x2c36e7(%rip), %rsi    # 0x2ec5e9
xorl %ecx, %ecx
callq 0x9ad12
movq %rax, %r13
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
movq 0x8(%r14), %rdx
leaq 0x2cf106(%rip), %rdi    # 0x2f8028
leaq 0x2c3742(%rip), %rsi    # 0x2ec66b
callq 0x9ad51
movq %rax, %rbp
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x20(%r14), %rdi
callq 0x9a9ce
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
movq 0x28(%r14), %rdi
addq $0x30, %r14
movq %rbx, %rsi
movq %r14, %rdx
callq 0x9b6d7
movq %r15, %rdi
movq %r12, %rsi
callq 0x9b14d
movq %r12, %rdi
movq %r15, %rsi
callq 0x9b14d
movq %r15, %rdi
movq %r13, %rsi
callq 0x9b38d
movq %r12, %rdi
movq %r13, %rsi
callq 0x9b38d
movq %r15, %rdi
movq %rbp, %rsi
callq 0x9b38d
movq %r13, %rdi
movq %rbp, %rsi
callq 0x9b38d
leaq 0xbe540(%rip), %rsi     # 0xe74ec
movq %rbx, %rdi
xorl %edx, %edx
callq 0x98045
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x40ef99(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2bc03a(%rip), %rsi    # 0x2e5013
leaq 0x31f673(%rip), %rdx    # 0x348653
leaq 0x2c3509(%rip), %rcx    # 0x2ec4f0
leaq 0x2c34e8(%rip), %r8     # 0x2ec4d6
pushq $0x45
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390