// File: /workspace/github_cpp_makefile_star2_O1/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 $0x28, %rsp
movq %rdx, %rbx
movq %rdi, %r12
leaq -0x38(%rbp), %rax
movq %rsi, (%rax)
leaq 0x8(%rdi), %rax
movq %rax, -0x48(%rbp)
leaq 0x28(%rdi), %rax
movq %rax, -0x50(%rbp)
leaq 0x18(%rdi), %rax
movq %rax, -0x40(%rbp)
movl $0x0, -0x2c(%rbp)
movq -0x40(%rbp), %r14
movl 0x5c(%rbx), %edx
movq %rbx, %rdi
leaq -0x38(%rbp), %rsi
callq 0x32fba
testb %al, %al
jne 0x2a980
movq -0x38(%rbp), %rdi
movzbl (%rdi), %r13d
leaq 0x1(%rdi), %rax
testb %r13b, %r13b
jns 0x2a290
movzbl (%rax), %eax
movl %eax, %ecx
shll $0x7, %ecx
addl %ecx, %r13d
addl $-0x80, %r13d
testb %al, %al
js 0x2a285
addq $0x2, %rdi
movq %rdi, %rax
jmp 0x2a290
movl %r13d, %esi
callq 0xb1e0
movl %edx, %r13d
movq %rax, -0x38(%rbp)
movl $0x4, %ecx
testq %rax, %rax
je 0x2a8c6
movl %r13d, %ecx
shrl $0x3, %ecx
decl %ecx
cmpl $0xc, %ecx
ja 0x2a905
leaq 0xb8ba(%rip), %rdx      # 0x35b74
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
cmpb $0x8, %r13b
jne 0x2a905
movsbq (%rax), %rdx
leaq 0x1(%rax), %rcx
testq %rdx, %rdx
js 0x2a65a
movl -0x2c(%rbp), %r15d
jmp 0x2a7ff
cmpb $0x60, %r13b
jne 0x2a905
movzbl (%rax), %edx
leaq 0x1(%rax), %rcx
testb %dl, %dl
js 0x2a5a1
movl -0x2c(%rbp), %r15d
jmp 0x2a749
cmpb $0x28, %r13b
jne 0x2a905
movzbl (%rax), %edx
leaq 0x1(%rax), %rcx
testb %dl, %dl
js 0x2a5c6
movl -0x2c(%rbp), %r15d
jmp 0x2a76f
cmpb $0x68, %r13b
jne 0x2a905
movzbl (%rax), %edx
leaq 0x1(%rax), %rcx
testb %dl, %dl
js 0x2a5eb
movl -0x2c(%rbp), %r15d
jmp 0x2a792
cmpb $0x50, %r13b
jne 0x2a905
movzbl (%rax), %edx
leaq 0x1(%rax), %rcx
testb %dl, %dl
js 0x2a610
movl -0x2c(%rbp), %r15d
jmp 0x2a7b8
cmpb $0x18, %r13b
jne 0x2a8de
decq %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rcx
leaq 0x1(%rcx), %rdi
movq %rdi, -0x38(%rbp)
movzbl 0x1(%rcx), %r13d
leaq 0x2(%rcx), %rax
testb %r13b, %r13b
jns 0x2a3c1
movzbl (%rax), %eax
movl %eax, %edx
shll $0x7, %edx
addl %edx, %r13d
addl $-0x80, %r13d
testb %al, %al
js 0x2a3b6
addq $0x3, %rcx
movq %rcx, %rax
jmp 0x2a3c1
movl %r13d, %esi
callq 0xb6e0
movl %edx, %r13d
movq %rax, -0x38(%rbp)
movq %r12, %rax
movl 0x18(%r12), %r12d
movq %rax, %r15
movl 0x1c(%rax), %esi
cmpl %esi, %r12d
jne 0x2a3e3
incl %esi
movq -0x40(%rbp), %rdi
callq 0xb670
movq %r14, %rdi
callq 0xb530
movl %r13d, (%rax,%r12,4)
leal 0x1(%r12), %eax
movl %eax, (%r14)
movq -0x38(%rbp), %rax
testq %rax, %rax
je 0x2a8d4
cmpq %rax, (%rbx)
movq %r15, %r12
jbe 0x2a415
cmpb $0x18, (%rax)
je 0x2a380
movl $0x2, %ecx
jmp 0x2a8c6
cmpb $0x22, %r13b
jne 0x2a905
decq %rax
movq %rax, -0x38(%rbp)
incq -0x38(%rbp)
movq 0x38(%r12), %rax
testq %rax, %rax
jne 0x2a47b
movl 0x34(%r12), %esi
incl %esi
movq -0x50(%rbp), %rdi
callq 0xb960
movq 0x38(%r12), %rax
incl (%rax)
movq 0x28(%r12), %rdi
callq 0x31e6c
movq %rax, %rsi
movq 0x38(%r12), %rax
movslq 0x30(%r12), %rcx
leal 0x1(%rcx), %edx
movl %edx, 0x30(%r12)
movq %rsi, 0x8(%rax,%rcx,8)
jmp 0x2a493
movslq 0x30(%r12), %rcx
movl (%rax), %edx
cmpl %edx, %ecx
jge 0x2a4c3
leal 0x1(%rcx), %edx
movl %edx, 0x30(%r12)
movq 0x8(%rax,%rcx,8), %rsi
movq -0x38(%rbp), %rdx
movq %rbx, %rdi
callq 0xbbee
movq %rax, -0x38(%rbp)
testq %rax, %rax
je 0x2a8d7
cmpq %rax, (%rbx)
jbe 0x2a415
cmpb $0x22, (%rax)
je 0x2a430
jmp 0x2a415
cmpl 0x34(%r12), %edx
je 0x2a43e
jmp 0x2a44e
cmpb $0x40, %r13b
jne 0x2a905
movzbl (%rax), %edx
leaq 0x1(%rax), %rcx
testb %dl, %dl
js 0x2a635
movl -0x2c(%rbp), %r15d
jmp 0x2a7de
cmpb $0x10, %r13b
jne 0x2a905
movsbq (%rax), %rdx
leaq 0x1(%rax), %rcx
testq %rdx, %rdx
js 0x2a681
movl -0x2c(%rbp), %r15d
jmp 0x2a820
cmpb $0x30, %r13b
jne 0x2a905
movzbl (%rax), %edx
leaq 0x1(%rax), %rcx
testb %dl, %dl
js 0x2a6a8
movl -0x2c(%rbp), %r15d
jmp 0x2a843
cmpb $0x38, %r13b
jne 0x2a905
movzbl (%rax), %edx
leaq 0x1(%rax), %rcx
testb %dl, %dl
js 0x2a6cd
movl -0x2c(%rbp), %r15d
jmp 0x2a863
cmpb $0x58, %r13b
jne 0x2a905
movzbl (%rax), %edx
leaq 0x1(%rax), %rcx
testb %dl, %dl
js 0x2a6f2
movl -0x2c(%rbp), %r15d
jmp 0x2a883
cmpb $0x48, %r13b
jne 0x2a905
movzbl (%rax), %edx
leaq 0x1(%rax), %rcx
testb %dl, %dl
js 0x2a717
movl -0x2c(%rbp), %r15d
jmp 0x2a8a6
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %esi, %edx
addl $-0x80, %edx
testb %cl, %cl
movl -0x2c(%rbp), %r15d
js 0x2a73c
addq $0x2, %rax
movq %rax, %rcx
jmp 0x2a749
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %esi, %edx
addl $-0x80, %edx
testb %cl, %cl
movl -0x2c(%rbp), %r15d
js 0x2a762
addq $0x2, %rax
movq %rax, %rcx
jmp 0x2a76f
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %esi, %edx
addl $-0x80, %edx
testb %cl, %cl
movl -0x2c(%rbp), %r15d
js 0x2a785
addq $0x2, %rax
movq %rax, %rcx
jmp 0x2a792
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %esi, %edx
addl $-0x80, %edx
testb %cl, %cl
movl -0x2c(%rbp), %r15d
js 0x2a7ab
addq $0x2, %rax
movq %rax, %rcx
jmp 0x2a7b8
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %esi, %edx
addl $-0x80, %edx
testb %cl, %cl
movl -0x2c(%rbp), %r15d
js 0x2a7d1
addq $0x2, %rax
movq %rax, %rcx
jmp 0x2a7de
movzbl %dl, %edx
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
movl -0x2c(%rbp), %r15d
js 0x2a7f4
movl %esi, %edx
addq $0x2, %rax
jmp 0x2a7fc
movzbl %dl, %edx
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
movl -0x2c(%rbp), %r15d
js 0x2a815
movl %esi, %edx
addq $0x2, %rax
jmp 0x2a81d
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %esi, %edx
addl $-0x80, %edx
testb %cl, %cl
movl -0x2c(%rbp), %r15d
js 0x2a836
addq $0x2, %rax
movq %rax, %rcx
jmp 0x2a843
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %esi, %edx
addl $-0x80, %edx
testb %cl, %cl
movl -0x2c(%rbp), %r15d
js 0x2a856
addq $0x2, %rax
movq %rax, %rcx
jmp 0x2a863
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %esi, %edx
addl $-0x80, %edx
testb %cl, %cl
movl -0x2c(%rbp), %r15d
js 0x2a876
addq $0x2, %rax
movq %rax, %rcx
jmp 0x2a883
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %esi, %edx
addl $-0x80, %edx
testb %cl, %cl
movl -0x2c(%rbp), %r15d
js 0x2a899
addq $0x2, %rax
movq %rax, %rcx
jmp 0x2a8a6
movq %rax, %rdi
movl %edx, %esi
callq 0xb6e0
movq %rax, %rcx
orl $0x200, %r15d           # imm = 0x200
movl %r15d, -0x2c(%rbp)
movq %rcx, -0x38(%rbp)
movl %edx, 0x6c(%r12)
jmp 0x2a8b7
movq %rax, %rdi
movl %edx, %esi
callq 0xb6e0
movq %rax, %rcx
orl $0x4, %r15d
movl %r15d, -0x2c(%rbp)
movq %rcx, -0x38(%rbp)
movl %edx, 0x50(%r12)
jmp 0x2a8b7
movq %rax, %rdi
movl %edx, %esi
callq 0xb6e0
movq %rax, %rcx
orl $0x400, %r15d           # imm = 0x400
movl %r15d, -0x2c(%rbp)
movq %rcx, -0x38(%rbp)
movl %edx, 0x70(%r12)
jmp 0x2a8b7
movq %rax, %rdi
movl %edx, %esi
callq 0xb6e0
movq %rax, %rcx
orl $0x80, %r15d
movl %r15d, -0x2c(%rbp)
movq %rcx, -0x38(%rbp)
movl %edx, 0x64(%r12)
jmp 0x2a8b7
movq %rax, %rdi
movl %edx, %esi
callq 0xb6e0
movq %rax, %rcx
orl $0x20, %r15d
movl %r15d, -0x2c(%rbp)
movq %rcx, -0x38(%rbp)
movl %edx, 0x5c(%r12)
jmp 0x2a8b7
movq %rax, %rdi
callq 0xb180
movq %rax, %rcx
orl $0x1, %r15d
movl %r15d, -0x2c(%rbp)
movq %rcx, -0x38(%rbp)
movq %rdx, 0x40(%r12)
jmp 0x2a8b7
movq %rax, %rdi
callq 0xb180
movq %rax, %rcx
orl $0x2, %r15d
movl %r15d, -0x2c(%rbp)
movq %rcx, -0x38(%rbp)
movq %rdx, 0x48(%r12)
jmp 0x2a8b7
movq %rax, %rdi
movl %edx, %esi
callq 0xb6e0
movq %rax, %rcx
orl $0x8, %r15d
movl %r15d, -0x2c(%rbp)
movq %rcx, -0x38(%rbp)
movl %edx, 0x54(%r12)
jmp 0x2a8b7
movq %rax, %rdi
movl %edx, %esi
callq 0xb6e0
movq %rax, %rcx
orl $0x10, %r15d
movl %r15d, -0x2c(%rbp)
movq %rcx, -0x38(%rbp)
movl %edx, 0x58(%r12)
jmp 0x2a8b7
movq %rax, %rdi
movl %edx, %esi
callq 0xb6e0
movq %rax, %rcx
orl $0x100, %r15d           # imm = 0x100
movl %r15d, -0x2c(%rbp)
movq %rcx, -0x38(%rbp)
movl %edx, 0x68(%r12)
jmp 0x2a8b7
movq %rax, %rdi
movl %edx, %esi
callq 0xb6e0
movq %rax, %rcx
orl $0x40, %r15d
movl %r15d, -0x2c(%rbp)
movq %rcx, -0x38(%rbp)
movl %edx, 0x60(%r12)
xorl %eax, %eax
testq %rcx, %rcx
sete %al
leal 0x2(,%rax,2), %ecx
cmpl $0x2, %ecx
je 0x2a241
jmp 0x2a973
movq %r15, %r12
movl $0x4, %ecx
jmp 0x2a8c6
movzbl %r13b, %ecx
cmpl $0x1a, %ecx
jne 0x2a905
movq -0x40(%rbp), %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0xb7e0
movq %rax, -0x38(%rbp)
testq %rax, %rax
jne 0x2a415
jmp 0x2a8d7
movl %r13d, %eax
andl $0x7, %eax
cmpl $0x4, %eax
setne %al
testl %r13d, %r13d
setne %cl
testb %al, %cl
jne 0x2a929
decl %r13d
movl %r13d, 0x50(%rbx)
movl $0xb, %ecx
jmp 0x2a8c6
movq -0x48(%rbp), %rax
movq (%rax), %rsi
testb $0x1, %sil
je 0x2a965
andq $-0x2, %rsi
addq $0x8, %rsi
movl %r13d, %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
jmp 0x2a8c6
movq -0x48(%rbp), %rdi
callq 0x33078
movq %rax, %rsi
jmp 0x2a93e
cmpl $0x4, %ecx
jne 0x2a980
movq $0x0, -0x38(%rbp)
movl -0x2c(%rbp), %eax
orl %eax, 0x10(%r12)
movq -0x38(%rbp), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop