// File: mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::PpuState::MergeFrom(Rnes::PpuState const&)
void PpuState::MergeFrom(const PpuState& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Rnes.PpuState)
  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;

  regs_.MergeFrom(from.regs_);
  spriteram_.MergeFrom(from.spriteram_);
  cached_has_bits = from._has_bits_[0];
  if (cached_has_bits & 0x000000ffu) {
    if (cached_has_bits & 0x00000001u) {
      cycle_ = from.cycle_;
    }
    if (cached_has_bits & 0x00000002u) {
      frame_ = from.frame_;
    }
    if (cached_has_bits & 0x00000004u) {
      vramtoggle_ = from.vramtoggle_;
    }
    if (cached_has_bits & 0x00000008u) {
      vramfinexscroll_ = from.vramfinexscroll_;
    }
    if (cached_has_bits & 0x00000010u) {
      vramcurrentaddr_ = from.vramcurrentaddr_;
    }
    if (cached_has_bits & 0x00000020u) {
      vramtempaddr_ = from.vramtempaddr_;
    }
    if (cached_has_bits & 0x00000040u) {
      vrammachineaddr_ = from.vrammachineaddr_;
    }
    if (cached_has_bits & 0x00000080u) {
      vramreadlatch_ = from.vramreadlatch_;
    }
    _has_bits_[0] |= cached_has_bits;
  }
  if (cached_has_bits & 0x00000700u) {
    if (cached_has_bits & 0x00000100u) {
      scrollingmachinestate_ = from.scrollingmachinestate_;
    }
    if (cached_has_bits & 0x00000200u) {
      xscrollorigin_ = from.xscrollorigin_;
    }
    if (cached_has_bits & 0x00000400u) {
      yscrollorigin_ = from.yscrollorigin_;
    }
    _has_bits_[0] |= cached_has_bits;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdi, -0x80(%rbp)
movq %rsi, -0x88(%rbp)
movq -0x80(%rbp), %rcx
movq %rcx, -0xe8(%rbp)
movq -0x88(%rbp), %rax
movb $0x0, -0xc1(%rbp)
cmpq %rcx, %rax
je 0x51b46
jmp 0x51ba4
leaq 0x195e4(%rip), %rdx     # 0x6b131
leaq -0xc0(%rbp), %rdi
movq %rdi, -0xf8(%rbp)
movl $0x3, %esi
movl $0xf1a, %ecx            # imm = 0xF1A
callq 0xe690
movq -0xf8(%rbp), %rdi
movb $0x1, -0xc1(%rbp)
leaq 0x195c1(%rip), %rsi     # 0x6b140
callq 0xed00
movq %rax, -0xf0(%rbp)
jmp 0x51b8d
movq -0xf0(%rbp), %rsi
leaq -0xd5(%rbp), %rdi
callq 0xe820
jmp 0x51ba2
jmp 0x51ba4
testb $0x1, -0xc1(%rbp)
jne 0x51baf
jmp 0x51bbb
leaq -0xc0(%rbp), %rdi
callq 0xe9d0
movq -0xe8(%rbp), %rcx
addq $0x8, %rcx
movq -0x88(%rbp), %rax
addq $0x8, %rax
movq %rcx, -0x70(%rbp)
movq %rax, -0x78(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0x78(%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 0x51c68
movq -0x78(%rbp), %rax
movq %rax, -0x28(%rbp)
movq $0x0, -0x30(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x108(%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 0x51c51
movq -0x108(%rbp), %rdi
callq 0x66310
addq $0x8, %rax
movq %rax, -0x20(%rbp)
jmp 0x51c58
callq *-0x30(%rbp)
movq %rax, -0x20(%rbp)
movq -0x100(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x66b40
movq -0xe8(%rbp), %rdi
movl $0x0, -0xdc(%rbp)
addq $0x18, %rdi
movq -0x88(%rbp), %rsi
addq $0x18, %rsi
callq 0xe630
movq -0xe8(%rbp), %rdi
addq $0x28, %rdi
movq -0x88(%rbp), %rsi
addq $0x28, %rsi
callq 0x61520
movq -0x88(%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, -0xdc(%rbp)
movl -0xdc(%rbp), %eax
andl $0xff, %eax
cmpl $0x0, %eax
je 0x51e53
movl -0xdc(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x51d37
movq -0xe8(%rbp), %rax
movq -0x88(%rbp), %rcx
movq 0x40(%rcx), %rcx
movq %rcx, 0x40(%rax)
jmp 0x51d37
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd0(%rbp)
movl %eax, -0xd4(%rbp)
testb $0x1, -0xc1(%rbp)
jne 0x51d26
jmp 0x51d32
leaq -0xc0(%rbp), %rdi
callq 0xe9d0
jmp 0x51f06
movl -0xdc(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x51d5b
movq -0xe8(%rbp), %rax
movq -0x88(%rbp), %rcx
movq 0x48(%rcx), %rcx
movq %rcx, 0x48(%rax)
movl -0xdc(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x51d7d
movq -0xe8(%rbp), %rax
movq -0x88(%rbp), %rcx
movl 0x50(%rcx), %ecx
movl %ecx, 0x50(%rax)
movl -0xdc(%rbp), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x51d9f
movq -0xe8(%rbp), %rax
movq -0x88(%rbp), %rcx
movl 0x54(%rcx), %ecx
movl %ecx, 0x54(%rax)
movl -0xdc(%rbp), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x51dc1
movq -0xe8(%rbp), %rax
movq -0x88(%rbp), %rcx
movl 0x58(%rcx), %ecx
movl %ecx, 0x58(%rax)
movl -0xdc(%rbp), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x51de3
movq -0xe8(%rbp), %rax
movq -0x88(%rbp), %rcx
movl 0x5c(%rcx), %ecx
movl %ecx, 0x5c(%rax)
movl -0xdc(%rbp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x51e05
movq -0xe8(%rbp), %rax
movq -0x88(%rbp), %rcx
movl 0x60(%rcx), %ecx
movl %ecx, 0x60(%rax)
movl -0xdc(%rbp), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x51e29
movq -0xe8(%rbp), %rax
movq -0x88(%rbp), %rcx
movl 0x64(%rcx), %ecx
movl %ecx, 0x64(%rax)
movq -0xe8(%rbp), %rax
movl -0xdc(%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)
movl -0xdc(%rbp), %eax
andl $0x700, %eax            # imm = 0x700
cmpl $0x0, %eax
je 0x51efd
movl -0xdc(%rbp), %eax
andl $0x100, %eax            # imm = 0x100
cmpl $0x0, %eax
je 0x51e8b
movq -0xe8(%rbp), %rax
movq -0x88(%rbp), %rcx
movl 0x68(%rcx), %ecx
movl %ecx, 0x68(%rax)
movl -0xdc(%rbp), %eax
andl $0x200, %eax            # imm = 0x200
cmpl $0x0, %eax
je 0x51eaf
movq -0xe8(%rbp), %rax
movq -0x88(%rbp), %rcx
movl 0x6c(%rcx), %ecx
movl %ecx, 0x6c(%rax)
movl -0xdc(%rbp), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
je 0x51ed3
movq -0xe8(%rbp), %rax
movq -0x88(%rbp), %rcx
movl 0x70(%rcx), %ecx
movl %ecx, 0x70(%rax)
movq -0xe8(%rbp), %rax
movl -0xdc(%rbp), %edx
addq $0x10, %rax
movq %rax, -0x60(%rbp)
movl $0x0, -0x64(%rbp)
movq -0x60(%rbp), %rax
movslq -0x64(%rbp), %rcx
orl (%rax,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
movq -0xd0(%rbp), %rdi
callq 0xe700
nopw %cs:(%rax,%rax)