// File: Unreality3D[P]Unreality3D/indie-studio/include/Network/protocol/IndieProtocol.hpp
// Function: IndieProtocol::operator<<(std::ostream&, IndieProtocol::Serialized const&)
inline std::ostream &operator<< (std::ostream &s, IndieProtocol::Serialized const &data)
{
  auto flags = s.flags();

  s << std::endl << "===== SERIALIZED PACKET =====" << std::endl;
  s << "size : " << data.size << " bytes" << std::endl;

  s << "hex:" << std::endl;
  for (int i = 0; i < data.size; ++i)
    {
      s << std::setw(2) << std::setfill('0') << std::hex << (int)(data.data[i]) << " ";

      if (i%16 == 15)
	s << std::endl;
    }
  s << std::endl << "raw : " << std::endl;

  s.flags(flags);
  for (int i = 0; i < data.size; ++i)
    {
      s << data.data[i];
    }
  s << std::endl << "===== END OF PACKET =====" << std::endl;
  return s;
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq 0x30(%rsp), %rdi
movq (%rdi), %rax
addq -0x18(%rax), %rdi
callq 0x2bc00
movl %eax, 0x24(%rsp)
movq 0x30(%rsp), %rdi
movq 0x15741(%rip), %rsi     # 0x52f60
callq 0x2a150
movq %rax, %rdi
leaq 0x8cc9(%rip), %rsi      # 0x464f7
callq 0x2a030
movq %rax, %rdi
movq 0x15723(%rip), %rsi     # 0x52f60
callq 0x2a150
movq 0x30(%rsp), %rdi
leaq 0x8cc7(%rip), %rsi      # 0x46515
callq 0x2a030
movq %rax, %rdi
movq 0x28(%rsp), %rax
movl (%rax), %esi
callq 0x2a990
movq %rax, %rdi
leaq 0x8cb1(%rip), %rsi      # 0x4651d
callq 0x2a030
movq %rax, %rdi
movq 0x156e5(%rip), %rsi     # 0x52f60
callq 0x2a150
movq 0x30(%rsp), %rdi
leaq 0x8c98(%rip), %rsi      # 0x46524
callq 0x2a030
movq %rax, %rdi
movq 0x156c5(%rip), %rsi     # 0x52f60
callq 0x2a150
movl $0x0, 0x20(%rsp)
movl 0x20(%rsp), %eax
movq 0x28(%rsp), %rcx
cmpl (%rcx), %eax
jae 0x3d96b
movq 0x30(%rsp), %rax
movq %rax, (%rsp)
movl $0x2, %edi
callq 0x2bd50
movq (%rsp), %rdi
movl %eax, 0x1c(%rsp)
movl 0x1c(%rsp), %esi
callq 0x2a460
movq %rax, 0x8(%rsp)
movl $0x30, %edi
callq 0x2a6d0
movq 0x8(%rsp), %rdi
movb %al, 0x1b(%rsp)
movzbl 0x1b(%rsp), %esi
callq 0x2b080
movq %rax, %rdi
movq 0x156e7(%rip), %rsi     # 0x52ff0
callq 0x28980
movq %rax, %rdi
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rax
movslq 0x20(%rsp), %rcx
movsbl (%rax,%rcx), %esi
callq 0x2b5c0
movq %rax, %rdi
leaq 0x8b44(%rip), %rsi      # 0x46476
callq 0x2a030
movl 0x20(%rsp), %eax
movl $0x10, %ecx
cltd
idivl %ecx
cmpl $0xf, %edx
jne 0x3d959
movq 0x30(%rsp), %rdi
movq 0x1560c(%rip), %rsi     # 0x52f60
callq 0x2a150
jmp 0x3d95b
movl 0x20(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x20(%rsp)
jmp 0x3d8a8
movq 0x30(%rsp), %rdi
movq 0x155e9(%rip), %rsi     # 0x52f60
callq 0x2a150
movq %rax, %rdi
leaq 0x8ba3(%rip), %rsi      # 0x46529
callq 0x2a030
movq %rax, %rdi
movq 0x155cb(%rip), %rsi     # 0x52f60
callq 0x2a150
movq 0x30(%rsp), %rdi
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl 0x24(%rsp), %esi
callq 0x296b0
movl $0x0, 0x14(%rsp)
movl 0x14(%rsp), %eax
movq 0x28(%rsp), %rcx
cmpl (%rcx), %eax
jae 0x3d9ed
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rax
movslq 0x14(%rsp), %rcx
movsbl (%rax,%rcx), %esi
callq 0x2a4d0
movl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x3d9b7
movq 0x30(%rsp), %rdi
movq 0x15567(%rip), %rsi     # 0x52f60
callq 0x2a150
movq %rax, %rdi
leaq 0x8b28(%rip), %rsi      # 0x46530
callq 0x2a030
movq %rax, %rdi
movq 0x15549(%rip), %rsi     # 0x52f60
callq 0x2a150
movq 0x30(%rsp), %rax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)