// File: mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::SaveState::MergeFrom(Rnes::SaveState const&)
void SaveState::MergeFrom(const SaveState& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Rnes.SaveState)
  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_savedate(from._internal_savedate());
    }
    if (cached_has_bits & 0x00000002u) {
      _internal_mutable_dma()->::Rnes::DmaState::MergeFrom(from._internal_dma());
    }
    if (cached_has_bits & 0x00000004u) {
      _internal_mutable_cpu()->::Rnes::CpuState::MergeFrom(from._internal_cpu());
    }
    if (cached_has_bits & 0x00000008u) {
      _internal_mutable_apu()->::Rnes::ApuState::MergeFrom(from._internal_apu());
    }
    if (cached_has_bits & 0x00000010u) {
      _internal_mutable_ppu()->::Rnes::PpuState::MergeFrom(from._internal_ppu());
    }
    if (cached_has_bits & 0x00000020u) {
      _internal_mutable_controller()->::Rnes::ControllerState::MergeFrom(from._internal_controller());
    }
    if (cached_has_bits & 0x00000040u) {
      _internal_mutable_cpumem()->::Rnes::CpuMemoryState::MergeFrom(from._internal_cpumem());
    }
    if (cached_has_bits & 0x00000080u) {
      _internal_mutable_vidmem()->::Rnes::VideoMemoryState::MergeFrom(from._internal_vidmem());
    }
  }
  if (cached_has_bits & 0x00000100u) {
    _internal_set_gametime(from._internal_gametime());
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq %rdi, -0x60(%rbp)
movq %rsi, -0x68(%rbp)
movq -0x60(%rbp), %rcx
movq %rcx, -0xc8(%rbp)
movq -0x68(%rbp), %rax
movb $0x0, -0xa1(%rbp)
cmpq %rcx, %rax
je 0x5d550
jmp 0x5d5ae
leaq 0xdbda(%rip), %rdx      # 0x6b131
leaq -0xa0(%rbp), %rdi
movq %rdi, -0xd8(%rbp)
movl $0x3, %esi
movl $0x1aa8, %ecx           # imm = 0x1AA8
callq 0xe690
movq -0xd8(%rbp), %rdi
movb $0x1, -0xa1(%rbp)
leaq 0xdbb7(%rip), %rsi      # 0x6b140
callq 0xed00
movq %rax, -0xd0(%rbp)
jmp 0x5d597
movq -0xd0(%rbp), %rsi
leaq -0xb5(%rbp), %rdi
callq 0xe820
jmp 0x5d5ac
jmp 0x5d5ae
testb $0x1, -0xa1(%rbp)
jne 0x5d5b9
jmp 0x5d5c5
leaq -0xa0(%rbp), %rdi
callq 0xe9d0
movq -0xc8(%rbp), %rcx
addq $0x8, %rcx
movq -0x68(%rbp), %rax
addq $0x8, %rax
movq %rcx, -0x50(%rbp)
movq %rax, -0x58(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0x58(%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 0x5d66f
movq -0x58(%rbp), %rax
movq %rax, -0x28(%rbp)
movq $0x0, -0x30(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0xe8(%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 0x5d658
movq -0xe8(%rbp), %rdi
callq 0x66310
addq $0x8, %rax
movq %rax, -0x20(%rbp)
jmp 0x5d65f
callq *-0x30(%rbp)
movq %rax, -0x20(%rbp)
movq -0xe0(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x66b40
movl $0x0, -0xbc(%rbp)
movq -0x68(%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, -0xbc(%rbp)
movl -0xbc(%rbp), %eax
andl $0xff, %eax
cmpl $0x0, %eax
je 0x5d89a
movl -0xbc(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x5d707
movq -0x68(%rbp), %rdi
callq 0x63970
movq -0xc8(%rbp), %rdi
movq %rax, %rsi
callq 0x64eb0
jmp 0x5d707
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb0(%rbp)
movl %eax, -0xb4(%rbp)
testb $0x1, -0xa1(%rbp)
jne 0x5d6f6
jmp 0x5d702
leaq -0xa0(%rbp), %rdi
callq 0xe9d0
jmp 0x5d8cb
movl -0xbc(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x5d740
movq -0xc8(%rbp), %rdi
callq 0x3e720
movq %rax, -0xf0(%rbp)
movq -0x68(%rbp), %rdi
callq 0x3ebf0
movq -0xf0(%rbp), %rdi
movq %rax, %rsi
callq 0x5aec0
movl -0xbc(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x5d779
movq -0xc8(%rbp), %rdi
callq 0x3e880
movq %rax, -0xf8(%rbp)
movq -0x68(%rbp), %rdi
callq 0x3ec90
movq -0xf8(%rbp), %rdi
movq %rax, %rsi
callq 0x47050
movl -0xbc(%rbp), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x5d7b2
movq -0xc8(%rbp), %rdi
callq 0x3e910
movq %rax, -0x100(%rbp)
movq -0x68(%rbp), %rdi
callq 0x3ecd0
movq -0x100(%rbp), %rdi
movq %rax, %rsi
callq 0x4e460
movl -0xbc(%rbp), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x5d7eb
movq -0xc8(%rbp), %rdi
callq 0x3e9a0
movq %rax, -0x108(%rbp)
movq -0x68(%rbp), %rdi
callq 0x3ed10
movq -0x108(%rbp), %rdi
movq %rax, %rsi
callq 0x51b10
movl -0xbc(%rbp), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x5d824
movq -0xc8(%rbp), %rdi
callq 0x3ea30
movq %rax, -0x110(%rbp)
movq -0x68(%rbp), %rdi
callq 0x3ed50
movq -0x110(%rbp), %rdi
movq %rax, %rsi
callq 0x579b0
movl -0xbc(%rbp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x5d85d
movq -0xc8(%rbp), %rdi
callq 0x3eac0
movq %rax, -0x118(%rbp)
movq -0x68(%rbp), %rdi
callq 0x3ed90
movq -0x118(%rbp), %rdi
movq %rax, %rsi
callq 0x588c0
movl -0xbc(%rbp), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x5d898
movq -0xc8(%rbp), %rdi
callq 0x3eb50
movq %rax, -0x120(%rbp)
movq -0x68(%rbp), %rdi
callq 0x3edd0
movq -0x120(%rbp), %rdi
movq %rax, %rsi
callq 0x59b40
jmp 0x5d89a
movl -0xbc(%rbp), %eax
andl $0x100, %eax            # imm = 0x100
cmpl $0x0, %eax
je 0x5d8c2
movq -0x68(%rbp), %rdi
callq 0x64cb0
movq -0xc8(%rbp), %rdi
movq %rax, %rsi
callq 0x64f30
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
movq -0xb0(%rbp), %rdi
callq 0xe700
nopw (%rax,%rax)