// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/tools/gt_seqorder.c
// Function: gt_seqorder_option_parser_new
static GtOptionParser* gt_seqorder_option_parser_new(void *tool_arguments)
{
  GtSeqorderArguments *arguments = tool_arguments;
  GtOptionParser *op;
  GtOption *invert_option, *sort_option, *sorthdr_option, *sorthdrnum_option,
           *revsort_option, *shuffle_option, *sort_length_option;
  gt_assert(arguments);

  /* init */
  op = gt_option_parser_new("(-invert|-sort|-revsort|-shuffle|-sorthdr"
                            "|-sorthdrnum) encseq",
                            "Output sequences as MultiFasta in specified "
                            "order.");

  /* -invert */
  invert_option = gt_option_new_bool("invert", "invert order of sequences",
                                     &arguments->invert, false);
  gt_option_parser_add_option(op, invert_option);

  /* -sort */
  sort_option = gt_option_new_bool("sort",
                                   "sort sequences lexicographically "
                                   "(by actual sequence)",
                                   &arguments->sort, false);
  gt_option_exclude(sort_option, invert_option);
  gt_option_parser_add_option(op, sort_option);

  /* -revsort */
  revsort_option = gt_option_new_bool("revsort", "sort sequences in reverse "
                                      "lexicographic order",
                                      &arguments->revsort, false);
  gt_option_exclude(revsort_option, invert_option);
  gt_option_exclude(revsort_option, sort_option);
  gt_option_parser_add_option(op, revsort_option);

  /* -sorthdr */
  sorthdr_option = gt_option_new_bool("sorthdr",
                                      "sort sequences lexicographically "
                                      "by sequence header",
                                      &arguments->sorthdr, false);
  gt_option_exclude(sorthdr_option, invert_option);
  gt_option_exclude(sorthdr_option, sort_option);
  gt_option_exclude(sorthdr_option, revsort_option);
  gt_option_parser_add_option(op, sorthdr_option);

    /* -sorthdrnum */
  sorthdrnum_option = gt_option_new_bool("sorthdrnum",
                                         "sort sequences numerically "
                                         "by sequence header",
                                         &arguments->sorthdrnum, false);
  gt_option_exclude(sorthdrnum_option, invert_option);
  gt_option_exclude(sorthdrnum_option, sort_option);
  gt_option_exclude(sorthdrnum_option, revsort_option);
  gt_option_exclude(sorthdrnum_option, sorthdr_option);
  gt_option_parser_add_option(op, sorthdrnum_option);

  /* -shuffle */
  shuffle_option = gt_option_new_bool("shuffle", "shuffle sequences "
                                      "pseudo-randomly",
                                      &arguments->shuffle, false);
  gt_option_exclude(shuffle_option, invert_option);
  gt_option_exclude(shuffle_option, sort_option);
  gt_option_exclude(shuffle_option, revsort_option);
  gt_option_exclude(shuffle_option, sorthdr_option);
  gt_option_exclude(shuffle_option, sorthdrnum_option);
  gt_option_parser_add_option(op, shuffle_option);

  /* -sortlength */
  sort_length_option = gt_option_new_bool("sortlength",
                                          "sort by decreasing length",
                                          &arguments->sort_length, false);
  gt_option_exclude(sort_length_option, invert_option);
  gt_option_exclude(sort_length_option, sort_option);
  gt_option_exclude(sort_length_option, revsort_option);
  gt_option_exclude(sort_length_option, sorthdr_option);
  gt_option_exclude(sort_length_option, sorthdrnum_option);
  gt_option_exclude(sort_length_option, shuffle_option);
  gt_option_parser_add_option(op, sort_length_option);
  gt_option_parser_set_min_max_args(op, 1U, 1U);

  return op;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
testq %rdi, %rdi
je 0xc5e4f
movq %rdi, %r14
leaq 0x29bed7(%rip), %rdi    # 0x361ad6
leaq 0x29bf0e(%rip), %rsi    # 0x361b14
callq 0x10cc4e
movq %rax, %rbx
leaq 0x2b54f1(%rip), %rdi    # 0x37b106
leaq 0x29bf2b(%rip), %rsi    # 0x361b47
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x10f451
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x1(%r14), %rdx
leaq 0x2ec191(%rip), %rdi    # 0x3b1dd0
leaq 0x29bf1b(%rip), %rsi    # 0x361b61
xorl %ecx, %ecx
callq 0x10f451
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x10fd9f
movq %rbx, %rdi
movq %r12, %rsi
callq 0x10cd10
leaq 0x2(%r14), %rdx
leaq 0x29c0e9(%rip), %rdi    # 0x361d5a
leaq 0x29bf1f(%rip), %rsi    # 0x361b97
xorl %ecx, %ecx
callq 0x10f451
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
movq %r15, 0x8(%rsp)
callq 0x10fd9f
movq %r13, %rdi
movq %r12, %rsi
callq 0x10fd9f
movq %rbx, %rdi
movq %rbx, (%rsp)
movq %r13, %rsi
callq 0x10cd10
leaq 0x4(%r14), %rdx
leaq 0x29bf0e(%rip), %rdi    # 0x361bc5
leaq 0x29bf0f(%rip), %rsi    # 0x361bcd
xorl %ecx, %ecx
callq 0x10f451
movq %rax, %rbp
movq %rax, %rdi
movq %r15, %rsi
callq 0x10fd9f
movq %rbp, %rdi
movq %r12, %rsi
movq %r12, %r15
movq %r12, 0x10(%rsp)
callq 0x10fd9f
movq %rbp, %rdi
movq %r13, %rsi
callq 0x10fd9f
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x10cd10
leaq 0x5(%r14), %rdx
leaq 0x29befa(%rip), %rdi    # 0x361c01
leaq 0x29befe(%rip), %rsi    # 0x361c0c
xorl %ecx, %ecx
callq 0x10f451
movq %rax, %rbx
movq %rax, %rdi
movq 0x8(%rsp), %r12
movq %r12, %rsi
callq 0x10fd9f
movq %rbx, %rdi
movq %r15, %rsi
callq 0x10fd9f
movq %rbx, %rdi
movq %r13, %rsi
callq 0x10fd9f
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x10fd9f
movq (%rsp), %rdi
movq %rbx, %rsi
callq 0x10cd10
leaq 0x3(%r14), %rdx
leaq 0x2b23f0(%rip), %rdi    # 0x378150
leaq 0x29bed3(%rip), %rsi    # 0x361c3a
xorl %ecx, %ecx
callq 0x10f451
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
callq 0x10fd9f
movq %r15, %rdi
movq 0x10(%rsp), %r12
movq %r12, %rsi
callq 0x10fd9f
movq %r15, %rdi
movq %r13, %rsi
callq 0x10fd9f
movq %r15, %rdi
movq %rbp, %rsi
callq 0x10fd9f
movq %r15, %rdi
movq %rbx, %rsi
callq 0x10fd9f
movq (%rsp), %rdi
movq %r15, %rsi
callq 0x10cd10
addq $0x6, %r14
leaq 0x29be98(%rip), %rdi    # 0x361c5c
leaq 0x29be9c(%rip), %rsi    # 0x361c67
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x10f451
movq %rax, %r14
movq %rax, %rdi
movq 0x8(%rsp), %rsi
callq 0x10fd9f
movq %r14, %rdi
movq %r12, %rsi
callq 0x10fd9f
movq %r14, %rdi
movq %r13, %rsi
callq 0x10fd9f
movq %r14, %rdi
movq %rbp, %rsi
callq 0x10fd9f
movq %r14, %rdi
movq %rbx, %rsi
callq 0x10fd9f
movq %r14, %rdi
movq %r15, %rsi
callq 0x10fd9f
movq (%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x10cd10
movq %rbx, %rdi
movl $0x1, %esi
movl $0x1, %edx
callq 0x10d784
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1f3f3