// File: /workspace/github_cpp_makefile_star2_O3/millanek[P]Dsuite/D.cpp
// Function: parseAbbaBabaOptions(int, char**)
void parseAbbaBabaOptions(int argc, char** argv) {
    bool die = false;
    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(), ',');
                if(windowSizeStep.size() != 2) {std::cerr << "The -w option requires two arguments, separated by a comma ','\n"; exit(EXIT_FAILURE);}
                opt::windowSize = atoi(windowSizeStep[0].c_str());
                opt::windowStep = atoi(windowSizeStep[1].c_str());
                break;
            case 'n': arg >> opt::runName; break;
            case 'g': opt::useGenotypeProbabilities = true; break;
            case 'h':
                std::cout << ABBA_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" << ABBA_USAGE_MESSAGE;
        exit(EXIT_FAILURE);
    }
    
    // Parse the input filenames
    opt::vcfFile = argv[optind++];
    opt::setsFile = argv[optind++];
    opt::testTriosFile = argv[optind++];
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movl %edi, %ebp
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
leaq 0x2ee3c(%rip), %rdx     # 0x41d01
leaq 0x44574(%rip), %rcx     # 0x57440
movq $0x0, 0x8(%rsp)
movq %rsi, 0x28(%rsp)
xorl %r8d, %r8d
callq 0x76b0
movl %eax, %r14d
shll $0x18, %r14d
cmpl $0xff000000, %r14d      # imm = 0xFF000000
je 0x130d4
leaq 0x40(%rsp), %rbx
movq $0x0, 0x8(%rsp)
leaq 0x30(%rsp), %r12
leaq 0x88(%rsp), %r13
movq 0x45040(%rip), %rax     # 0x57f58
movq (%rax), %r15
testq %r15, %r15
leaq 0x3111c(%rip), %rax     # 0x44041
cmoveq %rax, %r15
movq %rbx, 0x30(%rsp)
movq %r15, %rdi
callq 0x7190
leaq (%rax,%r15), %rdx
movq %r12, %rdi
movq %r15, %rsi
callq 0x88ba
movq %r13, %rdi
movq %r12, %rsi
movl $0x8, %edx
callq 0x76c0
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0x12f6c
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x7420
sarl $0x18, %r14d
cmpl $0x67, %r14d
jle 0x1304e
cmpl $0x6e, %r14d
je 0x1306c
cmpl $0x77, %r14d
jne 0x1307d
movq %r12, %rdi
leaq 0x98(%rsp), %rsi
callq 0x7660
leaq 0x50(%rsp), %r14
movq %r14, %rdi
movq %r12, %rsi
movl $0x2c, %edx
callq 0x91c1
movq 0x20(%rsp), %rax
movaps 0x50(%rsp), %xmm0
movq 0x60(%rsp), %rcx
movq %rcx, 0x20(%rsp)
movaps 0x10(%rsp), %xmm1
movaps %xmm0, 0x10(%rsp)
movaps %xmm1, 0x70(%rsp)
movq %rax, 0x80(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
leaq 0x70(%rsp), %rdi
callq 0xd1ac
movq %r14, %rdi
callq 0xd1ac
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0x13018
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x7420
movq 0x10(%rsp), %r14
movq 0x18(%rsp), %rax
subq %r14, %rax
cmpq $0x40, %rax
jne 0x131d4
movq (%r14), %rdi
callq 0x7650
movl %eax, 0x45403(%rip)     # 0x58440
movq 0x20(%r14), %rdi
callq 0x7650
movl %eax, 0x453f8(%rip)     # 0x58444
jmp 0x13087
cmpl $0x3f, %r14d
je 0x13063
cmpl $0x67, %r14d
jne 0x13087
movb $0x1, 0x4591f(%rip)     # 0x58980
jmp 0x13087
movb $0x1, %al
movq %rax, 0x8(%rsp)
jmp 0x13087
movq %r13, %rdi
leaq 0x458ea(%rip), %rsi     # 0x58960
callq 0x7540
jmp 0x13087
cmpl $0x68, %r14d
je 0x131ba
movq %r13, %rdi
movq 0x44eef(%rip), %rsi     # 0x57f80
callq 0x75d0
leaq 0x100(%rsp), %rdi
callq 0x7130
movl %ebp, %edi
movq 0x28(%rsp), %rsi
leaq 0x2ec50(%rip), %rdx     # 0x41d01
leaq 0x44388(%rip), %rcx     # 0x57440
xorl %r8d, %r8d
callq 0x76b0
movl %eax, %r14d
shll $0x18, %r14d
cmpl $0xff000000, %r14d      # imm = 0xFF000000
jne 0x12f11
movq 0x44ec5(%rip), %rbx     # 0x57fa0
movslq (%rbx), %rax
subl %eax, %ebp
cmpl $0x3, %ebp
jl 0x131e9
movq 0x28(%rsp), %r13
jne 0x131f7
testb $0x1, 0x8(%rsp)
jne 0x1320f
leal 0x1(%rax), %ecx
movl %ecx, (%rbx)
movq (%r13,%rax,8), %r14
movq 0x457f8(%rip), %r15     # 0x58908
leaq 0x457e9(%rip), %r12     # 0x58900
movq %r14, %rdi
callq 0x7190
movq %r12, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %r14, %rcx
movq %rax, %r8
callq 0x7640
movslq (%rbx), %rax
leal 0x1(%rax), %ecx
movl %ecx, (%rbx)
movq (%r13,%rax,8), %r14
movq 0x457e2(%rip), %r15     # 0x58928
leaq 0x457d3(%rip), %r12     # 0x58920
movq %r14, %rdi
callq 0x7190
movq %r12, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %r14, %rcx
movq %rax, %r8
callq 0x7640
movslq (%rbx), %rax
leal 0x1(%rax), %ecx
movl %ecx, (%rbx)
movq (%r13,%rax,8), %rbx
movq 0x457cc(%rip), %r14     # 0x58948
leaq 0x457bd(%rip), %r15     # 0x58940
movq %rbx, %rdi
callq 0x7190
movq %r15, %rdi
xorl %esi, %esi
movq %r14, %rdx
movq %rbx, %rcx
movq %rax, %r8
callq 0x7640
leaq 0x10(%rsp), %rdi
callq 0xd1ac
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x44dd7(%rip), %rdi     # 0x57f98
leaq 0x2eb64(%rip), %rsi     # 0x41d2c
callq 0x7400
xorl %edi, %edi
callq 0x7510
movq 0x44e0d(%rip), %rdi     # 0x57fe8
leaq 0x2e880(%rip), %rsi     # 0x41a62
callq 0x7400
jmp 0x1323a
movl $0x12, %edx
leaq 0x2e8ad(%rip), %rsi     # 0x41aa2
jmp 0x13203
movl $0x13, %edx
leaq 0x2e8b2(%rip), %rsi     # 0x41ab5
movq 0x44dde(%rip), %rdi     # 0x57fe8
callq 0x74b0
movq 0x44d82(%rip), %rdi     # 0x57f98
leaq 0x2e21d(%rip), %rsi     # 0x4143a
movl $0x1, %edx
callq 0x74b0
movq 0x44d6a(%rip), %rdi     # 0x57f98
leaq 0x2eaf7(%rip), %rsi     # 0x41d2c
callq 0x7400
movl $0x1, %edi
callq 0x7510
jmp 0x13264
movq %rax, %r14
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0x13267
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x7420
jmp 0x13267
jmp 0x13264
movq %rax, %r14
movq 0x44d12(%rip), %rsi     # 0x57f80
leaq 0x88(%rsp), %rdi
callq 0x75d0
leaq 0x100(%rsp), %rdi
callq 0x7130
jmp 0x132ab
jmp 0x1328c
movq %rax, %r14
jmp 0x132ab
movq %rax, %r14
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0x132ab
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x7420
leaq 0x10(%rsp), %rdi
callq 0xd1ac
movq %r14, %rdi
callq 0x7740
nop