// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/index_options.c
// Function: gt_index_options_register_generic_output
static GtIndexOptions*
gt_index_options_register_generic_output(GtOptionParser *op,
                                         GtIndexOptions *idxo,
                                         GtStr *indexname,
                                         GtEncseqOptions *encopts)
{
  gt_assert(idxo != NULL);
  gt_assert(op != NULL && idxo->type != GT_INDEX_OPTIONS_UNDEFINED &&
            encopts != NULL);
  idxo->encopts = encopts;
  idxo->indexname = indexname != NULL ? gt_str_ref(indexname) : NULL;
  idxo->optionkys = gt_option_new_string("kys",
                                   "output/sort according to keys of the form "
                                   "|key| in fasta header",
                                   idxo->kysargumentstring,
                                   "nosort");
  gt_option_argument_is_optional(idxo->optionkys);
  gt_option_imply(idxo->optionkys, gt_encseq_options_sds_option(idxo->encopts));
  gt_option_parser_add_option(op, idxo->optionkys);

  gt_encseq_options_add_readmode_option(op, idxo->dir);

  if (idxo->type == GT_INDEX_OPTIONS_ESA)
  {
    idxo->optionoutsuftab = gt_option_new_bool("suf",
                                   "output suffix array (suftab) to file",
                                   &idxo->outsuftab,
                                   false);
    gt_option_parser_add_option(op, idxo->optionoutsuftab);

    idxo->optionoutlcptab = gt_option_new_bool("lcp",
                                   "output lcp table (lcptab) to file",
                                   &idxo->outlcptab,
                                   false);
    gt_option_parser_add_option(op, idxo->optionoutlcptab);

    idxo->option = gt_option_new_bool("lcpdist",
                              "output distributions of values in lcptab",
                              &idxo->lcpdist,
                              false);
    gt_option_is_extended_option(idxo->option);
    gt_option_imply(idxo->option, idxo->optionoutlcptab);
    gt_option_parser_add_option(op, idxo->option);

    idxo->option = gt_option_new_bool("swallow-tail",
                              "swallow the tail of the suffix array and lcptab",
                              &idxo->swallow_tail,
                              false);
    gt_option_is_development_option(idxo->option);
    gt_option_parser_add_option(op, idxo->option);

    idxo->optionoutbwttab = gt_option_new_bool("bwt",
                                   "output Burrows-Wheeler Transformation "
                                   "(bwttab) to file",
                                   &idxo->outbwttab,
                                   false);
    gt_option_exclude(idxo->optionspmopt, idxo->optionoutbwttab);
    gt_option_parser_add_option(op, idxo->optionoutbwttab);

    idxo->optionoutbcktab = gt_option_new_bool("bck",
                                "output bucket table to file",
                                &idxo->outbcktab,
                                false);
    gt_option_parser_add_option(op, idxo->optionoutbcktab);
  } else {
    idxo->optionoutsuftab
      = idxo->optionoutlcptab = idxo->optionoutbwttab = NULL;
    idxo->sfxstrategy.spmopt_minlength = 0;
#ifndef S_SPLINT_S
    gt_registerPackedIndexOptions(op,
                                  &idxo->bwtIdxParams,
                                  BWTDEFOPT_CONSTRUCTION,
                                  idxo->indexname);
#endif
  }

  gt_option_parser_register_hook(op, gt_index_options_check_set_out_opts, idxo);

  return idxo;
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movq %rcx, 0x18(%rsp)
cmpq $0x0, 0x28(%rsp)
jne 0x25c2d8
movq 0x3dfcf9(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2b9d62(%rip), %rsi    # 0x516013
leaq 0x31f1ac(%rip), %rdx    # 0x57b464
leaq 0x31f1b2(%rip), %rcx    # 0x57b471
leaq 0x31e98a(%rip), %r8     # 0x57ac50
movl $0x118, %r9d            # imm = 0x118
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x25c2da
jmp 0x25c2dc
cmpq $0x0, 0x30(%rsp)
je 0x25c2fa
movq 0x28(%rsp), %rax
cmpl $0x0, 0x88(%rax)
je 0x25c2fa
cmpq $0x0, 0x18(%rsp)
jne 0x25c332
movq 0x3dfc9f(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2b9d08(%rip), %rsi    # 0x516013
leaq 0x31f188(%rip), %rdx    # 0x57b49a
leaq 0x31f158(%rip), %rcx    # 0x57b471
leaq 0x31e930(%rip), %r8     # 0x57ac50
movl $0x11a, %r9d            # imm = 0x11A
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x25c334
movq 0x18(%rsp), %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0x80(%rax)
cmpq $0x0, 0x20(%rsp)
je 0x25c35e
movq 0x20(%rsp), %rdi
callq 0x11e360
movq %rax, 0x10(%rsp)
jmp 0x25c367
xorl %eax, %eax
movq %rax, 0x10(%rsp)
jmp 0x25c367
movq 0x10(%rsp), %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0x30(%rax)
movq 0x28(%rsp), %rax
movq 0x28(%rax), %rdx
leaq 0x31d605(%rip), %rdi    # 0x57998a
leaq 0x31f158(%rip), %rsi    # 0x57b4e4
leaq 0x31f191(%rip), %rcx    # 0x57b524
callq 0xf69f0
movq %rax, %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0x110(%rax)
movq 0x28(%rsp), %rax
movq 0x110(%rax), %rdi
callq 0xf7450
movq 0x28(%rsp), %rax
movq 0x110(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x28(%rsp), %rax
movq 0x80(%rax), %rdi
callq 0xd7b30
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0xf7090
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rax
movq 0x110(%rax), %rsi
callq 0xf1600
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rax
movq 0x38(%rax), %rsi
callq 0xd73c0
movq 0x28(%rsp), %rax
cmpl $0x1, 0x88(%rax)
jne 0x25c612
movq 0x28(%rsp), %rdx
addq $0x1c, %rdx
leaq 0x2fd4c0(%rip), %rdi    # 0x5598f2
leaq 0x31f0f2(%rip), %rsi    # 0x57b52b
xorl %ecx, %ecx
callq 0xf5f20
movq %rax, %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0x98(%rax)
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rax
movq 0x98(%rax), %rsi
callq 0xf1600
movq 0x28(%rsp), %rdx
addq $0x1d, %rdx
leaq 0x32ce9e(%rip), %rdi    # 0x589313
leaq 0x31f0d4(%rip), %rsi    # 0x57b550
xorl %ecx, %ecx
callq 0xf5f20
movq %rax, %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0xa0(%rax)
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rax
movq 0xa0(%rax), %rsi
callq 0xf1600
movq 0x28(%rsp), %rdx
addq $0x22, %rdx
leaq 0x31f0ba(%rip), %rdi    # 0x57b572
leaq 0x31f0bb(%rip), %rsi    # 0x57b57a
xorl %ecx, %ecx
callq 0xf5f20
movq %rax, %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0x90(%rax)
movq 0x28(%rsp), %rax
movq 0x90(%rax), %rdi
callq 0xf6ff0
movq 0x28(%rsp), %rax
movq 0x90(%rax), %rdi
movq 0x28(%rsp), %rax
movq 0xa0(%rax), %rsi
callq 0xf7090
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rax
movq 0x90(%rax), %rsi
callq 0xf1600
movq 0x28(%rsp), %rdx
addq $0x23, %rdx
leaq 0x31f07a(%rip), %rdi    # 0x57b5a3
leaq 0x31f080(%rip), %rsi    # 0x57b5b0
xorl %ecx, %ecx
callq 0xf5f20
movq %rax, %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0x90(%rax)
movq 0x28(%rsp), %rax
movq 0x90(%rax), %rdi
callq 0xf7040
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rax
movq 0x90(%rax), %rsi
callq 0xf1600
movq 0x28(%rsp), %rdx
addq $0x1e, %rdx
leaq 0x32f8f4(%rip), %rdi    # 0x58be71
leaq 0x31f05c(%rip), %rsi    # 0x57b5e0
xorl %ecx, %ecx
callq 0xf5f20
movq %rax, %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0xa8(%rax)
movq 0x28(%rsp), %rax
movq 0xd0(%rax), %rdi
movq 0x28(%rsp), %rax
movq 0xa8(%rax), %rsi
callq 0xf7320
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rax
movq 0xa8(%rax), %rsi
callq 0xf1600
movq 0x28(%rsp), %rdx
addq $0x1f, %rdx
leaq 0x314dba(%rip), %rdi    # 0x571397
leaq 0x31f033(%rip), %rsi    # 0x57b617
xorl %ecx, %ecx
callq 0xf5f20
movq %rax, %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0xb0(%rax)
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rax
movq 0xb0(%rax), %rsi
callq 0xf1600
jmp 0x25c672
movq 0x28(%rsp), %rax
movq $0x0, 0xa8(%rax)
movq 0x28(%rsp), %rax
movq $0x0, 0xa0(%rax)
movq 0x28(%rsp), %rax
movq $0x0, 0x98(%rax)
movq 0x28(%rsp), %rax
movl $0x0, 0x70(%rax)
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rsi
addq $0x118, %rsi            # imm = 0x118
movq 0x28(%rsp), %rax
movq 0x30(%rax), %rcx
movl $0x1, %edx
callq 0x224bd0
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rdx
leaq 0xdbd(%rip), %rsi       # 0x25d440
callq 0xf1860
movq 0x28(%rsp), %rax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)