// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x38(%rsp)
cmpq $0x0, 0x38(%rsp)
jne 0x34f23
movq 0x6070ae(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4e1117(%rip), %rsi    # 0x516013
leaq 0x545c5c(%rip), %rdx    # 0x57ab5f
leaq 0x4e8670(%rip), %rcx    # 0x51d57a
leaq 0x4e864f(%rip), %r8     # 0x51d560
movl $0x45, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x34f25
leaq 0x4e866e(%rip), %rdi    # 0x51d59a
leaq 0x4e8694(%rip), %rsi    # 0x51d5c7
callq 0xf1420
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rdx
addq $0x10, %rdx
leaq 0x5169e7(%rip), %rdi    # 0x54b934
leaq 0x4e86b0(%rip), %rsi    # 0x51d604
xorl %eax, %eax
movl %eax, %ecx
movl $0x1, %r8d
callq 0xf66b0
movq %rax, 0x28(%rsp)
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0xf1600
movq 0x38(%rsp), %rdx
addq $0x18, %rdx
leaq 0x4faaad(%rip), %rdi    # 0x52fa34
leaq 0x4e86ad(%rip), %rsi    # 0x51d63b
xorl %eax, %eax
movl %eax, %ecx
movl $0x1, %r8d
callq 0xf66b0
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0xf1600
movq 0x38(%rsp), %rax
movq (%rax), %rdx
leaq 0x5243b8(%rip), %rdi    # 0x559378
leaq 0x4e86ac(%rip), %rsi    # 0x51d673
xorl %eax, %eax
movl %eax, %ecx
callq 0xf69f0
movq %rax, 0x18(%rsp)
movq 0x30(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0xf1600
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rdx
leaq 0x4f411f(%rip), %rdi    # 0x529113
leaq 0x4e86fa(%rip), %rsi    # 0x51d6f5
callq 0xf6aa0
movq %rax, 0x8(%rsp)
movq 0x30(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0xf1600
movq 0x38(%rsp), %rdi
addq $0x20, %rdi
callq 0xf5fb0
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0xf1600
movq 0x38(%rsp), %rax
movq 0x28(%rax), %rdi
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq $0x30, %rdx
callq 0xf7d50
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0xf7090
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0xf7090
movq 0x28(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0xf7320
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0xf7320
movq 0x28(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0xf7320
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0xf7320
movq 0x30(%rsp), %rdi
leaq 0x14cc28(%rip), %rsi    # 0x181ce0
xorl %eax, %eax
movl %eax, %edx
callq 0xf1770
movq 0x30(%rsp), %rax
addq $0x48, %rsp
retq
nopl (%rax,%rax)