// File: /workspace/github_cpp_makefile_star2_O2/mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::ApuState::Clear()
void ApuState::Clear() {
// @@protoc_insertion_point(message_clear_start:Rnes.ApuState)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  reg_.Clear();
  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 0x0000000fu) {
    if (cached_has_bits & 0x00000001u) {
      GOOGLE_DCHECK(pulsea_ != nullptr);
      pulsea_->Clear();
    }
    if (cached_has_bits & 0x00000002u) {
      GOOGLE_DCHECK(pulseb_ != nullptr);
      pulseb_->Clear();
    }
    if (cached_has_bits & 0x00000004u) {
      GOOGLE_DCHECK(triangle_ != nullptr);
      triangle_->Clear();
    }
    if (cached_has_bits & 0x00000008u) {
      GOOGLE_DCHECK(noise_ != nullptr);
      noise_->Clear();
    }
  }
  if (cached_has_bits & 0x000000f0u) {
    ::memset(&samplerate_, 0, static_cast<size_t>(
        reinterpret_cast<char*>(&framedivider_) -
        reinterpret_cast<char*>(&samplerate_)) + sizeof(framedivider_));
  }
  if (cached_has_bits & 0x00003f00u) {
    ::memset(&step_, 0, static_cast<size_t>(
        reinterpret_cast<char*>(&nextsamplecountdown_) -
        reinterpret_cast<char*>(&step_)) + sizeof(nextsamplecountdown_));
  }
  _has_bits_.Clear();
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
andl $0x0, 0x18(%rdi)
movl 0x10(%rdi), %r15d
testb $0xf, %r15b
je 0x1fe24
testb $0x1, %r15b
je 0x1fd1f
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
jne 0x1fd1a
leaq 0xd0a3(%rip), %rdx      # 0x2cd81
leaq -0x58(%rbp), %r14
pushq $0x3
popq %rsi
movq %r14, %rdi
movl $0x9e4, %ecx            # imm = 0x9E4
callq 0xb460
leaq 0xd0b9(%rip), %rsi      # 0x2cdb2
movq %r14, %rdi
callq 0xb980
leaq -0x19(%rbp), %rdi
movq %rax, %rsi
callq 0xb5e0
leaq -0x58(%rbp), %rdi
callq 0xb730
movq 0x28(%rbx), %rdi
callq 0x1e41c
testb $0x2, %r15b
je 0x1fd76
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
jne 0x1fd71
leaq 0xd04c(%rip), %rdx      # 0x2cd81
leaq -0x58(%rbp), %r14
pushq $0x3
popq %rsi
movq %r14, %rdi
movl $0x9e8, %ecx            # imm = 0x9E8
callq 0xb460
leaq 0xd085(%rip), %rsi      # 0x2cdd5
movq %r14, %rdi
callq 0xb980
leaq -0x19(%rbp), %rdi
movq %rax, %rsi
callq 0xb5e0
leaq -0x58(%rbp), %rdi
callq 0xb730
movq 0x30(%rbx), %rdi
callq 0x1e41c
testb $0x4, %r15b
je 0x1fdcd
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
jne 0x1fdc8
leaq 0xcff5(%rip), %rdx      # 0x2cd81
leaq -0x58(%rbp), %r14
pushq $0x3
popq %rsi
movq %r14, %rdi
movl $0x9ec, %ecx            # imm = 0x9EC
callq 0xb460
leaq 0xd051(%rip), %rsi      # 0x2cdf8
movq %r14, %rdi
callq 0xb980
leaq -0x19(%rbp), %rdi
movq %rax, %rsi
callq 0xb5e0
leaq -0x58(%rbp), %rdi
callq 0xb730
movq 0x38(%rbx), %rdi
callq 0x1ecb2
testb $0x8, %r15b
je 0x1fe24
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
jne 0x1fe1f
leaq 0xcf9e(%rip), %rdx      # 0x2cd81
leaq -0x58(%rbp), %r14
pushq $0x3
popq %rsi
movq %r14, %rdi
movl $0x9f0, %ecx            # imm = 0x9F0
callq 0xb460
leaq 0xd01f(%rip), %rsi      # 0x2ce1d
movq %r14, %rdi
callq 0xb980
leaq -0x19(%rbp), %rdi
movq %rax, %rsi
callq 0xb5e0
leaq -0x58(%rbp), %rdi
callq 0xb730
movq 0x40(%rbx), %rdi
callq 0x1f3bc
testb $-0x10, %r15b
je 0x1fe31
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%rbx)
testw $0x3f00, %r15w          # imm = 0x3F00
je 0x1fe45
xorps %xmm0, %xmm0
movups %xmm0, 0x58(%rbx)
andq $0x0, 0x68(%rbx)
andl $0x0, 0x10(%rbx)
testb $0x1, 0x8(%rbx)
je 0x1fe5b
addq $0x8, %rbx
movq %rbx, %rdi
callq 0x291de
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1fe74
jmp 0x1fe74
jmp 0x1fe74
jmp 0x1fe74
jmp 0x1fe74
jmp 0x1fe74
jmp 0x1fe74
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0xb730
movq %rbx, %rdi
callq 0xb4e0