// File: /workspace/github_cpp_makefile_star2_O3/vgteam[P]stream/cpp/example.pb.cc
// Function: Person::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const
::PROTOBUF_NAMESPACE_ID::uint8* Person::_InternalSerialize(
    ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:Person)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  // required string name = 1;
  if (cached_has_bits & 0x00000001u) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
      this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
      "Person.name");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_name(), target);
  }

  // required int32 id = 2;
  if (cached_has_bits & 0x00000004u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_id(), target);
  }

  // optional string email = 3;
  if (cached_has_bits & 0x00000002u) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
      this->_internal_email().data(), static_cast<int>(this->_internal_email().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
      "Person.email");
    target = stream->WriteStringMaybeAliased(
        3, this->_internal_email(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:Person)
  return target;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl 0x10(%rdi), %ebp
testb $0x1, %bpl
je 0x4bd7
movq 0x18(%r15), %rax
movq (%rax), %rdi
movl 0x8(%rax), %esi
leaq 0x24fc(%rip), %rcx      # 0x70b2
movl $0x1, %edx
callq 0x4230
movq 0x18(%r15), %rdx
movq %rbx, %rdi
movl $0x1, %esi
movq %r14, %rcx
callq 0x5400
movq %rax, %r14
testb $0x4, %bpl
je 0x4c43
cmpq %r14, (%rbx)
jbe 0x4cb0
movslq 0x28(%r15), %rax
movb $0x10, (%r14)
cmpq $0x7f, %rax
ja 0x4bfe
movb %al, 0x1(%r14)
addq $0x2, %r14
jmp 0x4c43
movl %eax, %ecx
movl %eax, %edx
orb $-0x80, %dl
movb %dl, 0x1(%r14)
shrq $0x7, %rax
cmpl $0x3fff, %ecx           # imm = 0x3FFF
ja 0x4c1f
movb %al, 0x2(%r14)
addq $0x3, %r14
jmp 0x4c43
addq $0x3, %r14
movq %rax, %rcx
movl %ecx, %edx
orb $-0x80, %dl
movb %dl, -0x1(%r14)
shrq $0x7, %rax
incq %r14
cmpq $0x3fff, %rcx           # imm = 0x3FFF
ja 0x4c23
movb %al, -0x1(%r14)
testb $0x2, %bpl
je 0x4c7b
movq 0x20(%r15), %rax
movq (%rax), %rdi
movl 0x8(%rax), %esi
leaq 0x2464(%rip), %rcx      # 0x70be
movl $0x1, %edx
callq 0x4230
movq 0x20(%r15), %rdx
movq %rbx, %rdi
movl $0x3, %esi
movq %r14, %rcx
callq 0x5400
movq %rax, %r14
movq 0x8(%r15), %rdi
testb $0x1, %dil
jne 0x4c93
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
andq $-0x2, %rdi
addq $0x8, %rdi
movq %r14, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x4190
movq %rbx, %rdi
movq %r14, %rsi
callq 0x43f0
movq %rax, %r14
jmp 0x4be6
nop