// File: /workspace/github_cpp_makefile_star2_O1/mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::ApuState::ApuState(Rnes::ApuState const&)
ApuState::ApuState(const ApuState& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      _has_bits_(from._has_bits_),
      reg_(from.reg_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  if (from._internal_has_pulsea()) {
    pulsea_ = new ::Rnes::PulseState(*from.pulsea_);
  } else {
    pulsea_ = nullptr;
  }
  if (from._internal_has_pulseb()) {
    pulseb_ = new ::Rnes::PulseState(*from.pulseb_);
  } else {
    pulseb_ = nullptr;
  }
  if (from._internal_has_triangle()) {
    triangle_ = new ::Rnes::TriangleState(*from.triangle_);
  } else {
    triangle_ = nullptr;
  }
  if (from._internal_has_noise()) {
    noise_ = new ::Rnes::NoiseState(*from.noise_);
  } else {
    noise_ = nullptr;
  }
  ::memcpy(&samplerate_, &from.samplerate_,
    static_cast<size_t>(reinterpret_cast<char*>(&nextsamplecountdown_) -
    reinterpret_cast<char*>(&samplerate_)) + sizeof(nextsamplecountdown_));
  // @@protoc_insertion_point(copy_constructor:Rnes.ApuState)
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r15
movq %rdi, %r14
movq $0x0, 0x8(%rdi)
leaq 0x1f74a(%rip), %rax     # 0x47330
movq %rax, (%rdi)
movl 0x10(%rsi), %eax
movl %eax, 0x10(%rdi)
movl $0x0, 0x14(%rdi)
leaq 0x18(%rdi), %rbx
addq $0x18, %rsi
movq %rbx, %rdi
callq 0xb360
movq 0x8(%r15), %rsi
testb $0x1, %sil
je 0x27c21
leaq 0x8(%r14), %rdi
andq $-0x2, %rsi
addq $0x8, %rsi
callq 0x331ee
movl 0x10(%r15), %r12d
testb $0x1, %r12b
je 0x27c71
cmpq $0x0, 0x28(%r15)
jne 0x27c71
leaq 0xf2e9(%rip), %rdx      # 0x36f22
leaq -0x68(%rbp), %rdi
movl $0x3, %esi
movl $0x140b, %ecx           # imm = 0x140B
callq 0xb450
leaq 0xf2dd(%rip), %rsi      # 0x36f30
leaq -0x68(%rbp), %rdi
callq 0xb980
leaq -0x29(%rbp), %rdi
movq %rax, %rsi
callq 0xb600
leaq -0x68(%rbp), %rdi
callq 0xb730
testb $0x1, %r12b
je 0x27c95
movq 0x28(%r15), %r13
movl $0x38, %edi
callq 0xb130
movq %rax, %r12
movq %rax, %rdi
movq %r13, %rsi
callq 0x255de
jmp 0x27c98
xorl %r12d, %r12d
movq %r12, 0x28(%r14)
movl 0x10(%r15), %r12d
testb $0x2, %r12b
je 0x27cec
cmpq $0x0, 0x30(%r15)
jne 0x27cec
leaq 0xf26e(%rip), %rdx      # 0x36f22
leaq -0x68(%rbp), %rdi
movl $0x3, %esi
movl $0x145c, %ecx           # imm = 0x145C
callq 0xb450
leaq 0xf28f(%rip), %rsi      # 0x36f5d
leaq -0x68(%rbp), %rdi
callq 0xb980
leaq -0x29(%rbp), %rdi
movq %rax, %rsi
callq 0xb600
leaq -0x68(%rbp), %rdi
callq 0xb730
testb $0x2, %r12b
je 0x27d10
movq 0x30(%r15), %r13
movl $0x38, %edi
callq 0xb130
movq %rax, %r12
movq %rax, %rdi
movq %r13, %rsi
callq 0x255de
jmp 0x27d13
xorl %r12d, %r12d
movq %r12, 0x30(%r14)
movl 0x10(%r15), %r12d
testb $0x4, %r12b
je 0x27d67
cmpq $0x0, 0x38(%r15)
jne 0x27d67
leaq 0xf1f3(%rip), %rdx      # 0x36f22
leaq -0x68(%rbp), %rdi
movl $0x3, %esi
movl $0x14ad, %ecx           # imm = 0x14AD
callq 0xb450
leaq 0xf241(%rip), %rsi      # 0x36f8a
leaq -0x68(%rbp), %rdi
callq 0xb980
leaq -0x29(%rbp), %rdi
movq %rax, %rsi
callq 0xb600
leaq -0x68(%rbp), %rdi
callq 0xb730
testb $0x4, %r12b
je 0x27d8b
movq 0x38(%r15), %r13
movl $0x30, %edi
callq 0xb130
movq %rax, %r12
movq %rax, %rdi
movq %r13, %rsi
callq 0x26424
jmp 0x27d8e
xorl %r12d, %r12d
movq %r12, 0x38(%r14)
movl 0x10(%r15), %r12d
testb $0x8, %r12b
je 0x27de2
cmpq $0x0, 0x40(%r15)
jne 0x27de2
leaq 0xf178(%rip), %rdx      # 0x36f22
leaq -0x68(%rbp), %rdi
movl $0x3, %esi
movl $0x14fe, %ecx           # imm = 0x14FE
callq 0xb450
leaq 0xf1f5(%rip), %rsi      # 0x36fb9
leaq -0x68(%rbp), %rdi
callq 0xb980
leaq -0x29(%rbp), %rdi
movq %rax, %rsi
callq 0xb600
leaq -0x68(%rbp), %rdi
callq 0xb730
testb $0x8, %r12b
je 0x27e06
movq 0x40(%r15), %r13
movl $0x38, %edi
callq 0xb130
movq %rax, %r12
movq %rax, %rdi
movq %r13, %rsi
callq 0x26f22
jmp 0x27e09
xorl %r12d, %r12d
movq %r12, 0x40(%r14)
movups 0x48(%r15), %xmm0
movups 0x58(%r15), %xmm1
movups %xmm0, 0x48(%r14)
movups %xmm1, 0x58(%r14)
movq 0x68(%r15), %rax
movq %rax, 0x68(%r14)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x27e52
jmp 0x27e66
jmp 0x27e66
movq %rax, %r14
movl $0x30, %esi
jmp 0x27e5a
jmp 0x27e66
jmp 0x27e66
jmp 0x27e52
jmp 0x27e66
jmp 0x27e66
movq %rax, %r14
movl $0x38, %esi
movq %r12, %rdi
callq 0xb0e0
jmp 0x27e77
jmp 0x27e66
movq %rax, %r14
leaq -0x68(%rbp), %rdi
callq 0xb730
jmp 0x27e77
movq %rax, %r14
movq %rbx, %rdi
callq 0xb0f0
movq %r14, %rdi
callq 0xb4d0
nop