// File: /workspace/github_cpp_makefile_star2_O2/soccin[P]BIC-RNAseq/tools/MergeFusion/StandardFusion.cpp
// Function: StandardFusion::StandardFusion(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, CALLER_TYPE, bool, bool, std::map<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, int>>>, std::less<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, std::allocator<std::pair<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, int>>>>>>&)
StandardFusion::StandardFusion(string line, CALLER_TYPE _caller_id, bool bool_normalize_chrom, bool bool_normalize_gene, map<pair<string, string>, map<string, int> >& hugo_map)
{
    init();
    caller_id = _caller_id;
    switch(caller_id)
    {
        case CHIMERASCAN: parseChimerascan(line); break;
        case DEFUSE: parseDefuse(line); break;
        case FUSIONCATCHER: parseFusioncatcher(line); break;
        case FUSIONHUNTER: parseFusionHunter(line); break;
        case MAPSPLICE: parseMapsplice(line); break;
        case STAR: parseStar(line); break;
        default: cerr << "Unknown fusion file type: " << caller_id << endl; exit(1);
    }
    if(bool_normalize_chrom)
        normalize_chrom_name();
    if(bool_normalize_gene)
        normalize_gene_name(hugo_map);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rdi, %rbx
leaq 0x18(%rdi), %rax
movq %rax, 0x8(%rdi)
andq $0x0, 0x10(%rdi)
xorl %eax, %eax
movb %al, 0x18(%rdi)
addq $0x38, %rdi
movq %rdi, 0x28(%rbx)
andq $0x0, 0x30(%rbx)
movb %al, 0x38(%rbx)
leaq 0x70(%rbx), %rdi
movq %rdi, 0x60(%rbx)
andq $0x0, 0x68(%rbx)
movb %al, 0x70(%rbx)
leaq 0x90(%rbx), %rdi
movq %rdi, 0x80(%rbx)
andq $0x0, 0x88(%rbx)
movb %al, 0x90(%rbx)
leaq 0xc0(%rbx), %rdi
movq %rdi, 0xb0(%rbx)
andq $0x0, 0xb8(%rbx)
movb %al, 0xc0(%rbx)
leaq 0xe0(%rbx), %rdi
movq %rdi, 0xd0(%rbx)
andq $0x0, 0xd8(%rbx)
movb %al, 0xe0(%rbx)
leaq 0x100(%rbx), %rdi
movq %rdi, 0xf0(%rbx)
andq $0x0, 0xf8(%rbx)
movb %al, 0x100(%rbx)
leaq 0x120(%rbx), %rdi
movq %rdi, 0x110(%rbx)
andq $0x0, 0x118(%rbx)
movl %ecx, %r12d
movb %al, 0x120(%rbx)
leaq 0x140(%rbx), %rcx
movq %rcx, 0x130(%rbx)
andq $0x0, 0x138(%rbx)
movb %al, 0x140(%rbx)
orq $-0x1, 0xa0(%rbx)
orl $-0x1, 0xa8(%rbx)
orq $-0x1, 0x58(%rbx)
pcmpeqd %xmm0, %xmm0
movdqu %xmm0, 0x48(%rbx)
movl %edx, (%rbx)
cmpl $0x5, %edx
ja 0x65ac
movq %r9, %r14
movl %r8d, %r15d
movl %edx, %eax
leaq 0x318d(%rip), %rcx      # 0x9658
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq -0xf0(%rbp), %r13
movq %r13, %rdi
callq 0x2240
movq %rbx, %rdi
movq %r13, %rsi
callq 0x66e0
jmp 0x6575
leaq -0x90(%rbp), %r13
movq %r13, %rdi
callq 0x2240
movq %rbx, %rdi
movq %r13, %rsi
callq 0x7350
jmp 0x6575
leaq -0xb0(%rbp), %r13
movq %r13, %rdi
callq 0x2240
movq %rbx, %rdi
movq %r13, %rsi
callq 0x70b4
jmp 0x6575
leaq -0x110(%rbp), %r13
movq %r13, %rdi
callq 0x2240
movl $0x3, (%rbx)
jmp 0x6575
leaq -0xd0(%rbp), %r13
movq %r13, %rdi
callq 0x2240
movq %rbx, %rdi
movq %r13, %rsi
callq 0x69cc
jmp 0x6575
leaq -0x70(%rbp), %r13
movq %r13, %rdi
callq 0x2240
movq %rbx, %rdi
movq %r13, %rsi
callq 0x78f2
movq %r13, %rdi
callq 0x2388
testb %r12b, %r12b
je 0x658a
movq %rbx, %rdi
callq 0x7a7e
testb %r15b, %r15b
je 0x659a
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7aa2
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x7a3d(%rip), %rdi      # 0xdff0
leaq 0x30b6(%rip), %rsi      # 0x9670
callq 0x21b0
movl (%rbx), %esi
movq %rax, %rdi
callq 0x22f0
movq %rax, %rdi
callq 0x2100
pushq $0x1
popq %rdi
callq 0x2210
movq %rax, -0x30(%rbp)
leaq -0x70(%rbp), %rdi
jmp 0x6615
movq %rax, -0x30(%rbp)
leaq -0xd0(%rbp), %rdi
jmp 0x6615
movq %rax, -0x30(%rbp)
leaq -0xf0(%rbp), %rdi
jmp 0x6615
movq %rax, -0x30(%rbp)
leaq -0xb0(%rbp), %rdi
jmp 0x6615
movq %rax, -0x30(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x2388
jmp 0x6620
movq %rax, -0x30(%rbp)
leaq 0x8(%rbx), %rax
movq %rax, -0x50(%rbp)
leaq 0x28(%rbx), %rax
movq %rax, -0x48(%rbp)
leaq 0x60(%rbx), %rax
movq %rax, -0x40(%rbp)
leaq 0x80(%rbx), %rax
movq %rax, -0x38(%rbp)
leaq 0xb0(%rbx), %r15
leaq 0xd0(%rbx), %r12
leaq 0xf0(%rbx), %r13
leaq 0x110(%rbx), %r14
addq $0x130, %rbx            # imm = 0x130
movq %rbx, %rdi
callq 0x2388
movq %r14, %rdi
callq 0x2388
movq %r13, %rdi
callq 0x2388
movq %r12, %rdi
callq 0x2388
movq %r15, %rdi
callq 0x2388
movq -0x38(%rbp), %rdi
callq 0x2388
movq -0x40(%rbp), %rdi
callq 0x2388
movq -0x48(%rbp), %rdi
callq 0x2388
movq -0x50(%rbp), %rdi
callq 0x2388
movq -0x30(%rbp), %rdi
callq 0x2300
nop