// File: /workspace/github_c_makefile_star2_O1/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 0x413e
movq %rsi, %rbx
movl %edi, %ebp
movq 0x8(%rsi), %r14
leaq 0x178f4(%rip), %rsi     # 0x1b730
movq %r14, %rdi
callq 0x3310
testl %eax, %eax
je 0x413e
addq $0x8, %rbx
leaq 0x178dc(%rip), %rsi     # 0x1b733
movq %r14, %rdi
callq 0x3310
testl %eax, %eax
je 0x403d
leaq 0x178c8(%rip), %rsi     # 0x1b736
movq %r14, %rdi
callq 0x3310
testl %eax, %eax
jne 0x4145
leaq 0x50(%rsp), %r14
movq %r14, %rdi
callq 0x42f6
decl %ebp
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x13380
leaq 0x50(%rsp), %rdi
callq 0x1351c
movl 0xb4(%rsp), %esi
leaq 0x190(%rsp), %rdi
callq 0x4402
leaq 0x100(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
leaq 0xf0(%rsp), %rdi
callq 0x46f2
leaq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rdx
addq %rsi, %rdx
callq 0x46f2
leaq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
addq %rsi, %rdx
callq 0x46f2
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 0xdefa
movq 0x130(%rsp), %rdi
cmpq %rbx, %rdi
je 0x3f98
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x3230
movq 0x110(%rsp), %rdi
cmpq %r15, %rdi
je 0x3fb5
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x3230
movq 0xf0(%rsp), %rdi
cmpq %r14, %rdi
je 0x3fd2
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x3230
leaq 0x190(%rsp), %rdi
callq 0x4638
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4000
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x3230
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4021
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x3230
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x412e
movq 0x60(%rsp), %rsi
jmp 0x4126
leaq 0x190(%rsp), %r14
movq %r14, %rdi
callq 0x4226
decl %ebp
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x4e6c
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x190(%rsp), %rsi
movq 0x198(%rsp), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x46f2
leaq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq 0x1b0(%rsp), %rsi
movq 0x1b8(%rsp), %rdx
addq %rsi, %rdx
callq 0x46f2
movups 0x1d0(%rsp), %xmm0
movq %rsp, %rsi
movups %xmm0, 0x40(%rsi)
leaq 0x50(%rsp), %rdi
callq 0x5d4c
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x40d6
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3230
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x40ec
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3230
leaq 0x1c0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x410d
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x3230
leaq 0x1a0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x412e
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x3230
xorl %eax, %eax
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x3abc
jmp 0x4160
movq 0xe1ea4(%rip), %rdi     # 0xe5ff0
leaq 0x175e7(%rip), %rsi     # 0x1b73a
callq 0x3210
movq %rax, %rdi
callq 0x3120
movl $0x1, %edi
callq 0x32a0
movq %rax, %rbx
movq %rsp, %rdi
callq 0x42c0
jmp 0x4197
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x4197
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0x4197
jmp 0x4194
movq %rax, %rbx
leaq 0x190(%rsp), %rdi
callq 0x42c0
jmp 0x421d
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x45ea
jmp 0x41ff
movq %rax, %rbx
movq 0x110(%rsp), %rdi
cmpq %r15, %rdi
je 0x41dd
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0x41dd
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
cmpq %r14, %rdi
je 0x41ff
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x3230
jmp 0x41ff
movq %rax, %rbx
leaq 0x190(%rsp), %rdi
callq 0x4638
jmp 0x4213
jmp 0x4210
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x45ea
movq %rbx, %rdi
callq 0x33e0
nop