// File: /workspace/github_cpp_makefile_star2_O3/mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::ApuState::_InternalParse(char const*, google::protobuf::internal::ParseContext*)
const char* ApuState::_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) {
      // repeated uint32 reg = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
          ptr -= 1;
          do {
            ptr += 1;
            _internal_add_reg(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<8>(ptr));
        } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_reg(), ptr, ctx);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 sampleRate = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
          _Internal::set_has_samplerate(&has_bits);
          samplerate_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 fourFrameCount = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
          _Internal::set_has_fourframecount(&has_bits);
          fourframecount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 fiveFrameCount = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
          _Internal::set_has_fiveframecount(&has_bits);
          fiveframecount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 frameDivider = 5;
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
          _Internal::set_has_framedivider(&has_bits);
          framedivider_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 step = 6;
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
          _Internal::set_has_step(&has_bits);
          step_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 halfTimerDivider = 7;
      case 7:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
          _Internal::set_has_halftimerdivider(&has_bits);
          halftimerdivider_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 samplerDivider = 8;
      case 8:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) {
          _Internal::set_has_samplerdivider(&has_bits);
          samplerdivider_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional float clksPerSample = 9;
      case 9:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 77)) {
          _Internal::set_has_clkspersample(&has_bits);
          clkspersample_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // optional float currentSampleClk = 10;
      case 10:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 85)) {
          _Internal::set_has_currentsampleclk(&has_bits);
          currentsampleclk_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
          ptr += sizeof(float);
        } else goto handle_unusual;
        continue;
      // optional uint32 nextSampleCountdown = 11;
      case 11:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) {
          _Internal::set_has_nextsamplecountdown(&has_bits);
          nextsamplecountdown_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional .Rnes.PulseState pulseA = 20;
      case 20:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 162)) {
          ptr = ctx->ParseMessage(_internal_mutable_pulsea(), ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional .Rnes.PulseState pulseB = 21;
      case 21:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 170)) {
          ptr = ctx->ParseMessage(_internal_mutable_pulseb(), ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional .Rnes.TriangleState triangle = 22;
      case 22:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 178)) {
          ptr = ctx->ParseMessage(_internal_mutable_triangle(), ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional .Rnes.NoiseState noise = 23;
      case 23:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 186)) {
          ptr = ctx->ParseMessage(_internal_mutable_noise(), 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 $0x28, %rsp
movq %rdx, %r12
movq %rdi, %rbx
leaq -0x30(%rbp), %rax
movq %rsi, (%rax)
movl 0x5c(%rdx), %edx
movq %r12, %rdi
movq %rax, %rsi
callq 0x31b9c
movl $0x0, -0x34(%rbp)
testb %al, %al
je 0x270f0
movl -0x34(%rbp), %eax
orl %eax, 0x10(%rbx)
movq -0x30(%rbp), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8(%rbx), %rax
movq %rax, -0x40(%rbp)
leaq 0x18(%rbx), %rax
movq %rax, -0x48(%rbp)
movl $0x0, -0x34(%rbp)
movq %r12, -0x50(%rbp)
movq -0x30(%rbp), %rdi
movzbl (%rdi), %r15d
leaq 0x1(%rdi), %rax
testb %r15b, %r15b
jns 0x2713a
movzbl (%rax), %eax
movl %eax, %ecx
shll $0x7, %ecx
addl %ecx, %r15d
addl $-0x80, %r15d
testb %al, %al
js 0x2720d
addq $0x2, %rdi
movq %rdi, %rax
movq %rax, -0x30(%rbp)
movl %r15d, %ecx
shrl $0x3, %ecx
decl %ecx
cmpl $0x16, %ecx
ja 0x27652
leaq 0xd9b2(%rip), %rdx      # 0x34b08
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
cmpb $0x8, %r15b
jne 0x27638
decq %rax
leaq 0x1(%rax), %rdi
movq %rdi, -0x30(%rbp)
movzbl 0x1(%rax), %r15d
leaq 0x2(%rax), %rcx
testb %r15b, %r15b
jns 0x271ac
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %r15d
addl $-0x80, %r15d
testb %cl, %cl
js 0x2719e
addq $0x3, %rax
movq %rax, %rcx
jmp 0x271ac
movl %r15d, %esi
callq 0xa6e0
movq %rax, %rcx
movl %edx, %r15d
movq %rcx, -0x30(%rbp)
movl 0x18(%rbx), %r12d
leal 0x1(%r12), %r13d
movq %rbx, %r14
cmpl 0x1c(%rbx), %r12d
jne 0x271ce
movq -0x48(%rbp), %rdi
movl %r13d, %esi
callq 0xa670
movq -0x48(%rbp), %rbx
movq %rbx, %rdi
callq 0xa530
movl %r15d, (%rax,%r12,4)
movl %r13d, (%rbx)
movq -0x30(%rbp), %rax
testq %rax, %rax
je 0x27703
movq -0x50(%rbp), %r12
cmpq %rax, (%r12)
movq %r14, %rbx
jbe 0x27696
cmpb $0x8, (%rax)
je 0x2716c
jmp 0x27696
movl %r15d, %esi
callq 0xa1e0
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0x27706
movl %edx, %r15d
jmp 0x2713e
cmpb $-0x4e, %r15b
jne 0x27652
orb $0x4, 0x10(%rbx)
movq 0x38(%rbx), %rsi
testq %rsi, %rsi
jne 0x27262
movq -0x40(%rbp), %rax
movq (%rax), %rdi
testb $0x1, %dil
jne 0x276c6
callq 0x30934
movq %rax, %rsi
movq %rax, 0x38(%rbx)
movq -0x30(%rbp), %rax
movq %r12, %rdi
movq %rax, %rdx
callq 0xaab8
jmp 0x2768d
cmpb $0x58, %r15b
jne 0x27652
orl $0x2000, -0x34(%rbp)    # imm = 0x2000
movzbl (%rax), %esi
leaq 0x1(%rax), %rcx
testb %sil, %sil
jns 0x272ab
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x275a1
addq $0x2, %rax
movq %rax, %rcx
movq %rcx, -0x30(%rbp)
movl %esi, 0x6c(%rbx)
jmp 0x27696
cmpb $-0x56, %r15b
jne 0x27652
orb $0x2, 0x10(%rbx)
movq 0x30(%rbx), %rsi
testq %rsi, %rsi
jne 0x273b3
movq -0x40(%rbp), %rax
movq (%rax), %rdi
testb $0x1, %dil
jne 0x276d2
callq 0x308c6
movq %rax, %rsi
movq %rax, 0x30(%rbx)
jmp 0x273af
cmpb $0x18, %r15b
jne 0x27652
orl $0x20, -0x34(%rbp)
movzbl (%rax), %esi
leaq 0x1(%rax), %rcx
testb %sil, %sil
jns 0x2732a
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x275b5
addq $0x2, %rax
movq %rax, %rcx
movq %rcx, -0x30(%rbp)
movl %esi, 0x4c(%rbx)
jmp 0x27696
cmpb $0x30, %r15b
jne 0x27652
orl $0x100, -0x34(%rbp)     # imm = 0x100
movzbl (%rax), %esi
leaq 0x1(%rax), %rcx
testb %sil, %sil
jns 0x2736f
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x275c9
addq $0x2, %rax
movq %rax, %rcx
movq %rcx, -0x30(%rbp)
movl %esi, 0x58(%rbx)
jmp 0x27696
cmpb $-0x5e, %r15b
jne 0x27652
orb $0x1, 0x10(%rbx)
movq 0x28(%rbx), %rsi
testq %rsi, %rsi
jne 0x273b3
movq -0x40(%rbp), %rax
movq (%rax), %rdi
testb $0x1, %dil
jne 0x276de
callq 0x308c6
movq %rax, %rsi
movq %rax, 0x28(%rbx)
movq -0x30(%rbp), %rax
movq %r12, %rdi
movq %rax, %rdx
callq 0xaa26
jmp 0x2768d
cmpb $0x10, %r15b
jne 0x27652
orl $0x10, -0x34(%rbp)
movzbl (%rax), %esi
leaq 0x1(%rax), %rcx
testb %sil, %sil
jns 0x273f9
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x275dd
addq $0x2, %rax
movq %rax, %rcx
movq %rcx, -0x30(%rbp)
movl %esi, 0x48(%rbx)
jmp 0x27696
cmpb $0x38, %r15b
jne 0x27652
orl $0x200, -0x34(%rbp)     # imm = 0x200
movzbl (%rax), %esi
leaq 0x1(%rax), %rcx
testb %sil, %sil
jns 0x2743e
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x275f1
addq $0x2, %rax
movq %rax, %rcx
movq %rcx, -0x30(%rbp)
movl %esi, 0x5c(%rbx)
jmp 0x27696
cmpb $0x40, %r15b
jne 0x27652
orl $0x400, -0x34(%rbp)     # imm = 0x400
movzbl (%rax), %esi
leaq 0x1(%rax), %rcx
testb %sil, %sil
jns 0x27483
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x27605
addq $0x2, %rax
movq %rax, %rcx
movq %rcx, -0x30(%rbp)
movl %esi, 0x60(%rbx)
jmp 0x27696
cmpb $-0x46, %r15b
jne 0x27652
orb $0x8, 0x10(%rbx)
movq 0x40(%rbx), %rsi
testq %rsi, %rsi
jne 0x274c7
movq -0x40(%rbp), %rax
movq (%rax), %rdi
testb $0x1, %dil
jne 0x276ea
callq 0x3099a
movq %rax, %rsi
movq %rax, 0x40(%rbx)
movq -0x30(%rbp), %rax
movq %r12, %rdi
movq %rax, %rdx
callq 0xab4a
jmp 0x2768d
cmpb $0x20, %r15b
jne 0x27652
orl $0x40, -0x34(%rbp)
movzbl (%rax), %esi
leaq 0x1(%rax), %rcx
testb %sil, %sil
jns 0x2750d
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x27616
addq $0x2, %rax
movq %rax, %rcx
movq %rcx, -0x30(%rbp)
movl %esi, 0x50(%rbx)
jmp 0x27696
cmpb $0x28, %r15b
jne 0x27652
orl $0x80, -0x34(%rbp)
movzbl (%rax), %esi
leaq 0x1(%rax), %rcx
testb %sil, %sil
jns 0x27552
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x27627
addq $0x2, %rax
movq %rax, %rcx
movq %rcx, -0x30(%rbp)
movl %esi, 0x54(%rbx)
jmp 0x27696
cmpb $0x55, %r15b
jne 0x27652
orl $0x1000, -0x34(%rbp)    # imm = 0x1000
movss (%rax), %xmm0
movss %xmm0, 0x68(%rbx)
jmp 0x27594
cmpb $0x4d, %r15b
jne 0x27652
orl $0x800, -0x34(%rbp)     # imm = 0x800
movss (%rax), %xmm0
movss %xmm0, 0x64(%rbx)
addq $0x4, %rax
movq %rax, -0x30(%rbp)
jmp 0x27696
movq %rax, %rdi
callq 0xa6e0
movq %rax, -0x30(%rbp)
movl %edx, 0x6c(%rbx)
jmp 0x27691
movq %rax, %rdi
callq 0xa6e0
movq %rax, -0x30(%rbp)
movl %edx, 0x4c(%rbx)
jmp 0x27691
movq %rax, %rdi
callq 0xa6e0
movq %rax, -0x30(%rbp)
movl %edx, 0x58(%rbx)
jmp 0x27691
movq %rax, %rdi
callq 0xa6e0
movq %rax, -0x30(%rbp)
movl %edx, 0x48(%rbx)
jmp 0x27691
movq %rax, %rdi
callq 0xa6e0
movq %rax, -0x30(%rbp)
movl %edx, 0x5c(%rbx)
jmp 0x27691
movq %rax, %rdi
callq 0xa6e0
movq %rax, -0x30(%rbp)
movl %edx, 0x60(%rbx)
jmp 0x27691
movq %rax, %rdi
callq 0xa6e0
movq %rax, -0x30(%rbp)
movl %edx, 0x50(%rbx)
jmp 0x27691
movq %rax, %rdi
callq 0xa6e0
movq %rax, -0x30(%rbp)
movl %edx, 0x54(%rbx)
jmp 0x27691
movzbl %r15b, %ecx
cmpl $0xa, %ecx
jne 0x27652
movq -0x48(%rbp), %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0xa7e0
jmp 0x2768d
testl %r15d, %r15d
je 0x276f6
movl %r15d, %ecx
andl $0x7, %ecx
cmpl $0x4, %ecx
je 0x276f6
movq -0x40(%rbp), %rcx
movq (%rcx), %rsi
testb $0x1, %sil
je 0x276b4
andq $-0x2, %rsi
addq $0x8, %rsi
movl %r15d, %edi
movq %rax, %rdx
movq %r12, %rcx
callq 0xa2d0
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0x27706
movl 0x5c(%r12), %edx
movq %r12, %rdi
leaq -0x30(%rbp), %rsi
callq 0x31b9c
testb %al, %al
je 0x2710b
jmp 0x270d7
movq -0x40(%rbp), %rdi
callq 0x31c54
movq %rax, %rsi
movq -0x30(%rbp), %rax
jmp 0x2767f
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x27252
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x272e3
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x273a3
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x274b7
decl %r15d
movl %r15d, 0x50(%r12)
jmp 0x270d7
movq %r14, %rbx
movq $0x0, -0x30(%rbp)
jmp 0x270d7
nop