// File: /workspace/github_cpp_makefile_star2_O1/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), %r15
movq %rsi, (%r15)
leaq 0x8(%rdi), %rax
movq %rax, -0x38(%rbp)
leaq 0x18(%rdi), %rax
movq %rax, -0x40(%rbp)
xorl %r12d, %r12d
movl 0x5c(%r14), %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x32fba
testb %al, %al
jne 0x31011
movq -0x30(%rbp), %rdi
movzbl (%rdi), %r13d
leaq 0x1(%rdi), %rax
testb %r13b, %r13b
jns 0x30c1c
movzbl (%rax), %eax
movl %eax, %ecx
shll $0x7, %ecx
addl %ecx, %r13d
addl $-0x80, %r13d
testb %al, %al
js 0x30c11
addq $0x2, %rdi
movq %rdi, %rax
jmp 0x30c1c
movl %r13d, %esi
callq 0xb1e0
movl %edx, %r13d
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0x30f8f
movl %r13d, %ecx
shrl $0x3, %ecx
decl %ecx
cmpl $0xc, %ecx
ja 0x30efb
leaq 0x4f9b(%rip), %rdx      # 0x35bdc
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
cmpb $0xa, %r13b
jne 0x30efb
orb $0x1, 0x10(%rbx)
movq 0x8(%rbx), %rsi
testb $0x1, %sil
jne 0x30f96
movl %r12d, %r15d
movq -0x40(%rbp), %r12
movq 0x1734c(%rip), %rax     # 0x47fc0
cmpq %rax, (%r12)
jne 0x30c89
movq %r12, %rdi
movq 0x1733c(%rip), %rdx     # 0x47fc0
callq 0x23c3e
movq (%r12), %r12
movq -0x30(%rbp), %rsi
movq %r12, %rdi
movq %r14, %rdx
callq 0xb990
movq %rax, -0x30(%rbp)
movq (%r12), %r13
movq 0x8(%r12), %r12
testq %r12, %r12
jns 0x30cbd
movq %r12, %rdi
leaq 0x64e4(%rip), %rsi      # 0x3719c
callq 0xb9b0
movq %r13, %rdi
movq %r12, %rsi
leaq 0x61d8(%rip), %rdx      # 0x36ea2
callq 0xb0c0
xorl %eax, %eax
cmpq $0x0, -0x30(%rbp)
sete %al
leal 0x2(,%rax,2), %eax
movl %r15d, %r12d
leaq -0x30(%rbp), %r15
jmp 0x30f56
cmpb $0x3a, %r13b
jne 0x30efb
orb $0x2, 0x10(%rbx)
cmpq $0x0, 0x20(%rbx)
jne 0x30d1b
movq -0x38(%rbp), %rax
movq (%rax), %rdi
testb $0x1, %dil
jne 0x30fb0
callq 0x32386
movq %rax, 0x20(%rbx)
movq 0x20(%rbx), %rsi
movq -0x30(%rbp), %rdx
movq %r14, %rdi
callq 0xbe36
jmp 0x30f43
cmpb $0x52, %r13b
jne 0x30efb
orb $0x10, 0x10(%rbx)
cmpq $0x0, 0x38(%rbx)
jne 0x30d5f
movq -0x38(%rbp), %rax
movq (%rax), %rdi
testb $0x1, %dil
jne 0x30fbc
callq 0x31ed6
movq %rax, 0x38(%rbx)
movq 0x38(%rbx), %rsi
movq -0x30(%rbp), %rdx
movq %r14, %rdi
callq 0xbfec
jmp 0x30f43
cmpb $0x10, %r13b
jne 0x30efb
movsbq (%rax), %rdx
leaq 0x1(%rax), %rcx
testq %rdx, %rdx
jns 0x30f6f
movzbl %dl, %edx
movzbl (%rcx), %ecx
movl %ecx, %esi
shll $0x7, %esi
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x30f64
movl %esi, %edx
addq $0x2, %rax
jmp 0x30f6c
cmpb $0x5a, %r13b
jne 0x30efb
orb $0x20, 0x10(%rbx)
cmpq $0x0, 0x40(%rbx)
jne 0x30de1
movq -0x38(%rbp), %rax
movq (%rax), %rdi
testb $0x1, %dil
jne 0x30fc8
callq 0x321d2
movq %rax, 0x40(%rbx)
movq 0x40(%rbx), %rsi
movq -0x30(%rbp), %rdx
movq %r14, %rdi
callq 0xc07e
jmp 0x30f43
cmpb $0x62, %r13b
jne 0x30efb
orb $0x40, 0x10(%rbx)
cmpq $0x0, 0x48(%rbx)
jne 0x30e25
movq -0x38(%rbp), %rax
movq (%rax), %rdi
testb $0x1, %dil
jne 0x30fd4
callq 0x32234
movq %rax, 0x48(%rbx)
movq 0x48(%rbx), %rsi
movq -0x30(%rbp), %rdx
movq %r14, %rdi
callq 0xc110
jmp 0x30f43
cmpb $0x42, %r13b
jne 0x30efb
orb $0x4, 0x10(%rbx)
cmpq $0x0, 0x28(%rbx)
jne 0x30e69
movq -0x38(%rbp), %rax
movq (%rax), %rdi
testb $0x1, %dil
jne 0x30fe0
callq 0x31c3c
movq %rax, 0x28(%rbx)
movq 0x28(%rbx), %rsi
movq -0x30(%rbp), %rdx
movq %r14, %rdi
callq 0xbec8
jmp 0x30f43
cmpb $0x4a, %r13b
jne 0x30efb
orb $0x8, 0x10(%rbx)
cmpq $0x0, 0x30(%rbx)
jne 0x30ea9
movq -0x38(%rbp), %rax
movq (%rax), %rdi
testb $0x1, %dil
jne 0x30fec
callq 0x31dec
movq %rax, 0x30(%rbx)
movq 0x30(%rbx), %rsi
movq -0x30(%rbp), %rdx
movq %r14, %rdi
callq 0xbf5a
jmp 0x30f43
cmpb $0x6a, %r13b
jne 0x30efb
orb $-0x80, 0x10(%rbx)
cmpq $0x0, 0x50(%rbx)
jne 0x30ee9
movq -0x38(%rbp), %rax
movq (%rax), %rdi
testb $0x1, %dil
jne 0x30ff8
callq 0x32306
movq %rax, 0x50(%rbx)
movq 0x50(%rbx), %rsi
movq -0x30(%rbp), %rdx
movq %r14, %rdi
callq 0xc1a2
jmp 0x30f43
movl %r13d, %eax
andl $0x7, %eax
cmpl $0x4, %eax
setne %al
testl %r13d, %r13d
setne %cl
testb %al, %cl
jne 0x30f1f
decl %r13d
movl %r13d, 0x50(%r14)
movl $0x7, %eax
jmp 0x30f56
movq -0x38(%rbp), %rax
movq (%rax), %rsi
testb $0x1, %sil
je 0x30fa2
andq $-0x2, %rsi
addq $0x8, %rsi
movl %r13d, %edi
movq -0x30(%rbp), %rdx
movq %r14, %rcx
callq 0xb2d0
movq %rax, -0x30(%rbp)
xorl %ecx, %ecx
testq %rax, %rax
sete %cl
leal 0x2(,%rcx,2), %eax
cmpl $0x2, %eax
je 0x30bcd
jmp 0x31004
movq %rax, %rdi
callq 0xb180
movq %rax, %rcx
orl $0x100, %r12d           # imm = 0x100
movq %rcx, -0x30(%rbp)
movq %rdx, 0x58(%rbx)
xorl %eax, %eax
testq %rcx, %rcx
sete %al
leal 0x2(,%rax,2), %eax
jmp 0x30f56
movl $0x4, %eax
jmp 0x30f56
andq $-0x2, %rsi
movq (%rsi), %rsi
jmp 0x30c66
movq -0x38(%rbp), %rdi
callq 0x33078
movq %rax, %rsi
jmp 0x30f34
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x30d12
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x30d56
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x30dd8
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x30e1c
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x30e60
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x30ea0
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x30ee0
cmpl $0x4, %eax
jne 0x31011
movq $0x0, -0x30(%rbp)
orl %r12d, 0x10(%rbx)
movq -0x30(%rbp), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq