// File: millanek[P]Dsuite/Dsuite_fBranch.cpp
// Function: parseFbranchOptions(int, char**)
void parseFbranchOptions(int argc, char** argv) {
    bool die = false;
    std::vector<string> windowSizeStep;
    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 'p': arg >> opt::pthresh; break;
            case 'Z': opt::printZb = true; break;
            case 'P': opt::printPb = true; break;
            case 'h':
                std::cout << BRANCHSCORE_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" << BRANCHSCORE_USAGE_MESSAGE;
        exit(EXIT_FAILURE);
    }
    
    // Parse the input filenames
    opt::treeFile = argv[optind++];
    opt::DvalsFile = argv[optind++]; 
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x220, %rsp            # imm = 0x220
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movb $0x0, -0x11(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x11d80
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
movq 0x78603(%rip), %rdx     # 0xbf6b0
leaq 0x777ac(%rip), %rcx     # 0xbe860
xorl %eax, %eax
movl %eax, %r8d
callq 0x8970
movb %al, -0x31(%rbp)
movsbl %al, %eax
cmpl $-0x1, %eax
je 0x4725e
movq 0x77e94(%rip), %rax     # 0xbef68
cmpq $0x0, (%rax)
je 0x470ed
movq 0x77e87(%rip), %rax     # 0xbef68
movq (%rax), %rax
movq %rax, -0x1f8(%rbp)
jmp 0x470fd
leaq 0x44275(%rip), %rax     # 0x8b369
movq %rax, -0x1f8(%rbp)
jmp 0x470fd
movq -0x1f8(%rbp), %rax
movq %rax, -0x208(%rbp)
leaq -0x1d9(%rbp), %rdi
movq %rdi, -0x200(%rbp)
callq 0x8a60
movq -0x208(%rbp), %rsi
movq -0x200(%rbp), %rdx
leaq -0x1d8(%rbp), %rdi
callq 0x9a00
jmp 0x4713a
leaq -0x1b8(%rbp), %rdi
leaq -0x1d8(%rbp), %rsi
movl $0x8, %edx
callq 0x89a0
jmp 0x47154
leaq -0x1d8(%rbp), %rdi
callq 0x8c08
leaq -0x1d9(%rbp), %rdi
callq 0x8610
movsbl -0x31(%rbp), %eax
addl $-0x3f, %eax
movl %eax, %ecx
movq %rcx, -0x210(%rbp)
subl $0x31, %eax
ja 0x4724d
movq -0x210(%rbp), %rax
leaq 0x43e45(%rip), %rcx     # 0x8afd8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1e8(%rbp)
movl %eax, -0x1ec(%rbp)
jmp 0x471ce
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1e8(%rbp)
movl %eax, -0x1ec(%rbp)
leaq -0x1d8(%rbp), %rdi
callq 0x8c08
leaq -0x1d9(%rbp), %rdi
callq 0x8610
jmp 0x4736c
movb $0x1, -0x11(%rbp)
jmp 0x4724d
leaq 0x784bc(%rip), %rsi     # 0xbf6a8
leaq -0x1b8(%rbp), %rdi
callq 0x84a0
jmp 0x471fa
jmp 0x4724d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1e8(%rbp)
movl %eax, -0x1ec(%rbp)
leaq -0x1b8(%rbp), %rdi
callq 0x8290
jmp 0x4736c
movb $0x1, 0x78ce2(%rip)     # 0xbff08
jmp 0x4724d
movb $0x1, 0x78cda(%rip)     # 0xbff09
jmp 0x4724d
movq 0x78480(%rip), %rsi     # 0xbf6b8
movq 0x77d69(%rip), %rdi     # 0xbefa8
callq 0x8590
jmp 0x47246
xorl %edi, %edi
callq 0x86e0
leaq -0x1b8(%rbp), %rdi
callq 0x8290
jmp 0x4709f
movl -0x4(%rbp), %eax
movq 0x77d48(%rip), %rcx     # 0xbefb0
subl (%rcx), %eax
cmpl $0x2, %eax
jge 0x472a1
movq 0x77d7a(%rip), %rdi     # 0xbeff0
leaq 0x417c5(%rip), %rsi     # 0x88a42
callq 0x8590
jmp 0x47284
movb $0x1, -0x11(%rbp)
jmp 0x472cd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1e8(%rbp)
movl %eax, -0x1ec(%rbp)
jmp 0x4736c
movl -0x4(%rbp), %eax
movq 0x77d05(%rip), %rcx     # 0xbefb0
subl (%rcx), %eax
cmpl $0x2, %eax
jle 0x472cb
movq 0x77d37(%rip), %rdi     # 0xbeff0
leaq 0x41795(%rip), %rsi     # 0x88a55
callq 0x8590
jmp 0x472c7
movb $0x1, -0x11(%rbp)
jmp 0x472cd
testb $0x1, -0x11(%rbp)
je 0x4730e
movq 0x77cce(%rip), %rdi     # 0xbefa8
leaq 0x41159(%rip), %rsi     # 0x8843a
callq 0x8590
movq %rax, -0x218(%rbp)
jmp 0x472ef
movq -0x218(%rbp), %rdi
movq 0x783bb(%rip), %rsi     # 0xbf6b8
callq 0x8590
jmp 0x47304
movl $0x1, %edi
callq 0x86e0
movq -0x10(%rbp), %rax
movq 0x77c97(%rip), %rdx     # 0xbefb0
movslq (%rdx), %rcx
movl %ecx, %esi
incl %esi
movl %esi, (%rdx)
movq (%rax,%rcx,8), %rsi
leaq 0x78b9b(%rip), %rdi     # 0xbfec8
callq 0x87c0
jmp 0x47334
movq -0x10(%rbp), %rax
movq 0x77c71(%rip), %rdx     # 0xbefb0
movslq (%rdx), %rcx
movl %ecx, %esi
incl %esi
movl %esi, (%rdx)
movq (%rax,%rcx,8), %rsi
leaq 0x78b95(%rip), %rdi     # 0xbfee8
callq 0x87c0
jmp 0x4735a
leaq -0x30(%rbp), %rdi
callq 0x10760
addq $0x220, %rsp            # imm = 0x220
popq %rbp
retq
leaq -0x30(%rbp), %rdi
callq 0x10760
movq -0x1e8(%rbp), %rdi
callq 0x8a50
nopw %cs:(%rax,%rax)