// File: /workspace/github_cpp_makefile_star2_O3/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)
movl 0x5c(%rdx), %edx
movq %r14, %rdi
movq %rax, %rsi
callq 0x31b9c
xorl %r15d, %r15d
testb %al, %al
je 0x2f804
orl %r15d, 0x10(%rbx)
movq -0x30(%rbp), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8(%rbx), %r13
leaq 0x18(%rbx), %rax
movq %rax, -0x38(%rbp)
xorl %r15d, %r15d
movq %r13, -0x40(%rbp)
movq -0x30(%rbp), %rdi
movzbl (%rdi), %r12d
leaq 0x1(%rdi), %rax
testb %r12b, %r12b
jns 0x2f846
movzbl (%rax), %eax
movl %eax, %ecx
shll $0x7, %ecx
addl %ecx, %r12d
addl $-0x80, %r12d
testb %al, %al
js 0x2f90c
addq $0x2, %rdi
movq %rdi, %rax
movq %rax, -0x30(%rbp)
movl %r12d, %ecx
shrl $0x3, %ecx
decl %ecx
cmpl $0xc, %ecx
ja 0x2fb4a
leaq 0x537a(%rip), %rdx      # 0x34bdc
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
cmpb $0xa, %r12b
jne 0x2fb4a
orb $0x1, 0x10(%rbx)
movq 0x8(%rbx), %rsi
testb $0x1, %sil
jne 0x2fbbe
movl %r15d, %r13d
movq -0x38(%rbp), %rcx
movq (%rcx), %r12
cmpq 0x17728(%rip), %r12     # 0x46fc0
jne 0x2f8b4
movq -0x38(%rbp), %r15
movq %r15, %rdi
movq 0x17718(%rip), %rdx     # 0x46fc0
callq 0x22bf0
movq (%r15), %r12
movq -0x30(%rbp), %rax
movq %r12, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0xa990
movq %rax, -0x30(%rbp)
movq (%r12), %r15
movq 0x8(%r12), %r12
testq %r12, %r12
jns 0x2f8e3
movq %r12, %rdi
leaq 0x68be(%rip), %rsi      # 0x3619c
callq 0xa9b0
movq %r15, %rdi
movq %r12, %rsi
leaq 0x65b2(%rip), %rdx      # 0x35ea2
callq 0xa0c0
cmpq $0x0, -0x30(%rbp)
movl %r13d, %r15d
movq -0x40(%rbp), %r13
jne 0x2fb8f
jmp 0x2fc3b
movl %r12d, %esi
callq 0xa1e0
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0x2fc3b
movl %edx, %r12d
jmp 0x2f84a
cmpb $0x3a, %r12b
jne 0x2fb4a
orb $0x2, 0x10(%rbx)
movq 0x20(%rbx), %rsi
testq %rsi, %rsi
jne 0x2f95e
movq (%r13), %rdi
testb $0x1, %dil
jne 0x2fbdb
callq 0x30ffc
movq %rax, %rsi
movq %rax, 0x20(%rbx)
movq -0x30(%rbp), %rax
movq %r14, %rdi
movq %rax, %rdx
callq 0xaf08
jmp 0x2fb82
cmpb $0x52, %r12b
jne 0x2fb4a
orb $0x10, 0x10(%rbx)
movq 0x38(%rbx), %rsi
testq %rsi, %rsi
jne 0x2f9a3
movq (%r13), %rdi
testb $0x1, %dil
jne 0x2fbe7
callq 0x30af2
movq %rax, %rsi
movq %rax, 0x38(%rbx)
movq -0x30(%rbp), %rax
movq %r14, %rdi
movq %rax, %rdx
callq 0xb0be
jmp 0x2fb82
cmpb $0x10, %r12b
jne 0x2fb4a
orl $0x100, %r15d           # imm = 0x100
movsbq (%rax), %rcx
leaq 0x1(%rax), %rdx
testq %rcx, %rcx
jns 0x2f9f2
movzbl %cl, %ecx
movzbl (%rdx), %edx
movl %edx, %esi
shll $0x7, %esi
addl %ecx, %esi
addl $-0x80, %esi
testb %dl, %dl
js 0x2fbac
movl %esi, %ecx
addq $0x2, %rax
movq %rax, %rdx
movq %rdx, -0x30(%rbp)
movq %rcx, 0x58(%rbx)
jmp 0x2fb8f
cmpb $0x5a, %r12b
jne 0x2fb4a
orb $0x20, 0x10(%rbx)
movq 0x40(%rbx), %rsi
testq %rsi, %rsi
jne 0x2fa34
movq (%r13), %rdi
testb $0x1, %dil
jne 0x2fbf3
callq 0x30dee
movq %rax, %rsi
movq %rax, 0x40(%rbx)
movq -0x30(%rbp), %rax
movq %r14, %rdi
movq %rax, %rdx
callq 0xb150
jmp 0x2fb82
cmpb $0x62, %r12b
jne 0x2fb4a
orb $0x40, 0x10(%rbx)
movq 0x48(%rbx), %rsi
testq %rsi, %rsi
jne 0x2fa79
movq (%r13), %rdi
testb $0x1, %dil
jne 0x2fbff
callq 0x30e50
movq %rax, %rsi
movq %rax, 0x48(%rbx)
movq -0x30(%rbp), %rax
movq %r14, %rdi
movq %rax, %rdx
callq 0xb1e2
jmp 0x2fb82
cmpb $0x42, %r12b
jne 0x2fb4a
orb $0x4, 0x10(%rbx)
movq 0x28(%rbx), %rsi
testq %rsi, %rsi
jne 0x2fabe
movq (%r13), %rdi
testb $0x1, %dil
jne 0x2fc0b
callq 0x30858
movq %rax, %rsi
movq %rax, 0x28(%rbx)
movq -0x30(%rbp), %rax
movq %r14, %rdi
movq %rax, %rdx
callq 0xaf9a
jmp 0x2fb82
cmpb $0x4a, %r12b
jne 0x2fb4a
orb $0x8, 0x10(%rbx)
movq 0x30(%rbx), %rsi
testq %rsi, %rsi
jne 0x2faff
movq (%r13), %rdi
testb $0x1, %dil
jne 0x2fc17
callq 0x30a08
movq %rax, %rsi
movq %rax, 0x30(%rbx)
movq -0x30(%rbp), %rax
movq %r14, %rdi
movq %rax, %rdx
callq 0xb02c
jmp 0x2fb82
cmpb $0x6a, %r12b
jne 0x2fb4a
orb $-0x80, 0x10(%rbx)
movq 0x50(%rbx), %rsi
testq %rsi, %rsi
jne 0x2fb3d
movq (%r13), %rdi
testb $0x1, %dil
jne 0x2fc23
callq 0x30f22
movq %rax, %rsi
movq %rax, 0x50(%rbx)
movq -0x30(%rbp), %rax
movq %r14, %rdi
movq %rax, %rdx
callq 0xb274
jmp 0x2fb82
testl %r12d, %r12d
je 0x2fc2f
movl %r12d, %ecx
andl $0x7, %ecx
cmpl $0x4, %ecx
je 0x2fc2f
movq (%r13), %rsi
testb $0x1, %sil
je 0x2fbca
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 0x2fc3b
movl 0x5c(%r14), %edx
movq %r14, %rdi
leaq -0x30(%rbp), %rsi
callq 0x31b9c
testb %al, %al
je 0x2f817
jmp 0x2f7ed
movq %rax, %rdi
callq 0xa180
movq %rax, -0x30(%rbp)
movq %rdx, 0x58(%rbx)
jmp 0x2fb86
andq $-0x2, %rsi
movq (%rsi), %rsi
jmp 0x2f887
movq %r13, %rdi
callq 0x31c54
movq %rax, %rsi
movq -0x30(%rbp), %rax
jmp 0x2fb74
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x2f94e
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x2f993
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x2fa24
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x2fa69
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x2faae
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x2faef
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x2fb2d
decl %r12d
movl %r12d, 0x50(%r14)
jmp 0x2f7ed
movq $0x0, -0x30(%rbp)
jmp 0x2f7ed