// File: /workspace/github_cpp_makefile_star2_O1/zeeev[P]DASVC/bamtools/src/toolkit/bamtools_resolve.cpp
// Function: BamTools::ResolveTool::StatsFileReader::ParseReadGroupLine(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>>, ReadGroupResolver, 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, ReadGroupResolver>>>&)
bool ResolveTool::StatsFileReader::ParseReadGroupLine(const string& line,
                                                      map<string, ReadGroupResolver>& readGroups)
{
    // split read group data in to fields
    vector<string> fields = Utilities::Split(line, WHITESPACE_CHARS);
    if ( fields.size() != NUM_READGROUPS_FIELDS ) return false;

    // retrieve RG name
    const string& name = fields.at(0);

    // populate RG's 'resolver' data
    ReadGroupResolver resolver;

    stringstream dataStream;
    dataStream.str(fields.at(1));
    dataStream >> resolver.MedianFragmentLength;
    dataStream.clear();

    dataStream.str(fields.at(2));
    dataStream >> resolver.MinFragmentLength;
    dataStream.clear();

    dataStream.str(fields.at(3));
    dataStream >> resolver.MaxFragmentLength;
    dataStream.clear();

    dataStream.str(fields.at(4));
    dataStream >> resolver.TopModelId;
    dataStream.clear();

    dataStream.str(fields.at(5));
    dataStream >> resolver.NextTopModelId;
    dataStream.clear();

    resolver.IsAmbiguous = ( fields.at(6) == TRUE_KEYWORD );

    // store RG entry and return success
    readGroups.insert( make_pair<string, ReadGroupResolver>(name, resolver) );
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x388, %rsp            # imm = 0x388
movq %rdx, %rbx
leaq 0x49a15(%rip), %rdx     # 0x90ad8
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x66f48
movq (%r14), %r12
movq 0x8(%r14), %rbp
subq %r12, %rbp
cmpq $0xe0, %rbp
jne 0x47454
leaq 0x40(%rsp), %rdi
callq 0x4645a
leaq 0x200(%rsp), %rdi
callq 0x27440
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
subq %rsi, %rdx
sarq $0x5, %rdx
cmpq $0x2, %rdx
jb 0x4747c
addq $0x20, %rsi
leaq 0x218(%rsp), %r14
movq %r14, %rdi
callq 0x278b0
leaq 0x44(%rsp), %rsi
leaq 0x200(%rsp), %r15
movq %r15, %rdi
callq 0x273a0
movq 0x200(%rsp), %rax
addq -0x18(%rax), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x27a80
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
subq %rsi, %rdx
sarq $0x5, %rdx
cmpq $0x3, %rdx
jb 0x47483
addq $0x40, %rsi
movq %r14, %rdi
callq 0x278b0
leaq 0x200(%rsp), %r15
leaq 0x40(%rsp), %rsi
movq %r15, %rdi
callq 0x273a0
movq 0x200(%rsp), %rax
addq -0x18(%rax), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x27a80
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
subq %rsi, %rdx
sarq $0x5, %rdx
cmpq $0x4, %rdx
jb 0x4748a
addq $0x60, %rsi
movq %r14, %rdi
callq 0x278b0
leaq 0x48(%rsp), %rsi
leaq 0x200(%rsp), %r15
movq %r15, %rdi
callq 0x273a0
movq 0x200(%rsp), %rax
addq -0x18(%rax), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x27a80
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
subq %rsi, %rdx
sarq $0x5, %rdx
cmpq $0x5, %rdx
jb 0x47491
subq $-0x80, %rsi
movq %r14, %rdi
callq 0x278b0
leaq 0x4c(%rsp), %rsi
leaq 0x200(%rsp), %r15
movq %r15, %rdi
callq 0x278a0
movq 0x200(%rsp), %rax
addq -0x18(%rax), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x27a80
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
subq %rsi, %rdx
sarq $0x5, %rdx
cmpq $0x6, %rdx
jb 0x47498
addq $0xa0, %rsi
movq %r14, %rdi
callq 0x278b0
leaq 0x4e(%rsp), %rsi
leaq 0x200(%rsp), %r14
movq %r14, %rdi
callq 0x278a0
movq 0x200(%rsp), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x27a80
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq $0x6, %rdx
jbe 0x4749f
movq 0xc8(%rax), %rdx
cmpq 0x49834(%rip), %rdx     # 0x90b00
jne 0x472ed
testq %rdx, %rdx
je 0x472f1
movq 0x4981e(%rip), %rsi     # 0x90af8
movq 0xc0(%rax), %rdi
callq 0x275f0
testl %eax, %eax
sete %al
jmp 0x472f3
xorl %eax, %eax
jmp 0x472f3
movb $0x1, %al
movb %al, 0x50(%rsp)
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0x2f122
leaq 0x58(%rsp), %r14
movzwl -0x8(%r14), %eax
leaq 0x1b8(%rsp), %r12
movw %ax, -0x8(%r12)
movups -0x18(%r14), %xmm0
movaps %xmm0, -0x18(%r12)
movq %r12, %rdi
movq %r14, %rsi
callq 0x4b6b2
leaq 0x1d0(%rsp), %r13
leaq 0x70(%rsp), %r15
movq %r13, %rdi
movq %r15, %rsi
callq 0x4b898
leaq 0xa0(%rsp), %rdi
leaq 0x20(%rsp), %rsi
leaq 0x1a0(%rsp), %rdx
callq 0x4cf54
leaq 0x120(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x4acd8
leaq 0x120(%rsp), %rsi
movq %rbx, %rdi
callq 0x4cfe6
leaq 0x170(%rsp), %rdi
movq 0x10(%rdi), %rsi
callq 0x4b66a
leaq 0x158(%rsp), %rdi
callq 0x4aa80
leaq 0x130(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x473cf
callq 0x27560
leaq 0xf0(%rsp), %rdi
movq 0x10(%rdi), %rsi
callq 0x4b66a
leaq 0xd8(%rsp), %rdi
callq 0x4aa80
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x47403
callq 0x27560
movq 0x1e0(%rsp), %rsi
movq %r13, %rdi
callq 0x4b66a
movq %r12, %rdi
callq 0x4aa80
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x4742f
callq 0x27560
leaq 0x200(%rsp), %rdi
callq 0x27490
movq 0x80(%rsp), %rsi
movq %r15, %rdi
callq 0x4b66a
movq %r14, %rdi
callq 0x4aa80
cmpq $0xe0, %rbp
sete %bl
leaq 0x8(%rsp), %rdi
callq 0x2f0de
movl %ebx, %eax
addq $0x388, %rsp            # imm = 0x388
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %esi
jmp 0x474a4
movl $0x2, %esi
jmp 0x474a4
movl $0x3, %esi
jmp 0x474a4
movl $0x4, %esi
jmp 0x474a4
movl $0x5, %esi
jmp 0x474a4
movl $0x6, %esi
leaq 0x2b2bb(%rip), %rdi     # 0x72766
xorl %eax, %eax
callq 0x278c0
movq %rax, %rbx
movq %r14, %rdi
callq 0x4aa80
jmp 0x475c4
jmp 0x475d6
movq %rax, %rbx
movq %r12, %rdi
callq 0x4aa80
jmp 0x4758a
jmp 0x475d6
movq %rax, %rbx
jmp 0x474f1
movq %rax, %rbx
leaq 0xd8(%rsp), %rdi
callq 0x4aa80
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x47567
callq 0x27560
jmp 0x47567
jmp 0x475d6
movq %rax, %rbx
jmp 0x47523
movq %rax, %rbx
leaq 0x158(%rsp), %rdi
callq 0x4aa80
leaq 0x130(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x47555
callq 0x27560
jmp 0x47555
jmp 0x475d6
movq %rax, %rbx
leaq 0x120(%rsp), %rdi
callq 0x4ad68
jmp 0x47555
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x4add4
jmp 0x47567
movq %rax, %rbx
leaq 0x1a0(%rsp), %rdi
callq 0x4ae40
jmp 0x4758a
movq %rax, %rbx
movq %r12, %rdi
callq 0x4aa80
jmp 0x4758a
jmp 0x475d6
jmp 0x475aa
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x475ad
callq 0x27560
jmp 0x475ad
movq %rax, %rbx
jmp 0x475c4
movq %rax, %rbx
jmp 0x475ba
movq %rax, %rbx
leaq 0x200(%rsp), %rdi
callq 0x27490
leaq 0x40(%rsp), %rdi
callq 0x4ae40
leaq 0x8(%rsp), %rdi
callq 0x2f0de
movq %rbx, %rdi
callq 0x27b20
movq %rax, %rdi
callq 0x2e1ed