// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %rbx
cmpq %rdi, %rsi
jne 0x3179d
leaq 0x552e(%rip), %rdx      # 0x36c91
leaq -0x60(%rbp), %r15
movq %r15, %rdi
movl $0x3, %esi
movl $0x1aa8, %ecx           # imm = 0x1AA8
callq 0xb450
leaq 0x5520(%rip), %rsi      # 0x36ca0
movq %r15, %rdi
callq 0xb980
leaq -0x21(%rbp), %rdi
movq %rax, %rsi
callq 0xb600
leaq -0x60(%rbp), %rdi
callq 0xb730
cmpq %rbx, %r14
leaq 0x8(%rbx), %r15
movq 0x8(%r14), %rsi
testb $0x1, %sil
je 0x317be
andq $-0x2, %rsi
addq $0x8, %rsi
movq %r15, %rdi
callq 0x331ee
movl 0x10(%r14), %r12d
testb %r12b, %r12b
je 0x319d6
testb $0x1, %r12b
je 0x31809
movq 0x18(%r14), %rdx
orl $0x1, 0x10(%rbx)
leaq 0x18(%rbx), %rdi
movq 0x8(%rbx), %rsi
testb $0x1, %sil
jne 0x319f9
movq (%rdi), %rax
cmpq 0x167cb(%rip), %rax     # 0x47fc0
je 0x31804
movq %rax, %rdi
movq %rdx, %rsi
callq 0xb900
jmp 0x31809
callq 0x23c3e
testb $0x2, %r12b
je 0x3184b
orb $0x2, 0x10(%rbx)
cmpq $0x0, 0x20(%rbx)
jne 0x31830
movq (%r15), %rdi
testb $0x1, %dil
jne 0x31a05
callq 0x32386
movq %rax, 0x20(%rbx)
movq 0x20(%rbx), %rdi
movq 0x20(%r14), %rax
testq %rax, %rax
leaq 0x172d6(%rip), %rsi     # 0x48b18
cmovneq %rax, %rsi
callq 0x30044
testb $0x4, %r12b
je 0x3188d
orb $0x4, 0x10(%rbx)
cmpq $0x0, 0x28(%rbx)
jne 0x31872
movq (%r15), %rdi
testb $0x1, %dil
jne 0x31a11
callq 0x31c3c
movq %rax, 0x28(%rbx)
movq 0x28(%rbx), %rdi
movq 0x28(%r14), %rax
testq %rax, %rax
leaq 0x16f84(%rip), %rsi     # 0x48808
cmovneq %rax, %rsi
callq 0x253c0
testb $0x8, %r12b
je 0x318cf
orb $0x8, 0x10(%rbx)
cmpq $0x0, 0x30(%rbx)
jne 0x318b4
movq (%r15), %rdi
testb $0x1, %dil
jne 0x31a1d
callq 0x31dec
movq %rax, 0x30(%rbx)
movq 0x30(%rbx), %rdi
movq 0x30(%r14), %rax
testq %rax, %rax
leaq 0x1701a(%rip), %rsi     # 0x488e0
cmovneq %rax, %rsi
callq 0x29202
testb $0x10, %r12b
je 0x31911
orb $0x10, 0x10(%rbx)
cmpq $0x0, 0x38(%rbx)
jne 0x318f6
movq (%r15), %rdi
testb $0x1, %dil
jne 0x31a29
callq 0x31ed6
movq %rax, 0x38(%rbx)
movq 0x38(%rbx), %rdi
movq 0x38(%r14), %rax
testq %rax, %rax
leaq 0x17070(%rip), %rsi     # 0x48978
cmovneq %rax, %rsi
callq 0x2b338
testb $0x20, %r12b
je 0x31953
orb $0x20, 0x10(%rbx)
cmpq $0x0, 0x40(%rbx)
jne 0x31938
movq (%r15), %rdi
testb $0x1, %dil
jne 0x31a35
callq 0x321d2
movq %rax, 0x40(%rbx)
movq 0x40(%rbx), %rdi
movq 0x40(%r14), %rax
testq %rax, %rax
leaq 0x17156(%rip), %rsi     # 0x48aa0
cmovneq %rax, %rsi
callq 0x2e536
testb $0x40, %r12b
je 0x31995
orb $0x40, 0x10(%rbx)
cmpq $0x0, 0x48(%rbx)
jne 0x3197a
movq (%r15), %rdi
testb $0x1, %dil
jne 0x31a41
callq 0x32234
movq %rax, 0x48(%rbx)
movq 0x48(%rbx), %rdi
movq 0x48(%r14), %rax
testq %rax, %rax
leaq 0x17134(%rip), %rsi     # 0x48ac0
cmovneq %rax, %rsi
callq 0x2ec36
testb %r12b, %r12b
jns 0x319d6
orb $-0x80, 0x10(%rbx)
cmpq $0x0, 0x50(%rbx)
jne 0x319bb
movq (%r15), %rdi
testb $0x1, %dil
jne 0x31a4d
callq 0x32306
movq %rax, 0x50(%rbx)
movq 0x50(%rbx), %rdi
movq 0x50(%r14), %rax
testq %rax, %rax
leaq 0x1711b(%rip), %rsi     # 0x48ae8
cmovneq %rax, %rsi
callq 0x2f5b2
btl $0x8, %r12d
jae 0x319ec
movq 0x58(%r14), %rax
orl $0x100, 0x10(%rbx)      # imm = 0x100
movq %rax, 0x58(%rbx)
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
andq $-0x2, %rsi
movq (%rsi), %rsi
jmp 0x317eb
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x31827
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x31869
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x318ab
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x318ed
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x3192f
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x31971
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x319b2
jmp 0x31a5b
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0xb730
movq %rbx, %rdi
callq 0xb4d0
nop