// File: /workspace/github_cpp_makefile_star2_O3/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 0x303b9
leaq 0x5912(%rip), %rdx      # 0x35c91
leaq -0x60(%rbp), %r15
movq %r15, %rdi
movl $0x3, %esi
movl $0x1aa8, %ecx           # imm = 0x1AA8
callq 0xa450
leaq 0x5904(%rip), %rsi      # 0x35ca0
movq %r15, %rdi
callq 0xa980
leaq -0x21(%rbp), %rdi
movq %rax, %rsi
callq 0xa600
leaq -0x60(%rbp), %rdi
callq 0xa730
leaq 0x8(%rbx), %r15
movq 0x8(%r14), %rsi
testb $0x1, %sil
je 0x303d7
andq $-0x2, %rsi
addq $0x8, %rsi
movq %r15, %rdi
callq 0x31dc8
movl 0x10(%r14), %r12d
testb %r12b, %r12b
je 0x305f6
testb $0x1, %r12b
je 0x30422
movq 0x18(%r14), %rdx
orl $0x1, 0x10(%rbx)
leaq 0x18(%rbx), %rdi
movq 0x8(%rbx), %rsi
testb $0x1, %sil
jne 0x30619
movq (%rdi), %rax
cmpq 0x16bb2(%rip), %rax     # 0x46fc0
je 0x3041d
movq %rax, %rdi
movq %rdx, %rsi
callq 0xa900
jmp 0x30422
callq 0x22bf0
testb $0x2, %r12b
je 0x30465
orb $0x2, 0x10(%rbx)
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
jne 0x3044e
movq (%r15), %rdi
testb $0x1, %dil
jne 0x30625
callq 0x30ffc
movq %rax, %rdi
movq %rax, 0x20(%rbx)
movq 0x20(%r14), %rax
testq %rax, %rax
leaq 0x176bc(%rip), %rsi     # 0x47b18
cmovneq %rax, %rsi
callq 0x2ec9a
testb $0x4, %r12b
je 0x304a8
orb $0x4, 0x10(%rbx)
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
jne 0x30491
movq (%r15), %rdi
testb $0x1, %dil
jne 0x30631
callq 0x30858
movq %rax, %rdi
movq %rax, 0x28(%rbx)
movq 0x28(%r14), %rax
testq %rax, %rax
leaq 0x17369(%rip), %rsi     # 0x47808
cmovneq %rax, %rsi
callq 0x2438e
testb $0x8, %r12b
je 0x304eb
orb $0x8, 0x10(%rbx)
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
jne 0x304d4
movq (%r15), %rdi
testb $0x1, %dil
jne 0x3063d
callq 0x30a08
movq %rax, %rdi
movq %rax, 0x30(%rbx)
movq 0x30(%r14), %rax
testq %rax, %rax
leaq 0x173fe(%rip), %rsi     # 0x478e0
cmovneq %rax, %rsi
callq 0x2811e
testb $0x10, %r12b
je 0x3052e
orb $0x10, 0x10(%rbx)
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
jne 0x30517
movq (%r15), %rdi
testb $0x1, %dil
jne 0x30649
callq 0x30af2
movq %rax, %rdi
movq %rax, 0x38(%rbx)
movq 0x38(%r14), %rax
testq %rax, %rax
leaq 0x17453(%rip), %rsi     # 0x47978
cmovneq %rax, %rsi
callq 0x2a114
testb $0x20, %r12b
je 0x30571
orb $0x20, 0x10(%rbx)
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
jne 0x3055a
movq (%r15), %rdi
testb $0x1, %dil
jne 0x30655
callq 0x30dee
movq %rax, %rdi
movq %rax, 0x40(%rbx)
movq 0x40(%r14), %rax
testq %rax, %rax
leaq 0x17538(%rip), %rsi     # 0x47aa0
cmovneq %rax, %rsi
callq 0x2d1a0
testb $0x40, %r12b
je 0x305b4
orb $0x40, 0x10(%rbx)
movq 0x48(%rbx), %rdi
testq %rdi, %rdi
jne 0x3059d
movq (%r15), %rdi
testb $0x1, %dil
jne 0x30661
callq 0x30e50
movq %rax, %rdi
movq %rax, 0x48(%rbx)
movq 0x48(%r14), %rax
testq %rax, %rax
leaq 0x17515(%rip), %rsi     # 0x47ac0
cmovneq %rax, %rsi
callq 0x2d89a
testb %r12b, %r12b
jns 0x305f6
orb $-0x80, 0x10(%rbx)
movq 0x50(%rbx), %rdi
testq %rdi, %rdi
jne 0x305df
movq (%r15), %rdi
testb $0x1, %dil
jne 0x3066d
callq 0x30f22
movq %rax, %rdi
movq %rax, 0x50(%rbx)
movq 0x50(%r14), %rax
testq %rax, %rax
leaq 0x174fb(%rip), %rsi     # 0x47ae8
cmovneq %rax, %rsi
callq 0x2e20e
btl $0x8, %r12d
jae 0x3060c
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 0x30404
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x30442
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x30485
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x304c8
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x3050b
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x3054e
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x30591
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x305d3
jmp 0x3067b
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0xa730
movq %rbx, %rdi
callq 0xa4d0
nop