// File: /workspace/github_cpp_makefile_star2_O1/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
movl %edi, %ebp
leaq 0xa0(%rsp), %rax
movq %rax, -0x10(%rax)
xorl %ecx, %ecx
movq %rcx, -0x8(%rax)
movb $0x0, (%rax)
movq $0x0, (%rsp)
movq %rcx, 0x20(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x10(%rsp)
leaq 0x3fcd8(%rip), %rdx     # 0xe53ec
leaq 0x64d05(%rip), %rcx     # 0x10a420
movq %rsi, 0x8(%rsp)
xorl %r8d, %r8d
callq 0x8770
movl %eax, %r14d
shll $0x18, %r14d
cmpl $0xff000000, %r14d      # imm = 0xFF000000
je 0xa59a8
leaq 0x40(%rsp), %rbx
movq $0x0, (%rsp)
leaq 0x30(%rsp), %r15
leaq 0xc8(%rsp), %r12
movq 0x65823(%rip), %rax     # 0x10af80
movq (%rax), %r13
testq %r13, %r13
leaq 0x2c515(%rip), %rax     # 0xd1c7f
cmoveq %rax, %r13
movq %rbx, 0x30(%rsp)
movq %r13, %rdi
callq 0x81f0
leaq (%rax,%r13), %rdx
movq %r15, %rdi
movq %r13, %rsi
callq 0x28952
movq %r12, %rdi
movq %r15, %rsi
movl $0x8, %edx
callq 0x87b0
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0xa57b1
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
sarl $0x18, %r14d
cmpl $0x71, %r14d
jg 0xa57e3
cmpl $0x3f, %r14d
je 0xa5949
cmpl $0x6e, %r14d
jne 0xa5951
movq %r12, %rdi
leaq 0x67557(%rip), %rsi     # 0x10cd30
callq 0x8560
jmp 0xa595b
cmpl $0x72, %r14d
je 0xa5807
cmpl $0x77, %r14d
jne 0xa595b
movq %r12, %rdi
leaq 0x65db7(%rip), %rsi     # 0x10b5b4
callq 0x82b0
jmp 0xa595b
movq %r12, %rdi
leaq 0x90(%rsp), %rsi
callq 0x8560
leaq 0xb0(%rsp), %r14
movq %r14, %rdi
leaq 0x90(%rsp), %rsi
movl $0x2c, %edx
callq 0x50624
xorpd %xmm0, %xmm0
movapd %xmm0, 0x30(%rsp)
movapd 0x10(%rsp), %xmm0
movq 0x20(%rsp), %rax
movups 0xb0(%rsp), %xmm1
movaps %xmm1, 0x10(%rsp)
movq 0xc0(%rsp), %rcx
movq %rcx, 0x20(%rsp)
movaps 0x30(%rsp), %xmm1
movapd %xmm0, 0x30(%rsp)
movq %rax, 0x40(%rsp)
movups %xmm1, 0xb0(%rsp)
movq $0x0, 0xc0(%rsp)
movq %r15, %rdi
callq 0x3123c
movq %r14, %rdi
callq 0x3123c
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 0x2e45c
leaq 0x70(%rsp), %rdi
callq 0x5054c
cvttsd2si %xmm0, %eax
movl %eax, 0x65cdb(%rip)     # 0x10b5ac
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0xa58f3
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 0x2e45c
leaq 0x50(%rsp), %rdi
callq 0x5054c
cvttsd2si %xmm0, %eax
movl %eax, 0x65c85(%rip)     # 0x10b5b0
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xa595b
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xa595b
movb $0x1, %al
movq %rax, (%rsp)
jmp 0xa595b
cmpl $0x68, %r14d
je 0xa5aa4
movq %r12, %rdi
movq 0x65633(%rip), %rsi     # 0x10af98
callq 0x8620
leaq 0x140(%rsp), %rdi
callq 0x8190
movl %ebp, %edi
movq 0x8(%rsp), %rsi
leaq 0x3fa67(%rip), %rdx     # 0xe53ec
leaq 0x64a94(%rip), %rcx     # 0x10a420
xorl %r8d, %r8d
callq 0x8770
movl %eax, %r14d
shll $0x18, %r14d
cmpl $0xff000000, %r14d      # imm = 0xFF000000
jne 0xa5756
movq 0x65611(%rip), %rbx     # 0x10afc0
subl (%rbx), %ebp
cmpl $0x2, %ebp
jge 0xa59c4
movl $0x12, %edx
leaq 0x287f0(%rip), %rsi     # 0xce1b2
jmp 0xa59d6
movq (%rsp), %r14
je 0xa59e5
movl $0x13, %edx
leaq 0x287ef(%rip), %rsi     # 0xce1c5
movb $0x1, %r14b
movq 0x65608(%rip), %rdi     # 0x10afe8
callq 0x84e0
testb $0x1, %r14b
jne 0xa5abe
movslq (%rbx), %rax
leal 0x1(%rax), %ecx
movl %ecx, (%rbx)
movq 0x8(%rsp), %rcx
movq (%rcx,%rax,8), %r14
movq 0x672f1(%rip), %r15     # 0x10ccf8
leaq 0x672e2(%rip), %r12     # 0x10ccf0
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 0x672d7(%rip), %r14     # 0x10cd18
leaq 0x672c8(%rip), %r15     # 0x10cd10
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
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0xa5a92
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 0x6550d(%rip), %rdi     # 0x10afb8
leaq 0x3f94a(%rip), %rsi     # 0xe53fc
callq 0x8460
xorl %edi, %edi
callq 0x8530
movq 0x654f3(%rip), %rdi     # 0x10afb8
leaq 0x26bb1(%rip), %rsi     # 0xcc67d
movl $0x1, %edx
callq 0x84e0
movq 0x654db(%rip), %rdi     # 0x10afb8
leaq 0x3f918(%rip), %rsi     # 0xe53fc
callq 0x8460
movl $0x1, %edi
callq 0x8530
jmp 0xa5b39
movq %rax, %r14
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xa5b3c
movq 0x60(%rsp), %rsi
jmp 0xa5b2b
movq %rax, %r14
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0xa5b3c
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xa5b3c
jmp 0xa5b39
jmp 0xa5b5f
movq %rax, %r14
movq 0x65455(%rip), %rsi     # 0x10af98
leaq 0xc8(%rsp), %rdi
callq 0x8620
leaq 0x140(%rsp), %rdi
callq 0x8190
jmp 0xa5b7e
movq %rax, %r14
jmp 0xa5b7e
movq %rax, %r14
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0xa5b7e
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x10(%rsp), %rdi
callq 0x3123c
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0xa5bad
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x8480
movq %r14, %rdi
callq 0x8840
nop