// File: /workspace/github_cpp_makefile_star2_O1/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 $0x18, %rsp
movq %rdx, %rbx
movq %rdi, %r14
leaq -0x30(%rbp), %rax
movq %rsi, (%rax)
leaq 0x8(%rdi), %rax
movq %rax, -0x40(%rbp)
leaq 0x28(%rdi), %rax
movq %rax, -0x38(%rbp)
leaq 0x20(%rdi), %r12
leaq 0x18(%rdi), %r15
movl 0x5c(%rbx), %edx
movq %rbx, %rdi
leaq -0x30(%rbp), %rsi
callq 0x32fba
testb %al, %al
jne 0x2f3c2
movq -0x30(%rbp), %rdi
movzbl (%rdi), %r13d
leaq 0x1(%rdi), %rax
testb %r13b, %r13b
jns 0x2f223
movzbl (%rax), %eax
movl %eax, %ecx
shll $0x7, %ecx
addl %ecx, %r13d
addl $-0x80, %r13d
testb %al, %al
js 0x2f218
addq $0x2, %rdi
movq %rdi, %rax
jmp 0x2f223
movl %r13d, %esi
callq 0xb1e0
movl %edx, %r13d
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0x2f37c
movl %r13d, %eax
shrl $0x3, %eax
cmpl $0x3, %eax
je 0x2f2c9
cmpl $0x2, %eax
je 0x2f28a
cmpl $0x1, %eax
jne 0x2f332
cmpb $0xa, %r13b
jne 0x2f332
orb $0x1, 0x10(%r14)
movq 0x8(%r14), %rsi
testb $0x1, %sil
jne 0x2f39b
movq 0x18d4f(%rip), %rax     # 0x47fc0
cmpq %rax, (%r15)
jne 0x2f285
movq %r15, %rdi
movq 0x18d40(%rip), %rdx     # 0x47fc0
callq 0x23c3e
movq (%r15), %rdi
jmp 0x2f305
cmpb $0x12, %r13b
jne 0x2f332
orb $0x2, 0x10(%r14)
movq 0x8(%r14), %rsi
testb $0x1, %sil
jne 0x2f383
movq 0x18d12(%rip), %rax     # 0x47fc0
cmpq %rax, (%r12)
jne 0x2f2c3
movq %r12, %rdi
movq 0x18d02(%rip), %rdx     # 0x47fc0
callq 0x23c3e
movq (%r12), %rdi
jmp 0x2f305
cmpb $0x1a, %r13b
jne 0x2f332
orb $0x4, 0x10(%r14)
movq 0x8(%r14), %rsi
testb $0x1, %sil
jne 0x2f38f
movq -0x38(%rbp), %rdi
movq 0x18cd3(%rip), %rax     # 0x47fc0
cmpq %rax, (%rdi)
jne 0x2f302
movq 0x18cc7(%rip), %rdx     # 0x47fc0
callq 0x23c3e
movq -0x38(%rbp), %rdi
movq (%rdi), %rdi
movq -0x30(%rbp), %rsi
movq %rbx, %rdx
callq 0xb990
movq %rax, -0x30(%rbp)
xorl %ecx, %ecx
testq %rax, %rax
sete %cl
leal 0x2(,%rcx,2), %eax
cmpl $0x2, %eax
je 0x2f1d4
jmp 0x2f3b5
movl %r13d, %eax
andl $0x7, %eax
cmpl $0x4, %eax
setne %al
testl %r13d, %r13d
setne %cl
testb %al, %cl
jne 0x2f356
decl %r13d
movl %r13d, 0x50(%rbx)
movl $0x7, %eax
jmp 0x2f324
movq -0x40(%rbp), %rax
movq (%rax), %rsi
testb $0x1, %sil
je 0x2f3a7
andq $-0x2, %rsi
addq $0x8, %rsi
movl %r13d, %edi
movq -0x30(%rbp), %rdx
movq %rbx, %rcx
callq 0xb2d0
jmp 0x2f311
movl $0x4, %eax
jmp 0x2f324
andq $-0x2, %rsi
movq (%rsi), %rsi
jmp 0x2f2a7
andq $-0x2, %rsi
movq (%rsi), %rsi
jmp 0x2f2e2
andq $-0x2, %rsi
movq (%rsi), %rsi
jmp 0x2f26a
movq -0x40(%rbp), %rdi
callq 0x33078
movq %rax, %rsi
jmp 0x2f36b
cmpl $0x4, %eax
jne 0x2f3c2
movq $0x0, -0x30(%rbp)
movq -0x30(%rbp), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop