// File: /workspace/github_cpp_makefile_star2_O2/mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::SaveState::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const
::PROTOBUF_NAMESPACE_ID::uint8* SaveState::_InternalSerialize(
    ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:Rnes.SaveState)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  // optional string saveDate = 1;
  if (cached_has_bits & 0x00000001u) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
      this->_internal_savedate().data(), static_cast<int>(this->_internal_savedate().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
      "Rnes.SaveState.saveDate");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_savedate(), target);
  }

  // optional uint64 gameTime = 2;
  if (cached_has_bits & 0x00000100u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_gametime(), target);
  }

  // optional .Rnes.DmaState dma = 7;
  if (cached_has_bits & 0x00000002u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(
        7, _Internal::dma(this), target, stream);
  }

  // optional .Rnes.CpuState cpu = 8;
  if (cached_has_bits & 0x00000004u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(
        8, _Internal::cpu(this), target, stream);
  }

  // optional .Rnes.ApuState apu = 9;
  if (cached_has_bits & 0x00000008u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(
        9, _Internal::apu(this), target, stream);
  }

  // optional .Rnes.PpuState ppu = 10;
  if (cached_has_bits & 0x00000010u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(
        10, _Internal::ppu(this), target, stream);
  }

  // optional .Rnes.ControllerState controller = 11;
  if (cached_has_bits & 0x00000020u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(
        11, _Internal::controller(this), target, stream);
  }

  // optional .Rnes.CpuMemoryState cpuMem = 12;
  if (cached_has_bits & 0x00000040u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(
        12, _Internal::cpumem(this), target, stream);
  }

  // optional .Rnes.VideoMemoryState vidMem = 13;
  if (cached_has_bits & 0x00000080u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(
        13, _Internal::vidmem(this), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:Rnes.SaveState)
  return target;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movl 0x10(%rdi), %r13d
testb $0x1, %r13b
je 0x259cd
movq 0x18(%r14), %rax
movq (%rax), %rdi
movl 0x8(%rax), %esi
leaq 0x75e6(%rip), %rcx      # 0x2cf92
pushq $0x1
popq %r12
movl %r12d, %edx
callq 0xb1a0
movq 0x18(%r14), %rdx
movq %rbx, %rdi
movl %r12d, %esi
movq %r15, %rcx
callq 0x287fe
movq %rax, %r15
btl $0x8, %r13d
jae 0x259f2
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2682a
movq 0x58(%r14), %rdi
movb $0x10, (%rax)
leaq 0x1(%rax), %rsi
callq 0x28eae
movq %rax, %r15
testb $0x2, %r13b
je 0x25a28
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2682a
movq 0x20(%r14), %r15
movb $0x3a, (%rax)
leaq 0x1(%rax), %rsi
movl 0x14(%r15), %edi
callq 0x28e5c
movq %r15, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x24dae
movq %rax, %r15
testb $0x4, %r13b
je 0x25a5e
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2682a
movq 0x28(%r14), %r15
movb $0x42, (%rax)
leaq 0x1(%rax), %rsi
movl 0x14(%r15), %edi
callq 0x28e5c
movq %r15, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x1de92
movq %rax, %r15
testb $0x8, %r13b
je 0x25a94
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2682a
movq 0x30(%r14), %r15
movb $0x4a, (%rax)
leaq 0x1(%rax), %rsi
movl 0x14(%r15), %edi
callq 0x28e5c
movq %r15, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x201a4
movq %rax, %r15
testb $0x10, %r13b
je 0x25aca
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2682a
movq 0x38(%r14), %r15
movb $0x52, (%rax)
leaq 0x1(%rax), %rsi
movl 0x14(%r15), %edi
callq 0x28e5c
movq %r15, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x214a6
movq %rax, %r15
testb $0x20, %r13b
je 0x25b00
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2682a
movq 0x40(%r14), %r15
movb $0x5a, (%rax)
leaq 0x1(%rax), %rsi
movl 0x14(%r15), %edi
callq 0x28e5c
movq %r15, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x2396c
movq %rax, %r15
testb $0x40, %r13b
je 0x25b36
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2682a
movq 0x48(%r14), %r15
movb $0x62, (%rax)
leaq 0x1(%rax), %rsi
movl 0x14(%r15), %edi
callq 0x28e5c
movq %r15, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x23f2e
movq %rax, %r15
testb %r13b, %r13b
jns 0x25b6b
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2682a
movq 0x50(%r14), %r15
movb $0x6a, (%rax)
leaq 0x1(%rax), %rsi
movl 0x14(%r15), %edi
callq 0x28e5c
movq %r15, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x24662
movq %rax, %r15
movq 0x8(%r14), %rdi
testb $0x1, %dil
jne 0x25b87
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
andq $-0x2, %rdi
addq $0x8, %rdi
movq %r15, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xb260