// File: /workspace/github_cpp_makefile_star2_O1/Kingsford-Group[P]ghost2/src/gzWriter.hpp
// Function: GzWriter::writeData(boost::unordered::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<LevelData, std::allocator<LevelData>>, boost::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::equal_to<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, std::vector<LevelData, std::allocator<LevelData>>>>>)
void GzWriter::writeData(levelMap levelmap)
{
  levelMap::iterator iter = levelmap.begin(),
  iend = levelmap.end();
  for(; iter != iend; iter++)
  {
    writeString(iter->first);
    for(int i=1;i<=(iter->second).size();i++)
    {
      writeInt(i);
      int sz = (iter->second)[i-1].vnames.size();
      writeInt(sz);
      for(int j=0;j<sz;j++)
        writeString((iter->second)[i-1].vnames[j]);
      sz = (iter->second)[i-1].spectrum.size();
      writeInt(sz);
      for(int j=0;j<sz;j++)
        writeDouble((iter->second)[i-1].spectrum[j]);
      writeDouble((iter->second)[i-1].density);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x348de
movq %rax, %r12
testq %rax, %rax
je 0x11f79
leaq 0x48(%rsp), %r13
movq %r13, 0x38(%rsp)
movq 0x10(%r12), %rsi
movq 0x18(%r12), %rdx
addq %rsi, %rdx
leaq 0x38(%rsp), %r15
movq %r15, %rdi
callq 0x28d6a
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11d64
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0x11e11
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xd550
movq 0x38(%r12), %rax
cmpq 0x30(%r12), %rax
je 0x11f67
movl $0x1, %r14d
movq %r12, 0x8(%rsp)
movq %rbx, %rdi
movl %r14d, %esi
callq 0x1dd0c
movq %r14, 0x10(%rsp)
leaq -0x1(%r14), %rax
movq 0x30(%r12), %rcx
imulq $0x38, %rax, %r13
movq 0x8(%rcx,%r13), %rbp
subq (%rcx,%r13), %rbp
shrq $0x5, %rbp
movq %rbx, %r14
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1dd0c
testl %ebp, %ebp
leaq 0x28(%rsp), %r15
jle 0x11ed3
andl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
movl $0x8, %r12d
movq 0x8(%rsp), %rax
movq 0x30(%rax), %rax
movq (%rax,%r13), %rax
movq %r15, 0x18(%rsp)
movq -0x8(%rax,%r12), %rsi
movq (%rax,%r12), %rdx
addq %rsi, %rdx
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x28d6a
movq %r14, %rdi
movq %rbx, %rsi
callq 0x11d64
movq 0x18(%rsp), %rdi
cmpq %r15, %rdi
je 0x11eca
movq 0x28(%rsp), %rsi
incq %rsi
callq 0xd550
leaq 0x28(%rsp), %r15
addq $0x20, %r12
decq %rbp
jne 0x11e78
movq 0x8(%rsp), %r12
movq 0x30(%r12), %rax
movq 0x20(%rax,%r13), %rbp
subq 0x18(%rax,%r13), %rbp
shrq $0x3, %rbp
movq %r14, %rbx
movq %r14, %rdi
movl %ebp, %esi
callq 0x1dd0c
testl %ebp, %ebp
jle 0x11f25
andl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
xorl %r15d, %r15d
movq 0x30(%r12), %rax
movq 0x18(%rax,%r13), %rax
movsd (%rax,%r15,8), %xmm0
movq %rbx, %rdi
callq 0x1dd46
incq %r15
cmpq %r15, %rbp
jne 0x11f05
movq 0x30(%r12), %rax
movsd 0x30(%rax,%r13), %xmm0
movq %rbx, %rdi
callq 0x1dd46
movq 0x10(%rsp), %rsi
leaq 0x1(%rsi), %r14
movq 0x38(%r12), %rcx
subq 0x30(%r12), %rcx
sarq $0x3, %rcx
movabsq $0x6db6db6db6db6db7, %rdx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rdx, %rcx
cmpq %rsi, %rcx
ja 0x11e2c
movq (%r12), %r12
testq %r12, %r12
leaq 0x48(%rsp), %r13
jne 0x11dd0
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rdi
callq 0x1d63c
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
jne 0x11faf
jmp 0x11fbb
movq %rax, %rbx
movq 0x18(%rsp), %rdi
movq %r15, %r13
cmpq %r15, %rdi
je 0x11fbb
movq (%r13), %rsi
incq %rsi
callq 0xd550
movq %rbx, %rdi
callq 0xd9c0