// File: /workspace/github_c_makefile_star2_O0/pipde[P]deos-songlib/utils/crossover/crossover.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 'i':
                inrun = atoi(arg);
                fprintf(stderr,"inrun is %d\n",inrun);
                argUsed = 1;
                break;
            case 'o':
                outrun = atoi(arg);
                fprintf(stderr,"outrun is %d\n",outrun);
                argUsed = 1;
                break;
            case 'v':
                printf("%s version %s\n", PROGRAM_NAME, PROGRAM_VERSION);
                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 $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 0x149b
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 0x14a7
jmp 0x15f9
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 0x14e8
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 0x14fc
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 $0x69, %eax
je 0x152d
jmp 0x1516
movl -0x30(%rbp), %eax
subl $0x6f, %eax
je 0x1563
jmp 0x1520
movl -0x30(%rbp), %eax
subl $0x76, %eax
je 0x1599
jmp 0x15bc
movq -0x28(%rbp), %rdi
callq 0x11c0
movl %eax, 0x6bf4(%rip)      # 0x8130
movq 0x6ab5(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
movl 0x6be4(%rip), %edx      # 0x8130
leaq 0x3b3d(%rip), %rsi      # 0x5090
movb $0x0, %al
callq 0x1110
movl $0x1, -0x18(%rbp)
jmp 0x15d6
movq -0x28(%rbp), %rdi
callq 0x11c0
movl %eax, 0x6bc2(%rip)      # 0x8134
movq 0x6a7f(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
movl 0x6bb2(%rip), %edx      # 0x8134
leaq 0x3b14(%rip), %rsi      # 0x509d
movb $0x0, %al
callq 0x1110
movl $0x1, -0x18(%rbp)
jmp 0x15d6
movq 0x6b78(%rip), %rsi      # 0x8118
movq 0x6b79(%rip), %rdx      # 0x8120
leaq 0x3afd(%rip), %rdi      # 0x50ab
movb $0x0, %al
callq 0x1090
xorl %edi, %edi
callq 0x11d0
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x3aeb(%rip), %rdi      # 0x50ba
movb $0x0, %al
callq 0x1b30
cmpl $0x0, -0x1c(%rbp)
je 0x15eb
cmpl $0x0, -0x18(%rbp)
je 0x15eb
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x1476
movl -0x14(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)