// File: /workspace/github_cpp_makefile_star2_O3/mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::VideoMemoryState::_InternalParse(char const*, google::protobuf::internal::ParseContext*)
const char* VideoMemoryState::_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 bytes patternTableMemory = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
          auto str = _internal_mutable_patterntablememory();
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional bytes nameTableMemory = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
          auto str = _internal_mutable_nametablememory();
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional bytes paletteMemory = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
          auto str = _internal_mutable_palettememory();
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
          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, %r14
leaq -0x30(%rbp), %rax
movq %rsi, (%rax)
movl 0x5c(%rdx), %edx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x31b9c
testb %al, %al
je 0x2de53
movq -0x30(%rbp), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8(%r14), %rax
movq %rax, -0x38(%rbp)
leaq 0x28(%r14), %rax
movq %rax, -0x50(%rbp)
leaq 0x20(%r14), %rax
movq %rax, -0x48(%rbp)
leaq 0x18(%r14), %rax
movq %rax, -0x40(%rbp)
movq 0x19146(%rip), %r12     # 0x46fc0
leaq -0x30(%rbp), %r13
movq -0x30(%rbp), %rdi
movzbl (%rdi), %r15d
leaq 0x1(%rdi), %rax
testb %r15b, %r15b
jns 0x2dead
movzbl (%rax), %eax
movl %eax, %ecx
shll $0x7, %ecx
addl %ecx, %r15d
addl $-0x80, %r15d
testb %al, %al
js 0x2dfcb
addq $0x2, %rdi
movq %rdi, %rax
movq %rax, -0x30(%rbp)
movl %r15d, %ecx
shrl $0x3, %ecx
cmpl $0x3, %ecx
je 0x2df24
cmpl $0x2, %ecx
je 0x2def9
cmpl $0x1, %ecx
jne 0x2df6c
cmpb $0xa, %r15b
jne 0x2df6c
orb $0x1, 0x10(%r14)
movq 0x8(%r14), %rsi
testb $0x1, %sil
jne 0x2dffc
movq -0x40(%rbp), %rcx
movq (%rcx), %rdi
cmpq %r12, %rdi
jne 0x2df5f
movq -0x40(%rbp), %r15
jmp 0x2df4d
cmpb $0x12, %r15b
jne 0x2df6c
orb $0x2, 0x10(%r14)
movq 0x8(%r14), %rsi
testb $0x1, %sil
jne 0x2dfe4
movq -0x48(%rbp), %rcx
movq (%rcx), %rdi
cmpq %r12, %rdi
jne 0x2df5f
movq -0x48(%rbp), %r15
jmp 0x2df4d
cmpb $0x1a, %r15b
jne 0x2df6c
orb $0x4, 0x10(%r14)
movq 0x8(%r14), %rsi
testb $0x1, %sil
jne 0x2dff0
movq -0x50(%rbp), %rcx
movq (%rcx), %rdi
cmpq %r12, %rdi
jne 0x2df5f
movq -0x50(%rbp), %r15
movq %r15, %rdi
movq %r12, %rdx
callq 0x22bf0
movq (%r15), %rdi
movq -0x30(%rbp), %rax
movq %rax, %rsi
movq %rbx, %rdx
callq 0xa990
jmp 0x2dfa7
testl %r15d, %r15d
je 0x2e01d
movl %r15d, %ecx
andl $0x7, %ecx
cmpl $0x4, %ecx
je 0x2e01d
movq -0x38(%rbp), %rcx
movq (%rcx), %rsi
testb $0x1, %sil
je 0x2e008
andq $-0x2, %rsi
addq $0x8, %rsi
movl %r15d, %edi
movq %rax, %rdx
movq %rbx, %rcx
callq 0xa2d0
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0x2e029
movl 0x5c(%rbx), %edx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x31b9c
testb %al, %al
je 0x2de7e
jmp 0x2de40
movl %r15d, %esi
callq 0xa1e0
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0x2e029
movl %edx, %r15d
jmp 0x2deb1
andq $-0x2, %rsi
movq (%rsi), %rsi
jmp 0x2df12
andq $-0x2, %rsi
movq (%rsi), %rsi
jmp 0x2df3d
andq $-0x2, %rsi
movq (%rsi), %rsi
jmp 0x2dee7
movq -0x38(%rbp), %rdi
callq 0x31c54
movq %rax, %rsi
movq -0x30(%rbp), %rax
jmp 0x2df99
decl %r15d
movl %r15d, 0x50(%rbx)
jmp 0x2de40
movq $0x0, -0x30(%rbp)
jmp 0x2de40