// File: /workspace/github_cpp_makefile_star2_O3/mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::MmcState_Mmc3State::_InternalParse(char const*, google::protobuf::internal::ParseContext*)
const char* MmcState_Mmc3State::_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 uint32 bankSelectReg = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
          _Internal::set_has_bankselectreg(&has_bits);
          bankselectreg_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 mirrorReg = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
          _Internal::set_has_mirrorreg(&has_bits);
          mirrorreg_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 prgRamReg = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
          _Internal::set_has_prgramreg(&has_bits);
          prgramreg_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional bytes bankRegister = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
          auto str = _internal_mutable_bankregister();
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 irqReloadReg = 5;
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
          _Internal::set_has_irqreloadreg(&has_bits);
          irqreloadreg_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional uint32 irqCounterReg = 6;
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
          _Internal::set_has_irqcounterreg(&has_bits);
          irqcounterreg_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional bool irqEnabled = 7;
      case 7:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
          _Internal::set_has_irqenabled(&has_bits);
          irqenabled_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional bool irqPending = 8;
      case 8:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) {
          _Internal::set_has_irqpending(&has_bits);
          irqpending_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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 %r12d, %r12d
testb %al, %al
je 0x2b39a
orl %r12d, 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), %rax
movq %rax, -0x38(%rbp)
leaq 0x18(%rbx), %rax
movq %rax, -0x40(%rbp)
xorl %r12d, %r12d
leaq 0x9808(%rip), %r13      # 0x34bbc
movq -0x30(%rbp), %rdi
movzbl (%rdi), %r15d
leaq 0x1(%rdi), %rax
testb %r15b, %r15b
jns 0x2b3df
movzbl (%rax), %eax
movl %eax, %ecx
shll $0x7, %ecx
addl %ecx, %r15d
addl $-0x80, %r15d
testb %al, %al
js 0x2b440
addq $0x2, %rdi
movq %rdi, %rax
movq %rax, -0x30(%rbp)
movl %r15d, %ecx
shrl $0x3, %ecx
decl %ecx
cmpl $0x7, %ecx
ja 0x2b648
movslq (%r13,%rcx,4), %rcx
addq %r13, %rcx
jmpq *%rcx
cmpb $0x8, %r15b
jne 0x2b648
orl $0x2, %r12d
movzbl (%rax), %esi
leaq 0x1(%rax), %rcx
testb %sil, %sil
jns 0x2b434
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x2b6e8
addq $0x2, %rax
movq %rax, %rcx
movq %rcx, -0x30(%rbp)
movl %esi, 0x20(%rbx)
jmp 0x2b694
movl %r15d, %esi
callq 0xa1e0
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0x2b763
movl %edx, %r15d
jmp 0x2b3e3
cmpb $0x28, %r15b
jne 0x2b648
orl $0x10, %r12d
movzbl (%rax), %esi
leaq 0x1(%rax), %rcx
testb %sil, %sil
jns 0x2b490
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x2b6b1
addq $0x2, %rax
movq %rax, %rcx
movq %rcx, -0x30(%rbp)
movl %esi, 0x2c(%rbx)
jmp 0x2b694
cmpb $0x18, %r15b
jne 0x2b648
orl $0x8, %r12d
movzbl (%rax), %esi
leaq 0x1(%rax), %rcx
testb %sil, %sil
jns 0x2b4d2
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x2b6c2
addq $0x2, %rax
movq %rax, %rcx
movq %rcx, -0x30(%rbp)
movl %esi, 0x28(%rbx)
jmp 0x2b694
cmpb $0x22, %r15b
jne 0x2b648
orb $0x1, 0x10(%rbx)
movq 0x8(%rbx), %rsi
testb $0x1, %sil
jne 0x2b736
movq -0x40(%rbp), %rcx
movq (%rcx), %rdi
cmpq 0x1bab8(%rip), %rdi     # 0x46fc0
jne 0x2b524
movq -0x40(%rbp), %r15
movq %r15, %rdi
movq 0x1baa8(%rip), %rdx     # 0x46fc0
callq 0x22bf0
movq (%r15), %rdi
movq -0x30(%rbp), %rax
movq %rax, %rsi
movq %r14, %rdx
callq 0xa990
jmp 0x2b687
cmpb $0x40, %r15b
jne 0x2b648
orl $0x80, %r12d
movsbq (%rax), %rcx
leaq 0x1(%rax), %rdx
testq %rcx, %rcx
jns 0x2b573
movzbl %cl, %ecx
movzbl (%rdx), %edx
movl %edx, %esi
shll $0x7, %esi
addl %ecx, %esi
addl $-0x80, %esi
testb %dl, %dl
js 0x2b6d3
movl %esi, %ecx
addq $0x2, %rax
movq %rax, %rdx
movq %rdx, -0x30(%rbp)
testq %rcx, %rcx
setne 0x35(%rbx)
jmp 0x2b694
cmpb $0x10, %r15b
jne 0x2b648
orl $0x4, %r12d
movzbl (%rax), %esi
leaq 0x1(%rax), %rcx
testb %sil, %sil
jns 0x2b5b9
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x2b6f9
addq $0x2, %rax
movq %rax, %rcx
movq %rcx, -0x30(%rbp)
movl %esi, 0x24(%rbx)
jmp 0x2b694
cmpb $0x30, %r15b
jne 0x2b648
orl $0x20, %r12d
movzbl (%rax), %esi
leaq 0x1(%rax), %rcx
testb %sil, %sil
jns 0x2b5f7
movzbl (%rcx), %ecx
movl %ecx, %edx
shll $0x7, %edx
addl %edx, %esi
addl $-0x80, %esi
testb %cl, %cl
js 0x2b70a
addq $0x2, %rax
movq %rax, %rcx
movq %rcx, -0x30(%rbp)
movl %esi, 0x30(%rbx)
jmp 0x2b694
cmpb $0x38, %r15b
jne 0x2b648
orl $0x40, %r12d
movsbq (%rax), %rcx
leaq 0x1(%rax), %rdx
testq %rcx, %rcx
jns 0x2b63b
movzbl %cl, %ecx
movzbl (%rdx), %edx
movl %edx, %esi
shll $0x7, %esi
addl %ecx, %esi
addl $-0x80, %esi
testb %dl, %dl
js 0x2b71e
movl %esi, %ecx
addq $0x2, %rax
movq %rax, %rdx
movq %rdx, -0x30(%rbp)
testq %rcx, %rcx
setne 0x34(%rbx)
jmp 0x2b694
testl %r15d, %r15d
je 0x2b757
movl %r15d, %ecx
andl $0x7, %ecx
cmpl $0x4, %ecx
je 0x2b757
movq -0x38(%rbp), %rcx
movq (%rcx), %rsi
testb $0x1, %sil
je 0x2b742
andq $-0x2, %rsi
addq $0x8, %rsi
movl %r15d, %edi
movq %rax, %rdx
movq %r14, %rcx
callq 0xa2d0
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0x2b763
movl 0x5c(%r14), %edx
movq %r14, %rdi
leaq -0x30(%rbp), %rsi
callq 0x31b9c
testb %al, %al
je 0x2b3b4
jmp 0x2b383
movq %rax, %rdi
callq 0xa6e0
movq %rax, -0x30(%rbp)
movl %edx, 0x2c(%rbx)
jmp 0x2b68b
movq %rax, %rdi
callq 0xa6e0
movq %rax, -0x30(%rbp)
movl %edx, 0x28(%rbx)
jmp 0x2b68b
movq %rax, %rdi
callq 0xa180
movq %rax, -0x30(%rbp)
testq %rdx, %rdx
setne 0x35(%rbx)
jmp 0x2b68b
movq %rax, %rdi
callq 0xa6e0
movq %rax, -0x30(%rbp)
movl %edx, 0x20(%rbx)
jmp 0x2b68b
movq %rax, %rdi
callq 0xa6e0
movq %rax, -0x30(%rbp)
movl %edx, 0x24(%rbx)
jmp 0x2b68b
movq %rax, %rdi
callq 0xa6e0
movq %rax, -0x30(%rbp)
movl %edx, 0x30(%rbx)
jmp 0x2b68b
movq %rax, %rdi
callq 0xa180
movq %rax, -0x30(%rbp)
testq %rdx, %rdx
setne 0x34(%rbx)
jmp 0x2b68b
andq $-0x2, %rsi
movq (%rsi), %rsi
jmp 0x2b4fa
movq -0x38(%rbp), %rdi
callq 0x31c54
movq %rax, %rsi
movq -0x30(%rbp), %rax
jmp 0x2b679
decl %r15d
movl %r15d, 0x50(%r14)
jmp 0x2b383
movq $0x0, -0x30(%rbp)
jmp 0x2b383