// File: /workspace/github_cpp_makefile_star2_O2/millanek[P]Dsuite/Dmin_combine.cpp
// Function: parseDminCombineOptions(int, char**)
void parseDminCombineOptions(int argc, char** argv) {
    bool die = false; string subsetArgString; std::vector<string> subsetArgs;
    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 'n': arg >> opt::runName; break;
            case 't': arg >> opt::treeFile; break;
            case 'o': arg >> opt::providedOutPrefix; break;
            case 's': arg >> subsetArgString; subsetArgs = split(subsetArgString, ',');
                opt::subsetStart = (int)stringToDouble(subsetArgs[0]); opt::subsetLength = (int)stringToDouble(subsetArgs[1]);  break;
            case 'h':
                std::cout << DMINCOMBINE_USAGE_MESSAGE;
                exit(EXIT_SUCCESS);
        }
    }
    
    
    int nFilenames = argc - optind;
    if (nFilenames < 1) {
        std::cerr << "missing arguments\n";
        die = true;
    }
    
    if (die) {
        std::cout << "\n" << DMINCOMBINE_USAGE_MESSAGE;
        exit(EXIT_FAILURE);
    }
    
    // Parse the input filenames
    while (optind < argc) {
        opt::dminFiles.push_back(argv[optind++]);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
xorpd %xmm0, %xmm0
leaq 0x10(%rsp), %rax
movapd %xmm0, (%rax)
andq $0x0, 0x10(%rax)
movq $0x0, 0x8(%rsp)
leaq 0x68(%rsp), %r13
leaq 0xa8(%rsp), %r14
leaq 0x1a9cf(%rip), %r12     # 0x386d4
movl %ebp, %edi
movq %rbx, %rsi
leaq 0x1ab9a(%rip), %rdx     # 0x388ab
leaq 0x32ab8(%rip), %rcx     # 0x507d0
xorl %r8d, %r8d
callq 0x76b0
movl %eax, %r15d
shll $0x18, %eax
cmpl $0xff000000, %eax       # imm = 0xFF000000
je 0x1de68
movq 0x33230(%rip), %rax     # 0x50f68
movq (%rax), %rsi
testq %rsi, %rsi
leaq 0x1b28c(%rip), %rax     # 0x38fd1
cmoveq %rax, %rsi
movq %r13, %rdi
leaq 0x7(%rsp), %rdx
callq 0x8102
movq %r14, %rdi
movq %r13, %rsi
pushq $0x8
popq %rdx
callq 0x76c0
movsbl %r15b, %r15d
movq %r13, %rdi
callq 0x7898
leal -0x6e(%r15), %eax
cmpl $0x6, %eax
ja 0x1dd92
movslq (%r12,%rax,4), %rax
addq %r12, %rax
leaq 0x33d51(%rip), %rsi     # 0x51ad8
jmpq *%rax
leaq 0x33d28(%rip), %rsi     # 0x51ab8
jmp 0x1ddb2
cmpl $0x3f, %r15d
je 0x1de54
cmpl $0x68, %r15d
jne 0x1de5b
jmp 0x1def5
leaq 0x33ce6(%rip), %rsi     # 0x51a98
movq %r14, %rdi
callq 0x7520
jmp 0x1de5b
movq %r14, %rdi
leaq 0x28(%rsp), %rsi
callq 0x7520
leaq 0x88(%rsp), %r15
movq %r13, %rdi
leaq 0x28(%rsp), %rsi
pushq $0x2c
popq %rdx
callq 0x88f1
leaq 0x10(%rsp), %rdi
movq %r13, %rsi
callq 0x1455c
movq %r13, %rdi
callq 0xb80c
movq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0x7590
movq %r15, %rdi
callq 0xaf68
cvttsd2si %xmm0, %eax
movl %eax, 0x33688(%rip)     # 0x514a0
movq %r15, %rdi
callq 0x7898
movq 0x10(%rsp), %rsi
addq $0x20, %rsi
leaq 0x48(%rsp), %rdi
callq 0x7590
leaq 0x48(%rsp), %r15
movq %r15, %rdi
callq 0xaf68
cvttsd2si %xmm0, %eax
movl %eax, 0x3365a(%rip)     # 0x514a4
movq %r15, %rdi
callq 0x7898
jmp 0x1de5b
movb $0x1, %al
movq %rax, 0x8(%rsp)
movq %r14, %rdi
callq 0x71d0
jmp 0x1dd05
movq 0x33131(%rip), %r13     # 0x50fa0
movl (%r13), %eax
cmpl %ebp, %eax
jge 0x1df0f
testb $0x1, 0x8(%rsp)
jne 0x1df22
leaq 0xa8(%rsp), %r14
leaq 0x68(%rsp), %r15
leaq 0x33be6(%rip), %r12     # 0x51a80
cmpl %ebp, %eax
jge 0x1decf
leal 0x1(%rax), %ecx
movl %ecx, (%r13)
cltq
movq (%rbx,%rax,8), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x8102
movq %r12, %rdi
movq %r14, %rsi
callq 0x1e154
movq %r14, %rdi
callq 0x7898
movl (%r13), %eax
jmp 0x1de9a
leaq 0x10(%rsp), %rdi
callq 0xb80c
leaq 0x28(%rsp), %rdi
callq 0x7898
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3309c(%rip), %rdi     # 0x50f98
leaq 0x1a9b9(%rip), %rsi     # 0x388bc
callq 0x7400
xorl %edi, %edi
callq 0x74f0
movq 0x330d2(%rip), %rdi     # 0x50fe8
leaq 0x18b1d(%rip), %rsi     # 0x36a3a
callq 0x7400
movq 0x3306f(%rip), %rdi     # 0x50f98
leaq 0x1850a(%rip), %rsi     # 0x3643a
callq 0x7400
leaq 0x1a980(%rip), %rsi     # 0x388bc
movq %rax, %rdi
callq 0x7400
pushq $0x1
popq %rdi
callq 0x74f0
jmp 0x1df7d
jmp 0x1df91
jmp 0x1df91
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
jmp 0x1df67
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x7898
jmp 0x1df94
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
jmp 0x1df8a
jmp 0x1df7d
movq %rax, %rbx
jmp 0x1dfa1
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x7898
jmp 0x1dfa1
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x71d0
leaq 0x10(%rsp), %rdi
callq 0xb80c
leaq 0x28(%rsp), %rdi
callq 0x7898
movq %rbx, %rdi
callq 0x7750
nop