// File: /workspace/github_c_makefile_star2_O0/randyrossi[P]fisher-modem/mkfilter/src/mkfilter.C
// Function: checkoptions()
static void checkoptions() {
  optsok = true;
  unless(onebit(options & (opt_be | opt_bu | opt_ch | opt_re | opt_pi)))
      opterror("must specify exactly one of -Be, -Bu, -Ch, -Re, -Pi");
  if (options & opt_re) {
    unless(onebit(options & (opt_bp | opt_bs | opt_ap)))
        opterror("must specify exactly one of -Bp, -Bs, -Ap with -Re");
    if (options & (opt_lp | opt_hp | opt_o | opt_p | opt_w | opt_z))
      opterror("can't use -Lp, -Hp, -o, -p, -w, -z with -Re");
  } else if (options & opt_pi) {
    if (options & (opt_lp | opt_hp | opt_bp | opt_bs | opt_ap))
      opterror("-Lp, -Hp, -Bp, -Bs, -Ap illegal in conjunction with -Pi");
    unless((options & opt_o) && (order == 1)) opterror("-Pi implies -o 1");
  } else {
    unless(onebit(options & (opt_lp | opt_hp | opt_bp | opt_bs)))
        opterror("must specify exactly one of -Lp, -Hp, -Bp, -Bs");
    if (options & opt_ap)
      opterror("-Ap implies -Re");
    if (options & opt_o) {
      unless(order >= 1 && order <= MAXORDER)
          opterror("order must be in range 1 .. %d", MAXORDER);
      if (options & opt_p) {
        uint m = (1 << order) - 1; /* "order" bits set */
        if ((polemask & ~m) != 0)
          opterror("order=%d, so args to -p must be in range 0 .. %d", order,
                   order - 1);
      }
    } else
      opterror("must specify -o");
  }
  unless((options & opt_a) || (options & opt_A))
      opterror("must specify -a or -A");
  unless(optsok) exit(1);
}

// Assembly:
pushq %rax
movb $0x1, 0xfab8(%rip)      # 0x11370
movl 0xfa62(%rip), %edi      # 0x11320
andl $0x1f, %edi
callq 0x4f00
testb $0x1, %al
jne 0x18da
leaq 0x4c02(%rip), %rdi      # 0x64d3
xorl %edx, %edx
movl %edx, %esi
callq 0x4180
movl 0xfa40(%rip), %eax      # 0x11320
andl $0x8, %eax
cmpl $0x0, %eax
je 0x1932
movl 0xfa32(%rip), %edi      # 0x11320
andl $0x380, %edi            # imm = 0x380
callq 0x4f00
testb $0x1, %al
jne 0x190d
leaq 0x4c03(%rip), %rdi      # 0x6507
xorl %edx, %edx
movl %edx, %esi
callq 0x4180
movl 0xfa0d(%rip), %eax      # 0x11320
andl $0xf060, %eax           # imm = 0xF060
cmpl $0x0, %eax
je 0x192d
leaq 0x4c16(%rip), %rdi      # 0x653a
xorl %edx, %edx
movl %edx, %esi
callq 0x4180
jmp 0x1a73
movl 0xf9e8(%rip), %eax      # 0x11320
andl $0x10, %eax
cmpl $0x0, %eax
je 0x198e
movl 0xf9da(%rip), %eax      # 0x11320
andl $0x3e0, %eax            # imm = 0x3E0
cmpl $0x0, %eax
je 0x1960
leaq 0x4c0f(%rip), %rdi      # 0x6566
xorl %edx, %edx
movl %edx, %esi
callq 0x4180
movl 0xf9ba(%rip), %eax      # 0x11320
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
je 0x1979
cmpl $0x1, 0xf9bd(%rip)      # 0x11334
je 0x1989
leaq 0x4c1e(%rip), %rdi      # 0x659e
xorl %edx, %edx
movl %edx, %esi
callq 0x4180
jmp 0x1a71
movl 0xf98c(%rip), %edi      # 0x11320
andl $0x1e0, %edi            # imm = 0x1E0
callq 0x4f00
testb $0x1, %al
jne 0x19b3
leaq 0x4c05(%rip), %rdi      # 0x65af
xorl %edx, %edx
movl %edx, %esi
callq 0x4180
movl 0xf967(%rip), %eax      # 0x11320
andl $0x200, %eax            # imm = 0x200
cmpl $0x0, %eax
je 0x19d3
leaq 0x4c14(%rip), %rdi      # 0x65de
xorl %edx, %edx
movl %edx, %esi
callq 0x4180
movl 0xf947(%rip), %eax      # 0x11320
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
je 0x1a5f
cmpl $0x1, 0xf94a(%rip)      # 0x11334
jl 0x19f5
cmpl $0xa, 0xf941(%rip)      # 0x11334
jle 0x1a08
leaq 0x4bf2(%rip), %rdi      # 0x65ee
movl $0xa, %esi
xorl %edx, %edx
callq 0x4180
movl 0xf912(%rip), %eax      # 0x11320
andl $0x2000, %eax           # imm = 0x2000
cmpl $0x0, %eax
je 0x1a5d
movl 0xf916(%rip), %ecx      # 0x11334
movl $0x1, %eax
shll %cl, %eax
subl $0x1, %eax
movl %eax, 0x4(%rsp)
movl 0xf8fe(%rip), %eax      # 0x11330
movl 0x4(%rsp), %ecx
xorl $-0x1, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
je 0x1a5b
movl 0xf8ee(%rip), %esi      # 0x11334
movl 0xf8e8(%rip), %edx      # 0x11334
subl $0x1, %edx
leaq 0x4bb7(%rip), %rdi      # 0x660d
callq 0x4180
jmp 0x1a5d
jmp 0x1a6f
leaq 0x4bd8(%rip), %rdi      # 0x663e
xorl %edx, %edx
movl %edx, %esi
callq 0x4180
jmp 0x1a71
jmp 0x1a73
movl 0xf8a7(%rip), %eax      # 0x11320
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
jne 0x1aa3
movl 0xf897(%rip), %eax      # 0x11320
andl $0x40000, %eax          # imm = 0x40000
cmpl $0x0, %eax
jne 0x1aa3
leaq 0x4bb4(%rip), %rdi      # 0x664e
xorl %edx, %edx
movl %edx, %esi
callq 0x4180
testb $0x1, 0xf8c6(%rip)      # 0x11370
jne 0x1ab6
movl $0x1, %edi
callq 0x10e0
popq %rax
retq
nopl (%rax,%rax)