// File: /workspace/github_c_makefile_star2_O0/pipde[P]deos-songlib/utils/compress/compress.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 'a':
                amplify = atof(arg);
                argUsed = 1;
                break;
            case 'r':
                peakRatio = atof(arg);
                argUsed = 1;
                break;
            case 't':
                thresholdDb = atoi(arg);
                argUsed = 1;
                break;
            case 'A':
                attack = atof(arg);
                argUsed = 1;
                break;
            case 'R':
                release = atof(arg);
                argUsed = 1;
                break;
            case 'v':
                printf("%s version %s\n", PROGRAM_NAME, PROGRAM_VERSION);
                exit(0);
                break;
            case 'h':
                printf("compress options:\n");
                printf("  -a N     set amplification factor to N\n");
                printf("           amplification happens after compression\n");
                printf("           default value is %f\n",amplify);
                printf("  -t N     set threshold to N decibels\n");
                printf("           good values range from -30 upwards\n");
                printf("           lower values mean more of the signal is"
                    " compressed\n");
                printf("           default value is %d\n",thresholdDb);
                printf("  -r N     set compression ratio to N\n");
                printf("           good values range from 2 upwards\n");
                printf("           higher values mean higher compression\n");
                printf("           default value is %f\n",peakRatio);
                printf("  -A N     set attack to N seconds\n");
                printf("           good values range from 0 to 0.5 seconds\n");
                printf("           higher values mean longer to reach full compression\n");
                printf("           default value is %f\n",attack);
                printf("  -R N     set release to N seconds\n");
                printf("           good values range from 0 to 1.0 second\n");
                printf("           higher values mean longer to turn off compression\n");
                printf("           default value is %f\n",attack);
                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 0x172b
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 0x1737
jmp 0x1a04
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 0x1778
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 0x178c
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 $-0x41, %eax
movl %eax, %ecx
movq %rcx, -0x38(%rbp)
subl $0x35, %eax
ja 0x19c7
movq -0x38(%rbp), %rax
leaq 0x386f(%rip), %rcx      # 0x5028
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x28(%rbp), %rdi
callq 0x1050
movsd %xmm0, 0x6975(%rip)     # 0x8148
movl $0x1, -0x18(%rbp)
jmp 0x19e1
movq -0x28(%rbp), %rdi
callq 0x1050
movsd %xmm0, 0x6940(%rip)     # 0x8130
movl $0x1, -0x18(%rbp)
jmp 0x19e1
movq -0x28(%rbp), %rdi
callq 0x11c0
movl %eax, 0x691d(%rip)      # 0x8128
movl $0x1, -0x18(%rbp)
jmp 0x19e1
movq -0x28(%rbp), %rdi
callq 0x1050
movsd %xmm0, 0x6910(%rip)     # 0x8138
movl $0x1, -0x18(%rbp)
jmp 0x19e1
movq -0x28(%rbp), %rdi
callq 0x1050
movsd %xmm0, 0x68fb(%rip)     # 0x8140
movl $0x1, -0x18(%rbp)
jmp 0x19e1
movq 0x68c0(%rip), %rsi      # 0x8118
movq 0x68c1(%rip), %rdx      # 0x8120
leaq 0x3936(%rip), %rdi      # 0x519c
movb $0x0, %al
callq 0x1090
xorl %edi, %edi
callq 0x11d0
leaq 0x3930(%rip), %rdi      # 0x51ab
movb $0x0, %al
callq 0x1090
leaq 0x3935(%rip), %rdi      # 0x51be
movb $0x0, %al
callq 0x1090
leaq 0x3951(%rip), %rdi      # 0x51e8
movb $0x0, %al
callq 0x1090
movsd 0x68a2(%rip), %xmm0     # 0x8148
leaq 0x396f(%rip), %rdi      # 0x521c
movb $0x1, %al
callq 0x1090
leaq 0x3981(%rip), %rdi      # 0x523c
movb $0x0, %al
callq 0x1090
leaq 0x399b(%rip), %rdi      # 0x5264
movb $0x0, %al
callq 0x1090
leaq 0x39bc(%rip), %rdi      # 0x5293
movb $0x0, %al
callq 0x1090
movl 0x6844(%rip), %esi      # 0x8128
leaq 0x39e7(%rip), %rdi      # 0x52d2
movb $0x0, %al
callq 0x1090
leaq 0x39f9(%rip), %rdi      # 0x52f2
movb $0x0, %al
callq 0x1090
leaq 0x3a12(%rip), %rdi      # 0x5319
movb $0x0, %al
callq 0x1090
leaq 0x3a31(%rip), %rdi      # 0x5346
movb $0x0, %al
callq 0x1090
movsd 0x680c(%rip), %xmm0     # 0x8130
leaq 0x38f1(%rip), %rdi      # 0x521c
movb $0x1, %al
callq 0x1090
leaq 0x3a3f(%rip), %rdi      # 0x5378
movb $0x0, %al
callq 0x1090
leaq 0x3a55(%rip), %rdi      # 0x539c
movb $0x0, %al
callq 0x1090
leaq 0x3a7b(%rip), %rdi      # 0x53d0
movb $0x0, %al
callq 0x1090
movsd 0x67d4(%rip), %xmm0     # 0x8138
leaq 0x38b1(%rip), %rdi      # 0x521c
movb $0x1, %al
callq 0x1090
leaq 0x3a97(%rip), %rdi      # 0x5410
movb $0x0, %al
callq 0x1090
leaq 0x3aae(%rip), %rdi      # 0x5435
movb $0x0, %al
callq 0x1090
leaq 0x3ad3(%rip), %rdi      # 0x5468
movb $0x0, %al
callq 0x1090
movsd 0x6794(%rip), %xmm0     # 0x8138
leaq 0x3871(%rip), %rdi      # 0x521c
movb $0x1, %al
callq 0x1090
leaq 0x3aed(%rip), %rdi      # 0x54a6
movb $0x0, %al
callq 0x1090
xorl %edi, %edi
callq 0x11d0
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x3add(%rip), %rdi      # 0x54b7
movb $0x0, %al
callq 0x1b60
cmpl $0x0, -0x1c(%rbp)
je 0x19f6
cmpl $0x0, -0x18(%rbp)
je 0x19f6
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x1706
movl -0x14(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)