// File: /workspace/github_c_makefile_star2_O0/pipde[P]deos-songlib/utils/lowpass2/lowpass2.c
// Function: processOptions
static int
processOptions(int argc, char **argv)
{
    int argIndex;
    int argUsed;
    int separateArg;
    char *arg;

    argIndex = 1;

    while (argIndex < argc && *argv[argIndex] == '-') {

        separateArg = 0;
        argUsed = 0;

        if (argv[argIndex][2] == '\0')
            {
            arg = argv[argIndex+1];
            separateArg = 1;
            }
        else
            arg = argv[argIndex]+2;

        switch (argv[argIndex][1])
            {
            /*
             * when option has an argument, do this
             *
             *     examples are -m4096 or -m 4096
             *
             *     case 'm':
             *         MemorySize = atol(arg);
             *         argUsed = 1;
             *         break;
             *
             *
             * when option does not have an argument, do this
             *
             *     example is -a
             *
             *     case 'a':
             *         PrintActions = 1;
             *         break;
             */
            case 'v':
                printf("%s version %s\n", argv[0], PROGRAM_VERSION);
                exit(0);
                break;
            case 'a':
                AmpFactor = atof(arg);
                argUsed = 1;
                break;
            case 'f':
                Freq = atof(arg);
                argUsed = 1;
                break;
            case 'g':
                Gain = atof(arg);
                argUsed = 1;
                break;
            case 'q':
                Quality = atof(arg);
                argUsed = 1;
                break;
            case 'h':
                printf("%s options:\n",argv[0]);
                printf("  -a N   set amplitude factor to N\n");
                printf("         values > 1 increase loudness\n");
                printf("         values < 1 decrease loudness\n");
                printf("         default is %f\n",AmpFactor);
                printf("  -f N.N set %s frequency to N.N Hertz\n",FType);
                printf("         default is %f Hz\n",Freq);
            if (Style == PEAK || Style == LOWSHELF || Style == HIGHSHELF)
                {
                printf("  -g N.N set the gain to N.N\n");
                printf("         positive gains are boosts, negative are cuts\n");
                printf("         default is %f dB\n",Gain);
                }
                printf("  -q N.N set the quality factor to N.N\n");
            if (Style == NOTCH)
                printf("         the higher the quality, the shallower and narrower the notch\n");
            else
                printf("         the higher the quality, the more gain at the %s\n",FType);
                printf("         default is %f\n",Quality);
                printf("  -v     display the version number\n");
                printf("  -h     help\n");
                exit(0);
                break;
            default:
                Fatal("option %s not understood\n",argv[argIndex]);
            }

        if (separateArg && argUsed)
            ++argIndex;

        ++argIndex;
        }

    return argIndex;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x1, -0x14(%rbp)
movl -0x14(%rbp), %ecx
xorl %eax, %eax
cmpl -0x4(%rbp), %ecx
movb %al, -0x29(%rbp)
jge 0x27bb
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
sete %al
movb %al, -0x29(%rbp)
movb -0x29(%rbp), %al
testb $0x1, %al
jne 0x27c7
jmp 0x2aa8
movl $0x0, -0x1c(%rbp)
movl $0x0, -0x18(%rbp)
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl 0x2(%rax), %eax
cmpl $0x0, %eax
jne 0x2808
movq -0x10(%rbp), %rax
movl -0x14(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x28(%rbp)
movl $0x1, -0x1c(%rbp)
jmp 0x281c
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
addq $0x2, %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl 0x1(%rax), %eax
addl $-0x61, %eax
movl %eax, %ecx
movq %rcx, -0x38(%rbp)
subl $0x15, %eax
ja 0x2a6b
movq -0x38(%rbp), %rax
leaq 0xb857(%rip), %rcx      # 0xe0a0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq 0x10928(%rip), %rdx     # 0x13188
leaq 0xb9e5(%rip), %rdi      # 0xe24c
movb $0x0, %al
callq 0x20c0
xorl %edi, %edi
callq 0x2280
movq -0x28(%rbp), %rdi
callq 0x2070
movsd %xmm0, 0x1092a(%rip)    # 0x131b0
movl $0x1, -0x18(%rbp)
jmp 0x2a85
movq -0x28(%rbp), %rdi
callq 0x2070
movsd %xmm0, 0x108ed(%rip)    # 0x13190
movl $0x1, -0x18(%rbp)
jmp 0x2a85
movq -0x28(%rbp), %rdi
callq 0x2070
movsd %xmm0, 0x108e8(%rip)    # 0x131a8
movl $0x1, -0x18(%rbp)
jmp 0x2a85
movq -0x28(%rbp), %rdi
callq 0x2070
movsd %xmm0, 0x108c3(%rip)    # 0x131a0
movl $0x1, -0x18(%rbp)
jmp 0x2a85
movq -0x10(%rbp), %rax
movq (%rax), %rsi
leaq 0xb964(%rip), %rdi      # 0xe25b
movb $0x0, %al
callq 0x20c0
leaq 0xb963(%rip), %rdi      # 0xe268
movb $0x0, %al
callq 0x20c0
leaq 0xb979(%rip), %rdi      # 0xe28c
movb $0x0, %al
callq 0x20c0
leaq 0xb992(%rip), %rdi      # 0xe2b3
movb $0x0, %al
callq 0x20c0
movsd 0x10880(%rip), %xmm0    # 0x131b0
leaq 0xb9a3(%rip), %rdi      # 0xe2da
movb $0x1, %al
callq 0x20c0
movq 0x10853(%rip), %rsi     # 0x13198
leaq 0xb9a6(%rip), %rdi      # 0xe2f2
movb $0x0, %al
callq 0x20c0
movsd 0x10835(%rip), %xmm0    # 0x13190
leaq 0xb9b8(%rip), %rdi      # 0xe31a
movb $0x1, %al
callq 0x20c0
movsd 0x10ac7(%rip), %xmm0    # 0x13438
movsd 0xb6b7(%rip), %xmm1     # 0xe030
ucomisd %xmm1, %xmm0
jne 0x2983
jp 0x2983
jmp 0x29b5
movsd 0x10aad(%rip), %xmm0    # 0x13438
movsd 0xb68d(%rip), %xmm1     # 0xe020
ucomisd %xmm1, %xmm0
jne 0x299d
jp 0x299d
jmp 0x29b5
movsd 0x10a93(%rip), %xmm0    # 0x13438
movsd 0xb65b(%rip), %xmm1     # 0xe008
ucomisd %xmm1, %xmm0
jne 0x29e7
jp 0x29e7
leaq 0xb979(%rip), %rdi      # 0xe335
movb $0x0, %al
callq 0x20c0
leaq 0xb989(%rip), %rdi      # 0xe353
movb $0x0, %al
callq 0x20c0
movsd 0x107cf(%rip), %xmm0    # 0x131a8
leaq 0xb9aa(%rip), %rdi      # 0xe38a
movb $0x1, %al
callq 0x20c0
leaq 0xb9b7(%rip), %rdi      # 0xe3a5
movb $0x0, %al
callq 0x20c0
movsd 0x10a3b(%rip), %xmm0    # 0x13438
movsd 0xb63b(%rip), %xmm1     # 0xe040
ucomisd %xmm1, %xmm0
jne 0x2a1d
jp 0x2a1d
leaq 0xb9b9(%rip), %rdi      # 0xe3cd
movb $0x0, %al
callq 0x20c0
jmp 0x2a32
movq 0x10774(%rip), %rsi     # 0x13198
leaq 0xb9e9(%rip), %rdi      # 0xe414
movb $0x0, %al
callq 0x20c0
movsd 0x10766(%rip), %xmm0    # 0x131a0
leaq 0xb899(%rip), %rdi      # 0xe2da
movb $0x1, %al
callq 0x20c0
leaq 0xb9ff(%rip), %rdi      # 0xe44e
movb $0x0, %al
callq 0x20c0
leaq 0xba16(%rip), %rdi      # 0xe473
movb $0x0, %al
callq 0x20c0
xorl %edi, %edi
callq 0x2280
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0xba04(%rip), %rdi      # 0xe482
movb $0x0, %al
callq 0x9ec0
cmpl $0x0, -0x1c(%rbp)
je 0x2a9a
cmpl $0x0, -0x18(%rbp)
je 0x2a9a
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x2796
movl -0x14(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)