// File: /workspace/github_cpp_makefile_star2_O2/millanek[P]evo/evo_FstAgainstAll.cpp
// Function: parseFstGlobaloptions(int, char**)
void parseFstGlobaloptions(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 'f': arg >> opt::fixedWindowSize; break;
            case 'w':
                windowSizeStep = split(arg.str(), ',');
                opt::windowSize = atoi(windowSizeStep[0].c_str());
                opt::windowStep = atoi(windowSizeStep[1].c_str());
                break;
            case 'n': arg >> opt::runName; break;
            case OPT_ANNOT: arg >> opt::annotFile; break;
            case 'h':
                std::cout << FSTGLOBAL_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" << FSTGLOBAL_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 $0x228, %rsp            # imm = 0x228
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x80(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
xorps %xmm0, %xmm0
andq $0x0, 0x40(%rsp)
leaq 0x10(%rsp), %rax
andq $0x0, 0x10(%rax)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, (%rax)
movq $0x0, 0x8(%rsp)
leaq 0x50(%rsp), %r15
leaq 0x90(%rsp), %r14
leaq 0xa8(%rsp), %r12
movl %ebp, %edi
movq %rbx, %rsi
leaq 0x2da9c(%rip), %rdx     # 0xafc98
leaq 0x5a47d(%rip), %rcx     # 0xdc680
xorl %r8d, %r8d
callq 0x8790
movl %eax, %r13d
shll $0x18, %eax
cmpl $0xff000000, %eax       # imm = 0xFF000000
je 0x82332
movq 0x5ad6d(%rip), %rax     # 0xdcf90
movq (%rax), %rsi
testq %rsi, %rsi
leaq 0x17bef(%rip), %rax     # 0x99e1f
cmoveq %rax, %rsi
movq %r15, %rdi
movq %r14, %rdx
callq 0x21904
movq %r12, %rdi
movq %r15, %rsi
pushq $0x8
popq %rdx
callq 0x87e0
movsbl %r13b, %r13d
movq %r15, %rdi
callq 0x8978
testl %r13d, %r13d
je 0x82316
cmpl $0x3f, %r13d
je 0x822fc
cmpl $0x66, %r13d
je 0x82305
leaq 0x5cc83(%rip), %rsi     # 0xdef00
cmpl $0x6e, %r13d
je 0x8231d
cmpl $0x77, %r13d
je 0x8229c
cmpl $0x68, %r13d
jne 0x82325
jmp 0x823b7
movq %r15, %rdi
leaq 0xb8(%rsp), %rsi
callq 0x8710
movq %r14, %rdi
movq %r15, %rsi
pushq $0x2c
popq %rdx
callq 0x40349
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x2f6c0
movq %r14, %rdi
callq 0x28a08
movq %r15, %rdi
callq 0x8978
movq 0x10(%rsp), %r13
movq (%r13), %rdi
callq 0x86f0
movl %eax, 0x5b319(%rip)     # 0xdd604
movq 0x20(%r13), %rdi
callq 0x86f0
movl %eax, 0x5b30e(%rip)     # 0xdd608
jmp 0x82325
movb $0x1, %al
movq %rax, 0x8(%rsp)
jmp 0x82325
movq %r12, %rdi
leaq 0x5b2fd(%rip), %rsi     # 0xdd60c
callq 0x82e0
jmp 0x82325
leaq 0x5cbc3(%rip), %rsi     # 0xdeee0
movq %r12, %rdi
callq 0x8570
movq %r12, %rdi
callq 0x8220
jmp 0x821f0
movq 0x5ac87(%rip), %r14     # 0xdcfc0
movslq (%r14), %rax
subl %eax, %ebp
cmpl $0x2, %ebp
jl 0x823d1
jne 0x823da
testb $0x1, 0x8(%rsp)
jne 0x823ed
leal 0x1(%rax), %ecx
movl %ecx, (%r14)
movq (%rbx,%rax,8), %rsi
leaq 0x5cb17(%rip), %rdi     # 0xdee80
callq 0x88f0
movslq (%r14), %rax
leal 0x1(%rax), %ecx
movl %ecx, (%r14)
movq (%rbx,%rax,8), %rsi
leaq 0x5cb1e(%rip), %rdi     # 0xdeea0
callq 0x88f0
leaq 0x10(%rsp), %rdi
callq 0x28a08
leaq 0x30(%rsp), %rdi
callq 0x28a08
leaq 0x70(%rsp), %rdi
callq 0x8978
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x5abfa(%rip), %rdi     # 0xdcfb8
leaq 0x2d8db(%rip), %rsi     # 0xafca0
callq 0x8480
xorl %edi, %edi
callq 0x8540
leaq 0x13f4a(%rip), %rsi     # 0x96322
jmp 0x823e1
leaq 0x13f54(%rip), %rsi     # 0x96335
movq 0x5ac00(%rip), %rdi     # 0xdcfe8
callq 0x8480
movq 0x5abc4(%rip), %rdi     # 0xdcfb8
leaq 0x11552(%rip), %rsi     # 0x9394d
callq 0x8480
leaq 0x2d899(%rip), %rsi     # 0xafca0
movq %rax, %rdi
callq 0x8480
pushq $0x1
popq %rdi
callq 0x8540
jmp 0x8242c
jmp 0x8243e
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x8978
jmp 0x8242f
jmp 0x8242c
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x8220
jmp 0x82450
movq %rax, %rbx
jmp 0x82450
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x8978
leaq 0x10(%rsp), %rdi
callq 0x28a08
leaq 0x30(%rsp), %rdi
callq 0x28a08
leaq 0x70(%rsp), %rdi
callq 0x8978
movq %rbx, %rdi
callq 0x8870