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

        argIndex = 1;

        while( argIndex < argc && *argv[argIndex] == '-' ){
                seperateArg = 0;
                argUsed = 0;

                if( argv[argIndex][2] == '\0' ){
                        arg = argv[argIndex+1];
                        seperateArg = 1;
                }else{
                        arg = argv[argIndex]+2;
                }
                
                switch( argv[argIndex][1] ){
                        case 'v':
                                printf("%s version %s\n", PROGRAM_NAME, PROGRAM_VERSION);
                                exit(0);
                                break;
                        case 'i':
                                inPlace = 1;
                                break;
                        case 'a':
                                AMP_MIN = atoi(arg);
                                argUsed = 1;
                                break;
                        default:
                                Fatal("option %s not understood\n", argv[argIndex]);
                }
                if( seperateArg && 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 0x189b
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 0x18a7
jmp 0x19ae
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 0x18e8
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 0x18fc
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 $0x61, %eax
je 0x1959
jmp 0x1916
movl -0x30(%rbp), %eax
subl $0x69, %eax
je 0x194d
jmp 0x1920
movl -0x30(%rbp), %eax
subl $0x76, %eax
jne 0x1971
jmp 0x192a
movq 0x67f7(%rip), %rsi      # 0x8128
movq 0x67f8(%rip), %rdx      # 0x8130
leaq 0x3820(%rip), %rdi      # 0x515f
movb $0x0, %al
callq 0x10a0
xorl %edi, %edi
callq 0x11f0
movl $0x1, 0x67fd(%rip)      # 0x8154
jmp 0x198b
movq -0x28(%rbp), %rdi
callq 0x11d0
movl %eax, 0x67d0(%rip)      # 0x8138
movl $0x1, -0x18(%rbp)
jmp 0x198b
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x37ea(%rip), %rdi      # 0x516e
movb $0x0, %al
callq 0x19c0
cmpl $0x0, -0x1c(%rbp)
je 0x19a0
cmpl $0x0, -0x18(%rbp)
je 0x19a0
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x1876
movl -0x14(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)