// File: millanek[P]evo/evo_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 '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
movq %rsp, %rbp
subq $0x2f0, %rsp            # imm = 0x2F0
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movb $0x0, -0x11(%rbp)
leaq -0x38(%rbp), %rdi
callq 0xa820
leaq -0x50(%rbp), %rdi
callq 0x48da0
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
movq 0xa0022(%rip), %rdx     # 0x1999c8
leaq 0x9eb53(%rip), %rcx     # 0x198500
xorl %eax, %eax
movl %eax, %r8d
callq 0xaa40
movb %al, -0x51(%rbp)
movsbl %al, %eax
cmpl $-0x1, %eax
je 0xf9ca0
movq 0x9f5c3(%rip), %rax     # 0x198f90
cmpq $0x0, (%rax)
je 0xf99e6
movq 0x9f5b6(%rip), %rax     # 0x198f90
movq (%rax), %rax
movq %rax, -0x2a0(%rbp)
jmp 0xf99f6
leaq 0x3c4f2(%rip), %rax     # 0x135edf
movq %rax, -0x2a0(%rbp)
jmp 0xf99f6
movq -0x2a0(%rbp), %rax
movq %rax, -0x2b0(%rbp)
leaq -0x1f9(%rbp), %rdi
movq %rdi, -0x2a8(%rbp)
callq 0xab60
movq -0x2b0(%rbp), %rsi
movq -0x2a8(%rbp), %rdx
leaq -0x1f8(%rbp), %rdi
callq 0x2d6c0
jmp 0xf9a33
leaq -0x1d8(%rbp), %rdi
leaq -0x1f8(%rbp), %rsi
movl $0x8, %edx
callq 0xaaa0
jmp 0xf9a4d
leaq -0x1f8(%rbp), %rdi
callq 0xac88
leaq -0x1f9(%rbp), %rdi
callq 0xa640
movsbl -0x51(%rbp), %eax
movl %eax, -0x2b4(%rbp)
subl $0x3f, %eax
je 0xf9aeb
jmp 0xf9a76
movl -0x2b4(%rbp), %eax
subl $0x68, %eax
je 0xf9c62
jmp 0xf9a87
movl -0x2b4(%rbp), %eax
subl $0x6e, %eax
je 0xf9af4
jmp 0xf9a94
movl -0x2b4(%rbp), %eax
subl $0x73, %eax
je 0xf9b25
jmp 0xf9c7e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x208(%rbp)
movl %eax, -0x20c(%rbp)
jmp 0xf9ada
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x208(%rbp)
movl %eax, -0x20c(%rbp)
leaq -0x1f8(%rbp), %rdi
callq 0xac88
leaq -0x1f9(%rbp), %rdi
callq 0xa640
jmp 0xf9e1d
movb $0x1, -0x11(%rbp)
jmp 0xf9c7e
leaq 0xa176d(%rip), %rsi     # 0x19b268
leaq -0x1d8(%rbp), %rdi
callq 0xa750
jmp 0xf9b09
jmp 0xf9c7e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x208(%rbp)
movl %eax, -0x20c(%rbp)
jmp 0xf9c8f
leaq -0x1d8(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0xa750
jmp 0xf9b37
leaq -0x228(%rbp), %rdi
leaq -0x38(%rbp), %rsi
movl $0x2c, %edx
callq 0x7bbe0
jmp 0xf9b4e
leaq -0x50(%rbp), %rdi
movq %rdi, -0x2c0(%rbp)
leaq -0x228(%rbp), %rsi
movq %rsi, -0x2c8(%rbp)
callq 0x50c30
movq -0x2c8(%rbp), %rdi
callq 0x3dfa0
movq -0x2c0(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x3d940
movq %rax, %rsi
leaq -0x248(%rbp), %rdi
callq 0xa250
jmp 0xf9b99
leaq -0x248(%rbp), %rdi
callq 0x7bab0
movsd %xmm0, -0x2d0(%rbp)
jmp 0xf9baf
movsd -0x2d0(%rbp), %xmm0
cvttsd2si %xmm0, %eax
movl %eax, 0x9fdff(%rip)     # 0x1999c0
leaq -0x248(%rbp), %rdi
callq 0xac88
leaq -0x50(%rbp), %rdi
movl $0x1, %esi
callq 0x3d940
movq %rax, %rsi
leaq -0x268(%rbp), %rdi
callq 0xa250
jmp 0xf9bec
leaq -0x268(%rbp), %rdi
callq 0x7bab0
movsd %xmm0, -0x2d8(%rbp)
jmp 0xf9c02
movsd -0x2d8(%rbp), %xmm0
cvttsd2si %xmm0, %eax
movl %eax, 0x9fdb0(%rip)     # 0x1999c4
leaq -0x268(%rbp), %rdi
callq 0xac88
jmp 0xf9c7e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x208(%rbp)
movl %eax, -0x20c(%rbp)
leaq -0x248(%rbp), %rdi
callq 0xac88
jmp 0xf9c8f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x208(%rbp)
movl %eax, -0x20c(%rbp)
leaq -0x268(%rbp), %rdi
callq 0xac88
jmp 0xf9c8f
movq 0x9fd67(%rip), %rsi     # 0x1999d0
movq 0x9f348(%rip), %rdi     # 0x198fb8
callq 0xa5c0
jmp 0xf9c77
xorl %edi, %edi
callq 0xa700
leaq -0x1d8(%rbp), %rdi
callq 0xa290
jmp 0xf9998
leaq -0x1d8(%rbp), %rdi
callq 0xa290
jmp 0xf9e1d
movl -0x4(%rbp), %eax
movq 0x9f316(%rip), %rcx     # 0x198fc0
subl (%rcx), %eax
movl %eax, -0x26c(%rbp)
cmpl $0x1, -0x26c(%rbp)
jge 0xf9ced
movq 0x9f32e(%rip), %rdi     # 0x198ff0
leaq 0x38761(%rip), %rsi     # 0x13242a
callq 0xa5c0
jmp 0xf9cd0
movb $0x1, -0x11(%rbp)
jmp 0xf9ced
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x208(%rbp)
movl %eax, -0x20c(%rbp)
jmp 0xf9e1d
testb $0x1, -0x11(%rbp)
je 0xf9d2e
movq 0x9f2be(%rip), %rdi     # 0x198fb8
leaq 0x35b8c(%rip), %rsi     # 0x12f88d
callq 0xa5c0
movq %rax, -0x2e0(%rbp)
jmp 0xf9d0f
movq -0x2e0(%rbp), %rdi
movq 0x9fcb3(%rip), %rsi     # 0x1999d0
callq 0xa5c0
jmp 0xf9d24
movl $0x1, %edi
callq 0xa700
jmp 0xf9d30
movq 0x9f289(%rip), %rax     # 0x198fc0
movl (%rax), %eax
cmpl -0x4(%rbp), %eax
jge 0xf9e02
movq -0x10(%rbp), %rax
movq 0x9f273(%rip), %rdx     # 0x198fc0
movslq (%rdx), %rcx
movl %ecx, %esi
incl %esi
movl %esi, (%rdx)
movq (%rax,%rcx,8), %rax
movq %rax, -0x2f0(%rbp)
leaq -0x291(%rbp), %rdi
movq %rdi, -0x2e8(%rbp)
callq 0xab60
movq -0x2f0(%rbp), %rsi
movq -0x2e8(%rbp), %rdx
leaq -0x290(%rbp), %rdi
callq 0x2d6c0
jmp 0xf9d90
leaq 0xa14b9(%rip), %rdi     # 0x19b250
leaq -0x290(%rbp), %rsi
callq 0x5f980
jmp 0xf9da5
leaq -0x290(%rbp), %rdi
callq 0xac88
leaq -0x291(%rbp), %rdi
callq 0xa640
jmp 0xf9d30
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x208(%rbp)
movl %eax, -0x20c(%rbp)
jmp 0xf9df4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x208(%rbp)
movl %eax, -0x20c(%rbp)
leaq -0x290(%rbp), %rdi
callq 0xac88
leaq -0x291(%rbp), %rdi
callq 0xa640
jmp 0xf9e1d
leaq -0x50(%rbp), %rdi
callq 0x3dfa0
leaq -0x38(%rbp), %rdi
callq 0xac88
addq $0x2f0, %rsp            # imm = 0x2F0
popq %rbp
retq
leaq -0x50(%rbp), %rdi
callq 0x3dfa0
leaq -0x38(%rbp), %rdi
callq 0xac88
movq -0x208(%rbp), %rdi
callq 0xab50
nopl (%rax,%rax)