// File: /workspace/github_cpp_makefile_star2_O1/mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::PulseState::_InternalParse(char const*, google::protobuf::internal::ParseContext*)
const char* PulseState::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  _Internal::HasBits has_bits{};
  ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  while (!ctx->Done(&ptr)) {
    ::PROTOBUF_NAMESPACE_ID::uint32 tag;
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
    CHK_(ptr);
    switch (tag >> 3) {
      // optional bool primary = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
          _Internal::set_has_primary(&has_bits);
          primary_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 lengthCounter = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
          _Internal::set_has_lengthcounter(&has_bits);
          lengthcounter_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 envelope = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
          _Internal::set_has_envelope(&has_bits);
          envelope_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 envelopeDivider = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
          _Internal::set_has_envelopedivider(&has_bits);
          envelopedivider_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional bool resetEnvelopeAndDivider = 5;
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
          _Internal::set_has_resetenvelopeanddivider(&has_bits);
          resetenvelopeanddivider_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional bool resetSweepDivider = 6;
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
          _Internal::set_has_resetsweepdivider(&has_bits);
          resetsweepdivider_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 sweepDivider = 7;
      case 7:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
          _Internal::set_has_sweepdivider(&has_bits);
          sweepdivider_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 currentSample = 8;
      case 8:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) {
          _Internal::set_has_currentsample(&has_bits);
          currentsample_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 timerDivider = 9;
      case 9:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) {
          _Internal::set_has_timerdivider(&has_bits);
          timerdivider_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 sequencerOffset = 10;
      case 10:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) {
          _Internal::set_has_sequenceroffset(&has_bits);
          sequenceroffset_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      default: {
      handle_unusual:
        if ((tag & 7) == 4 || tag == 0) {
          ctx->SetLastTag(tag);
          goto success;
        }
        ptr = UnknownFieldParse(tag,
            _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
            ptr, ctx);
        CHK_(ptr != nullptr);
        continue;
      }
    }  // switch
  }  // while
success:
  _has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto success;
