// File: /workspace/github_cpp_makefile_star2_O1/millanek[P]evo/evo_ABS.cpp
// Function: parseABSoptions(int, char**)
void parseABSoptions(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 '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 << ABS_USAGE_MESSAGE;
                exit(EXIT_SUCCESS);
        }
    }
    
    if (argc - optind < 3) {
        std::cerr << "missing arguments\n";
        die = true;
    }
    else if (argc - optind > 3)
    {
        std::cerr << "too many arguments\n";
        die = true;
    }
    
    if (die) {
        std::cout << "\n" << ABS_USAGE_MESSAGE;
        exit(EXIT_FAILURE);
    }
    
    // Parse the input filenames
    opt::vcfFile = argv[optind++];
    opt::setsFile = argv[optind++];
    opt::ABSquartetFile = 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, 0x8(%rsp)
movq %rcx, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
leaq 0x31717(%rip), %rdx     # 0xe7efb
leaq 0x53f35(%rip), %rcx     # 0x10a720
movq %rsi, (%rsp)
xorl %r8d, %r8d
callq 0x8770
movl %eax, %r15d
shll $0x18, %r15d
cmpl $0xff000000, %r15d      # imm = 0xFF000000
je 0xb69ec
leaq 0x40(%rsp), %rbx
movq $0x0, 0x8(%rsp)
leaq 0x30(%rsp), %r12
leaq 0xb8(%rsp), %r13
movq 0x54753(%rip), %rax     # 0x10af80
movq (%rax), %r14
testq %r14, %r14
leaq 0x1b445(%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 0xb6881
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
sarl $0x18, %r15d
cmpl $0x67, %r15d
jle 0xb696a
cmpl $0x6e, %r15d
je 0xb6985
cmpl $0x77, %r15d
jne 0xb6996
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 0xb6946
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x10(%rsp), %r14
movq (%r14), %rdi
callq 0x86e0
movl %eax, 0x54c7f(%rip)     # 0x10b5d8
movq 0x20(%r14), %rdi
callq 0x86e0
movl %eax, 0x54c74(%rip)     # 0x10b5dc
jmp 0xb69a0
leaq 0x565df(%rip), %rsi     # 0x10cf50
testl %r15d, %r15d
je 0xb698c
cmpl $0x3f, %r15d
jne 0xb69a0
movb $0x1, %al
movq %rax, 0x8(%rsp)
jmp 0xb69a0
leaq 0x565e4(%rip), %rsi     # 0x10cf70
movq %r13, %rdi
callq 0x8560
jmp 0xb69a0
cmpl $0x68, %r15d
je 0xb6b24
movq %r13, %rdi
movq 0x545ee(%rip), %rsi     # 0x10af98
callq 0x8620
leaq 0x130(%rsp), %rdi
callq 0x8190
movl %ebp, %edi
movq (%rsp), %rsi
leaq 0x31532(%rip), %rdx     # 0xe7efb
leaq 0x53d50(%rip), %rcx     # 0x10a720
xorl %r8d, %r8d
callq 0x8770
movl %eax, %r15d
shll $0x18, %r15d
cmpl $0xff000000, %r15d      # imm = 0xFF000000
jne 0xb6826
movq 0x545cd(%rip), %rbx     # 0x10afc0
subl (%rbx), %ebp
cmpl $0x3, %ebp
jge 0xb6a08
movl $0x12, %edx
leaq 0x177ac(%rip), %rsi     # 0xce1b2
jmp 0xb6a1b
movq 0x8(%rsp), %r14
je 0xb6a2a
movl $0x13, %edx
leaq 0x177aa(%rip), %rsi     # 0xce1c5
movb $0x1, %r14b
movq 0x545c3(%rip), %rdi     # 0x10afe8
callq 0x84e0
testb $0x1, %r14b
jne 0xb6b3e
movslq (%rbx), %rax
leal 0x1(%rax), %ecx
movl %ecx, (%rbx)
movq (%rsp), %rcx
movq (%rcx,%rax,8), %r14
movq 0x564ad(%rip), %r15     # 0x10cef8
leaq 0x5649e(%rip), %r12     # 0x10cef0
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 (%rsp), %rcx
movq (%rcx,%rax,8), %r14
movq 0x56494(%rip), %r15     # 0x10cf18
leaq 0x56485(%rip), %r12     # 0x10cf10
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 (%rsp), %rcx
movq (%rcx,%rax,8), %rbx
movq 0x5647b(%rip), %r14     # 0x10cf38
leaq 0x5646c(%rip), %r15     # 0x10cf30
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 0xb6b12
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 0x5448d(%rip), %rdi     # 0x10afb8
leaq 0x313cf(%rip), %rsi     # 0xe7f01
callq 0x8460
xorl %edi, %edi
callq 0x8530
movq 0x54473(%rip), %rdi     # 0x10afb8
leaq 0x15b31(%rip), %rsi     # 0xcc67d
movl $0x1, %edx
callq 0x84e0
movq 0x5445b(%rip), %rdi     # 0x10afb8
leaq 0x3139d(%rip), %rsi     # 0xe7f01
callq 0x8460
movl $0x1, %edi
callq 0x8530
jmp 0xb6b95
movq %rax, %r14
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0xb6b98
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb6b98
jmp 0xb6b95
jmp 0xb6bbb
movq %rax, %r14
movq 0x543f9(%rip), %rsi     # 0x10af98
leaq 0xb8(%rsp), %rdi
callq 0x8620
leaq 0x130(%rsp), %rdi
callq 0x8190
jmp 0xb6bda
movq %rax, %r14
jmp 0xb6bda
movq %rax, %r14
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0xb6bda
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 0xb6c0d
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x8480
movq %r14, %rdi
callq 0x8840