// File: /workspace/github_c_makefile_star2_O0/pipde[P]deos-songlib/utils/reverb3/reverb3.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", PROGRAM_NAME, PROGRAM_VERSION);
                exit(0);
                break;
            case 'a':
                ingain = atof(arg);
                argUsed = 1;
                break;
            case '1':
                delay1 = atoi(arg);
                argUsed = 1;
                break;
            case '2':
                delay2 = atoi(arg);
                argUsed = 1;
                break;
            case 'g':
                outgain = atof(arg);
                argUsed = 1;
                break;
            default:
                printf("reverb options:\n");
                printf("  -a N.N  set the amplitude factor to N.N\n");
                printf("          default is %f\n",ingain);
                printf("  -g N.N  set echo loudness decay to N.N\n");
                printf("          good values are 0.4 to 0.8\n");
                printf("          default is %f\n",outgain);
                printf("  -1 N    set initial echo delay to <N> milliseconds\n");
                printf("          good values are around 25 ms\n");
                printf("          default is %d\n",delay1);
                printf("  -2 N    set the cancelling delay to <N> milliseconds\n");
                printf("          good values are slightly more than initial delay\n");
                printf("          default is %d\n",delay2);
                printf("  -h      help\n");
                exit(0);
                break;
            }

        if (separateArg && argUsed)
            ++argIndex;

        ++argIndex;
        }

    return argIndex;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %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 0x25db
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 0x25e7
jmp 0x2819
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 0x2628
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 0x263c
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
movl %eax, -0x30(%rbp)
subl $0x31, %eax
je 0x26ca
jmp 0x2656
movl -0x30(%rbp), %eax
subl $0x32, %eax
je 0x26e5
jmp 0x2664
movl -0x30(%rbp), %eax
subl $0x61, %eax
je 0x26ad
jmp 0x266e
movl -0x30(%rbp), %eax
subl $0x67, %eax
je 0x2700
jmp 0x267c
movl -0x30(%rbp), %eax
subl $0x76, %eax
jne 0x271d
jmp 0x268a
movq 0xdadf(%rip), %rsi      # 0x10170
movq 0xdae0(%rip), %rdx      # 0x10178
leaq 0x99d7(%rip), %rdi      # 0xc076
movb $0x0, %al
callq 0x20c0
xorl %edi, %edi
callq 0x2270
movq -0x28(%rbp), %rdi
callq 0x2070
movsd %xmm0, 0xdad2(%rip)     # 0x10190
movl $0x1, -0x18(%rbp)
jmp 0x27f6
movq -0x28(%rbp), %rdi
callq 0x2250
movl %eax, 0xdaa7(%rip)      # 0x10180
movl $0x1, -0x18(%rbp)
jmp 0x27f6
movq -0x28(%rbp), %rdi
callq 0x2250
movl %eax, 0xda90(%rip)      # 0x10184
movl $0x1, -0x18(%rbp)
jmp 0x27f6
movq -0x28(%rbp), %rdi
callq 0x2070
movsd %xmm0, 0xda87(%rip)     # 0x10198
movl $0x1, -0x18(%rbp)
jmp 0x27f6
leaq 0x9961(%rip), %rdi      # 0xc085
movb $0x0, %al
callq 0x20c0
leaq 0x9964(%rip), %rdi      # 0xc096
movb $0x0, %al
callq 0x20c0
movsd 0xda4f(%rip), %xmm0     # 0x10190
leaq 0x9979(%rip), %rdi      # 0xc0c1
movb $0x1, %al
callq 0x20c0
leaq 0x9984(%rip), %rdi      # 0xc0da
movb $0x0, %al
callq 0x20c0
leaq 0x99a0(%rip), %rdi      # 0xc104
movb $0x0, %al
callq 0x20c0
movsd 0xda25(%rip), %xmm0     # 0x10198
leaq 0x9947(%rip), %rdi      # 0xc0c1
movb $0x1, %al
callq 0x20c0
leaq 0x99a2(%rip), %rdi      # 0xc12a
movb $0x0, %al
callq 0x20c0
leaq 0x99ca(%rip), %rdi      # 0xc160
movb $0x0, %al
callq 0x20c0
movl 0xd9dd(%rip), %esi      # 0x10180
leaq 0x99de(%rip), %rdi      # 0xc188
movb $0x0, %al
callq 0x20c0
leaq 0x99e9(%rip), %rdi      # 0xc1a1
movb $0x0, %al
callq 0x20c0
leaq 0x9a13(%rip), %rdi      # 0xc1d9
movb $0x0, %al
callq 0x20c0
movl 0xd9b1(%rip), %esi      # 0x10184
leaq 0x99ae(%rip), %rdi      # 0xc188
movb $0x0, %al
callq 0x20c0
leaq 0x9a2d(%rip), %rdi      # 0xc215
movb $0x0, %al
callq 0x20c0
xorl %edi, %edi
callq 0x2270
cmpl $0x0, -0x1c(%rbp)
je 0x280b
cmpl $0x0, -0x18(%rbp)
je 0x280b
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x25b6
movl -0x14(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)