// File: /workspace/github_cpp_makefile_star2_O1/mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::SaveState::SaveState(Rnes::SaveState const&)
SaveState::SaveState(const SaveState& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      _has_bits_(from._has_bits_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  savedate_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  if (from._internal_has_savedate()) {
    savedate_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_savedate(),
      GetArena());
  }
  if (from._internal_has_dma()) {
    dma_ = new ::Rnes::DmaState(*from.dma_);
  } else {
    dma_ = nullptr;
  }
  if (from._internal_has_cpu()) {
    cpu_ = new ::Rnes::CpuState(*from.cpu_);
  } else {
    cpu_ = nullptr;
  }
  if (from._internal_has_apu()) {
    apu_ = new ::Rnes::ApuState(*from.apu_);
  } else {
    apu_ = nullptr;
  }
  if (from._internal_has_ppu()) {
    ppu_ = new ::Rnes::PpuState(*from.ppu_);
  } else {
    ppu_ = nullptr;
  }
  if (from._internal_has_controller()) {
    controller_ = new ::Rnes::ControllerState(*from.controller_);
  } else {
    controller_ = nullptr;
  }
  if (from._internal_has_cpumem()) {
    cpumem_ = new ::Rnes::CpuMemoryState(*from.cpumem_);
  } else {
    cpumem_ = nullptr;
  }
  if (from._internal_has_vidmem()) {
    vidmem_ = new ::Rnes::VideoMemoryState(*from.vidmem_);
  } else {
    vidmem_ = nullptr;
  }
  gametime_ = from.gametime_;
  // @@protoc_insertion_point(copy_constructor:Rnes.SaveState)
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rdi), %r15
movq $0x0, 0x8(%rdi)
leaq 0x17786(%rip), %rax     # 0x47ac0
movq %rax, (%rdi)
movl 0x10(%rsi), %eax
movl %eax, 0x10(%rdi)
movl $0x0, 0x14(%rdi)
movq 0x8(%rsi), %rsi
testb $0x1, %sil
je 0x30364
andq $-0x2, %rsi
addq $0x8, %rsi
movq %r15, %rdi
callq 0x331ee
movq 0x17c55(%rip), %rax     # 0x47fc0
movq %rax, 0x18(%rbx)
testb $0x1, 0x10(%r14)
je 0x30390
leaq 0x18(%rbx), %rdi
movq 0x18(%r14), %rdx
movq (%r15), %rsi
testb $0x1, %sil
jne 0x3070e
callq 0x23c3e
movl 0x10(%r14), %r12d
testb $0x2, %r12b
je 0x303e2
cmpq $0x0, 0x20(%r14)
jne 0x303e2
leaq 0x6b7a(%rip), %rdx      # 0x36f22
leaq -0x60(%rbp), %r15
movq %r15, %rdi
movl $0x3, %esi
movl $0x1ceb, %ecx           # imm = 0x1CEB
callq 0xb450
leaq 0x6ca4(%rip), %rsi      # 0x37069
movq %r15, %rdi
callq 0xb980
leaq -0x21(%rbp), %rdi
movq %rax, %rsi
callq 0xb600
leaq -0x60(%rbp), %rdi
callq 0xb730
testb $0x2, %r12b
je 0x30406
movq 0x20(%r14), %r12
movl $0x28, %edi
callq 0xb130
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
callq 0x2fa0c
jmp 0x30409
xorl %r15d, %r15d
movq %r15, 0x20(%rbx)
movl 0x10(%r14), %r12d
testb $0x4, %r12b
je 0x3045f
cmpq $0x0, 0x28(%r14)
jne 0x3045f
leaq 0x6afd(%rip), %rdx      # 0x36f22
leaq -0x60(%rbp), %r15
movq %r15, %rdi
movl $0x3, %esi
movl $0x1d3c, %ecx           # imm = 0x1D3C
callq 0xb450
leaq 0x6c51(%rip), %rsi      # 0x37093
movq %r15, %rdi
callq 0xb980
leaq -0x21(%rbp), %rdi
movq %rax, %rsi
callq 0xb600
leaq -0x60(%rbp), %rdi
callq 0xb730
testb $0x4, %r12b
je 0x30483
movq 0x28(%r14), %r12
movl $0x38, %edi
callq 0xb130
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
callq 0x24998
jmp 0x30486
xorl %r15d, %r15d
movq %r15, 0x28(%rbx)
movl 0x10(%r14), %r12d
testb $0x8, %r12b
je 0x304dc
cmpq $0x0, 0x30(%r14)
jne 0x304dc
leaq 0x6a80(%rip), %rdx      # 0x36f22
leaq -0x60(%rbp), %r15
movq %r15, %rdi
movl $0x3, %esi
movl $0x1d8d, %ecx           # imm = 0x1D8D
callq 0xb450
leaq 0x6bfe(%rip), %rsi      # 0x370bd
movq %r15, %rdi
callq 0xb980
leaq -0x21(%rbp), %rdi
movq %rax, %rsi
callq 0xb600
leaq -0x60(%rbp), %rdi
callq 0xb730
testb $0x8, %r12b
je 0x30500
movq 0x30(%r14), %r12
movl $0x70, %edi
callq 0xb130
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
callq 0x27bc0
jmp 0x30503
xorl %r15d, %r15d
movq %r15, 0x30(%rbx)
movl 0x10(%r14), %r12d
testb $0x10, %r12b
je 0x30559
cmpq $0x0, 0x38(%r14)
jne 0x30559
leaq 0x6a03(%rip), %rdx      # 0x36f22
leaq -0x60(%rbp), %r15
movq %r15, %rdi
movl $0x3, %esi
movl $0x1dde, %ecx           # imm = 0x1DDE
callq 0xb450
leaq 0x6bab(%rip), %rsi      # 0x370e7
movq %r15, %rdi
callq 0xb980
leaq -0x21(%rbp), %rdi
movq %rax, %rsi
callq 0xb600
leaq -0x60(%rbp), %rdi
callq 0xb730
testb $0x10, %r12b
je 0x3057d
movq 0x38(%r14), %r12
movl $0x78, %edi
callq 0xb130
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
callq 0x29fb8
jmp 0x30580
xorl %r15d, %r15d
movq %r15, 0x38(%rbx)
movl 0x10(%r14), %r12d
testb $0x20, %r12b
je 0x305d6
cmpq $0x0, 0x40(%r14)
jne 0x305d6
leaq 0x6986(%rip), %rdx      # 0x36f22
leaq -0x60(%rbp), %r15
movq %r15, %rdi
movl $0x3, %esi
movl $0x1e2f, %ecx           # imm = 0x1E2F
callq 0xb450
leaq 0x6b58(%rip), %rsi      # 0x37111
movq %r15, %rdi
callq 0xb980
leaq -0x21(%rbp), %rdi
movq %rax, %rsi
callq 0xb600
leaq -0x60(%rbp), %rdi
callq 0xb730
testb $0x20, %r12b
je 0x305fa
movq 0x40(%r14), %r12
movl $0x20, %edi
callq 0xb130
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
callq 0x2dfae
jmp 0x305fd
xorl %r15d, %r15d
movq %r15, 0x40(%rbx)
movl 0x10(%r14), %r12d
testb $0x40, %r12b
je 0x30653
cmpq $0x0, 0x48(%r14)
jne 0x30653
leaq 0x6909(%rip), %rdx      # 0x36f22
leaq -0x60(%rbp), %r15
movq %r15, %rdi
movl $0x3, %esi
movl $0x1e80, %ecx           # imm = 0x1E80
callq 0xb450
leaq 0x6b0c(%rip), %rsi      # 0x37142
movq %r15, %rdi
callq 0xb980
leaq -0x21(%rbp), %rdi
movq %rax, %rsi
callq 0xb600
leaq -0x60(%rbp), %rdi
callq 0xb730
testb $0x40, %r12b
je 0x30677
movq 0x48(%r14), %r12
movl $0x28, %edi
callq 0xb130
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
callq 0x2e736
jmp 0x3067a
xorl %r15d, %r15d
movq %r15, 0x48(%rbx)
movl 0x10(%r14), %r12d
testb %r12b, %r12b
jns 0x306cf
cmpq $0x0, 0x50(%r14)
jne 0x306cf
leaq 0x688d(%rip), %rdx      # 0x36f22
leaq -0x60(%rbp), %r15
movq %r15, %rdi
movl $0x3, %esi
movl $0x1ed1, %ecx           # imm = 0x1ED1
callq 0xb450
leaq 0x6abd(%rip), %rsi      # 0x3716f
movq %r15, %rdi
callq 0xb980
leaq -0x21(%rbp), %rdi
movq %rax, %rsi
callq 0xb600
leaq -0x60(%rbp), %rdi
callq 0xb730
testb %r12b, %r12b
jns 0x306f2
movq 0x50(%r14), %r12
movl $0x30, %edi
callq 0xb130
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
callq 0x2efce
jmp 0x306f5
xorl %r15d, %r15d
movq %r15, 0x50(%rbx)
movq 0x58(%r14), %rax
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 0x3038b
jmp 0x3077a
movq %rax, %rbx
movl $0x30, %esi
jmp 0x30770
jmp 0x3077a
jmp 0x3077a
jmp 0x30768
jmp 0x3077a
jmp 0x3077a
movq %rax, %rbx
movl $0x20, %esi
jmp 0x30770
jmp 0x3077a
jmp 0x3077a
movq %rax, %rbx
movl $0x78, %esi
jmp 0x30770
jmp 0x3077a
jmp 0x3077a
movq %rax, %rbx
movl $0x70, %esi
jmp 0x30770
jmp 0x3077a
jmp 0x3077a
movq %rax, %rbx
movl $0x38, %esi
jmp 0x30770
jmp 0x3077a
jmp 0x3077a
movq %rax, %rbx
movl $0x28, %esi
movq %r15, %rdi
callq 0xb0e0
jmp 0x30786
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0xb730
movq %rbx, %rdi
callq 0xb4d0