// File: /workspace/github_cpp_makefile_star2_O2/mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::SaveState::_InternalParse(char const*, google::protobuf::internal::ParseContext*)
const char* SaveState::_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 string saveDate = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
          auto str = _internal_mutable_savedate();
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
          #ifndef NDEBUG
          ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Rnes.SaveState.saveDate");
          #endif  // !NDEBUG
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint64 gameTime = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
          _Internal::set_has_gametime(&has_bits);
          gametime_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional .Rnes.DmaState dma = 7;
      case 7:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
          ptr = ctx->ParseMessage(_internal_mutable_dma(), ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional .Rnes.CpuState cpu = 8;
      case 8:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
          ptr = ctx->ParseMessage(_internal_mutable_cpu(), ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional .Rnes.ApuState apu = 9;
      case 9:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
          ptr = ctx->ParseMessage(_internal_mutable_apu(), ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional .Rnes.PpuState ppu = 10;
      case 10:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) {
          ptr = ctx->ParseMessage(_internal_mutable_ppu(), ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional .Rnes.ControllerState controller = 11;
      case 11:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) {
          ptr = ctx->ParseMessage(_internal_mutable_controller(), ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional .Rnes.CpuMemoryState cpuMem = 12;
      case 12:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) {
          ptr = ctx->ParseMessage(_internal_mutable_cpumem(), ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional .Rnes.VideoMemoryState vidMem = 13;
      case 13:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) {
          ptr = ctx->ParseMessage(_internal_mutable_vidmem(), 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 $0x18, %rsp
movq %rdx, %r14
movq %rdi, %rbx
leaq -0x30(%rbp), %rax
movq %rsi, (%rax)
leaq 0x8(%rdi), %rax
movq %rax, -0x40(%rbp)
xorl %r13d, %r13d
leaq 0x6570(%rip), %r15      # 0x2bccc
movq %r14, %rdi
leaq -0x30(%rbp), %rsi
callq 0x26780
testb %al, %al
jne 0x25956
movq -0x30(%rbp), %rdi
leaq -0x34(%rbp), %rsi
xorl %edx, %edx
callq 0x2678d
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0x25976
movl -0x34(%rbp), %r12d
movl %r12d, %ecx
shrl $0x3, %ecx
decl %ecx
cmpl $0xc, %ecx
ja 0x25902
movslq (%r15,%rcx,4), %rcx
addq %r15, %rcx
jmpq *%rcx
cmpb $0xa, %r12b
jne 0x25902
movq %rbx, %rdi
callq 0x2842c
movq %rax, %r12
movq -0x30(%rbp), %rsi
movq %rax, %rdi
movq %r14, %rdx
callq 0xb990
movq %rax, -0x30(%rbp)
movq %r12, %rdi
leaq 0x77b6(%rip), %rsi      # 0x2cf92
callq 0x28457
jmp 0x2584d
cmpb $0x3a, %r12b
jne 0x25902
movq %rbx, %rdi
callq 0x1bb98
movq -0x30(%rbp), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x2848c
jmp 0x25935
cmpb $0x52, %r12b
jne 0x25902
movq %rbx, %rdi
callq 0x1bc46
movq -0x30(%rbp), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x28606
jmp 0x25935
cmpb $0x10, %r12b
jne 0x25902
orl $0x100, %r13d           # imm = 0x100
leaq -0x30(%rbp), %rdi
callq 0x267fe
movq %rax, 0x58(%rbx)
cmpq $0x0, -0x30(%rbp)
jne 0x2575c
jmp 0x25976
cmpb $0x5a, %r12b
jne 0x25902
movq %rbx, %rdi
callq 0x1bc80
movq -0x30(%rbp), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x28684
jmp 0x25935
cmpb $0x62, %r12b
jne 0x25902
movq %rbx, %rdi
callq 0x1bcba
movq -0x30(%rbp), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x28702
jmp 0x25935
cmpb $0x42, %r12b
jne 0x25902
movq %rbx, %rdi
callq 0x1bbd2
movq -0x30(%rbp), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x2850a
jmp 0x25935
cmpb $0x4a, %r12b
jne 0x25902
movq %rbx, %rdi
callq 0x1bc0c
movq -0x30(%rbp), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x28588
jmp 0x25935
cmpb $0x6a, %r12b
jne 0x25902
movq %rbx, %rdi
callq 0x1bcf4
movq -0x30(%rbp), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x28780
jmp 0x25935
testq %r12, %r12
je 0x2596d
movl %r12d, %ecx
andl $0x7, %ecx
cmpl $0x4, %ecx
je 0x2596d
movq -0x40(%rbp), %rcx
movq (%rcx), %rsi
testb $0x1, %sil
je 0x25944
andq $-0x2, %rsi
addq $0x8, %rsi
movq %r12, %rdi
movq %rax, %rdx
movq %r14, %rcx
callq 0xb300
movq %rax, -0x30(%rbp)
testq %rax, %rax
jne 0x2575c
jmp 0x25976
movq -0x40(%rbp), %rdi
callq 0x28ff8
movq %rax, %rsi
movq -0x30(%rbp), %rax
jmp 0x25927
movq -0x30(%rbp), %rax
orl %r13d, 0x10(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
decl %r12d
movl %r12d, 0x50(%r14)
jmp 0x2595a
xorl %eax, %eax
jmp 0x2595a