// File: mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::ApuState::MergeFrom(Rnes::ApuState const&)
void ApuState::MergeFrom(const ApuState& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Rnes.ApuState)
  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;

  reg_.MergeFrom(from.reg_);
  cached_has_bits = from._has_bits_[0];
  if (cached_has_bits & 0x000000ffu) {
    if (cached_has_bits & 0x00000001u) {
      _internal_mutable_pulsea()->::Rnes::PulseState::MergeFrom(from._internal_pulsea());
    }
    if (cached_has_bits & 0x00000002u) {
      _internal_mutable_pulseb()->::Rnes::PulseState::MergeFrom(from._internal_pulseb());
    }
    if (cached_has_bits & 0x00000004u) {
      _internal_mutable_triangle()->::Rnes::TriangleState::MergeFrom(from._internal_triangle());
    }
    if (cached_has_bits & 0x00000008u) {
      _internal_mutable_noise()->::Rnes::NoiseState::MergeFrom(from._internal_noise());
    }
    if (cached_has_bits & 0x00000010u) {
      samplerate_ = from.samplerate_;
    }
    if (cached_has_bits & 0x00000020u) {
      fourframecount_ = from.fourframecount_;
    }
    if (cached_has_bits & 0x00000040u) {
      fiveframecount_ = from.fiveframecount_;
    }
    if (cached_has_bits & 0x00000080u) {
      framedivider_ = from.framedivider_;
    }
    _has_bits_[0] |= cached_has_bits;
  }
  if (cached_has_bits & 0x00003f00u) {
    if (cached_has_bits & 0x00000100u) {
      step_ = from.step_;
    }
    if (cached_has_bits & 0x00000200u) {
      halftimerdivider_ = from.halftimerdivider_;
    }
    if (cached_has_bits & 0x00000400u) {
      samplerdivider_ = from.samplerdivider_;
    }
    if (cached_has_bits & 0x00000800u) {
      clkspersample_ = from.clkspersample_;
    }
    if (cached_has_bits & 0x00001000u) {
      currentsampleclk_ = from.currentsampleclk_;
    }
    if (cached_has_bits & 0x00002000u) {
      nextsamplecountdown_ = from.nextsamplecountdown_;
    }
    _has_bits_[0] |= cached_has_bits;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp            # imm = 0x130
movq %rdi, -0x80(%rbp)
movq %rsi, -0x88(%rbp)
movq -0x80(%rbp), %rcx
movq %rcx, -0xe8(%rbp)
movq -0x88(%rbp), %rax
movb $0x0, -0xc1(%rbp)
cmpq %rcx, %rax
je 0x4e496
jmp 0x4e4f4
leaq 0x1cc94(%rip), %rdx     # 0x6b131
leaq -0xc0(%rbp), %rdi
movq %rdi, -0xf8(%rbp)
movl $0x3, %esi
movl $0xb9c, %ecx            # imm = 0xB9C
callq 0xe690
movq -0xf8(%rbp), %rdi
movb $0x1, -0xc1(%rbp)
leaq 0x1cc71(%rip), %rsi     # 0x6b140
callq 0xed00
movq %rax, -0xf0(%rbp)
jmp 0x4e4dd
movq -0xf0(%rbp), %rsi
leaq -0xd5(%rbp), %rdi
callq 0xe820
jmp 0x4e4f2
jmp 0x4e4f4
testb $0x1, -0xc1(%rbp)
jne 0x4e4ff
jmp 0x4e50b
leaq -0xc0(%rbp), %rdi
callq 0xe9d0
movq -0xe8(%rbp), %rcx
addq $0x8, %rcx
movq -0x88(%rbp), %rax
addq $0x8, %rax
movq %rcx, -0x70(%rbp)
movq %rax, -0x78(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
andq $0x1, %rax
cmpl $0x1, %eax
jne 0x4e5b8
movq -0x78(%rbp), %rax
movq %rax, -0x28(%rbp)
movq $0x0, -0x30(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x108(%rbp)
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
andq $0x1, %rax
cmpl $0x1, %eax
jne 0x4e5a1
movq -0x108(%rbp), %rdi
callq 0x66310
addq $0x8, %rax
movq %rax, -0x20(%rbp)
jmp 0x4e5a8
callq *-0x30(%rbp)
movq %rax, -0x20(%rbp)
movq -0x100(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x66b40
movq -0xe8(%rbp), %rdi
movl $0x0, -0xdc(%rbp)
addq $0x18, %rdi
movq -0x88(%rbp), %rsi
addq $0x18, %rsi
callq 0xe630
movq -0x88(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x40(%rbp)
movl $0x0, -0x44(%rbp)
movq -0x40(%rbp), %rax
movslq -0x44(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xdc(%rbp)
movl -0xdc(%rbp), %eax
andl $0xff, %eax
cmpl $0x0, %eax
je 0x4e7ec
movl -0xdc(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x4e684
movq -0xe8(%rbp), %rdi
callq 0x28440
movq %rax, -0x110(%rbp)
movq -0x88(%rbp), %rdi
callq 0x289e0
movq -0x110(%rbp), %rdi
movq %rax, %rsi
callq 0x48bf0
jmp 0x4e684
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd0(%rbp)
movl %eax, -0xd4(%rbp)
testb $0x1, -0xc1(%rbp)
jne 0x4e673
jmp 0x4e67f
leaq -0xc0(%rbp), %rdi
callq 0xe9d0
jmp 0x4e913
movl -0xdc(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x4e6c0
movq -0xe8(%rbp), %rdi
callq 0x28580
movq %rax, -0x118(%rbp)
movq -0x88(%rbp), %rdi
callq 0x28a20
movq -0x118(%rbp), %rdi
movq %rax, %rsi
callq 0x48bf0
movl -0xdc(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x4e6fc
movq -0xe8(%rbp), %rdi
callq 0x285f0
movq %rax, -0x120(%rbp)
movq -0x88(%rbp), %rdi
callq 0x28a60
movq -0x120(%rbp), %rdi
movq %rax, %rsi
callq 0x4a260
movl -0xdc(%rbp), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x4e738
movq -0xe8(%rbp), %rdi
callq 0x28680
movq %rax, -0x128(%rbp)
movq -0x88(%rbp), %rdi
callq 0x28aa0
movq -0x128(%rbp), %rdi
movq %rax, %rsi
callq 0x4b940
movl -0xdc(%rbp), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x4e75a
movq -0xe8(%rbp), %rax
movq -0x88(%rbp), %rcx
movl 0x48(%rcx), %ecx
movl %ecx, 0x48(%rax)
movl -0xdc(%rbp), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x4e77c
movq -0xe8(%rbp), %rax
movq -0x88(%rbp), %rcx
movl 0x4c(%rcx), %ecx
movl %ecx, 0x4c(%rax)
movl -0xdc(%rbp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x4e79e
movq -0xe8(%rbp), %rax
movq -0x88(%rbp), %rcx
movl 0x50(%rcx), %ecx
movl %ecx, 0x50(%rax)
movl -0xdc(%rbp), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x4e7c2
movq -0xe8(%rbp), %rax
movq -0x88(%rbp), %rcx
movl 0x54(%rcx), %ecx
movl %ecx, 0x54(%rax)
movq -0xe8(%rbp), %rax
movl -0xdc(%rbp), %edx
addq $0x10, %rax
movq %rax, -0x50(%rbp)
movl $0x0, -0x54(%rbp)
movq -0x50(%rbp), %rax
movslq -0x54(%rbp), %rcx
orl (%rax,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
movl -0xdc(%rbp), %eax
andl $0x3f00, %eax           # imm = 0x3F00
cmpl $0x0, %eax
je 0x4e90a
movl -0xdc(%rbp), %eax
andl $0x100, %eax            # imm = 0x100
cmpl $0x0, %eax
je 0x4e824
movq -0xe8(%rbp), %rax
movq -0x88(%rbp), %rcx
movl 0x58(%rcx), %ecx
movl %ecx, 0x58(%rax)
movl -0xdc(%rbp), %eax
andl $0x200, %eax            # imm = 0x200
cmpl $0x0, %eax
je 0x4e848
movq -0xe8(%rbp), %rax
movq -0x88(%rbp), %rcx
movl 0x5c(%rcx), %ecx
movl %ecx, 0x5c(%rax)
movl -0xdc(%rbp), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
je 0x4e86c
movq -0xe8(%rbp), %rax
movq -0x88(%rbp), %rcx
movl 0x60(%rcx), %ecx
movl %ecx, 0x60(%rax)
movl -0xdc(%rbp), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
je 0x4e894
movq -0xe8(%rbp), %rax
movq -0x88(%rbp), %rcx
movss 0x64(%rcx), %xmm0
movss %xmm0, 0x64(%rax)
movl -0xdc(%rbp), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
je 0x4e8bc
movq -0xe8(%rbp), %rax
movq -0x88(%rbp), %rcx
movss 0x68(%rcx), %xmm0
movss %xmm0, 0x68(%rax)
movl -0xdc(%rbp), %eax
andl $0x2000, %eax           # imm = 0x2000
cmpl $0x0, %eax
je 0x4e8e0
movq -0xe8(%rbp), %rax
movq -0x88(%rbp), %rcx
movl 0x6c(%rcx), %ecx
movl %ecx, 0x6c(%rax)
movq -0xe8(%rbp), %rax
movl -0xdc(%rbp), %edx
addq $0x10, %rax
movq %rax, -0x60(%rbp)
movl $0x0, -0x64(%rbp)
movq -0x60(%rbp), %rax
movslq -0x64(%rbp), %rcx
orl (%rax,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
addq $0x130, %rsp            # imm = 0x130
popq %rbp
retq
movq -0xd0(%rbp), %rdi
callq 0xe700
nop