// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/core/option.c
// Function: check_mandatory_either_options
static int check_mandatory_either_options(GtOptionParser *op, GtError *err)
{
  GtUword i;
  GtOption *o, *meo_a, *meo_b, *meo_c;
  gt_error_check(err);

  for (i = 0; i < gt_array_size(op->options); i++) {
    o = *(GtOption**) gt_array_get(op->options, i);
    if (o->mandatory_either_options) {
      if (gt_array_size(o->mandatory_either_options) == 1) {
        meo_a = *(GtOption**) gt_array_get_first(o->mandatory_either_options);
        if (!o->is_set && !meo_a->is_set) {
          gt_error_set(err, "either option \"-%s\" or option \"-%s\" is "
                       "mandatory", gt_str_get(o->option_str),
                       gt_str_get(meo_a->option_str));
          return -1;
        }
      }
      else if (gt_array_size(o->mandatory_either_options) == 2) {
        meo_a = *(GtOption**) gt_array_get(o->mandatory_either_options, 0);
        meo_b = *(GtOption**) gt_array_get(o->mandatory_either_options, 1);
        if (!o->is_set && !meo_a->is_set && !meo_b->is_set) {
          gt_error_set(err, "either option \"-%s\", option \"-%s\" or option "
                       "\"-%s\" is mandatory", gt_str_get(o->option_str),
                       gt_str_get(meo_a->option_str),
                       gt_str_get(meo_b->option_str));
          return -1;
        }
      }
      else {
        /* XXX: this code needs to be generalized fo more than 3 mandatory
           options (if the corresponding methods are added) */
        if (gt_array_size(o->mandatory_either_options) == 3) {
          meo_a = *(GtOption**) gt_array_get(o->mandatory_either_options, 0);
          meo_b = *(GtOption**) gt_array_get(o->mandatory_either_options, 1);
          meo_c = *(GtOption**) gt_array_get(o->mandatory_either_options, 2);
          if (!o->is_set && !meo_a->is_set && !meo_b->is_set
                && !meo_c->is_set) {
            gt_error_set(err, "either option \"-%s\", option \"-%s\", option "
                              "\"-%s\" or option \"-%s\" is mandatory",
                              gt_str_get(o->option_str),
                              gt_str_get(meo_a->option_str),
                              gt_str_get(meo_b->option_str),
                              gt_str_get(meo_c->option_str));
            return -1;
          }
        }
      }
    }
  }
  return 0;
}

// Assembly:
subq $0x98, %rsp
movq %rdi, 0x88(%rsp)
movq %rsi, 0x80(%rsp)
cmpq $0x0, 0x80(%rsp)
je 0x12e9d
movq 0x80(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0x12e65
jmp 0x12e9d
movq 0x1a116c(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x14b1f0(%rip), %rsi    # 0x15e066
leaq 0x14b7cb(%rip), %rdx    # 0x15e648
leaq 0x14c9cb(%rip), %rcx    # 0x15f84f
leaq 0x14b9cf(%rip), %r8     # 0x15e85a
movl $0x379, %r9d            # imm = 0x379
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x12e9f
movq $0x0, 0x78(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x88(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x76490
movq %rax, %rcx
movq 0x50(%rsp), %rax
cmpq %rcx, %rax
jae 0x131d3
movq 0x88(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x78(%rsp), %rsi
callq 0x75c80
movq (%rax), %rax
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rax
cmpq $0x0, 0x60(%rax)
je 0x131be
movq 0x70(%rsp), %rax
movq 0x60(%rax), %rdi
callq 0x76490
cmpq $0x1, %rax
jne 0x12fa4
movq 0x70(%rsp), %rax
movq 0x60(%rax), %rdi
callq 0x75d00
movq (%rax), %rax
movq %rax, 0x68(%rsp)
movq 0x70(%rsp), %rax
testb $0x1, 0x48(%rax)
jne 0x12f9f
movq 0x68(%rsp), %rax
testb $0x1, 0x48(%rax)
jne 0x12f9f
movq 0x80(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x70(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x19940
movq %rax, 0x48(%rsp)
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x19940
movq 0x40(%rsp), %rdi
movq 0x48(%rsp), %rdx
movq %rax, %rcx
leaq 0x14c8e6(%rip), %rsi    # 0x15f86e
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x94(%rsp) # imm = 0xFFFFFFFF
jmp 0x131de
jmp 0x131bc
movq 0x70(%rsp), %rax
movq 0x60(%rax), %rdi
callq 0x76490
cmpq $0x2, %rax
jne 0x1308c
movq 0x70(%rsp), %rax
movq 0x60(%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x75c80
movq (%rax), %rax
movq %rax, 0x68(%rsp)
movq 0x70(%rsp), %rax
movq 0x60(%rax), %rdi
movl $0x1, %esi
callq 0x75c80
movq (%rax), %rax
movq %rax, 0x60(%rsp)
movq 0x70(%rsp), %rax
testb $0x1, 0x48(%rax)
jne 0x13087
movq 0x68(%rsp), %rax
testb $0x1, 0x48(%rax)
jne 0x13087
movq 0x60(%rsp), %rax
testb $0x1, 0x48(%rax)
jne 0x13087
movq 0x80(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x70(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x19940
movq %rax, 0x30(%rsp)
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x19940
movq %rax, 0x38(%rsp)
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x19940
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rdx
movq 0x38(%rsp), %rcx
movq %rax, %r8
leaq 0x14c82f(%rip), %rsi    # 0x15f89f
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x94(%rsp) # imm = 0xFFFFFFFF
jmp 0x131de
jmp 0x131ba
movq 0x70(%rsp), %rax
movq 0x60(%rax), %rdi
callq 0x76490
cmpq $0x3, %rax
jne 0x131b8
movq 0x70(%rsp), %rax
movq 0x60(%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x75c80
movq (%rax), %rax
movq %rax, 0x68(%rsp)
movq 0x70(%rsp), %rax
movq 0x60(%rax), %rdi
movl $0x1, %esi
callq 0x75c80
movq (%rax), %rax
movq %rax, 0x60(%rsp)
movq 0x70(%rsp), %rax
movq 0x60(%rax), %rdi
movl $0x2, %esi
callq 0x75c80
movq (%rax), %rax
movq %rax, 0x58(%rsp)
movq 0x70(%rsp), %rax
testb $0x1, 0x48(%rax)
jne 0x131b6
movq 0x68(%rsp), %rax
testb $0x1, 0x48(%rax)
jne 0x131b6
movq 0x60(%rsp), %rax
testb $0x1, 0x48(%rax)
jne 0x131b6
movq 0x58(%rsp), %rax
testb $0x1, 0x48(%rax)
jne 0x131b6
movq 0x80(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x70(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x19940
movq %rax, 0x10(%rsp)
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x19940
movq %rax, 0x18(%rsp)
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x19940
movq %rax, 0x20(%rsp)
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x19940
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %r8
movq %rax, %r9
leaq 0x14c73c(%rip), %rsi    # 0x15f8de
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x94(%rsp) # imm = 0xFFFFFFFF
jmp 0x131de
jmp 0x131b8
jmp 0x131ba
jmp 0x131bc
jmp 0x131be
jmp 0x131c0
movq 0x78(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x78(%rsp)
jmp 0x12ea8
movl $0x0, 0x94(%rsp)
movl 0x94(%rsp), %eax
addq $0x98, %rsp
retq
nopl (%rax)