// File: /workspace/github_cpp_makefile_star2_O1/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
movl 0x18(%rbx,%rax), %ebp
movl $0xa, %esi
callq 0xb750
movsbl %al, %esi
movq %rbx, %rdi
callq 0xb040
movq %rax, %rdi
callq 0xb540
movq %rax, %r15
leaq 0x3c0d(%rip), %rsi      # 0x15457
movl $0x1d, %edx
movq %rax, %rdi
callq 0xb870
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0xb750
movsbl %al, %esi
movq %r15, %rdi
callq 0xb040
movq %rax, %rdi
callq 0xb540
leaq 0x3bf0(%rip), %rsi      # 0x15475
movl $0x7, %edx
movq %rbx, %rdi
callq 0xb870
movl (%r14), %esi
movq %rbx, %rdi
callq 0xb530
movq %rax, %r15
leaq 0x3bd6(%rip), %rsi      # 0x1547d
movl $0x6, %edx
movq %rax, %rdi
callq 0xb870
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0xb750
movsbl %al, %esi
movq %r15, %rdi
callq 0xb040
movq %rax, %rdi
callq 0xb540
leaq 0x3ba2(%rip), %rsi      # 0x15484
movl $0x4, %edx
movq %rbx, %rdi
callq 0xb870
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0xb750
movsbl %al, %esi
movq %rbx, %rdi
callq 0xb040
movq %rax, %rdi
callq 0xb540
cmpl $0x0, (%r14)
je 0x119e8
xorl %r13d, %r13d
leaq 0x398f(%rip), %r15      # 0x152b9
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movq $0x2, 0x10(%rbx,%rcx)
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %r12
cmpb $0x0, 0xe1(%rbx,%rax)
jne 0x1196a
movq %r12, %rdi
movl $0x20, %esi
callq 0xb750
movb %al, 0xe0(%r12)
movb $0x1, 0xe1(%r12)
movb $0x30, 0xe0(%r12)
movq (%rbx), %rax
movq -0x18(%rax), %rax
movl 0x18(%rbx,%rax), %ecx
andl $-0x4b, %ecx
orl $0x8, %ecx
movl %ecx, 0x18(%rbx,%rax)
movq 0x8(%r14), %rax
movsbl (%rax,%r13), %esi
movq %rbx, %rdi
callq 0xbc80
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0xb870
movl %r13d, %eax
notl %eax
testb $0xf, %al
jne 0x119d9
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0xb750
movsbl %al, %esi
movq %rbx, %rdi
callq 0xb040
movq %rax, %rdi
callq 0xb540
incq %r13
movl (%r14), %eax
cmpq %rax, %r13
jb 0x1192a
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0xb750
movsbl %al, %esi
movq %rbx, %rdi
callq 0xb040
movq %rax, %rdi
callq 0xb540
movq %rax, %r15
leaq 0x3a70(%rip), %rsi      # 0x15489
movl $0x6, %edx
movq %rax, %rdi
callq 0xb870
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0xb750
movsbl %al, %esi
movq %r15, %rdi
callq 0xb040
movq %rax, %rdi
callq 0xb540
movq (%rbx), %rax
movq -0x18(%rax), %rax
movl %ebp, 0x18(%rbx,%rax)
cmpl $0x0, (%r14)
je 0x11a8d
xorl %r12d, %r12d
leaq 0x7(%rsp), %r15
movq 0x8(%r14), %rax
movb (%rax,%r12), %al
movb %al, 0x7(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0xb870
incq %r12
movl (%r14), %eax
cmpq %rax, %r12
jb 0x11a66
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0xb750
movsbl %al, %esi
movq %rbx, %rdi
callq 0xb040
movq %rax, %rdi
callq 0xb540
movq %rax, %r14
leaq 0x39d2(%rip), %rsi      # 0x15490
movl $0x19, %edx
movq %rax, %rdi
callq 0xb870
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0xb750
movsbl %al, %esi
movq %r14, %rdi
callq 0xb040
movq %rax, %rdi
callq 0xb540
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq