// File: /workspace/github_cpp_makefile_star2_O1/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 $0x238, %rsp            # imm = 0x238
movl %edi, %ebp
leaq 0x60(%rsp), %rax
movq %rax, -0x10(%rax)
xorl %ecx, %ecx
movq %rcx, -0x8(%rax)
movb $0x0, (%rax)
movq %rcx, 0xb0(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0xa0(%rsp)
movq $0x0, (%rsp)
movq %rcx, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
leaq 0x3451f(%rip), %rdx     # 0xe79c8
leaq 0x571b0(%rip), %rcx     # 0x10a660
movq %rsi, 0x8(%rsp)
xorl %r8d, %r8d
callq 0x8770
movl %eax, %r15d
shll $0x18, %r15d
cmpl $0xff000000, %r15d      # imm = 0xFF000000
je 0xb36d3
leaq 0x40(%rsp), %rbx
movq $0x0, (%rsp)
leaq 0x30(%rsp), %r12
leaq 0xb8(%rsp), %r13
movq 0x57a8e(%rip), %rax     # 0x10af80
movq (%rax), %r14
testq %r14, %r14
leaq 0x1e780(%rip), %rax     # 0xd1c7f
cmoveq %rax, %r14
movq %rbx, 0x30(%rsp)
movq %r14, %rdi
callq 0x81f0
leaq (%rax,%r14), %rdx
movq %r12, %rdi
movq %r14, %rsi
callq 0x28952
movq %r13, %rdi
movq %r12, %rsi
movl $0x8, %edx
callq 0x87b0
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0xb3546
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
sarl $0x18, %r15d
cmpl $0x67, %r15d
jg 0xb3581
testl %r15d, %r15d
je 0xb3663
cmpl $0x3f, %r15d
je 0xb3674
cmpl $0x66, %r15d
jne 0xb3686
movq %r13, %rdi
leaq 0x5805d(%rip), %rsi     # 0x10b5d4
callq 0x82b0
jmp 0xb3686
leaq 0x59940(%rip), %rsi     # 0x10cec8
cmpl $0x6e, %r15d
je 0xb366a
cmpl $0x77, %r15d
jne 0xb367c
movq %r12, %rdi
leaq 0xc8(%rsp), %rsi
callq 0x8700
leaq 0x88(%rsp), %r14
movq %r14, %rdi
movq %r12, %rsi
movl $0x2c, %edx
callq 0x50624
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
movaps 0x10(%rsp), %xmm0
movq 0x20(%rsp), %rax
movups 0x88(%rsp), %xmm1
movaps %xmm1, 0x10(%rsp)
movq 0x98(%rsp), %rcx
movq %rcx, 0x20(%rsp)
movaps 0x70(%rsp), %xmm1
movaps %xmm0, 0x70(%rsp)
movq %rax, 0x80(%rsp)
movups %xmm1, 0x88(%rsp)
movq $0x0, 0x98(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x3123c
movq %r14, %rdi
callq 0x3123c
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0xb363f
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x10(%rsp), %r14
movq (%r14), %rdi
callq 0x86e0
movl %eax, 0x57f7a(%rip)     # 0x10b5cc
movq 0x20(%r14), %rdi
callq 0x86e0
movl %eax, 0x57f6f(%rip)     # 0x10b5d0
jmp 0xb3686
leaq 0x5983e(%rip), %rsi     # 0x10cea8
movq %r13, %rdi
callq 0x8560
jmp 0xb3686
movb $0x1, %al
movq %rax, (%rsp)
jmp 0xb3686
cmpl $0x68, %r15d
je 0xb37d3
movq %r13, %rdi
movq 0x57908(%rip), %rsi     # 0x10af98
callq 0x8620
leaq 0x130(%rsp), %rdi
callq 0x8190
movl %ebp, %edi
movq 0x8(%rsp), %rsi
leaq 0x34318(%rip), %rdx     # 0xe79c8
leaq 0x56fa9(%rip), %rcx     # 0x10a660
xorl %r8d, %r8d
callq 0x8770
movl %eax, %r15d
shll $0x18, %r15d
cmpl $0xff000000, %r15d      # imm = 0xFF000000
jne 0xb34eb
movq 0x578e6(%rip), %rbx     # 0x10afc0
subl (%rbx), %ebp
cmpl $0x2, %ebp
jge 0xb36ef
movl $0x12, %edx
leaq 0x1aac5(%rip), %rsi     # 0xce1b2
jmp 0xb3701
movq (%rsp), %r14
je 0xb3710
movl $0x13, %edx
leaq 0x1aac4(%rip), %rsi     # 0xce1c5
movb $0x1, %r14b
movq 0x578dd(%rip), %rdi     # 0x10afe8
callq 0x84e0
testb $0x1, %r14b
jne 0xb37ed
movslq (%rbx), %rax
leal 0x1(%rax), %ecx
movl %ecx, (%rbx)
movq 0x8(%rsp), %rcx
movq (%rcx,%rax,8), %r14
movq 0x5971e(%rip), %r15     # 0x10ce50
leaq 0x5970f(%rip), %r12     # 0x10ce48
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 0x59704(%rip), %r14     # 0x10ce70
leaq 0x596f5(%rip), %r15     # 0x10ce68
movq %rbx, %rdi
callq 0x81f0
movq %r15, %rdi
xorl %esi, %esi
movq %r14, %rdx
movq %rbx, %rcx
movq %rax, %r8
callq 0x86c0
leaq 0x10(%rsp), %rdi
callq 0x3123c
leaq 0xa0(%rsp), %rdi
callq 0x3123c
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xb37c1
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x8480
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x577de(%rip), %rdi     # 0x10afb8
leaq 0x341ef(%rip), %rsi     # 0xe79d0
callq 0x8460
xorl %edi, %edi
callq 0x8530
movq 0x577c4(%rip), %rdi     # 0x10afb8
leaq 0x18e82(%rip), %rsi     # 0xcc67d
movl $0x1, %edx
callq 0x84e0
movq 0x577ac(%rip), %rdi     # 0x10afb8
leaq 0x341bd(%rip), %rsi     # 0xe79d0
callq 0x8460
movl $0x1, %edi
callq 0x8530
jmp 0xb3844
movq %rax, %r14
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0xb3847
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb3847
jmp 0xb3844
jmp 0xb386a
movq %rax, %r14
movq 0x5774a(%rip), %rsi     # 0x10af98
leaq 0xb8(%rsp), %rdi
callq 0x8620
leaq 0x130(%rsp), %rdi
callq 0x8190
jmp 0xb3889
movq %rax, %r14
jmp 0xb3889
movq %rax, %r14
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0xb3889
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x10(%rsp), %rdi
callq 0x3123c
leaq 0xa0(%rsp), %rdi
callq 0x3123c
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xb38bc
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x8480
movq %r14, %rdi
callq 0x8840