// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
movl 0x10(%rdi), %r15d
testb $0x1, %r15b
je 0x2c6a0
cmpq %rsi, (%rbx)
jbe 0x2c7ae
movq 0x18(%r14), %rax
movb $0xa, (%rsi)
movl 0x10(%rax), %edx
cmpl $0x7f, %edx
ja 0x2c653
movb %dl, 0x1(%rsi)
addq $0x2, %rsi
jmp 0x2c692
movl %edx, %ecx
orb $-0x80, %cl
movb %cl, 0x1(%rsi)
movl %edx, %ecx
shrl $0x7, %ecx
cmpl $0x3fff, %edx           # imm = 0x3FFF
ja 0x2c671
movb %cl, 0x2(%rsi)
addq $0x3, %rsi
jmp 0x2c692
addq $0x3, %rsi
movl %ecx, %edx
movl %edx, %edi
orb $-0x80, %dil
movb %dil, -0x1(%rsi)
shrl $0x7, %ecx
incq %rsi
cmpl $0x3fff, %edx           # imm = 0x3FFF
ja 0x2c675
movb %cl, -0x1(%rsi)
movq 0x8(%rax), %rdi
testb $0x1, %dil
jne 0x2c7be
testb $0x2, %r15b
je 0x2c70e
cmpq %rsi, (%rbx)
jbe 0x2c7d6
movq 0x20(%r14), %rdi
movb $0x12, (%rsi)
movl 0x14(%rdi), %ecx
cmpl $0x7f, %ecx
ja 0x2c6c7
movb %cl, 0x1(%rsi)
addq $0x2, %rsi
jmp 0x2c703
movl %ecx, %eax
orb $-0x80, %al
movb %al, 0x1(%rsi)
movl %ecx, %eax
shrl $0x7, %eax
cmpl $0x3fff, %ecx           # imm = 0x3FFF
ja 0x2c6e4
movb %al, 0x2(%rsi)
addq $0x3, %rsi
jmp 0x2c703
addq $0x3, %rsi
movl %eax, %ecx
movl %ecx, %edx
orb $-0x80, %dl
movb %dl, -0x1(%rsi)
shrl $0x7, %eax
incq %rsi
cmpl $0x3fff, %ecx           # imm = 0x3FFF
ja 0x2c6e8
movb %al, -0x1(%rsi)
movq %rbx, %rdx
callq 0x2abe2
movq %rax, %rsi
testb $0x4, %r15b
je 0x2c77c
cmpq %rsi, (%rbx)
jbe 0x2c7e6
movq 0x28(%r14), %rdi
movb $0x1a, (%rsi)
movl 0x14(%rdi), %ecx
cmpl $0x7f, %ecx
ja 0x2c735
movb %cl, 0x1(%rsi)
addq $0x2, %rsi
jmp 0x2c771
movl %ecx, %eax
orb $-0x80, %al
movb %al, 0x1(%rsi)
movl %ecx, %eax
shrl $0x7, %eax
cmpl $0x3fff, %ecx           # imm = 0x3FFF
ja 0x2c752
movb %al, 0x2(%rsi)
addq $0x3, %rsi
jmp 0x2c771
addq $0x3, %rsi
movl %eax, %ecx
movl %ecx, %edx
orb $-0x80, %dl
movb %dl, -0x1(%rsi)
shrl $0x7, %eax
incq %rsi
cmpl $0x3fff, %ecx           # imm = 0x3FFF
ja 0x2c756
movb %al, -0x1(%rsi)
movq %rbx, %rdx
callq 0x2b770
movq %rax, %rsi
movq 0x8(%r14), %rdi
testb $0x1, %dil
jne 0x2c794
movq %rsi, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
andq $-0x2, %rdi
addq $0x8, %rdi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xa230
movq %rbx, %rdi
callq 0xa750
movq %rax, %rsi
jmp 0x2c63b
andq $-0x2, %rdi
addq $0x8, %rdi
movq %rbx, %rdx
callq 0xa230
movq %rax, %rsi
jmp 0x2c6a0
movq %rbx, %rdi
callq 0xa750
movq %rax, %rsi
jmp 0x2c6af
movq %rbx, %rdi
callq 0xa750
movq %rax, %rsi
jmp 0x2c71d