// File: /workspace/github_cpp_makefile_star2_O3/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 0x48b13(%rip), %rdx     # 0x8fad0
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x669a4
movq (%r14), %r12
movq 0x8(%r14), %rbp
subq %r12, %rbp
cmpq $0xe0, %rbp
jne 0x4734e
leaq 0x40(%rsp), %rdi
callq 0x46342
leaq 0x200(%rsp), %rdi
callq 0x27440
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
subq %rsi, %rdx
sarq $0x5, %rdx
cmpq $0x2, %rdx
jb 0x47376
addq $0x20, %rsi
leaq 0x218(%rsp), %r14
movq %r14, %rdi
callq 0x278a0
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 0x27a70
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
subq %rsi, %rdx
sarq $0x5, %rdx
cmpq $0x3, %rdx
jb 0x4737d
addq $0x40, %rsi
movq %r14, %rdi
callq 0x278a0
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 0x27a70
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
subq %rsi, %rdx
sarq $0x5, %rdx
cmpq $0x4, %rdx
jb 0x47384
addq $0x60, %rsi
movq %r14, %rdi
callq 0x278a0
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 0x27a70
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
subq %rsi, %rdx
sarq $0x5, %rdx
cmpq $0x5, %rdx
jb 0x4738b
subq $-0x80, %rsi
movq %r14, %rdi
callq 0x278a0
leaq 0x4c(%rsp), %rsi
leaq 0x200(%rsp), %r15
movq %r15, %rdi
callq 0x27890
movq 0x200(%rsp), %rax
addq -0x18(%rax), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x27a70
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
subq %rsi, %rdx
sarq $0x5, %rdx
cmpq $0x6, %rdx
jb 0x47392
addq $0xa0, %rsi
movq %r14, %rdi
callq 0x278a0
leaq 0x4e(%rsp), %rsi
leaq 0x200(%rsp), %r14
movq %r14, %rdi
callq 0x27890
movq 0x200(%rsp), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x27a70
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq $0x6, %rdx
jbe 0x47399
movq 0xc8(%rax), %rdx
cmpq 0x48932(%rip), %rdx     # 0x8faf8
jne 0x471e7
testq %rdx, %rdx
je 0x471eb
movq 0x4891c(%rip), %rsi     # 0x8faf0
movq 0xc0(%rax), %rdi
callq 0x275f0
testl %eax, %eax
sete %al
jmp 0x471ed
xorl %eax, %eax
jmp 0x471ed
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 0x2f10a
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 0x4b5c4
leaq 0x1d0(%rsp), %r13
leaq 0x70(%rsp), %r15
movq %r13, %rdi
movq %r15, %rsi
callq 0x4b7aa
leaq 0xa0(%rsp), %rdi
leaq 0x20(%rsp), %rsi
leaq 0x1a0(%rsp), %rdx
callq 0x4cdfa
leaq 0x120(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x4ac0a
leaq 0x120(%rsp), %rsi
movq %rbx, %rdi
callq 0x4ce8c
leaq 0x170(%rsp), %rdi
movq 0x10(%rdi), %rsi
callq 0x4b57c
leaq 0x158(%rsp), %rdi
callq 0x4a984
leaq 0x130(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x472c9
callq 0x27560
leaq 0xf0(%rsp), %rdi
movq 0x10(%rdi), %rsi
callq 0x4b57c
leaq 0xd8(%rsp), %rdi
callq 0x4a984
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x472fd
callq 0x27560
movq 0x1e0(%rsp), %rsi
movq %r13, %rdi
callq 0x4b57c
movq %r12, %rdi
callq 0x4a984
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x47329
callq 0x27560
leaq 0x200(%rsp), %rdi
callq 0x27490
movq 0x80(%rsp), %rsi
movq %r15, %rdi
callq 0x4b57c
movq %r14, %rdi
callq 0x4a984
cmpq $0xe0, %rbp
sete %bl
leaq 0x8(%rsp), %rdi
callq 0x2f0c0
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 0x4739e
movl $0x2, %esi
jmp 0x4739e
movl $0x3, %esi
jmp 0x4739e
movl $0x4, %esi
jmp 0x4739e
movl $0x5, %esi
jmp 0x4739e
movl $0x6, %esi
leaq 0x2a3c1(%rip), %rdi     # 0x71766
xorl %eax, %eax
callq 0x278b0
movq %rax, %rbx
movq %r14, %rdi
callq 0x4a984
jmp 0x474be
jmp 0x474d0
movq %rax, %rbx
movq %r12, %rdi
callq 0x4a984
jmp 0x47484
jmp 0x474d0
movq %rax, %rbx
jmp 0x473eb
movq %rax, %rbx
leaq 0xd8(%rsp), %rdi
callq 0x4a984
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x47461
callq 0x27560
jmp 0x47461
jmp 0x474d0
movq %rax, %rbx
jmp 0x4741d
movq %rax, %rbx
leaq 0x158(%rsp), %rdi
callq 0x4a984
leaq 0x130(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4744f
callq 0x27560
jmp 0x4744f
jmp 0x474d0
movq %rax, %rbx
leaq 0x120(%rsp), %rdi
callq 0x4ac9a
jmp 0x4744f
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x4ad06
jmp 0x47461
movq %rax, %rbx
leaq 0x1a0(%rsp), %rdi
callq 0x4ad72
jmp 0x47484
movq %rax, %rbx
movq %r12, %rdi
callq 0x4a984
jmp 0x47484
jmp 0x474d0
jmp 0x474a4
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x474a7
callq 0x27560
jmp 0x474a7
movq %rax, %rbx
jmp 0x474be
movq %rax, %rbx
jmp 0x474b4
movq %rax, %rbx
leaq 0x200(%rsp), %rdi
callq 0x27490
leaq 0x40(%rsp), %rdi
callq 0x4ad72
leaq 0x8(%rsp), %rdi
callq 0x2f0c0
movq %rbx, %rdi
callq 0x27b10
movq %rax, %rdi
callq 0x2e1cd