// File: /workspace/github_cpp_makefile_star2_O1/mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::CpuState::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const
::PROTOBUF_NAMESPACE_ID::uint8* CpuState::_InternalSerialize(
    ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:Rnes.CpuState)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  // optional uint32 a = 1;
  if (cached_has_bits & 0x00000001u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_a(), target);
  }

  // optional uint32 x = 2;
  if (cached_has_bits & 0x00000002u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_x(), target);
  }

  // optional uint32 y = 3;
  if (cached_has_bits & 0x00000004u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_y(), target);
  }

  // optional uint32 pc = 4;
  if (cached_has_bits & 0x00000008u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_pc(), target);
  }

  // optional uint32 sp = 5;
  if (cached_has_bits & 0x00000010u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_sp(), target);
  }

  // optional uint32 status = 6;
  if (cached_has_bits & 0x00000020u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(6, this->_internal_status(), target);
  }

  // optional uint64 cycle = 7;
  if (cached_has_bits & 0x00000040u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(7, this->_internal_cycle(), 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:Rnes.CpuState)
  return target;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
movl 0x10(%rdi), %r15d
testb $0x1, %r15b
je 0x24f34
cmpq %rsi, (%rbx)
jbe 0x251ad
movl 0x18(%r14), %ecx
movb $0x8, (%rsi)
cmpl $0x7f, %ecx
ja 0x24ef8
movb %cl, 0x1(%rsi)
addq $0x2, %rsi
jmp 0x24f34
movl %ecx, %eax
orb $-0x80, %al
movb %al, 0x1(%rsi)
movl %ecx, %eax
shrl $0x7, %eax
cmpl $0x3fff, %ecx           # imm = 0x3FFF
ja 0x24f15
movb %al, 0x2(%rsi)
addq $0x3, %rsi
jmp 0x24f34
addq $0x3, %rsi
movl %eax, %ecx
movl %ecx, %edx
orb $-0x80, %dl
movb %dl, -0x1(%rsi)
shrl $0x7, %eax
incq %rsi
cmpl $0x3fff, %ecx           # imm = 0x3FFF
ja 0x24f19
movb %al, -0x1(%rsi)
testb $0x2, %r15b
je 0x24f94
cmpq %rsi, (%rbx)
jbe 0x251bd
movl 0x1c(%r14), %ecx
movb $0x10, (%rsi)
cmpl $0x7f, %ecx
ja 0x24f58
movb %cl, 0x1(%rsi)
addq $0x2, %rsi
jmp 0x24f94
movl %ecx, %eax
orb $-0x80, %al
movb %al, 0x1(%rsi)
movl %ecx, %eax
shrl $0x7, %eax
cmpl $0x3fff, %ecx           # imm = 0x3FFF
ja 0x24f75
movb %al, 0x2(%rsi)
addq $0x3, %rsi
jmp 0x24f94
addq $0x3, %rsi
movl %eax, %ecx
movl %ecx, %edx
orb $-0x80, %dl
movb %dl, -0x1(%rsi)
shrl $0x7, %eax
incq %rsi
cmpl $0x3fff, %ecx           # imm = 0x3FFF
ja 0x24f79
movb %al, -0x1(%rsi)
testb $0x4, %r15b
je 0x24ff4
cmpq %rsi, (%rbx)
jbe 0x251cd
movl 0x20(%r14), %ecx
movb $0x18, (%rsi)
cmpl $0x7f, %ecx
ja 0x24fb8
movb %cl, 0x1(%rsi)
addq $0x2, %rsi
jmp 0x24ff4
movl %ecx, %eax
orb $-0x80, %al
movb %al, 0x1(%rsi)
movl %ecx, %eax
shrl $0x7, %eax
cmpl $0x3fff, %ecx           # imm = 0x3FFF
ja 0x24fd5
movb %al, 0x2(%rsi)
addq $0x3, %rsi
jmp 0x24ff4
addq $0x3, %rsi
movl %eax, %ecx
movl %ecx, %edx
orb $-0x80, %dl
movb %dl, -0x1(%rsi)
shrl $0x7, %eax
incq %rsi
cmpl $0x3fff, %ecx           # imm = 0x3FFF
ja 0x24fd9
movb %al, -0x1(%rsi)
testb $0x8, %r15b
je 0x25054
cmpq %rsi, (%rbx)
jbe 0x251dd
movl 0x24(%r14), %ecx
movb $0x20, (%rsi)
cmpl $0x7f, %ecx
ja 0x25018
movb %cl, 0x1(%rsi)
addq $0x2, %rsi
jmp 0x25054
movl %ecx, %eax
orb $-0x80, %al
movb %al, 0x1(%rsi)
movl %ecx, %eax
shrl $0x7, %eax
cmpl $0x3fff, %ecx           # imm = 0x3FFF
ja 0x25035
movb %al, 0x2(%rsi)
addq $0x3, %rsi
jmp 0x25054
addq $0x3, %rsi
movl %eax, %ecx
movl %ecx, %edx
orb $-0x80, %dl
movb %dl, -0x1(%rsi)
shrl $0x7, %eax
incq %rsi
cmpl $0x3fff, %ecx           # imm = 0x3FFF
ja 0x25039
movb %al, -0x1(%rsi)
testb $0x10, %r15b
je 0x250b4
cmpq %rsi, (%rbx)
jbe 0x251ed
movl 0x28(%r14), %ecx
movb $0x28, (%rsi)
cmpl $0x7f, %ecx
ja 0x25078
movb %cl, 0x1(%rsi)
addq $0x2, %rsi
jmp 0x250b4
movl %ecx, %eax
orb $-0x80, %al
movb %al, 0x1(%rsi)
movl %ecx, %eax
shrl $0x7, %eax
cmpl $0x3fff, %ecx           # imm = 0x3FFF
ja 0x25095
movb %al, 0x2(%rsi)
addq $0x3, %rsi
jmp 0x250b4
addq $0x3, %rsi
movl %eax, %ecx
movl %ecx, %edx
orb $-0x80, %dl
movb %dl, -0x1(%rsi)
shrl $0x7, %eax
incq %rsi
cmpl $0x3fff, %ecx           # imm = 0x3FFF
ja 0x25099
movb %al, -0x1(%rsi)
testb $0x20, %r15b
je 0x25114
cmpq %rsi, (%rbx)
jbe 0x251fd
movl 0x2c(%r14), %ecx
movb $0x30, (%rsi)
cmpl $0x7f, %ecx
ja 0x250d8
movb %cl, 0x1(%rsi)
addq $0x2, %rsi
jmp 0x25114
movl %ecx, %eax
orb $-0x80, %al
movb %al, 0x1(%rsi)
movl %ecx, %eax
shrl $0x7, %eax
cmpl $0x3fff, %ecx           # imm = 0x3FFF
ja 0x250f5
movb %al, 0x2(%rsi)
addq $0x3, %rsi
jmp 0x25114
addq $0x3, %rsi
movl %eax, %ecx
movl %ecx, %edx
orb $-0x80, %dl
movb %dl, -0x1(%rsi)
shrl $0x7, %eax
incq %rsi
cmpl $0x3fff, %ecx           # imm = 0x3FFF
ja 0x250f9
movb %al, -0x1(%rsi)
testb $0x40, %r15b
je 0x2517b
cmpq %rsi, (%rbx)
jbe 0x2520d
movq 0x30(%r14), %rcx
movb $0x38, (%rsi)
cmpq $0x7f, %rcx
ja 0x25139
movb %cl, 0x1(%rsi)
addq $0x2, %rsi
jmp 0x2517b
movl %ecx, %eax
orb $-0x80, %al
movb %al, 0x1(%rsi)
movq %rcx, %rax
shrq $0x7, %rax
cmpq $0x3fff, %rcx           # imm = 0x3FFF
ja 0x25159
movb %al, 0x2(%rsi)
addq $0x3, %rsi
jmp 0x2517b
addq $0x3, %rsi
movq %rax, %rcx
movl %ecx, %edx
orb $-0x80, %dl
movb %dl, -0x1(%rsi)
shrq $0x7, %rax
incq %rsi
cmpq $0x3fff, %rcx           # imm = 0x3FFF
ja 0x2515d
movb %al, -0x1(%rsi)
movq 0x8(%r14), %rdi
testb $0x1, %dil
jne 0x25193
movq %rsi, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
andq $-0x2, %rdi
addq $0x8, %rdi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xb230
movq %rbx, %rdi
callq 0xb750
movq %rax, %rsi
jmp 0x24ee3
movq %rbx, %rdi
callq 0xb750
movq %rax, %rsi
jmp 0x24f43
movq %rbx, %rdi
callq 0xb750
movq %rax, %rsi
jmp 0x24fa3
movq %rbx, %rdi
callq 0xb750
movq %rax, %rsi
jmp 0x25003
movq %rbx, %rdi
callq 0xb750
movq %rax, %rsi
jmp 0x25063
movq %rbx, %rdi
callq 0xb750
movq %rax, %rsi
jmp 0x250c3
movq %rbx, %rdi
callq 0xb750
movq %rax, %rsi
jmp 0x25123
nop