// File: /workspace/github_cpp_makefile_star2_O1/millanek[P]evo/evo_AlleleFeq.cpp
// Function: parseAFoptions(int, char**)
void parseAFoptions(int argc, char** argv) {
    bool die = false; string regionArgString; std::vector<string> regionArgs;
    std::vector<string> windowSizeStep;
    for (char c; (c = getopt_long(argc, argv, shortopts, longopts, NULL)) != -1;)
    {
        std::istringstream arg(optarg != NULL ? optarg : "");
        switch (c)
        {
            case '?': die = true; break;
            case 'n': arg >> opt::runName; break;
            case 'g': opt::useGenotypeProbabilities = true; break;
            case 'h':
                std::cout << AF_USAGE_MESSAGE;
                exit(EXIT_SUCCESS);
        }
    }
    
    if (argc - optind < 2) {
        std::cerr << "missing arguments\n";
        die = true;
    }
    else if (argc - optind > 2)
    {
        std::cerr << "too many arguments\n";
        die = true;
    }
    
    if (die) {
        std::cout << "\n" << AF_USAGE_MESSAGE;
        exit(EXIT_FAILURE);
    }
    
    // Parse the input filenames
    opt::vcfFile = argv[optind++];
    opt::setsFile = argv[optind++];
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movl %edi, %ebp
leaq 0x40(%rsp), %rax
movq %rax, -0x10(%rax)
xorl %ecx, %ecx
movq %rcx, -0x8(%rax)
movb $0x0, (%rax)
movq %rcx, 0x80(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
movq $0x0, (%rsp)
movq %rcx, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
leaq 0x2d897(%rip), %rdx     # 0xe880d
leaq 0x4f8a3(%rip), %rcx     # 0x10a820
movq %rsi, 0x8(%rsp)
xorl %r8d, %r8d
callq 0x8770
movl %eax, %r14d
shll $0x18, %r14d
cmpl $0xff000000, %r14d      # imm = 0xFF000000
je 0xbb0a8
leaq 0x20(%rsp), %rbx
movq $0x0, (%rsp)
leaq 0x10(%rsp), %r15
leaq 0x88(%rsp), %r12
movq 0x4ffc1(%rip), %rax     # 0x10af80
movq (%rax), %r13
testq %r13, %r13
leaq 0x16cb3(%rip), %rax     # 0xd1c7f
cmoveq %rax, %r13
movq %rbx, 0x10(%rsp)
movq %r13, %rdi
callq 0x81f0
leaq (%rax,%r13), %rdx
movq %r15, %rdi
movq %r13, %rsi
callq 0x28952
movq %r12, %rdi
movq %r15, %rsi
movl $0x8, %edx
callq 0x87b0
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0xbb013
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8480
sarl $0x18, %r14d
cmpl $0x67, %r14d
jg 0xbb032
cmpl $0x3f, %r14d
je 0xbb049
cmpl $0x67, %r14d
jne 0xbb05b
movb $0x1, 0x52090(%rip)     # 0x10d0c0
jmp 0xbb05b
cmpl $0x6e, %r14d
jne 0xbb051
movq %r12, %rdi
leaq 0x5205e(%rip), %rsi     # 0x10d0a0
callq 0x8560
jmp 0xbb05b
movb $0x1, %al
movq %rax, (%rsp)
jmp 0xbb05b
cmpl $0x68, %r14d
je 0xbb1a5
movq %r12, %rdi
movq 0x4ff33(%rip), %rsi     # 0x10af98
callq 0x8620
leaq 0x100(%rsp), %rdi
callq 0x8190
movl %ebp, %edi
movq 0x8(%rsp), %rsi
leaq 0x2d788(%rip), %rdx     # 0xe880d
leaq 0x4f794(%rip), %rcx     # 0x10a820
xorl %r8d, %r8d
callq 0x8770
movl %eax, %r14d
shll $0x18, %r14d
cmpl $0xff000000, %r14d      # imm = 0xFF000000
jne 0xbafb8
movq 0x4ff11(%rip), %rbx     # 0x10afc0
subl (%rbx), %ebp
cmpl $0x2, %ebp
jge 0xbb0c4
movl $0x12, %edx
leaq 0x130f0(%rip), %rsi     # 0xce1b2
jmp 0xbb0d6
movq (%rsp), %r14
je 0xbb0e5
movl $0x13, %edx
leaq 0x130ef(%rip), %rsi     # 0xce1c5
movb $0x1, %r14b
movq 0x4ff08(%rip), %rdi     # 0x10afe8
callq 0x84e0
testb $0x1, %r14b
jne 0xbb1bf
movslq (%rbx), %rax
leal 0x1(%rax), %ecx
movl %ecx, (%rbx)
movq 0x8(%rsp), %rcx
movq (%rcx,%rax,8), %r14
movq 0x51f61(%rip), %r15     # 0x10d068
leaq 0x51f52(%rip), %r12     # 0x10d060
movq %r14, %rdi
callq 0x81f0
movq %r12, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %r14, %rcx
movq %rax, %r8
callq 0x86c0
movslq (%rbx), %rax
leal 0x1(%rax), %ecx
movl %ecx, (%rbx)
movq 0x8(%rsp), %rcx
movq (%rcx,%rax,8), %rbx
movq 0x51f47(%rip), %r14     # 0x10d088
leaq 0x51f38(%rip), %r15     # 0x10d080
movq %rbx, %rdi
callq 0x81f0
movq %r15, %rdi
xorl %esi, %esi
movq %r14, %rdx
movq %rbx, %rcx
movq %rax, %r8
callq 0x86c0
leaq 0x50(%rsp), %rdi
callq 0x3123c
leaq 0x70(%rsp), %rdi
callq 0x3123c
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xbb193
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x4fe0c(%rip), %rdi     # 0x10afb8
leaq 0x2d679(%rip), %rsi     # 0xe882c
callq 0x8460
xorl %edi, %edi
callq 0x8530
movq 0x4fdf2(%rip), %rdi     # 0x10afb8
leaq 0x114b0(%rip), %rsi     # 0xcc67d
movl $0x1, %edx
callq 0x84e0
movq 0x4fdda(%rip), %rdi     # 0x10afb8
leaq 0x2d647(%rip), %rsi     # 0xe882c
callq 0x8460
movl $0x1, %edi
callq 0x8530
jmp 0xbb1f8
jmp 0xbb21e
movq %rax, %r14
movq 0x4fd96(%rip), %rsi     # 0x10af98
leaq 0x88(%rsp), %rdi
callq 0x8620
leaq 0x100(%rsp), %rdi
callq 0x8190
jmp 0xbb23d
movq %rax, %r14
jmp 0xbb23d
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0xbb23d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x50(%rsp), %rdi
callq 0x3123c
leaq 0x70(%rsp), %rdi
callq 0x3123c
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xbb26d
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
movq %r14, %rdi
callq 0x8840
nopl (%rax)