// File: /workspace/github_cpp_makefile_star2_O1/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 %r12
pushq %rbx
subq $0xf0, %rsp
movq %rdi, %rbx
movl $0x0, 0x18(%rdi)
movl 0x10(%rdi), %r15d
testb $0xf, %r15b
je 0x280c4
testb $0x1, %r15b
je 0x27fa1
movq 0x28(%rbx), %r12
testq %r12, %r12
jne 0x27f95
leaq 0xed3f(%rip), %rdx      # 0x36c91
leaq -0x108(%rbp), %r14
movq %r14, %rdi
movl $0x3, %esi
movl $0x9e4, %ecx            # imm = 0x9E4
callq 0xb450
leaq 0xed50(%rip), %rsi      # 0x36cc2
movq %r14, %rdi
callq 0xb980
leaq -0xd0(%rbp), %rdi
movq %rax, %rsi
callq 0xb600
leaq -0x108(%rbp), %rdi
callq 0xb730
testq %r12, %r12
movq 0x28(%rbx), %rdi
callq 0x2572c
testb $0x2, %r15b
je 0x28006
movq 0x30(%rbx), %r12
testq %r12, %r12
jne 0x27ffa
leaq 0xecda(%rip), %rdx      # 0x36c91
leaq -0xd0(%rbp), %r14
movq %r14, %rdi
movl $0x3, %esi
movl $0x9e8, %ecx            # imm = 0x9E8
callq 0xb450
leaq 0xed0e(%rip), %rsi      # 0x36ce5
movq %r14, %rdi
callq 0xb980
leaq -0x98(%rbp), %rdi
movq %rax, %rsi
callq 0xb600
leaq -0xd0(%rbp), %rdi
callq 0xb730
testq %r12, %r12
movq 0x30(%rbx), %rdi
callq 0x2572c
testb $0x4, %r15b
je 0x28068
movq 0x38(%rbx), %r12
testq %r12, %r12
jne 0x2805c
leaq 0xec75(%rip), %rdx      # 0x36c91
leaq -0x98(%rbp), %r14
movq %r14, %rdi
movl $0x3, %esi
movl $0x9ec, %ecx            # imm = 0x9EC
callq 0xb450
leaq 0xeccc(%rip), %rsi      # 0x36d08
movq %r14, %rdi
callq 0xb980
leaq -0x60(%rbp), %rdi
movq %rax, %rsi
callq 0xb600
leaq -0x98(%rbp), %rdi
callq 0xb730
testq %r12, %r12
movq 0x38(%rbx), %rdi
callq 0x26572
testb $0x8, %r15b
je 0x280c4
movq 0x40(%rbx), %r12
testq %r12, %r12
jne 0x280b8
leaq 0xec13(%rip), %rdx      # 0x36c91
leaq -0x60(%rbp), %r14
movq %r14, %rdi
movl $0x3, %esi
movl $0x9f0, %ecx            # imm = 0x9F0
callq 0xb450
leaq 0xec92(%rip), %rsi      # 0x36d2d
movq %r14, %rdi
callq 0xb980
leaq -0x21(%rbp), %rdi
movq %rax, %rsi
callq 0xb600
leaq -0x60(%rbp), %rdi
callq 0xb730
testq %r12, %r12
movq 0x40(%rbx), %rdi
callq 0x27070
testb $-0x10, %r15b
je 0x280d1
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%rbx)
testl $0x3f00, %r15d          # imm = 0x3F00
je 0x280e9
xorps %xmm0, %xmm0
movups %xmm0, 0x58(%rbx)
movq $0x0, 0x68(%rbx)
movl $0x0, 0x10(%rbx)
testb $0x1, 0x8(%rbx)
je 0x28102
addq $0x8, %rbx
movq %rbx, %rdi
callq 0x33226
addq $0xf0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x28118
jmp 0x28123
jmp 0x2812f
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
jmp 0x28145
jmp 0x2813b
movq %rax, %rbx
leaq -0x98(%rbp), %rdi
jmp 0x28145
movq %rax, %rbx
leaq -0xd0(%rbp), %rdi
jmp 0x28145
movq %rax, %rbx
leaq -0x108(%rbp), %rdi
callq 0xb730
movq %rbx, %rdi
callq 0xb4d0