// File: /workspace/github_cpp_makefile_star2_O3/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 0x2df2(%rip), %rdx      # 0x5304
callq 0x2050
testl %eax, %eax
js 0x25d6
movl %eax, %r12d
movq 0x5a8f(%rip), %r13      # 0x7fb8
leaq 0x2dd4(%rip), %r15      # 0x5304
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
jae 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
jae 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 0x337a
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 0x2c9b(%rip), %rsi      # 0x530d
callq 0x2180
movq %rax, %rdi
callq 0x20a0
xorl %edi, %edi
callq 0x21f0
movq 0x5963(%rip), %rdi      # 0x7ff0
leaq 0x2d0d(%rip), %rsi      # 0x53a1
callq 0x2180
jmp 0x278b
leaq 0x2cf3(%rip), %rdi      # 0x5398
leaq 0x2c6e(%rip), %rsi      # 0x531a
leaq 0x2c74(%rip), %rcx      # 0x5327
movl $0xca, %edx
callq 0x20e0
leaq 0x2c4f(%rip), %rdi      # 0x5313
leaq 0x2c4f(%rip), %rsi      # 0x531a
leaq 0x2c55(%rip), %rcx      # 0x5327
movl $0xbb, %edx
callq 0x20e0
leaq 0x2cac(%rip), %rdi      # 0x538f
leaq 0x2c30(%rip), %rsi      # 0x531a
leaq 0x2c36(%rip), %rcx      # 0x5327
movl $0xc9, %edx
callq 0x20e0
leaq 0x2c5a(%rip), %rdi      # 0x535c
leaq 0x2c11(%rip), %rsi      # 0x531a
leaq 0x2c17(%rip), %rcx      # 0x5327
movl $0xbc, %edx
callq 0x20e0
leaq 0x2bf2(%rip), %rdi      # 0x5313
leaq 0x2bf2(%rip), %rsi      # 0x531a
leaq 0x2bf8(%rip), %rcx      # 0x5327
movl $0xc2, %edx
callq 0x20e0
leaq 0x2c33(%rip), %rdi      # 0x5373
leaq 0x2bd3(%rip), %rsi      # 0x531a
leaq 0x2bd9(%rip), %rcx      # 0x5327
movl $0xc3, %edx
callq 0x20e0
movq 0x5891(%rip), %rdi      # 0x7ff0
leaq 0x2c49(%rip), %rsi      # 0x53af
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