// File: /workspace/github_cpp_makefile_star2_O3/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 0x3bef(%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 0x3bd2(%rip), %rsi      # 0x15475
movl $0x7, %edx
movq %rbx, %rdi
callq 0xb870
movl (%r14), %esi
movq %rbx, %rdi
callq 0xb530
movq %rax, %r15
leaq 0x3bb8(%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 0x3b84(%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 0x119fe
xorl %r13d, %r13d
leaq 0x3971(%rip), %r15      # 0x152b9
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movq $0x2, 0x10(%rbx,%rcx)
movq -0x18(%rax), %rcx
leaq (%rbx,%rcx), %r12
cmpb $0x0, 0xe1(%rbx,%rcx)
jne 0x11983
movq %r12, %rdi
movl $0x20, %esi
callq 0xb750
movb $0x1, 0xe1(%r12)
movq (%rbx), %rax
movb $0x30, 0xe0(%r12)
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 0x119ef
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 0x11948
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 0x3a5a(%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), %rcx
movl %ebp, 0x18(%rbx,%rcx)
cmpl $0x0, (%r14)
je 0x11aa6
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 0x11a7c
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 0x39bc(%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