#undef CHK_
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r14
movq %rdi, %rbx
leaq -0x30(%rbp), %rax
movq %rsi, (%rax)
leaq 0x8(%rdi), %rax
movq %rax, -0x38(%rbp)
xorl %r12d, %r12d
leaq 0x1030e(%rip), %r15     # 0x35aac
movl 0x5c(%r14), %edx
movq %r14, %rdi
leaq -0x30(%rbp), %rsi
callq 0x32fba
testb %al, %al
jne 0x25c23
movq -0x30(%rbp), %rdi
movzbl (%rdi), %r13d
leaq 0x1(%rdi), %rax
testb %r13b, %r13b
jns 0x257ee
movzbl (%rax), %eax
movl %eax, %ecx
shll $0x7, %ecx
addl %ecx, %r13d
addl $-0x80, %r13d
testb %al, %al
js 0x257e3
addq $0x2, %rdi
movq %rdi, %rax
jmp 0x257ee
movl %r13d, %esi
callq 0xb1e0
movl %edx, %r13d
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0x25bfe
movl %r13d, %ecx
shrl $0x3, %ecx
decl %ecx
cmpl $0x9, %ecx
ja 0x25a5d
movslq (%r15,%rcx,4), %rcx
addq %r15, %rcx
jmpq *%rcx
cmpb $0x8, %r13b
jne 0x25a5d
movsbq (%rax), %rdx
leaq 0x1(%rax), %rcx
testq %rdx, %rdx
jns 0x25b68
movzbl %dl, %edx
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x25b5d
movl %esi, %edx
addq $0x2, %rax
jmp 0x25b65
cmpb $0x28, %r13b
jne 0x25a5d
movsbq (%rax), %rdx
leaq 0x1(%rax), %rcx
testq %rdx, %rdx
jns 0x25acf
movzbl %dl, %edx
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x25ac4
movl %esi, %edx
addq $0x2, %rax
jmp 0x25acc
cmpb $0x50, %r13b
jne 0x25a5d
movzbl (%rax), %edx
leaq 0x1(%rax), %rcx
testb %dl, %dl
jns 0x25af0
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %esi, %edx
addl $-0x80, %edx
testb %cl, %cl
js 0x25ae3
addq $0x2, %rax
movq %rax, %rcx
jmp 0x25af0
cmpb $0x18, %r13b
jne 0x25a5d
movzbl (%rax), %edx
leaq 0x1(%rax), %rcx
testb %dl, %dl
jns 0x25b10
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %esi, %edx
addl $-0x80, %edx
testb %cl, %cl
js 0x25b03
addq $0x2, %rax
movq %rax, %rcx
jmp 0x25b10
cmpb $0x20, %r13b
jne 0x25a5d
movzbl (%rax), %edx
leaq 0x1(%rax), %rcx
testb %dl, %dl
jns 0x25b2d
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %esi, %edx
addl $-0x80, %edx
testb %cl, %cl
js 0x25b20
addq $0x2, %rax
movq %rax, %rcx
jmp 0x25b2d
cmpb $0x40, %r13b
jne 0x25a5d
movzbl (%rax), %edx
leaq 0x1(%rax), %rcx
testb %dl, %dl
jns 0x25b4a
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %esi, %edx
addl $-0x80, %edx
testb %cl, %cl
js 0x25b3d
addq $0x2, %rax
movq %rax, %rcx
jmp 0x25b4a
cmpb $0x10, %r13b
jne 0x25a5d
movzbl (%rax), %edx
leaq 0x1(%rax), %rcx
testb %dl, %dl
jns 0x25b86
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %esi, %edx
addl $-0x80, %edx
testb %cl, %cl
js 0x25b79
addq $0x2, %rax
movq %rax, %rcx
jmp 0x25b86
cmpb $0x30, %r13b
jne 0x25a5d
movsbq (%rax), %rdx
leaq 0x1(%rax), %rcx
testq %rdx, %rdx
jns 0x25b9e
movzbl %dl, %edx
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x25b93
movl %esi, %edx
addq $0x2, %rax
jmp 0x25b9b
cmpb $0x38, %r13b
jne 0x25a5d
movzbl (%rax), %edx
leaq 0x1(%rax), %rcx
testb %dl, %dl
jns 0x25bbc
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %esi, %edx
addl $-0x80, %edx
testb %cl, %cl
js 0x25baf
addq $0x2, %rax
movq %rax, %rcx
jmp 0x25bbc
cmpb $0x48, %r13b
jne 0x25a5d
movzbl (%rax), %edx
leaq 0x1(%rax), %rcx
testb %dl, %dl
jns 0x25bd6
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %esi, %edx
addl $-0x80, %edx
testb %cl, %cl
js 0x25bc9
addq $0x2, %rax
movq %rax, %rcx
jmp 0x25bd6
movl %r13d, %eax
andl $0x7, %eax
cmpl $0x4, %eax
setne %al
testl %r13d, %r13d
setne %cl
testb %al, %cl
jne 0x25a84
decl %r13d
movl %r13d, 0x50(%r14)
movl $0x7, %eax
jmp 0x25bf3
movq -0x38(%rbp), %rax
movq (%rax), %rsi
testb $0x1, %sil
je 0x25c05
andq $-0x2, %rsi
addq $0x8, %rsi
movl %r13d, %edi
movq -0x30(%rbp), %rdx
movq %r14, %rcx
callq 0xb2d0
movq %rax, -0x30(%rbp)
xorl %ecx, %ecx
testq %rax, %rax
sete %cl
leal 0x2(,%rcx,2), %eax
jmp 0x25bf3
movq %rax, %rdi
callq 0xb180
movq %rax, %rcx
orl $0x10, %r12d
movq %rcx, -0x30(%rbp)
testq %rdx, %rdx
setne 0x25(%rbx)
jmp 0x25be4
movq %rax, %rdi
movl %edx, %esi
callq 0xb6e0
movq %rax, %rcx
orl $0x200, %r12d           # imm = 0x200
movq %rcx, -0x30(%rbp)
movl %edx, 0x34(%rbx)
jmp 0x25be4
movq %rax, %rdi
movl %edx, %esi
callq 0xb6e0
movq %rax, %rcx
orl $0x2, %r12d
movq %rcx, -0x30(%rbp)
movl %edx, 0x1c(%rbx)
jmp 0x25be4
movq %rax, %rdi
movl %edx, %esi
callq 0xb6e0
movq %rax, %rcx
orl $0x4, %r12d
movq %rcx, -0x30(%rbp)
movl %edx, 0x20(%rbx)
jmp 0x25be4
movq %rax, %rdi
movl %edx, %esi
callq 0xb6e0
movq %rax, %rcx
orl $0x80, %r12d
movq %rcx, -0x30(%rbp)
movl %edx, 0x2c(%rbx)
jmp 0x25be4
movq %rax, %rdi
callq 0xb180
movq %rax, %rcx
orl $0x8, %r12d
movq %rcx, -0x30(%rbp)
testq %rdx, %rdx
setne 0x24(%rbx)
jmp 0x25be4
movq %rax, %rdi
movl %edx, %esi
callq 0xb6e0
movq %rax, %rcx
orl $0x1, %r12d
movq %rcx, -0x30(%rbp)
movl %edx, 0x18(%rbx)
jmp 0x25be4
movq %rax, %rdi
callq 0xb180
movq %rax, %rcx
orl $0x20, %r12d
movq %rcx, -0x30(%rbp)
testq %rdx, %rdx
setne 0x26(%rbx)
jmp 0x25be4
movq %rax, %rdi
movl %edx, %esi
callq 0xb6e0
movq %rax, %rcx
orl $0x40, %r12d
movq %rcx, -0x30(%rbp)
movl %edx, 0x28(%rbx)
jmp 0x25be4
movq %rax, %rdi
movl %edx, %esi
callq 0xb6e0
movq %rax, %rcx
orl $0x100, %r12d           # imm = 0x100
movq %rcx, -0x30(%rbp)
movl %edx, 0x30(%rbx)
xorl %eax, %eax
testq %rcx, %rcx
sete %al
leal 0x2(,%rax,2), %eax
cmpl $0x2, %eax
je 0x2579e
jmp 0x25c16
movl $0x4, %eax
jmp 0x25bf3
movq -0x38(%rbp), %rdi
callq 0x33078
movq %rax, %rsi
jmp 0x25a9d
cmpl $0x4, %eax
jne 0x25c23
movq $0x0, -0x30(%rbp)
orl %r12d, 0x10(%rbx)
movq -0x30(%rbp), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq