// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/seqid2file.c
// Function: gt_seqid2file_register_options_ext
void gt_seqid2file_register_options_ext(GtOptionParser *op,
                                        GtSeqid2FileInfo *s2fi,
                                        bool mandatory, bool debug)
{
  GtOption *seqfile_option, *encseq_option, *seqfiles_option, *matchdesc_option,
           *matchdescstart_option, *usedesc_option, *region_mapping_option;
  gt_assert(op && s2fi);

  /* -seqfile */
  seqfile_option = gt_option_new_filename("seqfile", "set the sequence file "
                                          "from which to take the sequences",
                                          s2fi->seqfile);
  if (debug)
    gt_option_is_development_option(seqfile_option);
  gt_option_parser_add_option(op, seqfile_option);

  /* -encseq */
  encseq_option = gt_option_new_filename("encseq", "set the encoded sequence "
                                         "indexname from which to take the "
                                         "sequences",
                                          s2fi->encseq);
  if (debug)
    gt_option_is_development_option(encseq_option);
  gt_option_parser_add_option(op, encseq_option);

  /* -seqfiles */
  seqfiles_option = gt_option_new_filename_array("seqfiles", "set the sequence "
                                                 "files from which to extract "
                                                 "the features\nuse '--' to "
                                                 "terminate the list of "
                                                 "sequence files ",
                                                 s2fi->seqfiles);
  if (debug)
    gt_option_is_development_option(seqfiles_option);
  gt_option_parser_add_option(op, seqfiles_option);

  /* -matchdesc */
  matchdesc_option = gt_option_new_bool("matchdesc", "search the sequence "
                                        "descriptions from the input files for "
                                        "the desired sequence IDs (in GFF3), "
                                        "reporting the first match",
                                        &s2fi->matchdesc, false);
  if (debug)
    gt_option_is_development_option(matchdesc_option);
  gt_option_parser_add_option(op, matchdesc_option);

  /* -matchdescstart */
  matchdescstart_option = gt_option_new_bool("matchdescstart",
                                        "exactly match the sequence "
                                        "descriptions from the input files "
                                        "for the desired sequence IDs "
                                        "(in GFF3) from the beginning to the "
                                        "first whitespace",
                                        &s2fi->matchdescstart, false);
  if (debug)
    gt_option_is_development_option(matchdescstart_option);
  gt_option_parser_add_option(op, matchdescstart_option);

  /* -usedesc */
  usedesc_option = gt_option_new_bool("usedesc", "use sequence descriptions to "
                                      "map the sequence IDs (in GFF3) to "
                                      "actual sequence entries.\nIf a "
                                      "description contains a sequence range "
                                      "(e.g., III:1000001..2000000), the first "
                                      " part is used as sequence ID ('III') "
                                      "and the first range position as offset "
                                      "('1000001')", &s2fi->usedesc, false);
  if (debug)
    gt_option_is_development_option(usedesc_option);
  gt_option_parser_add_option(op, usedesc_option);

  /* -regionmapping */
  region_mapping_option = gt_option_new_string("regionmapping", "set file "
                                               "containing sequence-region to "
                                               "sequence file mapping",
                                               s2fi->region_mapping, NULL);
  if (debug)
    gt_option_is_development_option(region_mapping_option);
  gt_option_parser_add_option(op, region_mapping_option);

  /* either option -seqfile, -seqfiles or -regionmapping is mandatory */
  if (mandatory) {
    gt_option_is_mandatory_either_4(seqfile_option, encseq_option,
                                    seqfiles_option, region_mapping_option);
  }

  /* the options -seqfile and -regionmapping exclude each other */
  gt_option_exclude(seqfile_option, region_mapping_option);

  /* the options -seqfiles and -regionmapping exclude each other */
  gt_option_exclude(seqfiles_option, region_mapping_option);

  /* the options -seqfile and -seqfiles exclude each other */
  gt_option_exclude(seqfile_option, seqfiles_option);

  /* the options -encseq and -regionmapping exclude each other */
  gt_option_exclude(encseq_option, region_mapping_option);

  /* the options -encseq and -seqfile exclude each other */
  gt_option_exclude(encseq_option, seqfile_option);

  /* the options -encseq and -seqfiles exclude each other */
  gt_option_exclude(encseq_option, seqfiles_option);

  /* the options -matchdesc and -usedesc exclude each other */
  gt_option_exclude(matchdesc_option, usedesc_option);

  /* option -matchdesc implies option -seqfile, -encseq or -seqfiles*/
  gt_option_imply_either_3(matchdesc_option, seqfile_option, seqfiles_option,
                           encseq_option);

  /* option -usedesc implies option -seqfile, -encseq or -seqfiles */
  gt_option_imply_either_3(usedesc_option, seqfile_option, seqfiles_option,
                           encseq_option);

  /* set hook function */
  gt_option_parser_register_hook(op, seqid2file_check, s2fi);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
testq %rdi, %rdi
je 0x17b30d
movq %rsi, %rbx
testq %rsi, %rsi
je 0x17b30d
movl %ecx, %r13d
movl %edx, %ebp
movq %rdi, %r14
movq 0x10(%rbx), %rdx
leaq 0x22c196(%rip), %rdi    # 0x3a7275
leaq 0x2209f3(%rip), %rsi    # 0x39bad9
callq 0x10f9c6
movq %rax, %r15
testb %r13b, %r13b
je 0x17b0fb
movq %r15, %rdi
callq 0x10fbef
movl %ebp, 0x4(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x10cd10
movq 0x18(%rbx), %rdx
leaq 0x2154c1(%rip), %rdi    # 0x3905d6
leaq 0x2209f4(%rip), %rsi    # 0x39bb10
callq 0x10f9c6
movq %rax, %r12
testb %r13b, %r13b
je 0x17b131
movq %r12, %rdi
callq 0x10fbef
movq %r14, %rdi
movq %r12, %rsi
callq 0x10cd10
movq (%rbx), %rdx
leaq 0x1da7f6(%rip), %rdi    # 0x35593c
leaq 0x220a07(%rip), %rsi    # 0x39bb54
callq 0x10f9f6
movq %rax, %rbp
testb %r13b, %r13b
je 0x17b162
movq %rbp, %rdi
callq 0x10fbef
movq %r15, 0x10(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
callq 0x10cd10
leaq 0x8(%rbx), %rdx
leaq 0x22c191(%rip), %rdi    # 0x3a730e
leaq 0x220a3c(%rip), %rsi    # 0x39bbc0
xorl %ecx, %ecx
callq 0x10f451
movq %rax, %r15
testb %r13b, %r13b
je 0x17b19b
movq %r15, %rdi
callq 0x10fbef
movq %r14, %rdi
movq %r15, 0x18(%rsp)
movq %r15, %rsi
callq 0x10cd10
leaq 0xa(%rbx), %rdx
leaq 0x22c181(%rip), %rdi    # 0x3a7337
leaq 0x220a7b(%rip), %rsi    # 0x39bc38
xorl %ecx, %ecx
callq 0x10f451
movq %rax, %r15
testb %r13b, %r13b
je 0x17b1d4
movq %r15, %rdi
callq 0x10fbef
movq %r12, 0x8(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x10cd10
leaq 0x9(%rbx), %rdx
leaq 0x22c176(%rip), %rdi    # 0x3a7365
leaq 0x220ad1(%rip), %rsi    # 0x39bcc7
xorl %ecx, %ecx
callq 0x10f451
movq %rax, %r15
testb %r13b, %r13b
je 0x17b20d
movq %r15, %rdi
callq 0x10fbef
movq %r14, %rdi
movq %r15, %rsi
callq 0x10cd10
movq 0x20(%rbx), %rdx
leaq 0x220ba7(%rip), %rdi    # 0x39bdca
leaq 0x220bae(%rip), %rsi    # 0x39bdd8
xorl %ecx, %ecx
callq 0x10f987
movq %rax, %r12
testb %r13b, %r13b
je 0x17b241
movq %r12, %rdi
callq 0x10fbef
movq %rbx, 0x20(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x10cd10
cmpb $0x0, 0x4(%rsp)
je 0x17b26d
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %rbp, %rdx
movq %r12, %rcx
callq 0x10fb5c
movq 0x10(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x10fd9f
movq %rbp, %rdi
movq %r12, %rsi
callq 0x10fd9f
movq %r13, %rdi
movq %rbp, %rsi
callq 0x10fd9f
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x10fd9f
movq %rbx, %rdi
movq %r13, %rsi
callq 0x10fd9f
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x10fd9f
movq 0x18(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x10fd9f
movq %r12, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movq %rbx, %rcx
callq 0x10fcf8
movq %r15, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movq %rbx, %rcx
callq 0x10fcf8
leaq 0x20(%rip), %rsi        # 0x17b312
movq %r14, %rdi
movq 0x20(%rsp), %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x10cdb6
callq 0x54d2b