// File: 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
subq $0x290, %rsp            # imm = 0x290
movq %rdi, -0x258(%rbp)
movq %rsi, -0x260(%rbp)
movq %rdx, -0x268(%rbp)
movq -0x258(%rbp), %rax
movq %rax, -0x278(%rbp)
movl $0x0, -0x26c(%rbp)
addq $0x10, %rax
movq %rax, -0x248(%rbp)
movl $0x0, -0x24c(%rbp)
movq -0x248(%rbp), %rax
movslq -0x24c(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x26c(%rbp)
movl -0x26c(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x5c93b
movq -0x278(%rbp), %rdi
callq 0x63970
movq %rax, %rdi
callq 0xe320
movq -0x278(%rbp), %rdi
movq %rax, -0x288(%rbp)
callq 0x63970
movq %rax, %rdi
callq 0xe670
movq -0x288(%rbp), %rdi
movl %eax, %esi
movl $0x1, %edx
leaq 0xea48(%rip), %rcx      # 0x6b342
callq 0x64ac0
movq -0x278(%rbp), %rdi
movq -0x268(%rbp), %rax
movq %rax, -0x280(%rbp)
callq 0x63970
movq -0x280(%rbp), %rdi
movq %rax, %rdx
movq -0x260(%rbp), %rcx
movl $0x1, %esi
callq 0x64af0
movq %rax, -0x260(%rbp)
movl -0x26c(%rbp), %eax
andl $0x100, %eax            # imm = 0x100
cmpl $0x0, %eax
je 0x5ca25
movq -0x268(%rbp), %rdi
movq -0x260(%rbp), %rsi
callq 0x5f2c0
movq -0x278(%rbp), %rdi
movq %rax, -0x260(%rbp)
callq 0x64cb0
movq %rax, %rcx
movq -0x260(%rbp), %rax
movl $0x2, -0x22c(%rbp)
movq %rcx, -0x238(%rbp)
movq %rax, -0x240(%rbp)
movl -0x22c(%rbp), %ecx
movq -0x240(%rbp), %rax
movl %ecx, -0xa4(%rbp)
movl $0x0, -0xa8(%rbp)
movq %rax, -0xb0(%rbp)
movl -0xa4(%rbp), %edi
movl -0xa8(%rbp), %esi
callq 0x65ca0
movl %eax, %ecx
movq -0xb0(%rbp), %rax
movl %ecx, -0x94(%rbp)
movq %rax, -0xa0(%rbp)
movl -0x94(%rbp), %edi
movq -0xa0(%rbp), %rsi
callq 0x65cc0
movq %rax, -0x240(%rbp)
movq -0x238(%rbp), %rcx
movq -0x240(%rbp), %rax
movq %rcx, -0x18(%rbp)
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x65da0
movq %rax, -0x260(%rbp)
movl -0x26c(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x5cb33
movq -0x268(%rbp), %rdi
movq -0x260(%rbp), %rsi
callq 0x5f2c0
movq -0x278(%rbp), %rdi
movq %rax, -0x260(%rbp)
callq 0x5b420
movq %rax, %rdx
movq -0x260(%rbp), %rcx
movq -0x268(%rbp), %rax
movl $0x7, -0x1e4(%rbp)
movq %rdx, -0x1f0(%rbp)
movq %rcx, -0x1f8(%rbp)
movq %rax, -0x200(%rbp)
movl -0x1e4(%rbp), %ecx
movq -0x1f8(%rbp), %rax
movl %ecx, -0xb4(%rbp)
movl $0x2, -0xb8(%rbp)
movq %rax, -0xc0(%rbp)
movl -0xb4(%rbp), %edi
movl -0xb8(%rbp), %esi
callq 0x65ca0
movl %eax, %ecx
movq -0xc0(%rbp), %rax
movl %ecx, -0x84(%rbp)
movq %rax, -0x90(%rbp)
movl -0x84(%rbp), %edi
movq -0x90(%rbp), %rsi
callq 0x65cc0
movq %rax, -0x1f8(%rbp)
movq -0x1f0(%rbp), %rdi
callq 0x65580
movl %eax, %edi
movq -0x1f8(%rbp), %rsi
callq 0x65cc0
movq %rax, -0x1f8(%rbp)
movq -0x1f0(%rbp), %rdi
movq -0x1f8(%rbp), %rsi
movq -0x200(%rbp), %rdx
callq 0x5a8e0
movq %rax, -0x260(%rbp)
movl -0x26c(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x5cc35
movq -0x268(%rbp), %rdi
movq -0x260(%rbp), %rsi
callq 0x5f2c0
movq -0x278(%rbp), %rdi
movq %rax, -0x260(%rbp)
callq 0x5b440
movq %rax, %rdx
movq -0x260(%rbp), %rcx
movq -0x268(%rbp), %rax
movl $0x8, -0x1c4(%rbp)
movq %rdx, -0x1d0(%rbp)
movq %rcx, -0x1d8(%rbp)
movq %rax, -0x1e0(%rbp)
movl -0x1c4(%rbp), %ecx
movq -0x1d8(%rbp), %rax
movl %ecx, -0xc4(%rbp)
movl $0x2, -0xc8(%rbp)
movq %rax, -0xd0(%rbp)
movl -0xc4(%rbp), %edi
movl -0xc8(%rbp), %esi
callq 0x65ca0
movl %eax, %ecx
movq -0xd0(%rbp), %rax
movl %ecx, -0x74(%rbp)
movq %rax, -0x80(%rbp)
movl -0x74(%rbp), %edi
movq -0x80(%rbp), %rsi
callq 0x65cc0
movq %rax, -0x1d8(%rbp)
movq -0x1d0(%rbp), %rdi
callq 0x65030
movl %eax, %edi
movq -0x1d8(%rbp), %rsi
callq 0x65cc0
movq %rax, -0x1d8(%rbp)
movq -0x1d0(%rbp), %rdi
movq -0x1d8(%rbp), %rsi
movq -0x1e0(%rbp), %rdx
callq 0x46610
movq %rax, -0x260(%rbp)
movl -0x26c(%rbp), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x5cd37
movq -0x268(%rbp), %rdi
movq -0x260(%rbp), %rsi
callq 0x5f2c0
movq -0x278(%rbp), %rdi
movq %rax, -0x260(%rbp)
callq 0x5b460
movq %rax, %rdx
movq -0x260(%rbp), %rcx
movq -0x268(%rbp), %rax
movl $0x9, -0x1a4(%rbp)
movq %rdx, -0x1b0(%rbp)
movq %rcx, -0x1b8(%rbp)
movq %rax, -0x1c0(%rbp)
movl -0x1a4(%rbp), %ecx
movq -0x1b8(%rbp), %rax
movl %ecx, -0xd4(%rbp)
movl $0x2, -0xd8(%rbp)
movq %rax, -0xe0(%rbp)
movl -0xd4(%rbp), %edi
movl -0xd8(%rbp), %esi
callq 0x65ca0
movl %eax, %ecx
movq -0xe0(%rbp), %rax
movl %ecx, -0x64(%rbp)
movq %rax, -0x70(%rbp)
movl -0x64(%rbp), %edi
movq -0x70(%rbp), %rsi
callq 0x65cc0
movq %rax, -0x1b8(%rbp)
movq -0x1b0(%rbp), %rdi
callq 0x651c0
movl %eax, %edi
movq -0x1b8(%rbp), %rsi
callq 0x65cc0
movq %rax, -0x1b8(%rbp)
movq -0x1b0(%rbp), %rdi
movq -0x1b8(%rbp), %rsi
movq -0x1c0(%rbp), %rdx
callq 0x4d080
movq %rax, -0x260(%rbp)
movl -0x26c(%rbp), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x5ce39
movq -0x268(%rbp), %rdi
movq -0x260(%rbp), %rsi
callq 0x5f2c0
movq -0x278(%rbp), %rdi
movq %rax, -0x260(%rbp)
callq 0x5b480
movq %rax, %rdx
movq -0x260(%rbp), %rcx
movq -0x268(%rbp), %rax
movl $0xa, -0x184(%rbp)
movq %rdx, -0x190(%rbp)
movq %rcx, -0x198(%rbp)
movq %rax, -0x1a0(%rbp)
movl -0x184(%rbp), %ecx
movq -0x198(%rbp), %rax
movl %ecx, -0xe4(%rbp)
movl $0x2, -0xe8(%rbp)
movq %rax, -0xf0(%rbp)
movl -0xe4(%rbp), %edi
movl -0xe8(%rbp), %esi
callq 0x65ca0
movl %eax, %ecx
movq -0xf0(%rbp), %rax
movl %ecx, -0x54(%rbp)
movq %rax, -0x60(%rbp)
movl -0x54(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x65cc0
movq %rax, -0x198(%rbp)
movq -0x190(%rbp), %rdi
callq 0x65280
movl %eax, %edi
movq -0x198(%rbp), %rsi
callq 0x65cc0
movq %rax, -0x198(%rbp)
movq -0x190(%rbp), %rdi
movq -0x198(%rbp), %rsi
movq -0x1a0(%rbp), %rdx
callq 0x50930
movq %rax, -0x260(%rbp)
movl -0x26c(%rbp), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x5cf3b
movq -0x268(%rbp), %rdi
movq -0x260(%rbp), %rsi
callq 0x5f2c0
movq -0x278(%rbp), %rdi
movq %rax, -0x260(%rbp)
callq 0x5b4a0
movq %rax, %rdx
movq -0x260(%rbp), %rcx
movq -0x268(%rbp), %rax
movl $0xb, -0x164(%rbp)
movq %rdx, -0x170(%rbp)
movq %rcx, -0x178(%rbp)
movq %rax, -0x180(%rbp)
movl -0x164(%rbp), %ecx
movq -0x178(%rbp), %rax
movl %ecx, -0xf4(%rbp)
movl $0x2, -0xf8(%rbp)
movq %rax, -0x100(%rbp)
movl -0xf4(%rbp), %edi
movl -0xf8(%rbp), %esi
callq 0x65ca0
movl %eax, %ecx
movq -0x100(%rbp), %rax
movl %ecx, -0x44(%rbp)
movq %rax, -0x50(%rbp)
movl -0x44(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0x65cc0
movq %rax, -0x178(%rbp)
movq -0x170(%rbp), %rdi
callq 0x65460
movl %eax, %edi
movq -0x178(%rbp), %rsi
callq 0x65cc0
movq %rax, -0x178(%rbp)
movq -0x170(%rbp), %rdi
movq -0x178(%rbp), %rsi
movq -0x180(%rbp), %rdx
callq 0x574f0
movq %rax, -0x260(%rbp)
movl -0x26c(%rbp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x5d03d
movq -0x268(%rbp), %rdi
movq -0x260(%rbp), %rsi
callq 0x5f2c0
movq -0x278(%rbp), %rdi
movq %rax, -0x260(%rbp)
callq 0x5b4c0
movq %rax, %rdx
movq -0x260(%rbp), %rcx
movq -0x268(%rbp), %rax
movl $0xc, -0x144(%rbp)
movq %rdx, -0x150(%rbp)
movq %rcx, -0x158(%rbp)
movq %rax, -0x160(%rbp)
movl -0x144(%rbp), %ecx
movq -0x158(%rbp), %rax
movl %ecx, -0x104(%rbp)
movl $0x2, -0x108(%rbp)
movq %rax, -0x110(%rbp)
movl -0x104(%rbp), %edi
movl -0x108(%rbp), %esi
callq 0x65ca0
movl %eax, %ecx
movq -0x110(%rbp), %rax
movl %ecx, -0x34(%rbp)
movq %rax, -0x40(%rbp)
movl -0x34(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x65cc0
movq %rax, -0x158(%rbp)
movq -0x150(%rbp), %rdi
callq 0x654c0
movl %eax, %edi
movq -0x158(%rbp), %rsi
callq 0x65cc0
movq %rax, -0x158(%rbp)
movq -0x150(%rbp), %rdi
movq -0x158(%rbp), %rsi
movq -0x160(%rbp), %rdx
callq 0x58570
movq %rax, -0x260(%rbp)
movl -0x26c(%rbp), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x5d141
movq -0x268(%rbp), %rdi
movq -0x260(%rbp), %rsi
callq 0x5f2c0
movq -0x278(%rbp), %rdi
movq %rax, -0x260(%rbp)
callq 0x5b4e0
movq %rax, %rdx
movq -0x260(%rbp), %rcx
movq -0x268(%rbp), %rax
movl $0xd, -0x124(%rbp)
movq %rdx, -0x130(%rbp)
movq %rcx, -0x138(%rbp)
movq %rax, -0x140(%rbp)
movl -0x124(%rbp), %ecx
movq -0x138(%rbp), %rax
movl %ecx, -0x114(%rbp)
movl $0x2, -0x118(%rbp)
movq %rax, -0x120(%rbp)
movl -0x114(%rbp), %edi
movl -0x118(%rbp), %esi
callq 0x65ca0
movl %eax, %ecx
movq -0x120(%rbp), %rax
movl %ecx, -0x24(%rbp)
movq %rax, -0x30(%rbp)
movl -0x24(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x65cc0
movq %rax, -0x138(%rbp)
movq -0x130(%rbp), %rdi
callq 0x65520
movl %eax, %edi
movq -0x138(%rbp), %rsi
callq 0x65cc0
movq %rax, -0x138(%rbp)
movq -0x130(%rbp), %rdi
movq -0x138(%rbp), %rsi
movq -0x140(%rbp), %rdx
callq 0x59780
movq %rax, -0x260(%rbp)
movq -0x278(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x228(%rbp)
movq -0x228(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
andq $0x1, %rax
cmpl $0x1, %eax
jne 0x5d209
movq -0x278(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x218(%rbp)
movq 0x34df5(%rip), %rax     # 0x91f80
movq %rax, -0x220(%rbp)
movq -0x218(%rbp), %rax
movq %rax, -0x290(%rbp)
movq %rax, -0x208(%rbp)
movq -0x208(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
andq $0x1, %rax
cmpl $0x1, %eax
jne 0x5d1db
movq -0x290(%rbp), %rdi
callq 0x66310
addq $0x8, %rax
movq %rax, -0x210(%rbp)
jmp 0x5d1e8
callq *-0x220(%rbp)
movq %rax, -0x210(%rbp)
movq -0x210(%rbp), %rdi
movq -0x260(%rbp), %rsi
movq -0x268(%rbp), %rdx
callq 0xe3b0
movq %rax, -0x260(%rbp)
movq -0x260(%rbp), %rax
addq $0x290, %rsp            # imm = 0x290
popq %rbp
retq
nopl (%rax)