// File: /workspace/github_c_makefile_star2_O3/fukunagatsu[P]RIblast/main.cpp
// Function: main
int main(int argc, char* argv[]) {
  if(argc == 1 || strcmp(argv[1],"-h") == 0){
    PrintUsage();
    exit(1);
  }
  
  if(strcmp(argv[1],"db") == 0){
    DbConstructionParameters parameters;
    parameters.SetParameters(argc - 1, argv + 1);
    DbConstruction db_construction;
    db_construction.Run(parameters);    
  }else if(strcmp(argv[1],"ris") == 0){
    RnaInteractionSearchParameters parameters;
    parameters.SetParameters(argc - 1, argv + 1);
    parameters.SetDbParameters();
    RnaInteractionSearch rna_interaction_search(parameters.GetHashSize());
    rna_interaction_search.Run(parameters);
  }else{
    cerr << "Error: You must specify the mode of RIblast (db or ris)." << endl;
    exit(1);
  }
  return(0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
cmpl $0x1, %edi
je 0x3f1e
movq %rsi, %rbx
movl %edi, %ebp
movq 0x8(%rsi), %rdi
addq $0x8, %rbx
movzbl (%rdi), %eax
cmpl $0x64, %eax
je 0x3f28
cmpl $0x2d, %eax
jne 0x3f38
cmpb $0x68, 0x1(%rdi)
jne 0x3f38
cmpb $0x0, 0x2(%rdi)
jne 0x3f38
callq 0x3b8c
jmp 0x4227
cmpb $0x62, 0x1(%rdi)
jne 0x3f38
cmpb $0x0, 0x2(%rdi)
je 0x411a
leaq 0x18831(%rip), %rsi     # 0x1c770
callq 0x3310
testl %eax, %eax
jne 0x420c
leaq 0x50(%rsp), %r14
movq %r14, %rdi
callq 0x43bc
decl %ebp
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x15238
leaq 0x50(%rsp), %rdi
callq 0x153d4
movl 0xb4(%rsp), %esi
leaq 0x190(%rsp), %rdi
callq 0x44b4
leaq 0x100(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
leaq 0xf0(%rsp), %rdi
callq 0x479e
leaq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rdx
addq %rsi, %rdx
callq 0x479e
leaq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
addq %rsi, %rdx
callq 0x479e
movups 0xb0(%rsp), %xmm0
movups 0xc0(%rsp), %xmm1
movups 0xd0(%rsp), %xmm2
movups 0xdc(%rsp), %xmm3
leaq 0xf0(%rsp), %rsi
movups %xmm3, 0x8c(%rsi)
movups %xmm2, 0x80(%rsi)
movups %xmm1, 0x70(%rsi)
movups %xmm0, 0x60(%rsi)
leaq 0x190(%rsp), %rdi
callq 0xf5d6
movq 0x130(%rsp), %rdi
cmpq %rbx, %rdi
je 0x4066
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x3230
movq 0x110(%rsp), %rdi
cmpq %r15, %rdi
je 0x4083
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x3230
movq 0xf0(%rsp), %rdi
cmpq %r14, %rdi
je 0x40a0
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x3230
leaq 0x190(%rsp), %rdi
callq 0x46e4
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x40ce
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x3230
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x40ef
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x3230
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x410a
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3230
xorl %eax, %eax
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x190(%rsp), %r14
movq %r14, %rdi
callq 0x42ec
decl %ebp
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x52c4
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x190(%rsp), %rsi
movq 0x198(%rsp), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x479e
leaq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq 0x1b0(%rsp), %rsi
movq 0x1b8(%rsp), %rdx
addq %rsi, %rdx
callq 0x479e
movups 0x1d0(%rsp), %xmm0
movq %rsp, %rsi
movups %xmm0, 0x40(%rsi)
leaq 0x50(%rsp), %rdi
callq 0x61a0
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x41b3
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3230
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x41c9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3230
leaq 0x1c0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x41ea
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x3230
leaq 0x1a0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x410a
movq 0x1a0(%rsp), %rsi
jmp 0x4102
movq 0xe2ddd(%rip), %rdi     # 0xe6ff0
leaq 0x1855a(%rip), %rsi     # 0x1c774
callq 0x3210
movq %rax, %rdi
callq 0x3120
movl $0x1, %edi
callq 0x32a0
movq %rax, %rbx
movq %rsp, %rdi
callq 0x4386
jmp 0x425e
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x425e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0x425e
jmp 0x425b
movq %rax, %rbx
leaq 0x190(%rsp), %rdi
callq 0x4386
jmp 0x42e4
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x4696
jmp 0x42c6
movq %rax, %rbx
movq 0x110(%rsp), %rdi
cmpq %r15, %rdi
je 0x42a4
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0x42a4
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
cmpq %r14, %rdi
je 0x42c6
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0x42c6
movq %rax, %rbx
leaq 0x190(%rsp), %rdi
callq 0x46e4
jmp 0x42da
jmp 0x42d7
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x4696
movq %rbx, %rdi
callq 0x33e0