// File: /workspace/github_cpp_makefile_star2_O2/millanek[P]evo/evo_shared_variation.cpp
// Function: parseSharedVarOptions(int, char**)
void parseSharedVarOptions(int argc, char** argv) {
    bool die = false;
    for (char c; (c = getopt_long(argc, argv, shortopts, longopts, NULL)) != -1;)
    {
        std::istringstream arg(optarg != NULL ? optarg : "");
        switch (c)
        {
            case 'n': arg >> opt::runName; break;
            case 'l': opt::getLocsFor = split(arg.str(), ','); break;
            case '?': die = true; break;
            case 'h': std::cout << SHAREDVAR_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" << SHAREDVAR_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 $0x1c8, %rsp            # imm = 0x1C8
movq %rsi, %rbx
movl %edi, %ebp
movq $0x0, 0x8(%rsp)
leaq 0x10(%rsp), %r13
leaq 0x30(%rsp), %r14
leaq 0x48(%rsp), %r15
movl %ebp, %edi
movq %rbx, %rsi
leaq 0x453cf(%rip), %rdx     # 0xa65fb
leaq 0x7a96d(%rip), %rcx     # 0xdbba0
xorl %r8d, %r8d
callq 0x8790
movl %eax, %r12d
shll $0x18, %eax
cmpl $0xff000000, %eax       # imm = 0xFF000000
je 0x61307
movq 0x7bd3d(%rip), %rax     # 0xdcf90
movq (%rax), %rsi
testq %rsi, %rsi
leaq 0x38bbf(%rip), %rax     # 0x99e1f
cmoveq %rax, %rsi
movq %r13, %rdi
movq %r14, %rdx
callq 0x21904
movq %r15, %rdi
movq %r13, %rsi
pushq $0x8
popq %rdx
callq 0x87e0
movsbl %r12b, %r12d
movq %r13, %rdi
callq 0x8978
cmpl $0x3f, %r12d
je 0x612b7
cmpl $0x6c, %r12d
je 0x612c0
cmpl $0x6e, %r12d
je 0x612a6
cmpl $0x68, %r12d
jne 0x612fa
jmp 0x61362
movq %r15, %rdi
leaq 0x7d4e0(%rip), %rsi     # 0xde790
callq 0x8570
jmp 0x612fa
movb $0x1, %al
movq %rax, 0x8(%rsp)
jmp 0x612fa
movq %r13, %rdi
leaq 0x58(%rsp), %rsi
callq 0x8710
movq %r14, %rdi
movq %r13, %rsi
pushq $0x2c
popq %rdx
callq 0x40349
leaq 0x7d496(%rip), %rdi     # 0xde778
movq %r14, %rsi
callq 0x2f6c0
movq %r14, %rdi
callq 0x28a08
movq %r13, %rdi
callq 0x8978
movq %r15, %rdi
callq 0x8220
jmp 0x61220
movq 0x7bcb2(%rip), %r14     # 0xdcfc0
movslq (%r14), %rax
subl %eax, %ebp
cmpl $0x2, %ebp
jl 0x6137c
jne 0x61385
testb $0x1, 0x8(%rsp)
jne 0x61398
leal 0x1(%rax), %ecx
movl %ecx, (%r14)
movq (%rbx,%rax,8), %rsi
leaq 0x7d406(%rip), %rdi     # 0xde738
callq 0x88f0
movslq (%r14), %rax
leal 0x1(%rax), %ecx
movl %ecx, (%r14)
movq (%rbx,%rax,8), %rsi
leaq 0x7d40d(%rip), %rdi     # 0xde758
callq 0x88f0
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x7bc4f(%rip), %rdi     # 0xdcfb8
leaq 0x452a4(%rip), %rsi     # 0xa6614
callq 0x8480
xorl %edi, %edi
callq 0x8540
leaq 0x34f9f(%rip), %rsi     # 0x96322
jmp 0x6138c
leaq 0x34fa9(%rip), %rsi     # 0x96335
movq 0x7bc55(%rip), %rdi     # 0xdcfe8
callq 0x8480
movq 0x7bc19(%rip), %rdi     # 0xdcfb8
leaq 0x325a7(%rip), %rsi     # 0x9394d
callq 0x8480
leaq 0x45262(%rip), %rsi     # 0xa6614
movq %rax, %rdi
callq 0x8480
pushq $0x1
popq %rdi
callq 0x8540
jmp 0x613d5
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x8978
jmp 0x613d8
jmp 0x613d5
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x8220
jmp 0x613f6
movq %rax, %rbx
jmp 0x613f6
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x8978
movq %rbx, %rdi
callq 0x8870