// File: /workspace/github_cpp_makefile_star2_O2/millanek[P]evo/evo_distanceToOutgroups.cpp
// Function: parseDistOutOptions(int, char**)
void parseDistOutOptions(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 'n': arg >> opt::runName; break;
            case 'i': opt::allowIndels = true; break;
            case OPT_ACC_GEN_BED: arg >> opt::accesibleGenBedFile; break;
            case 'h':
                std::cout << DISTOUT_USAGE_MESSAGE;
                exit(EXIT_SUCCESS);
        }
    }
    
    if (argc - optind < 4) {
        std::cerr << "missing arguments\n";
        die = true;
    }
    else if (argc - optind > 4)
    {
        std::cerr << "too many arguments\n";
        die = true;
    }
    
    if (die) {
        std::cout << "\n" << DISTOUT_USAGE_MESSAGE;
        exit(EXIT_FAILURE);
    }
    
    // Parse the input filenames
    opt::vcfFile = argv[optind++];
    opt::setsFile = argv[optind++];
    opt::outgroupFile = argv[optind++];
    opt::ingroupFile = argv[optind++];
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rsi, %rbx
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movl %edi, %ebp
movb $0x0, (%rax)
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
andq $0x0, 0x40(%rsp)
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
movq $0x0, 0x8(%rsp)
leaq 0x68(%rsp), %r12
leaq 0x88(%rsp), %r14
leaq 0x27b1b(%rip), %r13     # 0xb10c4
movl %ebp, %edi
movq %rbx, %rsi
leaq 0x27bac(%rip), %rdx     # 0xb1161
leaq 0x53384(%rip), %rcx     # 0xdc940
xorl %r8d, %r8d
callq 0x8790
movl %eax, %r15d
shll $0x18, %eax
cmpl $0xff000000, %eax       # imm = 0xFF000000
je 0x89678
movq 0x539b4(%rip), %rax     # 0xdcf90
movq (%rax), %rsi
testq %rsi, %rsi
leaq 0x10836(%rip), %rax     # 0x99e1f
cmoveq %rax, %rsi
movq %r12, %rdi
leaq 0x7(%rsp), %rdx
callq 0x21904
movq %r14, %rdi
movq %r12, %rsi
pushq $0x8
popq %rdx
callq 0x87e0
movsbl %r15b, %r15d
movq %r12, %rdi
callq 0x8978
leal -0x66(%r15), %eax
cmpl $0x8, %eax
ja 0x8963f
movslq (%r13,%rax,4), %rax
addq %r13, %rax
leaq 0x55bc4(%rip), %rsi     # 0xdf1f0
jmpq *%rax
movq %r14, %rdi
leaq 0x53fe0(%rip), %rsi     # 0xdd618
callq 0x82e0
jmp 0x8966b
testl %r15d, %r15d
je 0x8965c
cmpl $0x3f, %r15d
jne 0x8966b
movb $0x1, %al
movq %rax, 0x8(%rsp)
jmp 0x8966b
movb $0x1, 0x55bd6(%rip)     # 0xdf230
jmp 0x8966b
leaq 0x55bad(%rip), %rsi     # 0xdf210
movq %r14, %rdi
callq 0x8570
movq %r14, %rdi
callq 0x8220
jmp 0x895a9
movq 0x53941(%rip), %r14     # 0xdcfc0
movslq (%r14), %rax
subl %eax, %ebp
cmpl $0x4, %ebp
jl 0x89749
jne 0x89752
testb $0x1, 0x8(%rsp)
jne 0x89765
leal 0x1(%rax), %ecx
movl %ecx, (%r14)
movq (%rbx,%rax,8), %rsi
leaq 0x55ac1(%rip), %rdi     # 0xdf170
callq 0x88f0
movslq (%r14), %rax
leal 0x1(%rax), %ecx
movl %ecx, (%r14)
movq (%rbx,%rax,8), %rsi
leaq 0x55ac8(%rip), %rdi     # 0xdf190
callq 0x88f0
movslq (%r14), %rax
leal 0x1(%rax), %ecx
movl %ecx, (%r14)
movq (%rbx,%rax,8), %rsi
leaq 0x55acf(%rip), %rdi     # 0xdf1b0
callq 0x88f0
movslq (%r14), %rax
leal 0x1(%rax), %ecx
movl %ecx, (%r14)
movq (%rbx,%rax,8), %rsi
leaq 0x55ad6(%rip), %rdi     # 0xdf1d0
callq 0x88f0
leaq 0x10(%rsp), %rdi
callq 0x28a08
leaq 0x30(%rsp), %rdi
callq 0x28a08
leaq 0x48(%rsp), %rdi
callq 0x8978
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x53882(%rip), %rdi     # 0xdcfb8
leaq 0x27a2b(%rip), %rsi     # 0xb1168
callq 0x8480
xorl %edi, %edi
callq 0x8540
leaq 0xcbd2(%rip), %rsi      # 0x96322
jmp 0x89759
leaq 0xcbdc(%rip), %rsi      # 0x96335
movq 0x53888(%rip), %rdi     # 0xdcfe8
callq 0x8480
movq 0x5384c(%rip), %rdi     # 0xdcfb8
leaq 0xa1da(%rip), %rsi      # 0x9394d
callq 0x8480
leaq 0x279e9(%rip), %rsi     # 0xb1168
movq %rax, %rdi
callq 0x8480
pushq $0x1
popq %rdi
callq 0x8540
jmp 0x89793
jmp 0x897a5
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x8220
jmp 0x897b7
movq %rax, %rbx
jmp 0x897b7
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x8978
leaq 0x10(%rsp), %rdi
callq 0x28a08
leaq 0x30(%rsp), %rdi
callq 0x28a08
leaq 0x48(%rsp), %rdi
callq 0x8978
movq %rbx, %rdi
callq 0x8870
nop