// File: /workspace/github_cpp_makefile_star2_O2/millanek[P]evo/process_vcf_reorder.cpp
// Function: parseReorderOptions(int, char**)
void parseReorderOptions(int argc, char** argv) {
    bool die = false;
    for (char c; (c = getopt_long(argc, argv, shortopts, longopts, NULL)) != -1;)
    {
        std::istringstream arg(optarg != NULL ? optarg : "");
        switch (c)
        {
            case 'n': arg >> opt::runName; break;
            case 's': arg >> opt::sampleNameFile; break;
            case '?': die = true; break;
            case 'h': std::cout << REORDER_USAGE_MESSAGE;
                exit(EXIT_SUCCESS);
        }
    }
    if (argc - optind < 2) {
        std::cerr << "missing arguments\n";
        die = true;
    }
    else if (argc - optind > 2)
    {
        std::cerr << "too many arguments\n";
        die = true;
    }
    
    if (die) {
        std::cout << "\n" << REORDER_USAGE_MESSAGE;
        exit(EXIT_FAILURE);
    }
    
    // Parse the input filenames
    opt::vcfFile = argv[optind++];
    opt::newOrderFile = argv[optind++];
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rsi, %rbx
movl %edi, %ebp
movq $0x0, 0x10(%rsp)
leaq 0x18(%rsp), %r12
leaq 0x38(%rsp), %r14
pushq $0x8
popq %r15
movl %ebp, %edi
movq %rbx, %rsi
leaq 0x41908(%rip), %rdx     # 0xaa301
leaq 0x73360(%rip), %rcx     # 0xdbd60
xorl %r8d, %r8d
callq 0x8790
movl %eax, %r13d
shll $0x18, %eax
cmpl $0xff000000, %eax       # imm = 0xFF000000
je 0x68aa1
movq 0x74570(%rip), %rax     # 0xdcf90
movq (%rax), %rsi
testq %rsi, %rsi
leaq 0x313f2(%rip), %rax     # 0x99e1f
cmoveq %rax, %rsi
movq %r12, %rdi
leaq 0xf(%rsp), %rdx
callq 0x21904
movq %r14, %rdi
movq %r12, %rsi
movl %r15d, %edx
callq 0x87e0
movsbl %r13b, %r13d
movq %r12, %rdi
callq 0x8978
cmpl $0x3f, %r13d
je 0x68a7c
cmpl $0x6e, %r13d
je 0x68a85
leaq 0x75ead(%rip), %rsi     # 0xde918
cmpl $0x73, %r13d
je 0x68a8c
cmpl $0x68, %r13d
jne 0x68a94
jmp 0x68afc
movb $0x1, %al
movq %rax, 0x10(%rsp)
jmp 0x68a94
leaq 0x75eac(%rip), %rsi     # 0xde938
movq %r14, %rdi
callq 0x8570
movq %r14, %rdi
callq 0x8220
jmp 0x689ed
movq 0x74518(%rip), %r14     # 0xdcfc0
movslq (%r14), %rax
subl %eax, %ebp
cmpl $0x2, %ebp
jl 0x68b16
jne 0x68b1f
testb $0x1, 0x10(%rsp)
jne 0x68b32
leal 0x1(%rax), %ecx
movl %ecx, (%r14)
movq (%rbx,%rax,8), %rsi
leaq 0x75e0c(%rip), %rdi     # 0xde8d8
callq 0x88f0
movslq (%r14), %rax
leal 0x1(%rax), %ecx
movl %ecx, (%r14)
movq (%rbx,%rax,8), %rsi
leaq 0x75e13(%rip), %rdi     # 0xde8f8
callq 0x88f0
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x744b5(%rip), %rdi     # 0xdcfb8
leaq 0x417fd(%rip), %rsi     # 0xaa307
callq 0x8480
xorl %edi, %edi
callq 0x8540
leaq 0x2d805(%rip), %rsi     # 0x96322
jmp 0x68b26
leaq 0x2d80f(%rip), %rsi     # 0x96335
movq 0x744bb(%rip), %rdi     # 0xdcfe8
callq 0x8480
movq 0x7447f(%rip), %rdi     # 0xdcfb8
leaq 0x2ae0d(%rip), %rsi     # 0x9394d
callq 0x8480
leaq 0x417bb(%rip), %rsi     # 0xaa307
movq %rax, %rdi
callq 0x8480
pushq $0x1
popq %rdi
callq 0x8540
jmp 0x68b5e
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x8220
jmp 0x68b7f
movq %rax, %rbx
jmp 0x68b7f
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x8978
movq %rbx, %rdi
callq 0x8870
nop