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

  cached_has_bits = _has_bits_[0];
  // optional bool primary = 1;
  if (cached_has_bits & 0x00000008u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_primary(), target);
  }

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

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

  // optional uint32 envelopeDivider = 4;
  if (cached_has_bits & 0x00000004u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_envelopedivider(), target);
  }

  // optional bool resetEnvelopeAndDivider = 5;
  if (cached_has_bits & 0x00000010u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_resetenvelopeanddivider(), target);
  }

  // optional bool resetSweepDivider = 6;
  if (cached_has_bits & 0x00000020u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_resetsweepdivider(), target);
  }

  // optional uint32 sweepDivider = 7;
  if (cached_has_bits & 0x00000040u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(7, this->_internal_sweepdivider(), target);
  }

  // optional uint32 currentSample = 8;
  if (cached_has_bits & 0x00000080u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(8, this->_internal_currentsample(), target);
  }

  // optional uint32 timerDivider = 9;
  if (cached_has_bits & 0x00000100u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(9, this->_internal_timerdivider(), target);
  }

  // optional uint32 sequencerOffset = 10;
  if (cached_has_bits & 0x00000200u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(10, this->_internal_sequenceroffset(), 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.PulseState)
  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 $0x8, %r15b
je 0x25c6b
cmpq %rsi, (%rbx)
jbe 0x25f78
movb 0x24(%r14), %al
movb $0x8, (%rsi)
movb %al, 0x1(%rsi)
addq $0x2, %rsi
testb $0x1, %r15b
je 0x25ccb
cmpq %rsi, (%rbx)
jbe 0x25f88
movl 0x18(%r14), %ecx
movb $0x10, (%rsi)
cmpl $0x7f, %ecx
ja 0x25c8f
movb %cl, 0x1(%rsi)
addq $0x2, %rsi
jmp 0x25ccb
movl %ecx, %eax
orb $-0x80, %al
movb %al, 0x1(%rsi)
movl %ecx, %eax
shrl $0x7, %eax
cmpl $0x3fff, %ecx           # imm = 0x3FFF
ja 0x25cac
movb %al, 0x2(%rsi)
addq $0x3, %rsi
jmp 0x25ccb
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 0x25cb0
movb %al, -0x1(%rsi)
testb $0x2, %r15b
je 0x25d2b
cmpq %rsi, (%rbx)
jbe 0x25f98
movl 0x1c(%r14), %ecx
movb $0x18, (%rsi)
cmpl $0x7f, %ecx
ja 0x25cef
movb %cl, 0x1(%rsi)
addq $0x2, %rsi
jmp 0x25d2b
movl %ecx, %eax
orb $-0x80, %al
movb %al, 0x1(%rsi)
movl %ecx, %eax
shrl $0x7, %eax
cmpl $0x3fff, %ecx           # imm = 0x3FFF
ja 0x25d0c
movb %al, 0x2(%rsi)
addq $0x3, %rsi
jmp 0x25d2b
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 0x25d10
movb %al, -0x1(%rsi)
testb $0x4, %r15b
je 0x25d8b
cmpq %rsi, (%rbx)
jbe 0x25fa8
movl 0x20(%r14), %ecx
movb $0x20, (%rsi)
cmpl $0x7f, %ecx
ja 0x25d4f
movb %cl, 0x1(%rsi)
addq $0x2, %rsi
jmp 0x25d8b
movl %ecx, %eax
orb $-0x80, %al
movb %al, 0x1(%rsi)
movl %ecx, %eax
shrl $0x7, %eax
cmpl $0x3fff, %ecx           # imm = 0x3FFF
ja 0x25d6c
movb %al, 0x2(%rsi)
addq $0x3, %rsi
jmp 0x25d8b
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 0x25d70
movb %al, -0x1(%rsi)
testb $0x10, %r15b
je 0x25da8
cmpq %rsi, (%rbx)
jbe 0x25fb8
movb 0x25(%r14), %al
movb $0x28, (%rsi)
movb %al, 0x1(%rsi)
addq $0x2, %rsi
testb $0x20, %r15b
je 0x25dc5
cmpq %rsi, (%rbx)
jbe 0x25fc8
movb 0x26(%r14), %al
movb $0x30, (%rsi)
movb %al, 0x1(%rsi)
addq $0x2, %rsi
testb $0x40, %r15b
je 0x25e25
cmpq %rsi, (%rbx)
jbe 0x25fd8
movl 0x28(%r14), %ecx
movb $0x38, (%rsi)
cmpl $0x7f, %ecx
ja 0x25de9
movb %cl, 0x1(%rsi)
addq $0x2, %rsi
jmp 0x25e25
movl %ecx, %eax
orb $-0x80, %al
movb %al, 0x1(%rsi)
movl %ecx, %eax
shrl $0x7, %eax
cmpl $0x3fff, %ecx           # imm = 0x3FFF
ja 0x25e06
movb %al, 0x2(%rsi)
addq $0x3, %rsi
jmp 0x25e25
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 0x25e0a
movb %al, -0x1(%rsi)
testb %r15b, %r15b
jns 0x25e84
cmpq %rsi, (%rbx)
jbe 0x25fe8
movl 0x2c(%r14), %ecx
movb $0x40, (%rsi)
cmpl $0x7f, %ecx
ja 0x25e48
movb %cl, 0x1(%rsi)
addq $0x2, %rsi
jmp 0x25e84
movl %ecx, %eax
orb $-0x80, %al
movb %al, 0x1(%rsi)
movl %ecx, %eax
shrl $0x7, %eax
cmpl $0x3fff, %ecx           # imm = 0x3FFF
ja 0x25e65
movb %al, 0x2(%rsi)
addq $0x3, %rsi
jmp 0x25e84
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 0x25e69
movb %al, -0x1(%rsi)
btl $0x8, %r15d
jae 0x25ee5
cmpq %rsi, (%rbx)
jbe 0x25ff8
movl 0x30(%r14), %ecx
movb $0x48, (%rsi)
cmpl $0x7f, %ecx
ja 0x25ea9
movb %cl, 0x1(%rsi)
addq $0x2, %rsi
jmp 0x25ee5
movl %ecx, %eax
orb $-0x80, %al
movb %al, 0x1(%rsi)
movl %ecx, %eax
shrl $0x7, %eax
cmpl $0x3fff, %ecx           # imm = 0x3FFF
ja 0x25ec6
movb %al, 0x2(%rsi)
addq $0x3, %rsi
jmp 0x25ee5
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 0x25eca
movb %al, -0x1(%rsi)
btl $0x9, %r15d
jae 0x25f46
cmpq %rsi, (%rbx)
jbe 0x26008
movl 0x34(%r14), %ecx
movb $0x50, (%rsi)
cmpl $0x7f, %ecx
ja 0x25f0a
movb %cl, 0x1(%rsi)
addq $0x2, %rsi
jmp 0x25f46
movl %ecx, %eax
orb $-0x80, %al
movb %al, 0x1(%rsi)
movl %ecx, %eax
shrl $0x7, %eax
cmpl $0x3fff, %ecx           # imm = 0x3FFF
ja 0x25f27
movb %al, 0x2(%rsi)
addq $0x3, %rsi
jmp 0x25f46
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 0x25f2b
movb %al, -0x1(%rsi)
movq 0x8(%r14), %rdi
testb $0x1, %dil
jne 0x25f5e
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 0xb230
movq %rbx, %rdi
callq 0xb750
movq %rax, %rsi
jmp 0x25c5d
movq %rbx, %rdi
callq 0xb750
movq %rax, %rsi
jmp 0x25c7a
movq %rbx, %rdi
callq 0xb750
movq %rax, %rsi
jmp 0x25cda
movq %rbx, %rdi
callq 0xb750
movq %rax, %rsi
jmp 0x25d3a
movq %rbx, %rdi
callq 0xb750
movq %rax, %rsi
jmp 0x25d9a
movq %rbx, %rdi
callq 0xb750
movq %rax, %rsi
jmp 0x25db7
movq %rbx, %rdi
callq 0xb750
movq %rax, %rsi
jmp 0x25dd4
movq %rbx, %rdi
callq 0xb750
movq %rax, %rsi
jmp 0x25e33
movq %rbx, %rdi
callq 0xb750
movq %rax, %rsi
jmp 0x25e94
movq %rbx, %rdi
callq 0xb750
movq %rax, %rsi
jmp 0x25ef5