// File: /workspace/github_c_makefile_star2_O0/pipde[P]deos-songlib/utils/reverb2/reverb2.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 cutoff or center frequency to N.N Hertz\n");
                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");
                printf("         the higher the quality, the more gain at the cutoff\n");
                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 0x25fb
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 0x2607
jmp 0x28b2
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 0x2648
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 0x265c
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 0x2875
movq -0x38(%rbp), %rax
leaq 0xa997(%rip), %rcx      # 0xd020
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq 0xfad8(%rip), %rdx      # 0x12178
leaq 0xaa62(%rip), %rdi      # 0xd109
movb $0x0, %al
callq 0x20c0
xorl %edi, %edi
callq 0x2270
movq -0x28(%rbp), %rdi
callq 0x2070
movsd %xmm0, 0xfb4a(%rip)     # 0x12210
movl $0x1, -0x18(%rbp)
jmp 0x288f
movq -0x28(%rbp), %rdi
callq 0x2070
movsd %xmm0, 0xfb35(%rip)     # 0x12218
movl $0x1, -0x18(%rbp)
jmp 0x288f
movq -0x28(%rbp), %rdi
callq 0x2070
movsd %xmm0, 0xfb20(%rip)     # 0x12220
movl $0x1, -0x18(%rbp)
jmp 0x288f
movq -0x28(%rbp), %rdi
callq 0x2070
movsd %xmm0, 0xfb0b(%rip)     # 0x12228
movl $0x1, -0x18(%rbp)
jmp 0x288f
movq -0x10(%rbp), %rax
movq (%rax), %rsi
leaq 0xa9e1(%rip), %rdi      # 0xd118
movb $0x0, %al
callq 0x20c0
leaq 0xa9e0(%rip), %rdi      # 0xd125
movb $0x0, %al
callq 0x20c0
leaq 0xa9f6(%rip), %rdi      # 0xd149
movb $0x0, %al
callq 0x20c0
leaq 0xaa0f(%rip), %rdi      # 0xd170
movb $0x0, %al
callq 0x20c0
movsd 0xfaa0(%rip), %xmm0     # 0x12210
leaq 0xaa20(%rip), %rdi      # 0xd197
movb $0x1, %al
callq 0x20c0
leaq 0xaa2a(%rip), %rdi      # 0xd1af
movb $0x0, %al
callq 0x20c0
movsd 0xfa84(%rip), %xmm0     # 0x12218
leaq 0xaa4a(%rip), %rdi      # 0xd1e5
movb $0x1, %al
callq 0x20c0
movsd 0xfd3e(%rip), %xmm0     # 0x124e8
movsd 0xa856(%rip), %xmm1     # 0xd008
ucomisd %xmm1, %xmm0
jne 0x27bc
jp 0x27bc
jmp 0x27ee
movsd 0xfd24(%rip), %xmm0     # 0x124e8
movsd 0xa844(%rip), %xmm1     # 0xd010
ucomisd %xmm1, %xmm0
jne 0x27d6
jp 0x27d6
jmp 0x27ee
movsd 0xfd0a(%rip), %xmm0     # 0x124e8
movsd 0xa832(%rip), %xmm1     # 0xd018
ucomisd %xmm1, %xmm0
jne 0x2820
jp 0x2820
leaq 0xaa0b(%rip), %rdi      # 0xd200
movb $0x0, %al
callq 0x20c0
leaq 0xaa1b(%rip), %rdi      # 0xd21e
movb $0x0, %al
callq 0x20c0
movsd 0xfa0e(%rip), %xmm0     # 0x12220
leaq 0xaa3c(%rip), %rdi      # 0xd255
movb $0x1, %al
callq 0x20c0
leaq 0xaa49(%rip), %rdi      # 0xd270
movb $0x0, %al
callq 0x20c0
leaq 0xaa63(%rip), %rdi      # 0xd298
movb $0x0, %al
callq 0x20c0
movsd 0xf9e4(%rip), %xmm0     # 0x12228
leaq 0xa94c(%rip), %rdi      # 0xd197
movb $0x1, %al
callq 0x20c0
leaq 0xaa7d(%rip), %rdi      # 0xd2d6
movb $0x0, %al
callq 0x20c0
leaq 0xaa94(%rip), %rdi      # 0xd2fb
movb $0x0, %al
callq 0x20c0
xorl %edi, %edi
callq 0x2270
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0xaa82(%rip), %rdi      # 0xd30a
movb $0x0, %al
callq 0x8c70
cmpl $0x0, -0x1c(%rbp)
je 0x28a4
cmpl $0x0, -0x18(%rbp)
je 0x28a4
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x25d6
movl -0x14(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)