// File: /workspace/github_cpp_makefile_star2_O3/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
movl %edi, %ebp
leaq 0xa0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb $0x0, (%rcx)
movq %rax, 0x10(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, (%rsp)
leaq 0x2012a(%rip), %rdx     # 0x4391b
leaq 0x33fc8(%rip), %rcx     # 0x577c0
movq %rsi, 0x28(%rsp)
xorl %r8d, %r8d
callq 0x76b0
movl %eax, %r14d
shll $0x18, %r14d
cmpl $0xff000000, %r14d      # imm = 0xFF000000
jne 0x2382b
movq 0x34784(%rip), %rax     # 0x57fa0
movl (%rax), %eax
cmpl %ebp, %eax
jl 0x23aa7
jmp 0x23b6c
leaq 0x40(%rsp), %rbx
movq $0x0, 0x20(%rsp)
leaq 0x30(%rsp), %r15
leaq 0xc8(%rsp), %r12
movq 0x3470b(%rip), %rax     # 0x57f58
movq (%rax), %r13
testq %r13, %r13
leaq 0x207e7(%rip), %rax     # 0x44041
cmoveq %rax, %r13
movq %rbx, 0x30(%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 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0x238a1
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x7420
sarl $0x18, %r14d
leal -0x6e(%r14), %eax
cmpl $0x6, %eax
ja 0x238ce
leaq 0x1fe8f(%rip), %rcx     # 0x43744
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
leaq 0x351e5(%rip), %rsi     # 0x58aa8
jmpq *%rax
leaq 0x351bc(%rip), %rsi     # 0x58a88
jmp 0x238ea
cmpl $0x3f, %r14d
je 0x23a7f
cmpl $0x68, %r14d
jne 0x238f2
jmp 0x23b52
leaq 0x3517e(%rip), %rsi     # 0x58a68
movq %r12, %rdi
callq 0x7540
movq %r12, %rdi
movq 0x34684(%rip), %rsi     # 0x57f80
callq 0x75d0
leaq 0x140(%rsp), %rdi
callq 0x7130
movl %ebp, %edi
movq 0x28(%rsp), %rsi
leaq 0x1ffff(%rip), %rdx     # 0x4391b
leaq 0x33e9d(%rip), %rcx     # 0x577c0
xorl %r8d, %r8d
callq 0x76b0
movl %eax, %r14d
shll $0x18, %r14d
cmpl $0xff000000, %r14d      # imm = 0xFF000000
jne 0x23846
jmp 0x23a8b
movq %r12, %rdi
leaq 0x90(%rsp), %rsi
callq 0x7540
leaq 0xb0(%rsp), %r14
movq %r14, %rdi
leaq 0x90(%rsp), %rsi
movl $0x2c, %edx
callq 0x91c1
movq 0x10(%rsp), %rax
movapd 0xb0(%rsp), %xmm0
movq 0xc0(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movaps (%rsp), %xmm1
movapd %xmm0, (%rsp)
movaps %xmm1, 0x30(%rsp)
movq %rax, 0x40(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0xb0(%rsp)
movq $0x0, 0xc0(%rsp)
movq %r15, %rdi
callq 0xd1ac
movq %r14, %rdi
callq 0xd1ac
movq (%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 0xdf1c
leaq 0x70(%rsp), %rdi
callq 0xc6c7
cvttsd2si %xmm0, %eax
movl %eax, 0x34a6f(%rip)     # 0x58470
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x23a23
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x7420
movq (%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 0xdf1c
leaq 0x50(%rsp), %rdi
callq 0xc6c7
cvttsd2si %xmm0, %eax
movl %eax, 0x34a1a(%rip)     # 0x58474
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x238f2
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x7420
jmp 0x238f2
movb $0x1, %al
movq %rax, 0x20(%rsp)
jmp 0x238f2
movq 0x3450e(%rip), %rax     # 0x57fa0
movl (%rax), %eax
cmpl %ebp, %eax
jge 0x23b6c
testb $0x1, 0x20(%rsp)
jne 0x23b84
leaq 0xd8(%rsp), %r13
movq 0x344ea(%rip), %rbx     # 0x57fa0
leaq 0xc8(%rsp), %r14
leaq 0x30(%rsp), %r15
leaq 0x34f86(%rip), %r12     # 0x58a50
leal 0x1(%rax), %ecx
movl %ecx, (%rbx)
cltq
movq 0x28(%rsp), %rcx
movq (%rcx,%rax,8), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x887c
movq %r12, %rdi
movq %r14, %rsi
callq 0x23e2e
movq 0xc8(%rsp), %rdi
cmpq %r13, %rdi
je 0x23b0d
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x7420
movl (%rbx), %eax
cmpl %ebp, %eax
jl 0x23aca
movq %rsp, %rdi
callq 0xd1ac
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x23b40
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 0x3443f(%rip), %rdi     # 0x57f98
leaq 0x1fdcc(%rip), %rsi     # 0x4392c
callq 0x7400
xorl %edi, %edi
callq 0x7510
movq 0x34475(%rip), %rdi     # 0x57fe8
leaq 0x1df28(%rip), %rsi     # 0x41aa2
movl $0x12, %edx
callq 0x74b0
movq 0x3440d(%rip), %rdi     # 0x57f98
leaq 0x1d8a8(%rip), %rsi     # 0x4143a
movl $0x1, %edx
callq 0x74b0
movq 0x343f5(%rip), %rdi     # 0x57f98
leaq 0x1fd82(%rip), %rsi     # 0x4392c
callq 0x7400
movl $0x1, %edi
callq 0x7510
jmp 0x23c1b
jmp 0x23c41
jmp 0x23c1b
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x23c1e
movq 0x60(%rsp), %rsi
jmp 0x23bf8
movq %rax, %rbx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x23c1e
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x7420
jmp 0x23c1e
jmp 0x23c41
movq %rbx, %rcx
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %rcx, %rdi
je 0x23c66
movq 0x40(%rsp), %rsi
jmp 0x23c5e
movq %rax, %rbx
movq 0x3435b(%rip), %rsi     # 0x57f80
leaq 0xc8(%rsp), %rdi
callq 0x75d0
leaq 0x140(%rsp), %rdi
callq 0x7130
jmp 0x23c66
movq %rax, %rbx
jmp 0x23c66
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %r13, %rdi
je 0x23c66
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x7420
movq %rsp, %rdi
callq 0xd1ac
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x23c93
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x7420
movq %rbx, %rdi
callq 0x7740