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

  cached_has_bits = _has_bits_[0];
  // optional uint32 control = 1;
  if (cached_has_bits & 0x00000001u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_control(), target);
  }

  // optional uint32 shiftReg = 2;
  if (cached_has_bits & 0x00000002u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_shiftreg(), target);
  }

  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.ControllerState)
  return target;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0xd0(%rbp)
movq %rsi, -0xd8(%rbp)
movq %rdx, -0xe0(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0xf0(%rbp)
movl $0x0, -0xe4(%rbp)
addq $0x10, %rax
movq %rax, -0xc0(%rbp)
movl $0x0, -0xc4(%rbp)
movq -0xc0(%rbp), %rax
movslq -0xc4(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xe4(%rbp)
movl -0xe4(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x57619
movq -0xe0(%rbp), %rdi
movq -0xd8(%rbp), %rsi
callq 0x5f2c0
movq -0xf0(%rbp), %rdi
movq %rax, -0xd8(%rbp)
callq 0x3e690
movl %eax, %ecx
movq -0xd8(%rbp), %rax
movl $0x1, -0x9c(%rbp)
movl %ecx, -0xa0(%rbp)
movq %rax, -0xa8(%rbp)
movl -0x9c(%rbp), %ecx
movq -0xa8(%rbp), %rax
movl %ecx, -0x64(%rbp)
movl $0x0, -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, -0xa8(%rbp)
movl -0xa0(%rbp), %ecx
movq -0xa8(%rbp), %rax
movl %ecx, -0x44(%rbp)
movq %rax, -0x50(%rbp)
movl -0x44(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0x65cc0
movq %rax, -0xd8(%rbp)
movl -0xe4(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x576de
movq -0xe0(%rbp), %rdi
movq -0xd8(%rbp), %rsi
callq 0x5f2c0
movq -0xf0(%rbp), %rdi
movq %rax, -0xd8(%rbp)
callq 0x3e6b0
movl %eax, %ecx
movq -0xd8(%rbp), %rax
movl $0x2, -0xac(%rbp)
movl %ecx, -0xb0(%rbp)
movq %rax, -0xb8(%rbp)
movl -0xac(%rbp), %ecx
movq -0xb8(%rbp), %rax
movl %ecx, -0x54(%rbp)
movl $0x0, -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, -0xb8(%rbp)
movl -0xb0(%rbp), %ecx
movq -0xb8(%rbp), %rax
movl %ecx, -0x34(%rbp)
movq %rax, -0x40(%rbp)
movl -0x34(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x65cc0
movq %rax, -0xd8(%rbp)
movq -0xf0(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
andq $0x1, %rax
cmpl $0x1, %eax
jne 0x57797
movq -0xf0(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x88(%rbp)
movq 0x3a858(%rip), %rax     # 0x91f80
movq %rax, -0x90(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
andq $0x1, %rax
cmpl $0x1, %eax
jne 0x5776f
movq -0xf8(%rbp), %rdi
callq 0x66310
addq $0x8, %rax
movq %rax, -0x80(%rbp)
jmp 0x57779
callq *-0x90(%rbp)
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rdi
movq -0xd8(%rbp), %rsi
movq -0xe0(%rbp), %rdx
callq 0xe3b0
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
nopw (%rax,%rax)