// File: millanek[P]evo/evo_getInformativePairs.cpp
// Function: parseInfoPairsOptions(int, char**)
void parseInfoPairsOptions(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 '?': die = true; break;
            case 'n': arg >> opt::runName; break;
            case OPT_HAPCUT: opt::hapcutFormat = true; break;
            case 'h':
                std::cout << INFOPAIRS_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" << INFOPAIRS_USAGE_MESSAGE;
        exit(EXIT_FAILURE);
    }
    
    // Parse the input filenames
    opt::hetFile = argv[optind++];
    opt::pairtoolsFile = argv[optind++];
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1f0, %rsp            # imm = 0x1F0
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movb $0x0, -0x11(%rbp)
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
movq 0x814ac(%rip), %rdx     # 0x199a90
leaq 0x80475(%rip), %rcx     # 0x198a60
xorl %eax, %eax
movl %eax, %r8d
callq 0xaa40
movb %al, -0x12(%rbp)
movsbl %al, %eax
cmpl $-0x1, %eax
je 0x11879e
movq 0x80985(%rip), %rax     # 0x198f90
cmpq $0x0, (%rax)
je 0x118624
movq 0x80978(%rip), %rax     # 0x198f90
movq (%rax), %rax
movq %rax, -0x1d8(%rbp)
jmp 0x118634
leaq 0x1d8b4(%rip), %rax     # 0x135edf
movq %rax, -0x1d8(%rbp)
jmp 0x118634
movq -0x1d8(%rbp), %rax
movq %rax, -0x1e8(%rbp)
leaq -0x1b9(%rbp), %rdi
movq %rdi, -0x1e0(%rbp)
callq 0xab60
movq -0x1e8(%rbp), %rsi
movq -0x1e0(%rbp), %rdx
leaq -0x1b8(%rbp), %rdi
callq 0x2d6c0
jmp 0x118671
leaq -0x198(%rbp), %rdi
leaq -0x1b8(%rbp), %rsi
movl $0x8, %edx
callq 0xaaa0
jmp 0x11868b
leaq -0x1b8(%rbp), %rdi
callq 0xac88
leaq -0x1b9(%rbp), %rdi
callq 0xa640
movsbl -0x12(%rbp), %eax
movl %eax, -0x1ec(%rbp)
testl %eax, %eax
je 0x118768
jmp 0x1186b7
movl -0x1ec(%rbp), %eax
subl $0x3f, %eax
je 0x118728
jmp 0x1186c4
movl -0x1ec(%rbp), %eax
subl $0x68, %eax
je 0x118771
jmp 0x1186d5
movl -0x1ec(%rbp), %eax
subl $0x6e, %eax
je 0x11872e
jmp 0x11878d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c8(%rbp)
movl %eax, -0x1cc(%rbp)
jmp 0x118717
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c8(%rbp)
movl %eax, -0x1cc(%rbp)
leaq -0x1b8(%rbp), %rdi
callq 0xac88
leaq -0x1b9(%rbp), %rdi
callq 0xa640
jmp 0x118889
movb $0x1, -0x11(%rbp)
jmp 0x11878d
leaq 0x83073(%rip), %rsi     # 0x19b7a8
leaq -0x198(%rbp), %rdi
callq 0xa750
jmp 0x118743
jmp 0x11878d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c8(%rbp)
movl %eax, -0x1cc(%rbp)
leaq -0x198(%rbp), %rdi
callq 0xa290
jmp 0x118889
movb $0x1, 0x83059(%rip)     # 0x19b7c8
jmp 0x11878d
movq 0x81320(%rip), %rsi     # 0x199a98
movq 0x80839(%rip), %rdi     # 0x198fb8
callq 0xa5c0
jmp 0x118786
xorl %edi, %edi
callq 0xa700
leaq -0x198(%rbp), %rdi
callq 0xa290
jmp 0x1185d6
movl -0x4(%rbp), %eax
movq 0x80818(%rip), %rcx     # 0x198fc0
subl (%rcx), %eax
cmpl $0x2, %eax
jge 0x1187c8
movq 0x8083a(%rip), %rdi     # 0x198ff0
leaq 0x19c6d(%rip), %rsi     # 0x13242a
callq 0xa5c0
movb $0x1, -0x11(%rbp)
jmp 0x1187f2
movl -0x4(%rbp), %eax
movq 0x807ee(%rip), %rcx     # 0x198fc0
subl (%rcx), %eax
cmpl $0x2, %eax
jle 0x1187f0
movq 0x80810(%rip), %rdi     # 0x198ff0
leaq 0x19c56(%rip), %rsi     # 0x13243d
callq 0xa5c0
movb $0x1, -0x11(%rbp)
jmp 0x1187f2
testb $0x1, -0x11(%rbp)
je 0x118824
movq 0x807b9(%rip), %rdi     # 0x198fb8
leaq 0x17087(%rip), %rsi     # 0x12f88d
callq 0xa5c0
movq %rax, %rdi
movq 0x81283(%rip), %rsi     # 0x199a98
callq 0xa5c0
movl $0x1, %edi
callq 0xa700
movq -0x10(%rbp), %rax
movq 0x80791(%rip), %rcx     # 0x198fc0
movl (%rcx), %ecx
movl %ecx, %esi
addl $0x1, %esi
movq 0x80783(%rip), %rdx     # 0x198fc0
movl %esi, (%rdx)
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x82f1b(%rip), %rdi     # 0x19b768
callq 0xa810
movq -0x10(%rbp), %rax
movq 0x80763(%rip), %rcx     # 0x198fc0
movl (%rcx), %ecx
movl %ecx, %esi
addl $0x1, %esi
movq 0x80755(%rip), %rdx     # 0x198fc0
movl %esi, (%rdx)
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x82f0d(%rip), %rdi     # 0x19b788
callq 0xa810
addq $0x1f0, %rsp            # imm = 0x1F0
popq %rbp
retq
movq -0x1c8(%rbp), %rdi
callq 0xab50
nopw %cs:(%rax,%rax)
nop