// File: /workspace/github_cpp_makefile_star2_O2/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x380, %rsp            # imm = 0x380
movq %rdx, %rbx
leaq 0x46be6(%rip), %rdx     # 0x95b10
movq %rsp, %r14
movq %r14, %rdi
callq 0x67dca
movq 0x8(%r14), %r13
subq (%r14), %r13
cmpq $0xe0, %r13
jne 0x4f17e
movq %rsp, %rdi
xorl %esi, %esi
callq 0x51b40
movq %rax, %r14
leaq 0x38(%rsp), %rdi
callq 0x4e5ce
leaq 0xf8(%rsp), %rdi
callq 0x35430
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x51b40
leaq 0x110(%rsp), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x358d0
leaq 0x3c(%rsp), %rsi
leaq 0xf8(%rsp), %r12
movq %r12, %rdi
callq 0x353a0
movq 0xf8(%rsp), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x35ac0
movq %rsp, %rdi
pushq $0x2
popq %rsi
callq 0x51b40
movq %r15, %rdi
movq %rax, %rsi
callq 0x358d0
leaq 0xf8(%rsp), %r12
leaq 0x38(%rsp), %rsi
movq %r12, %rdi
callq 0x353a0
movq 0xf8(%rsp), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x35ac0
movq %rsp, %rdi
pushq $0x3
popq %rsi
callq 0x51b40
movq %r15, %rdi
movq %rax, %rsi
callq 0x358d0
leaq 0x40(%rsp), %rsi
leaq 0xf8(%rsp), %r12
movq %r12, %rdi
callq 0x353a0
movq 0xf8(%rsp), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x35ac0
movq %rsp, %rdi
pushq $0x4
popq %rsi
callq 0x51b40
movq %r15, %rdi
movq %rax, %rsi
callq 0x358d0
leaq 0x44(%rsp), %rsi
leaq 0xf8(%rsp), %r12
movq %r12, %rdi
callq 0x358c0
movq 0xf8(%rsp), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x35ac0
movq %rsp, %rdi
pushq $0x5
popq %rsi
callq 0x51b40
movq %r15, %rdi
movq %rax, %rsi
callq 0x358d0
leaq 0x46(%rsp), %rsi
leaq 0xf8(%rsp), %r15
movq %r15, %rdi
callq 0x358c0
movq 0xf8(%rsp), %rax
addq -0x18(%rax), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x35ac0
movq %rsp, %rdi
pushq $0x6
popq %rsi
callq 0x51b40
leaq 0x46a64(%rip), %rsi     # 0x95b30
movq %rax, %rdi
callq 0x3a2a9
movb %al, 0x48(%rsp)
leaq 0x18(%rsp), %rdi
movq %r14, %rsi
callq 0x35810
leaq 0x98(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x51b62
leaq 0x280(%rsp), %rdi
leaq 0x18(%rsp), %rsi
leaq 0x98(%rsp), %rdx
callq 0x53bba
leaq 0x300(%rsp), %rdi
leaq 0x280(%rsp), %rsi
callq 0x51bc0
leaq 0x300(%rsp), %rsi
movq %rbx, %rdi
callq 0x53bf8
leaq 0x300(%rsp), %rdi
callq 0x51c02
leaq 0x280(%rsp), %rdi
callq 0x51c3c
leaq 0x98(%rsp), %rdi
callq 0x51c76
leaq 0x18(%rsp), %rdi
callq 0x35730
leaq 0xf8(%rsp), %rdi
callq 0x35490
leaq 0x38(%rsp), %rdi
callq 0x51c76
cmpq $0xe0, %r13
sete %bl
movq %rsp, %rdi
callq 0x3abf0
movl %ebx, %eax
addq $0x380, %rsp            # imm = 0x380
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x300(%rsp), %rdi
callq 0x51c02
jmp 0x4f1c6
jmp 0x4f1ec
jmp 0x4f1f6
movq %rax, %rbx
jmp 0x4f1e0
movq %rax, %rbx
jmp 0x4f1d3
movq %rax, %rbx
leaq 0x280(%rsp), %rdi
callq 0x51c3c
leaq 0x98(%rsp), %rdi
callq 0x51c76
leaq 0x18(%rsp), %rdi
callq 0x35730
jmp 0x4f1f9
movq %rax, %rbx
jmp 0x4f210
movq %rax, %rbx
jmp 0x4f206
movq %rax, %rbx
leaq 0xf8(%rsp), %rdi
callq 0x35490
leaq 0x38(%rsp), %rdi
callq 0x51c76
movq %rsp, %rdi
callq 0x3abf0
movq %rbx, %rdi
callq 0x35b50
movq %rax, %rdi
callq 0x3a198