// File: /workspace/github_cpp_makefile_star2_O3/mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::PpuState::_InternalParse(char const*, google::protobuf::internal::ParseContext*)
const char* PpuState::_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 uint64 cycle = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
          _Internal::set_has_cycle(&has_bits);
          cycle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint64 frame = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
          _Internal::set_has_frame(&has_bits);
          frame_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // repeated uint32 regs = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
          ptr -= 1;
          do {
            ptr += 1;
            _internal_add_regs(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<24>(ptr));
        } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_regs(), ptr, ctx);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // repeated .Rnes.PpuState.SpriteState spriteRam = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_spriteram(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
        } else goto handle_unusual;
        continue;
      // optional uint32 vramToggle = 5;
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
          _Internal::set_has_vramtoggle(&has_bits);
          vramtoggle_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 vramFineXScroll = 6;
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
          _Internal::set_has_vramfinexscroll(&has_bits);
          vramfinexscroll_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 vramCurrentAddr = 7;
      case 7:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
          _Internal::set_has_vramcurrentaddr(&has_bits);
          vramcurrentaddr_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 vramTempAddr = 8;
      case 8:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) {
          _Internal::set_has_vramtempaddr(&has_bits);
          vramtempaddr_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 vramMachineAddr = 9;
      case 9:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) {
          _Internal::set_has_vrammachineaddr(&has_bits);
          vrammachineaddr_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 vramReadLatch = 10;
      case 10:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) {
          _Internal::set_has_vramreadlatch(&has_bits);
          vramreadlatch_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 scrollingMachineState = 11;
      case 11:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) {
          _Internal::set_has_scrollingmachinestate(&has_bits);
          scrollingmachinestate_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 xScrollOrigin = 12;
      case 12:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) {
          _Internal::set_has_xscrollorigin(&has_bits);
          xscrollorigin_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 yScrollOrigin = 13;
      case 13:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) {
          _Internal::set_has_yscrollorigin(&has_bits);
          yscrollorigin_ = ::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 $0x38, %rsp
movq %rdx, %r14
movq %rdi, %rbx
leaq -0x30(%rbp), %rax
movq %rsi, (%rax)
movl 0x5c(%rdx), %edx
movq %r14, %rdi
movq %rax, %rsi
callq 0x31b9c
movl $0x0, -0x34(%rbp)
testb %al, %al
je 0x2913a
movl -0x34(%rbp), %eax
orl %eax, 0x10(%rbx)
movq -0x30(%rbp), %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8(%rbx), %rax
movq %rax, -0x48(%rbp)
leaq 0x28(%rbx), %rax
movq %rax, -0x50(%rbp)
leaq 0x18(%rbx), %rax
movq %rax, -0x40(%rbp)
movl $0x0, -0x34(%rbp)
movq %r14, -0x58(%rbp)
movq -0x30(%rbp), %rdi
movzbl (%rdi), %r12d
leaq 0x1(%rdi), %rax
testb %r12b, %r12b
jns 0x29188
movzbl (%rax), %eax
movl %eax, %ecx
shll $0x7, %ecx
addl %ecx, %r12d
addl $-0x80, %r12d
testb %al, %al
js 0x291f6
addq $0x2, %rdi
movq %rdi, %rax
movq %rax, -0x30(%rbp)
movl %r12d, %ecx
shrl $0x3, %ecx
decl %ecx
cmpl $0xc, %ecx
ja 0x296f8
leaq 0xb9d0(%rip), %rdx      # 0x34b74
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
cmpb $0x8, %r12b
jne 0x296f8
orl $0x1, -0x34(%rbp)
movsbq (%rax), %rcx
leaq 0x1(%rax), %rdx
testq %rcx, %rcx
jns 0x291e9
movzbl %cl, %ecx
movzbl (%rdx), %edx
movl %edx, %esi
shll $0x7, %esi
addl %ecx, %esi
addl $-0x80, %esi
testb %dl, %dl
js 0x2966d
movl %esi, %ecx
addq $0x2, %rax
movq %rax, %rdx
movq %rdx, -0x30(%rbp)
movq %rcx, 0x40(%rbx)
jmp 0x29734
movl %r12d, %esi
callq 0xa1e0
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0x2976f
movl %edx, %r12d
jmp 0x2918c
cmpb $0x60, %r12b
jne 0x296f8
orl $0x200, -0x34(%rbp)     # imm = 0x200
movzbl (%rax), %esi
leaq 0x1(%rax), %rcx
testb %sil, %sil
jns 0x2924c
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x29609
addq $0x2, %rax
movq %rax, %rcx
movq %rcx, -0x30(%rbp)
movl %esi, 0x6c(%rbx)
jmp 0x29734
cmpb $0x28, %r12b
jne 0x296f8
orl $0x4, -0x34(%rbp)
movzbl (%rax), %esi
leaq 0x1(%rax), %rcx
testb %sil, %sil
jns 0x2928e
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x2961d
addq $0x2, %rax
movq %rax, %rcx
movq %rcx, -0x30(%rbp)
movl %esi, 0x50(%rbx)
jmp 0x29734
cmpb $0x68, %r12b
jne 0x296f8
orl $0x400, -0x34(%rbp)     # imm = 0x400
movzbl (%rax), %esi
leaq 0x1(%rax), %rcx
testb %sil, %sil
jns 0x292d3
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x29631
addq $0x2, %rax
movq %rax, %rcx
movq %rcx, -0x30(%rbp)
movl %esi, 0x70(%rbx)
jmp 0x29734
cmpb $0x50, %r12b
jne 0x296f8
orl $0x80, -0x34(%rbp)
movzbl (%rax), %esi
leaq 0x1(%rax), %rcx
testb %sil, %sil
jns 0x29318
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x29645
addq $0x2, %rax
movq %rax, %rcx
movq %rcx, -0x30(%rbp)
movl %esi, 0x64(%rbx)
jmp 0x29734
cmpb $0x18, %r12b
jne 0x296de
decq %rax
leaq 0x1(%rax), %rdi
movq %rdi, -0x30(%rbp)
movzbl 0x1(%rax), %r12d
leaq 0x2(%rax), %rcx
testb %r12b, %r12b
jns 0x29371
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %r12d
addl $-0x80, %r12d
testb %cl, %cl
js 0x29363
addq $0x3, %rax
movq %rax, %rcx
jmp 0x29371
movl %r12d, %esi
callq 0xa6e0
movq %rax, %rcx
movl %edx, %r12d
movq %rcx, -0x30(%rbp)
movl 0x18(%rbx), %r13d
leal 0x1(%r13), %r15d
cmpl 0x1c(%rbx), %r13d
jne 0x2938f
movq -0x40(%rbp), %rdi
movl %r15d, %esi
callq 0xa670
movq -0x40(%rbp), %r14
movq %r14, %rdi
callq 0xa530
movl %r12d, (%rax,%r13,4)
movl %r15d, (%r14)
movq -0x30(%rbp), %rax
testq %rax, %rax
je 0x2976f
movq -0x58(%rbp), %r14
cmpq %rax, (%r14)
jbe 0x29734
cmpb $0x18, (%rax)
je 0x29331
jmp 0x29734
cmpb $0x22, %r12b
jne 0x296f8
decq %rax
incq %rax
movq %rax, -0x30(%rbp)
movq 0x38(%rbx), %rcx
testq %rcx, %rcx
jne 0x29424
movl 0x34(%rbx), %esi
incl %esi
movq -0x50(%rbp), %rdi
callq 0xa960
movq 0x38(%rbx), %rcx
movl (%rcx), %esi
incl %esi
movl %esi, (%rcx)
movq 0x28(%rbx), %rdi
callq 0x30a88
movq %rax, %rsi
movq 0x38(%rbx), %rax
movslq 0x30(%rbx), %rcx
leal 0x1(%rcx), %edx
movl %edx, 0x30(%rbx)
movq %rsi, 0x8(%rax,%rcx,8)
movq -0x30(%rbp), %rax
jmp 0x29439
movslq 0x30(%rbx), %rdx
movl (%rcx), %esi
cmpl %esi, %edx
jge 0x29468
leal 0x1(%rdx), %esi
movl %esi, 0x30(%rbx)
movq 0x8(%rcx,%rdx,8), %rsi
movq %r14, %rdi
movq %rax, %rdx
callq 0xabdc
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0x2976f
cmpq %rax, (%r14)
jbe 0x29734
cmpb $0x22, (%rax)
je 0x293d7
jmp 0x29734
cmpl 0x34(%rbx), %esi
je 0x293ea
jmp 0x293fb
cmpb $0x40, %r12b
jne 0x296f8
orl $0x20, -0x34(%rbp)
movzbl (%rax), %esi
leaq 0x1(%rax), %rcx
testb %sil, %sil
jns 0x294a9
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x29659
addq $0x2, %rax
movq %rax, %rcx
movq %rcx, -0x30(%rbp)
movl %esi, 0x5c(%rbx)
jmp 0x29734
cmpb $0x10, %r12b
jne 0x296f8
orl $0x2, -0x34(%rbp)
movsbq (%rax), %rcx
leaq 0x1(%rax), %rdx
testq %rcx, %rcx
jns 0x294f1
movzbl %cl, %ecx
movzbl (%rdx), %edx
movl %edx, %esi
shll $0x7, %esi
addl %ecx, %esi
addl $-0x80, %esi
testb %dl, %dl
js 0x29682
movl %esi, %ecx
addq $0x2, %rax
movq %rax, %rdx
movq %rdx, -0x30(%rbp)
movq %rcx, 0x48(%rbx)
jmp 0x29734
cmpb $0x30, %r12b
jne 0x296f8
orl $0x8, -0x34(%rbp)
movzbl (%rax), %esi
leaq 0x1(%rax), %rcx
testb %sil, %sil
jns 0x29534
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x29697
addq $0x2, %rax
movq %rax, %rcx
movq %rcx, -0x30(%rbp)
movl %esi, 0x54(%rbx)
jmp 0x29734
cmpb $0x38, %r12b
jne 0x296f8
orl $0x10, -0x34(%rbp)
movzbl (%rax), %esi
leaq 0x1(%rax), %rcx
testb %sil, %sil
jns 0x29576
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x296ab
addq $0x2, %rax
movq %rax, %rcx
movq %rcx, -0x30(%rbp)
movl %esi, 0x58(%rbx)
jmp 0x29734
cmpb $0x58, %r12b
jne 0x296f8
orl $0x100, -0x34(%rbp)     # imm = 0x100
movzbl (%rax), %esi
leaq 0x1(%rax), %rcx
testb %sil, %sil
jns 0x295bb
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x296bc
addq $0x2, %rax
movq %rax, %rcx
movq %rcx, -0x30(%rbp)
movl %esi, 0x68(%rbx)
jmp 0x29734
cmpb $0x48, %r12b
jne 0x296f8
orl $0x40, -0x34(%rbp)
movzbl (%rax), %esi
leaq 0x1(%rax), %rcx
testb %sil, %sil
jns 0x295fd
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x296cd
addq $0x2, %rax
movq %rax, %rcx
movq %rcx, -0x30(%rbp)
movl %esi, 0x60(%rbx)
jmp 0x29734
movq %rax, %rdi
callq 0xa6e0
movq %rax, -0x30(%rbp)
movl %edx, 0x6c(%rbx)
jmp 0x2972f
movq %rax, %rdi
callq 0xa6e0
movq %rax, -0x30(%rbp)
movl %edx, 0x50(%rbx)
jmp 0x2972f
movq %rax, %rdi
callq 0xa6e0
movq %rax, -0x30(%rbp)
movl %edx, 0x70(%rbx)
jmp 0x2972f
movq %rax, %rdi
callq 0xa6e0
movq %rax, -0x30(%rbp)
movl %edx, 0x64(%rbx)
jmp 0x2972f
movq %rax, %rdi
callq 0xa6e0
movq %rax, -0x30(%rbp)
movl %edx, 0x5c(%rbx)
jmp 0x2972f
movq %rax, %rdi
callq 0xa180
movq %rax, -0x30(%rbp)
movq %rdx, 0x40(%rbx)
jmp 0x2972f
movq %rax, %rdi
callq 0xa180
movq %rax, -0x30(%rbp)
movq %rdx, 0x48(%rbx)
jmp 0x2972f
movq %rax, %rdi
callq 0xa6e0
movq %rax, -0x30(%rbp)
movl %edx, 0x54(%rbx)
jmp 0x2972f
movq %rax, %rdi
callq 0xa6e0
movq %rax, -0x30(%rbp)
movl %edx, 0x58(%rbx)
jmp 0x2972f
movq %rax, %rdi
callq 0xa6e0
movq %rax, -0x30(%rbp)
movl %edx, 0x68(%rbx)
jmp 0x2972f
movq %rax, %rdi
callq 0xa6e0
movq %rax, -0x30(%rbp)
movl %edx, 0x60(%rbx)
jmp 0x2972f
movzbl %r12b, %ecx
cmpl $0x1a, %ecx
jne 0x296f8
movq -0x40(%rbp), %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0xa7e0
jmp 0x2972b
testl %r12d, %r12d
je 0x29763
movl %r12d, %ecx
andl $0x7, %ecx
cmpl $0x4, %ecx
je 0x29763
movq -0x48(%rbp), %rcx
movq (%rcx), %rsi
testb $0x1, %sil
je 0x29751
andq $-0x2, %rsi
addq $0x8, %rsi
movl %r12d, %edi
movq %rax, %rdx
movq %r14, %rcx
callq 0xa2d0
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0x2976f
movl 0x5c(%r14), %edx
movq %r14, %rdi
leaq -0x30(%rbp), %rsi
callq 0x31b9c
testb %al, %al
je 0x2915d
jmp 0x29121
movq -0x48(%rbp), %rdi
callq 0x31c54
movq %rax, %rsi
movq -0x30(%rbp), %rax
jmp 0x2971d
decl %r12d
movl %r12d, 0x50(%r14)
jmp 0x29121
movq $0x0, -0x30(%rbp)
jmp 0x29121