// File: /workspace/github_cpp_makefile_star2_O3/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
movl $0x0, 0x18(%rdi)
movl 0x10(%rdi), %r15d
testb $0xf, %r15b
je 0x27035
testb $0x1, %r15b
je 0x26f2a
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
jne 0x26f25
leaq 0xedaa(%rip), %rdx      # 0x35c91
leaq -0x58(%rbp), %r14
movq %r14, %rdi
movl $0x3, %esi
movl $0x9e4, %ecx            # imm = 0x9E4
callq 0xa450
leaq 0xedbe(%rip), %rsi      # 0x35cc2
movq %r14, %rdi
callq 0xa980
leaq -0x19(%rbp), %rdi
movq %rax, %rsi
callq 0xa600
leaq -0x58(%rbp), %rdi
callq 0xa730
movq 0x28(%rbx), %rdi
callq 0x246e6
testb $0x2, %r15b
je 0x26f83
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
jne 0x26f7e
leaq 0xed51(%rip), %rdx      # 0x35c91
leaq -0x58(%rbp), %r14
movq %r14, %rdi
movl $0x3, %esi
movl $0x9e8, %ecx            # imm = 0x9E8
callq 0xa450
leaq 0xed88(%rip), %rsi      # 0x35ce5
movq %r14, %rdi
callq 0xa980
leaq -0x19(%rbp), %rdi
movq %rax, %rsi
callq 0xa600
leaq -0x58(%rbp), %rdi
callq 0xa730
movq 0x30(%rbx), %rdi
callq 0x246e6
testb $0x4, %r15b
je 0x26fdc
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
jne 0x26fd7
leaq 0xecf8(%rip), %rdx      # 0x35c91
leaq -0x58(%rbp), %r14
movq %r14, %rdi
movl $0x3, %esi
movl $0x9ec, %ecx            # imm = 0x9EC
callq 0xa450
leaq 0xed52(%rip), %rsi      # 0x35d08
movq %r14, %rdi
callq 0xa980
leaq -0x19(%rbp), %rdi
movq %rax, %rsi
callq 0xa600
leaq -0x58(%rbp), %rdi
callq 0xa730
movq 0x38(%rbx), %rdi
callq 0x25514
testb $0x8, %r15b
je 0x27035
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
jne 0x27030
leaq 0xec9f(%rip), %rdx      # 0x35c91
leaq -0x58(%rbp), %r14
movq %r14, %rdi
movl $0x3, %esi
movl $0x9f0, %ecx            # imm = 0x9F0
callq 0xa450
leaq 0xed1e(%rip), %rsi      # 0x35d2d
movq %r14, %rdi
callq 0xa980
leaq -0x19(%rbp), %rdi
movq %rax, %rsi
callq 0xa600
leaq -0x58(%rbp), %rdi
callq 0xa730
movq 0x40(%rbx), %rdi
callq 0x25ffa
testb $-0x10, %r15b
je 0x27042
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%rbx)
testl $0x3f00, %r15d          # imm = 0x3F00
je 0x2705a
xorps %xmm0, %xmm0
movups %xmm0, 0x58(%rbx)
movq $0x0, 0x68(%rbx)
movl $0x0, 0x10(%rbx)
testb $0x1, 0x8(%rbx)
je 0x27073
addq $0x8, %rbx
movq %rbx, %rdi
callq 0x31e00
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2708c
jmp 0x2708c
jmp 0x2708c
jmp 0x2708c
jmp 0x2708c
jmp 0x2708c
jmp 0x2708c
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0xa730
movq %rbx, %rdi
callq 0xa4d0