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

  cached_has_bits = _has_bits_[0];
  // optional .Rnes.MmcState.MmcNoneState mmcNone = 1;
  if (cached_has_bits & 0x00000001u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(
        1, _Internal::mmcnone(this), target, stream);
  }

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

  // optional .Rnes.MmcState.Mmc3State mmc3 = 3;
  if (cached_has_bits & 0x00000004u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(
        3, _Internal::mmc3(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.MmcState)
  return target;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp            # imm = 0x140
movq %rdi, -0x110(%rbp)
movq %rsi, -0x118(%rbp)
movq %rdx, -0x120(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0x130(%rbp)
movl $0x0, -0x124(%rbp)
addq $0x10, %rax
movq %rax, -0x100(%rbp)
movl $0x0, -0x104(%rbp)
movq -0x100(%rbp), %rax
movslq -0x104(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x124(%rbp)
movl -0x124(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x56574
movq -0x120(%rbp), %rdi
movq -0x118(%rbp), %rsi
callq 0x5f2c0
movq -0x130(%rbp), %rdi
movq %rax, -0x118(%rbp)
callq 0x55950
movq %rax, %rdx
movq -0x118(%rbp), %rcx
movq -0x120(%rbp), %rax
movl $0x1, -0xb4(%rbp)
movq %rdx, -0xc0(%rbp)
movq %rcx, -0xc8(%rbp)
movq %rax, -0xd0(%rbp)
movl -0xb4(%rbp), %ecx
movq -0xc8(%rbp), %rax
movl %ecx, -0x44(%rbp)
movl $0x2, -0x48(%rbp)
movq %rax, -0x50(%rbp)
movl -0x44(%rbp), %edi
movl -0x48(%rbp), %esi
callq 0x65ca0
movl %eax, %ecx
movq -0x50(%rbp), %rax
movl %ecx, -0x34(%rbp)
movq %rax, -0x40(%rbp)
movl -0x34(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x65cc0
movq %rax, -0xc8(%rbp)
movq -0xc0(%rbp), %rdi
callq 0x652e0
movl %eax, %edi
movq -0xc8(%rbp), %rsi
callq 0x65cc0
movq %rax, -0xc8(%rbp)
movq -0xc0(%rbp), %rdi
movq -0xc8(%rbp), %rsi
movq -0xd0(%rbp), %rdx
callq 0x525c0
movq %rax, -0x118(%rbp)
movl -0x124(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x56664
movq -0x120(%rbp), %rdi
movq -0x118(%rbp), %rsi
callq 0x5f2c0
movq -0x130(%rbp), %rdi
movq %rax, -0x118(%rbp)
callq 0x55970
movq %rax, %rdx
movq -0x118(%rbp), %rcx
movq -0x120(%rbp), %rax
movl $0x2, -0x94(%rbp)
movq %rdx, -0xa0(%rbp)
movq %rcx, -0xa8(%rbp)
movq %rax, -0xb0(%rbp)
movl -0x94(%rbp), %ecx
movq -0xa8(%rbp), %rax
movl %ecx, -0x54(%rbp)
movl $0x2, -0x58(%rbp)
movq %rax, -0x60(%rbp)
movl -0x54(%rbp), %edi
movl -0x58(%rbp), %esi
callq 0x65ca0
movl %eax, %ecx
movq -0x60(%rbp), %rax
movl %ecx, -0x24(%rbp)
movq %rax, -0x30(%rbp)
movl -0x24(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0x65cc0
movq %rax, -0xa8(%rbp)
movq -0xa0(%rbp), %rdi
callq 0x65340
movl %eax, %edi
movq -0xa8(%rbp), %rsi
callq 0x65cc0
movq %rax, -0xa8(%rbp)
movq -0xa0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
movq -0xb0(%rbp), %rdx
callq 0x53250
movq %rax, -0x118(%rbp)
movl -0x124(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x56745
movq -0x120(%rbp), %rdi
movq -0x118(%rbp), %rsi
callq 0x5f2c0
movq -0x130(%rbp), %rdi
movq %rax, -0x118(%rbp)
callq 0x55990
movq %rax, %rdx
movq -0x118(%rbp), %rcx
movq -0x120(%rbp), %rax
movl $0x3, -0x74(%rbp)
movq %rdx, -0x80(%rbp)
movq %rcx, -0x88(%rbp)
movq %rax, -0x90(%rbp)
movl -0x74(%rbp), %ecx
movq -0x88(%rbp), %rax
movl %ecx, -0x64(%rbp)
movl $0x2, -0x68(%rbp)
movq %rax, -0x70(%rbp)
movl -0x64(%rbp), %edi
movl -0x68(%rbp), %esi
callq 0x65ca0
movl %eax, %ecx
movq -0x70(%rbp), %rax
movl %ecx, -0x14(%rbp)
movq %rax, -0x20(%rbp)
movl -0x14(%rbp), %edi
movq -0x20(%rbp), %rsi
callq 0x65cc0
movq %rax, -0x88(%rbp)
movq -0x80(%rbp), %rdi
callq 0x653a0
movl %eax, %edi
movq -0x88(%rbp), %rsi
callq 0x65cc0
movq %rax, -0x88(%rbp)
movq -0x80(%rbp), %rdi
movq -0x88(%rbp), %rsi
movq -0x90(%rbp), %rdx
callq 0x54800
movq %rax, -0x118(%rbp)
movq -0x130(%rbp), %rax
addq $0x8, %rax
movq %rax, -0xf8(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
andq $0x1, %rax
cmpl $0x1, %eax
jne 0x5680d
movq -0x130(%rbp), %rax
addq $0x8, %rax
movq %rax, -0xe8(%rbp)
movq 0x3b7f1(%rip), %rax     # 0x91f80
movq %rax, -0xf0(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x138(%rbp)
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
andq $0x1, %rax
cmpl $0x1, %eax
jne 0x567df
movq -0x138(%rbp), %rdi
callq 0x66310
addq $0x8, %rax
movq %rax, -0xe0(%rbp)
jmp 0x567ec
callq *-0xf0(%rbp)
movq %rax, -0xe0(%rbp)
movq -0xe0(%rbp), %rdi
movq -0x118(%rbp), %rsi
movq -0x120(%rbp), %rdx
callq 0xe3b0
movq %rax, -0x118(%rbp)
movq -0x118(%rbp), %rax
addq $0x140, %rsp            # imm = 0x140
popq %rbp
retq
nopl (%rax)