// File: /workspace/github_cpp_makefile_star2_O1/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 $0x248, %rsp            # imm = 0x248
movq %rsi, %rbx
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, 0x40(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x30(%rsp)
leaq 0x1f98c(%rip), %rdx     # 0x4288b
leaq 0x3388a(%rip), %rcx     # 0x56790
xorl %r8d, %r8d
callq 0x76b0
movl %eax, %r14d
shll $0x18, %r14d
cmpl $0xff000000, %r14d      # imm = 0xFF000000
jne 0x23006
movq 0x34077(%rip), %r13     # 0x56fa0
cmpl %ebp, (%r13)
movq 0x8(%rsp), %r14
jl 0x22f4f
movb $0x1, %r14b
movq 0x340aa(%rip), %rdi     # 0x56fe8
leaq 0x1daf5(%rip), %rsi     # 0x40a3a
movl $0x12, %edx
callq 0x74b0
testb $0x1, %r14b
jne 0x23291
movl (%r13), %eax
cmpl %ebp, %eax
jge 0x22fc5
leaq 0xc8(%rsp), %r14
leaq 0x10(%rsp), %r15
leaq 0x34adb(%rip), %r12     # 0x57a50
leal 0x1(%rax), %ecx
movl %ecx, (%r13)
cltq
movq (%rbx,%rax,8), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x887c
movq %r12, %rdi
movq %r14, %rsi
callq 0x2354a
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x22fbd
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x7420
movl (%r13), %eax
cmpl %ebp, %eax
jl 0x22f75
leaq 0x30(%rsp), %rdi
callq 0xd250
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x22ff4
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x7420
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq $0x0, 0x8(%rsp)
leaq 0x10(%rsp), %r15
leaq 0xc8(%rsp), %r12
movq 0x33f35(%rip), %rax     # 0x56f58
movq (%rax), %r13
testq %r13, %r13
leaq 0x1ff81(%rip), %rax     # 0x42fb1
cmoveq %rax, %r13
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq %r13, %rdi
callq 0x7190
leaq (%rax,%r13), %rdx
movq %r15, %rdi
movq %r13, %rsi
callq 0x88ba
movq %r12, %rdi
movq %r15, %rsi
movl $0x8, %edx
callq 0x76c0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x23081
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x7420
sarl $0x18, %r14d
leal -0x6e(%r14), %eax
cmpl $0x6, %eax
ja 0x230ae
leaq 0x1f61f(%rip), %rcx     # 0x426b4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
leaq 0x34a05(%rip), %rsi     # 0x57aa8
jmpq *%rax
leaq 0x349dc(%rip), %rsi     # 0x57a88
jmp 0x230ca
cmpl $0x3f, %r14d
je 0x2326b
cmpl $0x68, %r14d
jne 0x230d2
jmp 0x23277
leaq 0x3499e(%rip), %rsi     # 0x57a68
movq %r12, %rdi
callq 0x7540
movq %r12, %rdi
movq 0x33ea4(%rip), %rsi     # 0x56f80
callq 0x75d0
leaq 0x140(%rsp), %rdi
callq 0x7130
movl %ebp, %edi
movq %rbx, %rsi
leaq 0x1f791(%rip), %rdx     # 0x4288b
leaq 0x3368f(%rip), %rcx     # 0x56790
xorl %r8d, %r8d
callq 0x76b0
movl %eax, %r14d
shll $0x18, %r14d
cmpl $0xff000000, %r14d      # imm = 0xFF000000
jne 0x2301c
jmp 0x22f22
movq %r12, %rdi
leaq 0x90(%rsp), %rsi
callq 0x7540
leaq 0xb0(%rsp), %r14
movq %r14, %rdi
leaq 0x90(%rsp), %rsi
movl $0x2c, %edx
callq 0x91a9
xorpd %xmm0, %xmm0
movapd %xmm0, 0x10(%rsp)
movapd 0x30(%rsp), %xmm0
movq 0x40(%rsp), %rax
movups 0xb0(%rsp), %xmm1
movaps %xmm1, 0x30(%rsp)
movq 0xc0(%rsp), %rcx
movq %rcx, 0x40(%rsp)
movaps 0x10(%rsp), %xmm1
movapd %xmm0, 0x10(%rsp)
movq %rax, 0x20(%rsp)
movups %xmm1, 0xb0(%rsp)
movq $0x0, 0xc0(%rsp)
movq %r15, %rdi
callq 0xd250
movq %r14, %rdi
callq 0xd250
movq 0x30(%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 0xdfb6
leaq 0x70(%rsp), %rdi
callq 0xc76a
cvttsd2si %xmm0, %eax
movl %eax, 0x34284(%rip)     # 0x57470
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x2320e
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x7420
movq 0x30(%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 0xdfb6
leaq 0x50(%rsp), %rdi
callq 0xc76a
cvttsd2si %xmm0, %eax
movl %eax, 0x3422e(%rip)     # 0x57474
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x230d2
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x7420
jmp 0x230d2
movb $0x1, %al
movq %rax, 0x8(%rsp)
jmp 0x230d2
movq 0x33d1a(%rip), %rdi     # 0x56f98
leaq 0x1f617(%rip), %rsi     # 0x4289c
callq 0x7400
xorl %edi, %edi
callq 0x7510
movq 0x33d00(%rip), %rdi     # 0x56f98
leaq 0x1d19b(%rip), %rsi     # 0x4043a
movl $0x1, %edx
callq 0x74b0
movq 0x33ce8(%rip), %rdi     # 0x56f98
leaq 0x1f5e5(%rip), %rsi     # 0x4289c
callq 0x7400
movl $0x1, %edi
callq 0x7510
jmp 0x2335c
jmp 0x23336
jmp 0x2335c
movq %rax, %r14
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x2335f
movq 0x60(%rsp), %rsi
jmp 0x23308
movq %rax, %r14
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x2335f
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x7420
jmp 0x2335f
jmp 0x23336
movq %rax, %r14
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x23380
movq 0xd8(%rsp), %rsi
jmp 0x23352
movq %rax, %r14
jmp 0x23380
movq %rax, %r14
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x23380
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x7420
jmp 0x23380
movq %rax, %r14
movq 0x33c1a(%rip), %rsi     # 0x56f80
leaq 0xc8(%rsp), %rdi
callq 0x75d0
leaq 0x140(%rsp), %rdi
callq 0x7130
leaq 0x30(%rsp), %rdi
callq 0xd250
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x233af
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x7420
movq %r14, %rdi
callq 0x7740