// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/querymatch-display.c
// Function: gt_querymatch_options_order_check
static int gt_querymatch_options_order_check(
                 const GtSeedExtendDisplayFlag *display_flag,
                 size_t num_gfa2_default_flags,
                 GtError *err)
{
  GtUword idx, num_columns;
  bool trace_or_cigar_found = false;
  const unsigned int *order = gt_querymatch_display_order(&num_columns,
                                                          display_flag);

  if (!gt_querymatch_trace_display(display_flag) &&
      !gt_querymatch_cigar_display(display_flag))
  {
    gt_error_set(err,"for gfa2 output specify either trace or cigar as "
                     "argument of option -outfmt");
    return -1;
  }
  gt_assert((GtUword) num_gfa2_default_flags < num_columns);
  for (idx = num_gfa2_default_flags; idx < num_columns; idx++)
  {
    if (order[idx] == Gt_Trace_display || order[idx] == Gt_Cigar_display)
    {
      trace_or_cigar_found = true;
    } else
    {
      if (!trace_or_cigar_found)
      {
        const unsigned int display_arg_num = gt_display_flag2index[order[idx]];

        gt_error_set(err,"for gfa2 output in the list of argument to option "
                         "-outfmt the keyword \"%s\" must come after trace "
                         "or cigar",
                         gt_display_arguments_table[display_arg_num].name);
        return -1;
      }
    }
  }
  return 0;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movq %rdx, 0x28(%rsp)
movb $0x0, 0x17(%rsp)
movq 0x38(%rsp), %rsi
leaq 0x18(%rsp), %rdi
callq 0x265bf0
movq %rax, 0x8(%rsp)
movq 0x38(%rsp), %rdi
callq 0x265830
testb $0x1, %al
jne 0x2668b8
movq 0x38(%rsp), %rdi
callq 0x2657f0
testb $0x1, %al
jne 0x2668b8
movq 0x28(%rsp), %rdi
leaq 0x31759a(%rip), %rsi    # 0x57de3e
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x44(%rsp) # imm = 0xFFFFFFFF
jmp 0x2669b8
jmp 0x2668ba
movq 0x30(%rsp), %rax
cmpq 0x18(%rsp), %rax
jb 0x2668fe
movq 0x3d56d3(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2af73c(%rip), %rsi    # 0x516013
leaq 0x3175ac(%rip), %rdx    # 0x57de8a
leaq 0x3175d4(%rip), %rcx    # 0x57deb9
leaq 0x316faa(%rip), %r8     # 0x57d896
movl $0x13c, %r9d            # imm = 0x13C
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x266900
movq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
cmpq 0x18(%rsp), %rax
jae 0x2669b0
movq 0x8(%rsp), %rax
movq 0x20(%rsp), %rcx
cmpl $0xc, (%rax,%rcx,4)
je 0x26693a
movq 0x8(%rsp), %rax
movq 0x20(%rsp), %rcx
cmpl $0xa, (%rax,%rcx,4)
jne 0x266941
movb $0x1, 0x17(%rsp)
jmp 0x26699b
testb $0x1, 0x17(%rsp)
jne 0x266999
movq 0x8(%rsp), %rax
movq 0x20(%rsp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, %ecx
leaq 0x3d79b2(%rip), %rax    # 0x63e310
movl (%rax,%rcx,4), %eax
movl %eax, 0x4(%rsp)
movq 0x28(%rsp), %rdi
movl 0x4(%rsp), %eax
movl %eax, %ecx
leaq 0x3d7a39(%rip), %rax    # 0x63e3b0
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rdx
leaq 0x317553(%rip), %rsi    # 0x57dedb
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x44(%rsp) # imm = 0xFFFFFFFF
jmp 0x2669b8
jmp 0x26699b
jmp 0x26699d
movq 0x20(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x20(%rsp)
jmp 0x26690a
movl $0x0, 0x44(%rsp)
movl 0x44(%rsp), %eax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)