// File: /workspace/github_cpp_makefile_star2_O1/c2-d2[P]disty/src/main.cpp
// Function: parse_arguments(int, char const**, params_t&)
void parse_arguments(int argc, const char **argv, params_t &params) {
    if (argc==1){
        cerr << USAGE << endl;
        exit(1);
    }

    int c;
    while ((c = getopt(argc, (char *const *)argv, "hvi:s:n:")) >= 0) {
        switch (c) {
            case 'h': {
                cout << USAGE << endl;
                exit(0);
            }
            case 'v': {
                cout << DISTY_VERSION << endl;
                exit(0);
            }
            case 'i': {
                int val=atoi(optarg);
                assert(val>=0);
                assert(val<(int)input_t::_MAX);
                params.input=static_cast<input_t>(val);
                break;
            }
            case 's': {
                int val=atoi(optarg);
                assert(val>=0);
                assert(val<(int)n_strategy_t::_MAX);
                params.n_strategy=static_cast<n_strategy_t>(val);
                break;
            }
            case 'n': {
                float val=atof(optarg);
                assert(val>=0.0);
                assert(val<=1.0);
                params.skip_n=val;
                break;
            }
            case '?': {
                cerr << "Unknown error" << endl;
                exit(1);
            }
            default: {
                cerr << "Unknown option " << c << endl;
                exit(1);
            }
        }
    }

    argc -= optind;
    argv += optind;

    if(argc != 1){
        cerr << USAGE << endl;
        exit(1);
    }
    else {
        params.fasta_fn=string(argv[0]);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
cmpl $0x1, %edi
je 0x2778
movq %rdx, %rbx
movq %rsi, %r14
movl %edi, %ebp
leaq 0x2dbe(%rip), %rdx      # 0x52d0
callq 0x2050
testl %eax, %eax
js 0x25d6
movl %eax, %r12d
movq 0x5a8f(%rip), %r13      # 0x7fb8
leaq 0x2da0(%rip), %r15      # 0x52d0
cmpl $0x6d, %r12d
jle 0x2565
cmpl $0x6e, %r12d
je 0x258e
cmpl $0x73, %r12d
jne 0x265a
movq (%r13), %rdi
callq 0x2260
testl %eax, %eax
js 0x271a
cmpl $0x5, %eax
jge 0x2739
movl %eax, 0x24(%rbx)
jmp 0x25be
cmpl $0x69, %r12d
jne 0x2635
movq (%r13), %rdi
callq 0x2260
testl %eax, %eax
js 0x26bd
cmpl $0x2, %eax
jge 0x26fb
movl %eax, 0x20(%rbx)
jmp 0x25be
movq (%r13), %rdi
callq 0x2210
cvtsd2ss %xmm0, %xmm0
ucomiss 0x2a66(%rip), %xmm0     # 0x5008
jb 0x26dc
movss 0x2a54(%rip), %xmm1     # 0x5004
ucomiss %xmm0, %xmm1
jb 0x269e
movss %xmm0, 0x28(%rbx)
movl %ebp, %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2050
movl %eax, %r12d
testl %eax, %eax
jns 0x2530
movq 0x59f3(%rip), %rax      # 0x7fd0
movslq (%rax), %rax
subl %eax, %ebp
cmpl $0x1, %ebp
jne 0x2778
movq (%r14,%rax,8), %rsi
leaq 0x8(%rsp), %r14
leaq 0x7(%rsp), %rdx
movq %r14, %rdi
callq 0x3386
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2200
movq (%r14), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2626
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21a0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x3f, %r12d
je 0x2686
cmpl $0x68, %r12d
jne 0x2758
movq 0x597c(%rip), %rdi      # 0x7fc8
leaq 0x5b55(%rip), %rsi      # 0x81a8
callq 0x2160
jmp 0x2677
cmpl $0x76, %r12d
jne 0x2758
movq 0x595d(%rip), %rdi      # 0x7fc8
leaq 0x2c67(%rip), %rsi      # 0x52d9
callq 0x2180
movq %rax, %rdi
callq 0x20a0
xorl %edi, %edi
callq 0x21f0
movq 0x5963(%rip), %rdi      # 0x7ff0
leaq 0x2cd9(%rip), %rsi      # 0x536d
callq 0x2180
jmp 0x278b
leaq 0x2cbf(%rip), %rdi      # 0x5364
leaq 0x2c3a(%rip), %rsi      # 0x52e6
leaq 0x2c40(%rip), %rcx      # 0x52f3
movl $0xca, %edx
callq 0x20e0
leaq 0x2c1b(%rip), %rdi      # 0x52df
leaq 0x2c1b(%rip), %rsi      # 0x52e6
leaq 0x2c21(%rip), %rcx      # 0x52f3
movl $0xbb, %edx
callq 0x20e0
leaq 0x2c78(%rip), %rdi      # 0x535b
leaq 0x2bfc(%rip), %rsi      # 0x52e6
leaq 0x2c02(%rip), %rcx      # 0x52f3
movl $0xc9, %edx
callq 0x20e0
leaq 0x2c26(%rip), %rdi      # 0x5328
leaq 0x2bdd(%rip), %rsi      # 0x52e6
leaq 0x2be3(%rip), %rcx      # 0x52f3
movl $0xbc, %edx
callq 0x20e0
leaq 0x2bbe(%rip), %rdi      # 0x52df
leaq 0x2bbe(%rip), %rsi      # 0x52e6
leaq 0x2bc4(%rip), %rcx      # 0x52f3
movl $0xc2, %edx
callq 0x20e0
leaq 0x2bff(%rip), %rdi      # 0x533f
leaq 0x2b9f(%rip), %rsi      # 0x52e6
leaq 0x2ba5(%rip), %rcx      # 0x52f3
movl $0xc3, %edx
callq 0x20e0
movq 0x5891(%rip), %rdi      # 0x7ff0
leaq 0x2c15(%rip), %rsi      # 0x537b
callq 0x2180
movq %rax, %rdi
movl %r12d, %esi
callq 0x22b0
jmp 0x278b
movq 0x5871(%rip), %rdi      # 0x7ff0
leaq 0x5a22(%rip), %rsi      # 0x81a8
callq 0x2160
movq %rax, %rdi
callq 0x20a0
movl $0x1, %edi
callq 0x21f0