// File: /workspace/github_cpp_makefile_star2_O3/millanek[P]evo/evo_Dmin.cpp
// Function: parseDminOptions(int, char**)
void parseDminOptions(int argc, char** argv) {
    bool die = false; string regionArgString; std::vector<string> regionArgs;
    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 'w': arg >> opt::windowSize; break;
            case 'n': arg >> opt::runName; break;
            case 'r': arg >> regionArgString; regionArgs = split(regionArgString, ',');
                opt::regionStart = (int)stringToDouble(regionArgs[0]); opt::regionLength = (int)stringToDouble(regionArgs[1]);  break;
            case 'h':
                std::cout << DMIN_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" << DMIN_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 $0x248, %rsp            # imm = 0x248
movq %rsi, %r14
movl %edi, %ebp
leaq 0xa0(%rsp), %rax
movq %rax, -0x10(%rax)
xorl %ecx, %ecx
movq %rcx, -0x8(%rax)
movb $0x0, (%rax)
movq $0x0, 0x8(%rsp)
movq %rcx, 0x20(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x10(%rsp)
leaq 0x38dd2(%rip), %rdx     # 0xdd9dc
leaq 0x5c80f(%rip), %rcx     # 0x101420
xorl %r8d, %r8d
callq 0x8770
movl %eax, %ebx
shll $0x18, %ebx
cmpl $0xff000000, %ebx       # imm = 0xFF000000
je 0xa4e87
movq $0x0, 0x8(%rsp)
leaq 0x30(%rsp), %r15
leaq 0xc8(%rsp), %r12
movq 0x5d339(%rip), %rax     # 0x101f80
movq (%rax), %r13
testq %r13, %r13
leaq 0x28d77(%rip), %rax     # 0xcd9cb
cmoveq %rax, %r13
leaq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
movq %r13, %rdi
callq 0x81f0
leaq (%rax,%r13), %rdx
movq %r15, %rdi
movq %r13, %rsi
callq 0x28a52
movq %r12, %rdi
movq %r15, %rsi
movl $0x8, %edx
callq 0x87b0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xa4ca5
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
sarl $0x18, %ebx
cmpl $0x71, %ebx
jg 0xa4cd3
cmpl $0x3f, %ebx
je 0xa4e2d
cmpl $0x6e, %ebx
jne 0xa4e36
movq %r12, %rdi
leaq 0x5f077(%rip), %rsi     # 0x103d40
callq 0x8560
jmp 0xa4e3f
cmpl $0x72, %ebx
je 0xa4cf5
cmpl $0x77, %ebx
jne 0xa4e3f
movq %r12, %rdi
leaq 0x5d8c9(%rip), %rsi     # 0x1025b4
callq 0x82b0
jmp 0xa4e3f
movq %r12, %rdi
leaq 0x90(%rsp), %rsi
callq 0x8560
leaq 0xb0(%rsp), %rbx
movq %rbx, %rdi
leaq 0x90(%rsp), %rsi
movl $0x2c, %edx
callq 0x4d650
movq 0x20(%rsp), %rax
movapd 0xb0(%rsp), %xmm0
movq 0xc0(%rsp), %rcx
movq %rcx, 0x20(%rsp)
movaps 0x10(%rsp), %xmm1
movapd %xmm0, 0x10(%rsp)
movaps %xmm1, 0x30(%rsp)
movq %rax, 0x40(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0xb0(%rsp)
movq $0x0, 0xc0(%rsp)
movq %r15, %rdi
callq 0x2e784
movq %rbx, %rdi
callq 0x2e784
movq 0x10(%rsp), %rax
leaq 0x80(%rsp), %rcx
movq %rcx, 0x70(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x70(%rsp), %rdi
callq 0x2ba06
leaq 0x70(%rsp), %rdi
callq 0x4d578
cvttsd2si %xmm0, %eax
movl %eax, 0x5d7f7(%rip)     # 0x1025ac
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0xa4dd7
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x10(%rsp), %rax
leaq 0x60(%rsp), %rcx
movq %rcx, 0x50(%rsp)
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0x2ba06
leaq 0x50(%rsp), %rdi
callq 0x4d578
cvttsd2si %xmm0, %eax
movl %eax, 0x5d7a1(%rip)     # 0x1025b0
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xa4e3f
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xa4e3f
movb $0x1, %al
movq %rax, 0x8(%rsp)
jmp 0xa4e3f
cmpl $0x68, %ebx
je 0xa4f5b
movq %r12, %rdi
movq 0x5d14f(%rip), %rsi     # 0x101f98
callq 0x8620
leaq 0x140(%rsp), %rdi
callq 0x8190
movl %ebp, %edi
movq %r14, %rsi
leaq 0x38b75(%rip), %rdx     # 0xdd9dc
leaq 0x5c5b2(%rip), %rcx     # 0x101420
xorl %r8d, %r8d
callq 0x8770
movl %eax, %ebx
shll $0x18, %ebx
cmpl $0xff000000, %ebx       # imm = 0xFF000000
jne 0xa4c40
movq 0x5d132(%rip), %r13     # 0x101fc0
movslq (%r13), %rax
subl %eax, %ebp
cmpl $0x2, %ebp
jl 0xa4f75
jne 0xa4f83
testb $0x1, 0x8(%rsp)
jne 0xa4f9b
leal 0x1(%rax), %ecx
movl %ecx, (%r13)
movq (%r14,%rax,8), %rbx
movq 0x5ee48(%rip), %r15     # 0x103d08
leaq 0x5ee39(%rip), %r12     # 0x103d00
movq %rbx, %rdi
callq 0x81f0
movq %r12, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %rbx, %rcx
movq %rax, %r8
callq 0x86c0
movslq (%r13), %rax
leal 0x1(%rax), %ecx
movl %ecx, (%r13)
movq (%r14,%rax,8), %rbx
movq 0x5ee30(%rip), %r14     # 0x103d28
leaq 0x5ee21(%rip), %r15     # 0x103d20
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 0x2e784
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0xa4f49
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x8480
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x5d056(%rip), %rdi     # 0x101fb8
leaq 0x38a83(%rip), %rsi     # 0xdd9ec
callq 0x8460
xorl %edi, %edi
callq 0x8530
movl $0x12, %edx
leaq 0x26f61(%rip), %rsi     # 0xcbee2
jmp 0xa4f8f
movl $0x13, %edx
leaq 0x26f66(%rip), %rsi     # 0xcbef5
movq 0x5d052(%rip), %rdi     # 0x101fe8
callq 0x84e0
movq 0x5d016(%rip), %rdi     # 0x101fb8
leaq 0x26494(%rip), %rsi     # 0xcb43d
movl $0x1, %edx
callq 0x84e0
movq 0x5cffe(%rip), %rdi     # 0x101fb8
leaq 0x38a2b(%rip), %rsi     # 0xdd9ec
callq 0x8460
movl $0x1, %edi
callq 0x8530
jmp 0xa5016
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xa5019
movq 0x60(%rsp), %rsi
jmp 0xa5008
movq %rax, %rbx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0xa5019
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xa5019
jmp 0xa5016
jmp 0xa503c
movq %rax, %rbx
movq 0x5cf78(%rip), %rsi     # 0x101f98
leaq 0xc8(%rsp), %rdi
callq 0x8620
leaq 0x140(%rsp), %rdi
callq 0x8190
jmp 0xa5060
movq %rax, %rbx
jmp 0xa5060
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xa5060
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x10(%rsp), %rdi
callq 0x2e784
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0xa508f
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x8480
movq %rbx, %rdi
callq 0x8840
nop