// File: mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::MmcState_Mmc3State::MergeFrom(Rnes::MmcState_Mmc3State const&)
void MmcState_Mmc3State::MergeFrom(const MmcState_Mmc3State& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Rnes.MmcState.Mmc3State)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = from._has_bits_[0];
  if (cached_has_bits & 0x000000ffu) {
    if (cached_has_bits & 0x00000001u) {
      _internal_set_bankregister(from._internal_bankregister());
    }
    if (cached_has_bits & 0x00000002u) {
      bankselectreg_ = from.bankselectreg_;
    }
    if (cached_has_bits & 0x00000004u) {
      mirrorreg_ = from.mirrorreg_;
    }
    if (cached_has_bits & 0x00000008u) {
      prgramreg_ = from.prgramreg_;
    }
    if (cached_has_bits & 0x00000010u) {
      irqreloadreg_ = from.irqreloadreg_;
    }
    if (cached_has_bits & 0x00000020u) {
      irqcounterreg_ = from.irqcounterreg_;
    }
    if (cached_has_bits & 0x00000040u) {
      irqenabled_ = from.irqenabled_;
    }
    if (cached_has_bits & 0x00000080u) {
      irqpending_ = from.irqpending_;
    }
    _has_bits_[0] |= cached_has_bits;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0x70(%rbp)
movq %rsi, -0x78(%rbp)
movq -0x70(%rbp), %rcx
movq %rcx, -0xd8(%rbp)
movq -0x78(%rbp), %rax
movb $0x0, -0xb1(%rbp)
cmpq %rcx, %rax
je 0x552f0
jmp 0x5534e
leaq 0x15e3a(%rip), %rdx     # 0x6b131
leaq -0xb0(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
movl $0x3, %esi
movl $0x12c9, %ecx           # imm = 0x12C9
callq 0xe690
movq -0xe8(%rbp), %rdi
movb $0x1, -0xb1(%rbp)
leaq 0x15e17(%rip), %rsi     # 0x6b140
callq 0xed00
movq %rax, -0xe0(%rbp)
jmp 0x55337
movq -0xe0(%rbp), %rsi
leaq -0xc5(%rbp), %rdi
callq 0xe820
jmp 0x5534c
jmp 0x5534e
testb $0x1, -0xb1(%rbp)
jne 0x55359
jmp 0x55365
leaq -0xb0(%rbp), %rdi
callq 0xe9d0
movq -0xd8(%rbp), %rcx
addq $0x8, %rcx
movq -0x78(%rbp), %rax
addq $0x8, %rax
movq %rcx, -0x60(%rbp)
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
andq $0x1, %rax
cmpl $0x1, %eax
jne 0x5540f
movq -0x68(%rbp), %rax
movq %rax, -0x28(%rbp)
movq $0x0, -0x30(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
andq $0x1, %rax
cmpl $0x1, %eax
jne 0x553f8
movq -0xf8(%rbp), %rdi
callq 0x66310
addq $0x8, %rax
movq %rax, -0x20(%rbp)
jmp 0x553ff
callq *-0x30(%rbp)
movq %rax, -0x20(%rbp)
movq -0xf0(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x66b40
movl $0x0, -0xcc(%rbp)
movq -0x78(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x40(%rbp)
movl $0x0, -0x44(%rbp)
movq -0x40(%rbp), %rax
movslq -0x44(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xcc(%rbp)
movl -0xcc(%rbp), %eax
andl $0xff, %eax
cmpl $0x0, %eax
je 0x555b2
movl -0xcc(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x554a7
movq -0x78(%rbp), %rdi
callq 0x447c0
movq -0xd8(%rbp), %rdi
movq %rax, %rsi
callq 0x61ed0
jmp 0x554a7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc0(%rbp)
movl %eax, -0xc4(%rbp)
testb $0x1, -0xb1(%rbp)
jne 0x55496
jmp 0x554a2
leaq -0xb0(%rbp), %rdi
callq 0xe9d0
jmp 0x555bb
movl -0xcc(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x554c6
movq -0xd8(%rbp), %rax
movq -0x78(%rbp), %rcx
movl 0x20(%rcx), %ecx
movl %ecx, 0x20(%rax)
movl -0xcc(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x554e5
movq -0xd8(%rbp), %rax
movq -0x78(%rbp), %rcx
movl 0x24(%rcx), %ecx
movl %ecx, 0x24(%rax)
movl -0xcc(%rbp), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x55504
movq -0xd8(%rbp), %rax
movq -0x78(%rbp), %rcx
movl 0x28(%rcx), %ecx
movl %ecx, 0x28(%rax)
movl -0xcc(%rbp), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x55523
movq -0xd8(%rbp), %rax
movq -0x78(%rbp), %rcx
movl 0x2c(%rcx), %ecx
movl %ecx, 0x2c(%rax)
movl -0xcc(%rbp), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x55542
movq -0xd8(%rbp), %rax
movq -0x78(%rbp), %rcx
movl 0x30(%rcx), %ecx
movl %ecx, 0x30(%rax)
movl -0xcc(%rbp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x55564
movq -0xd8(%rbp), %rax
movq -0x78(%rbp), %rcx
movb 0x34(%rcx), %cl
andb $0x1, %cl
movb %cl, 0x34(%rax)
movl -0xcc(%rbp), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x55588
movq -0xd8(%rbp), %rax
movq -0x78(%rbp), %rcx
movb 0x35(%rcx), %cl
andb $0x1, %cl
movb %cl, 0x35(%rax)
movq -0xd8(%rbp), %rax
movl -0xcc(%rbp), %edx
addq $0x10, %rax
movq %rax, -0x50(%rbp)
movl $0x0, -0x54(%rbp)
movq -0x50(%rbp), %rax
movslq -0x54(%rbp), %rcx
orl (%rax,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
movq -0xc0(%rbp), %rdi
callq 0xe700
nopw (%rax,%rax)