// File: /workspace/github_cpp_makefile_star2_O1/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, %rbx
movq %rdi, %r15
leaq -0x38(%rbp), %rax
movq %rsi, (%rax)
leaq 0x8(%rdi), %rax
movq %rax, -0x40(%rbp)
leaq 0x18(%rdi), %rax
movq %rax, -0x48(%rbp)
movl $0x0, -0x2c(%rbp)
movq -0x48(%rbp), %r14
movl 0x5c(%rbx), %edx
movq %rbx, %rdi
leaq -0x38(%rbp), %rsi
callq 0x32fba
testb %al, %al
jne 0x287d9
movq -0x38(%rbp), %rdi
movzbl (%rdi), %r12d
leaq 0x1(%rdi), %rax
testb %r12b, %r12b
jns 0x281da
movzbl (%rax), %eax
movl %eax, %ecx
shll $0x7, %ecx
addl %ecx, %r12d
addl $-0x80, %r12d
testb %al, %al
js 0x281cf
addq $0x2, %rdi
movq %rdi, %rax
jmp 0x281da
movl %r12d, %esi
callq 0xb1e0
movl %edx, %r12d
movq %rax, -0x38(%rbp)
movl $0x4, %ecx
testq %rax, %rax
je 0x28783
movl %r12d, %ecx
shrl $0x3, %ecx
decl %ecx
cmpl $0x16, %ecx
ja 0x28728
leaq 0xd904(%rip), %rdx      # 0x35b08
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
cmpb $0x8, %r12b
jne 0x286fc
decq %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rcx
leaq 0x1(%rcx), %rdi
movq %rdi, -0x38(%rbp)
movzbl 0x1(%rcx), %r12d
leaq 0x2(%rcx), %rax
testb %r12b, %r12b
jns 0x2825f
movzbl (%rax), %eax
movl %eax, %edx
shll $0x7, %edx
addl %edx, %r12d
addl $-0x80, %r12d
testb %al, %al
js 0x28254
addq $0x3, %rcx
movq %rcx, %rax
jmp 0x2825f
movl %r12d, %esi
callq 0xb6e0
movl %edx, %r12d
movq %rax, -0x38(%rbp)
movl 0x18(%r15), %r13d
movl 0x1c(%r15), %esi
cmpl %esi, %r13d
jne 0x2827b
incl %esi
movq -0x48(%rbp), %rdi
callq 0xb670
movq %r14, %rdi
callq 0xb530
movl %r12d, (%rax,%r13,4)
leal 0x1(%r13), %eax
movl %eax, (%r14)
movq -0x38(%rbp), %rax
testq %rax, %rax
je 0x28721
cmpq %rax, (%rbx)
jbe 0x285ca
cmpb $0x8, (%rax)
je 0x2821e
jmp 0x285ca
cmpb $-0x4e, %r12b
jne 0x28728
orb $0x4, 0x10(%r15)
cmpq $0x0, 0x38(%r15)
jne 0x282e2
movq -0x40(%rbp), %rax
movq (%rax), %rdi
testb $0x1, %dil
jne 0x2879c
callq 0x31d18
movq %rax, 0x38(%r15)
movq 0x38(%r15), %rsi
movq -0x38(%rbp), %rdx
movq %rbx, %rdi
callq 0xbaca
jmp 0x28770
cmpb $0x58, %r12b
jne 0x28728
movzbl (%rax), %edx
leaq 0x1(%rax), %rcx
testb %dl, %dl
jns 0x285e1
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %esi, %edx
addl $-0x80, %edx
testb %cl, %cl
js 0x285d4
addq $0x2, %rax
movq %rax, %rcx
jmp 0x285e1
cmpb $-0x56, %r12b
jne 0x28728
orb $0x2, 0x10(%r15)
cmpq $0x0, 0x30(%r15)
jne 0x28361
movq -0x40(%rbp), %rax
movq (%rax), %rdi
testb $0x1, %dil
jne 0x287a8
callq 0x31caa
movq %rax, 0x30(%r15)
movq 0x30(%r15), %rsi
jmp 0x28412
cmpb $0x18, %r12b
jne 0x28728
movzbl (%rax), %edx
leaq 0x1(%rax), %rcx
testb %dl, %dl
jns 0x28606
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %esi, %edx
addl $-0x80, %edx
testb %cl, %cl
js 0x285f9
addq $0x2, %rax
movq %rax, %rcx
jmp 0x28606
cmpb $0x30, %r12b
jne 0x28728
movzbl (%rax), %edx
leaq 0x1(%rax), %rcx
testb %dl, %dl
jns 0x28629
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %esi, %edx
addl $-0x80, %edx
testb %cl, %cl
js 0x2861c
addq $0x2, %rax
movq %rax, %rcx
jmp 0x28629
cmpb $-0x5e, %r12b
jne 0x28728
orb $0x1, 0x10(%r15)
cmpq $0x0, 0x28(%r15)
jne 0x2840e
movq -0x40(%rbp), %rax
movq (%rax), %rdi
testb $0x1, %dil
jne 0x287b4
callq 0x31caa
movq %rax, 0x28(%r15)
movq 0x28(%r15), %rsi
movq -0x38(%rbp), %rdx
movq %rbx, %rdi
callq 0xba38
jmp 0x28770
cmpb $0x10, %r12b
jne 0x28728
movzbl (%rax), %edx
leaq 0x1(%rax), %rcx
testb %dl, %dl
jns 0x2864e
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %esi, %edx
addl $-0x80, %edx
testb %cl, %cl
js 0x28641
addq $0x2, %rax
movq %rax, %rcx
jmp 0x2864e
cmpb $0x38, %r12b
jne 0x28728
movzbl (%rax), %edx
leaq 0x1(%rax), %rcx
testb %dl, %dl
jns 0x28671
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %esi, %edx
addl $-0x80, %edx
testb %cl, %cl
js 0x28664
addq $0x2, %rax
movq %rax, %rcx
jmp 0x28671
cmpb $0x40, %r12b
jne 0x28728
movzbl (%rax), %edx
leaq 0x1(%rax), %rcx
testb %dl, %dl
jns 0x28693
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %esi, %edx
addl $-0x80, %edx
testb %cl, %cl
js 0x28686
addq $0x2, %rax
movq %rax, %rcx
jmp 0x28693
cmpb $-0x46, %r12b
jne 0x28728
orb $0x8, 0x10(%r15)
cmpq $0x0, 0x40(%r15)
jne 0x28501
movq -0x40(%rbp), %rax
movq (%rax), %rdi
testb $0x1, %dil
jne 0x287c0
callq 0x31d7e
movq %rax, 0x40(%r15)
movq 0x40(%r15), %rsi
movq -0x38(%rbp), %rdx
movq %rbx, %rdi
callq 0xbb5c
jmp 0x28770
cmpb $0x20, %r12b
jne 0x28728
movzbl (%rax), %edx
leaq 0x1(%rax), %rcx
testb %dl, %dl
jns 0x286b5
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %esi, %edx
addl $-0x80, %edx
testb %cl, %cl
js 0x286a8
addq $0x2, %rax
movq %rax, %rcx
jmp 0x286b5
cmpb $0x28, %r12b
jne 0x28728
movzbl (%rax), %edx
leaq 0x1(%rax), %rcx
testb %dl, %dl
jns 0x286d5
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %esi, %edx
addl $-0x80, %edx
testb %cl, %cl
js 0x286c8
addq $0x2, %rax
movq %rax, %rcx
jmp 0x286d5
cmpb $0x55, %r12b
jne 0x28728
orl $0x1000, -0x2c(%rbp)    # imm = 0x1000
movss (%rax), %xmm0
movss %xmm0, 0x68(%r15)
jmp 0x285c2
cmpb $0x4d, %r12b
jne 0x28728
orl $0x800, -0x2c(%rbp)     # imm = 0x800
movss (%rax), %xmm0
movss %xmm0, 0x64(%r15)
addq $0x4, %rax
movq %rax, -0x38(%rbp)
movl $0x2, %ecx
jmp 0x28783
movq %rax, %rdi
movl %edx, %esi
callq 0xb6e0
movq %rax, %rcx
movl -0x2c(%rbp), %eax
orl $0x2000, %eax           # imm = 0x2000
movl %eax, -0x2c(%rbp)
movq %rcx, -0x38(%rbp)
movl %edx, 0x6c(%r15)
jmp 0x286e8
movq %rax, %rdi
movl %edx, %esi
callq 0xb6e0
movq %rax, %rcx
movl -0x2c(%rbp), %eax
orl $0x20, %eax
movl %eax, -0x2c(%rbp)
movq %rcx, -0x38(%rbp)
movl %edx, 0x4c(%r15)
jmp 0x286e8
movq %rax, %rdi
movl %edx, %esi
callq 0xb6e0
movq %rax, %rcx
movl -0x2c(%rbp), %eax
orl $0x100, %eax            # imm = 0x100
movl %eax, -0x2c(%rbp)
movq %rcx, -0x38(%rbp)
movl %edx, 0x58(%r15)
jmp 0x286e8
movq %rax, %rdi
movl %edx, %esi
callq 0xb6e0
movq %rax, %rcx
movl -0x2c(%rbp), %eax
orl $0x10, %eax
movl %eax, -0x2c(%rbp)
movq %rcx, -0x38(%rbp)
movl %edx, 0x48(%r15)
jmp 0x286e8
movq %rax, %rdi
movl %edx, %esi
callq 0xb6e0
movq %rax, %rcx
movl -0x2c(%rbp), %eax
orl $0x200, %eax            # imm = 0x200
movl %eax, -0x2c(%rbp)
movq %rcx, -0x38(%rbp)
movl %edx, 0x5c(%r15)
jmp 0x286e8
movq %rax, %rdi
movl %edx, %esi
callq 0xb6e0
movq %rax, %rcx
movl -0x2c(%rbp), %eax
orl $0x400, %eax            # imm = 0x400
movl %eax, -0x2c(%rbp)
movq %rcx, -0x38(%rbp)
movl %edx, 0x60(%r15)
jmp 0x286e8
movq %rax, %rdi
movl %edx, %esi
callq 0xb6e0
movq %rax, %rcx
movl -0x2c(%rbp), %eax
orl $0x40, %eax
movl %eax, -0x2c(%rbp)
movq %rcx, -0x38(%rbp)
movl %edx, 0x50(%r15)
jmp 0x286e8
movq %rax, %rdi
movl %edx, %esi
callq 0xb6e0
movq %rax, %rcx
movl -0x2c(%rbp), %eax
orl $0x80, %eax
movl %eax, -0x2c(%rbp)
movq %rcx, -0x38(%rbp)
movl %edx, 0x54(%r15)
xorl %eax, %eax
testq %rcx, %rcx
sete %al
leal 0x2(,%rax,2), %ecx
jmp 0x28783
movzbl %r12b, %ecx
cmpl $0xa, %ecx
jne 0x28728
movq -0x48(%rbp), %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0xb7e0
movq %rax, -0x38(%rbp)
testq %rax, %rax
jne 0x285ca
movl $0x4, %ecx
jmp 0x28783
movl %r12d, %eax
andl $0x7, %eax
cmpl $0x4, %eax
setne %al
testl %r12d, %r12d
setne %cl
testb %al, %cl
jne 0x2874c
decl %r12d
movl %r12d, 0x50(%rbx)
movl $0x9, %ecx
jmp 0x28783
movq -0x40(%rbp), %rax
movq (%rax), %rsi
testb $0x1, %sil
je 0x2878e
andq $-0x2, %rsi
addq $0x8, %rsi
movl %r12d, %edi
movq -0x38(%rbp), %rdx
movq %rbx, %rcx
callq 0xb2d0
movq %rax, -0x38(%rbp)
xorl %ecx, %ecx
testq %rax, %rax
sete %cl
leal 0x2(,%rcx,2), %ecx
cmpl $0x2, %ecx
je 0x2818b
jmp 0x287cc
movq -0x40(%rbp), %rdi
callq 0x33078
movq %rax, %rsi
jmp 0x28761
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x282d9
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x28358
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x28405
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x284f8
cmpl $0x4, %ecx
jne 0x287d9
movq $0x0, -0x38(%rbp)
movl -0x2c(%rbp), %eax
orl %eax, 0x10(%r15)
movq -0x38(%rbp), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop