// File: /workspace/github_cpp_makefile_star2_O3/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 0x1f7dc(%rip), %rax     # 0x46330
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 0xa360
movq 0x8(%r15), %rsi
testb $0x1, %sil
je 0x26b8f
leaq 0x8(%r14), %rdi
andq $-0x2, %rsi
addq $0x8, %rsi
callq 0x31dc8
movl 0x10(%r15), %eax
movq 0x28(%r15), %r12
testq %r12, %r12
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x26be9
leaq 0xf377(%rip), %rdx      # 0x35f22
leaq -0x68(%rbp), %rdi
movl $0x3, %esi
movl $0x140b, %ecx           # imm = 0x140B
callq 0xa450
leaq 0xf36b(%rip), %rsi      # 0x35f30
leaq -0x68(%rbp), %rdi
callq 0xa980
leaq -0x29(%rbp), %rdi
movq %rax, %rsi
callq 0xa600
leaq -0x68(%rbp), %rdi
callq 0xa730
movq 0x28(%r15), %r12
jmp 0x26bed
testb $0x1, %al
je 0x26c0f
movl $0x38, %edi
callq 0xa130
movq %rax, %r13
movq %rax, %rdi
movq %r12, %rsi
callq 0x245a0
movq %r13, 0x28(%r14)
movl 0x10(%r15), %eax
jmp 0x26c17
movq $0x0, 0x28(%r14)
movl %eax, %ecx
shrb %cl
movq 0x30(%r15), %r12
testq %r12, %r12
sete %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x26c71
leaq 0xf2ef(%rip), %rdx      # 0x35f22
leaq -0x68(%rbp), %rdi
movl $0x3, %esi
movl $0x145c, %ecx           # imm = 0x145C
callq 0xa450
leaq 0xf310(%rip), %rsi      # 0x35f5d
leaq -0x68(%rbp), %rdi
callq 0xa980
leaq -0x29(%rbp), %rdi
movq %rax, %rsi
callq 0xa600
leaq -0x68(%rbp), %rdi
callq 0xa730
movq 0x30(%r15), %r12
jmp 0x26c75
testb $0x2, %al
je 0x26c97
movl $0x38, %edi
callq 0xa130
movq %rax, %r13
movq %rax, %rdi
movq %r12, %rsi
callq 0x245a0
movq %r13, 0x30(%r14)
movl 0x10(%r15), %eax
jmp 0x26c9f
movq $0x0, 0x30(%r14)
movl %eax, %ecx
shrb $0x2, %cl
movq 0x38(%r15), %r12
testq %r12, %r12
sete %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x26cfa
leaq 0xf266(%rip), %rdx      # 0x35f22
leaq -0x68(%rbp), %rdi
movl $0x3, %esi
movl $0x14ad, %ecx           # imm = 0x14AD
callq 0xa450
leaq 0xf2b4(%rip), %rsi      # 0x35f8a
leaq -0x68(%rbp), %rdi
callq 0xa980
leaq -0x29(%rbp), %rdi
movq %rax, %rsi
callq 0xa600
leaq -0x68(%rbp), %rdi
callq 0xa730
movq 0x38(%r15), %r12
jmp 0x26cfe
testb $0x4, %al
je 0x26d20
movl $0x30, %edi
callq 0xa130
movq %rax, %r13
movq %rax, %rdi
movq %r12, %rsi
callq 0x253ce
movq %r13, 0x38(%r14)
movl 0x10(%r15), %eax
jmp 0x26d28
movq $0x0, 0x38(%r14)
movl %eax, %ecx
shrb $0x3, %cl
movq 0x40(%r15), %r12
testq %r12, %r12
sete %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x26d83
leaq 0xf1dd(%rip), %rdx      # 0x35f22
leaq -0x68(%rbp), %rdi
movl $0x3, %esi
movl $0x14fe, %ecx           # imm = 0x14FE
callq 0xa450
leaq 0xf25a(%rip), %rsi      # 0x35fb9
leaq -0x68(%rbp), %rdi
callq 0xa980
leaq -0x29(%rbp), %rdi
movq %rax, %rsi
callq 0xa600
leaq -0x68(%rbp), %rdi
callq 0xa730
movq 0x40(%r15), %r12
jmp 0x26d87
testb $0x8, %al
je 0x26da1
movl $0x38, %edi
callq 0xa130
movq %rax, %r13
movq %rax, %rdi
movq %r12, %rsi
callq 0x25eb4
jmp 0x26da4
xorl %r13d, %r13d
movq %r13, 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 0x26de1
jmp 0x26de1
jmp 0x26de1
jmp 0x26de1
jmp 0x26de1
jmp 0x26de1
jmp 0x26de1
movq %rax, %r14
leaq -0x68(%rbp), %rdi
callq 0xa730
jmp 0x26e12
jmp 0x26dfd
movq %rax, %r14
movl $0x30, %esi
jmp 0x26e05
jmp 0x26dfd
movq %rax, %r14
movl $0x38, %esi
movq %r13, %rdi
callq 0xa0e0
jmp 0x26e12
movq %rax, %r14
movq %rbx, %rdi
callq 0xa0f0
movq %r14, %rdi
callq 0xa4d0