LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::DmaState::ByteSizeLong() const
size_t DmaState::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Rnes.DmaState)
  size_t total_size = 0;

  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 0x00000007u) {
    // optional bool spriteDmaMode = 1;
    if (cached_has_bits & 0x00000001u) {
      total_size += 1 + 1;
    }

    // optional uint32 spriteDmaCycle = 2;
    if (cached_has_bits & 0x00000002u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
          this->_internal_spritedmacycle());
    }

    // optional uint32 spriteDmaSourceAddr = 3;
    if (cached_has_bits & 0x00000004u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
          this->_internal_spritedmasourceaddr());
    }

  }
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
        _internal_metadata_, total_size, &_cached_size_);
  }
  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rdx
movl 0x10(%rdi), %ecx
testb $0x7, %cl
je 0x24ea9
leal (%rcx,%rcx), %eax
andl $0x2, %eax
testb $0x2, %cl
je 0x24e88
movl 0x1c(%rdx), %esi
orl $0x1, %esi
bsrl %esi, %esi
leal (%rsi,%rsi,8), %esi
addl $0x49, %esi
shrl $0x6, %esi
addl %esi, %eax
incl %eax
movl %eax, %eax
testb $0x4, %cl
je 0x24eab
movl 0x20(%rdx), %ecx
orl $0x1, %ecx
bsrl %ecx, %ecx
leal (%rcx,%rcx,8), %ecx
addl $0x49, %ecx
shrl $0x6, %ecx
addq %rcx, %rax
incq %rax
jmp 0x24eab
xorl %eax, %eax
testb $0x1, 0x8(%rdx)
jne 0x24eb6
movl %eax, 0x14(%rdx)
popq %rbp
retq
leaq 0x8(%rdx), %rdi
addq $0x14, %rdx
movq %rax, %rsi
popq %rbp
jmp 0xb900
nop
// File: /workspace/github_cpp_makefile_star2_O2/mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::DmaState::MergeFrom(google::protobuf::Message const&)
void DmaState::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Rnes.DmaState)
  GOOGLE_DCHECK_NE(&from, this);
  const DmaState* source =
      ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DmaState>(
          &from);
  if (source == nullptr) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:Rnes.DmaState)
    ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:Rnes.DmaState)
    MergeFrom(*source);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r14
cmpq %rdi, %rsi
jne 0x24f1f
leaq 0x7e9a(%rip), %rdx      # 0x2cd81
leaq -0x58(%rbp), %r15
pushq $0x3
popq %rsi
movq %r15, %rdi
movl $0x1862, %ecx           # imm = 0x1862
callq 0xb460
leaq 0x7e8e(%rip), %rsi      # 0x2cd90
movq %r15, %rdi
callq 0xb980
leaq -0x19(%rbp), %rdi
movq %rax, %rsi
callq 0xb5e0
leaq -0x58(%rbp), %rdi
callq 0xb730
leaq 0x1bafa(%rip), %rax     # 0x40a20
cmpq %rax, (%rbx)
je 0x24f38
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb580
jmp 0x24f43
movq %r14, %rdi
movq %rbx, %rsi
callq 0x24f64
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x24f50
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0xb730
movq %rbx, %rdi
callq 0xb4e0
// File: /workspace/github_cpp_makefile_star2_O2/mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::DmaState::MergeFrom(Rnes::DmaState const&)
void DmaState::MergeFrom(const DmaState& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Rnes.DmaState)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = from._has_bits_[0];
  if (cached_has_bits & 0x00000007u) {
    if (cached_has_bits & 0x00000001u) {
      spritedmamode_ = from.spritedmamode_;
    }
    if (cached_has_bits & 0x00000002u) {
      spritedmacycle_ = from.spritedmacycle_;
    }
    if (cached_has_bits & 0x00000004u) {
      spritedmasourceaddr_ = from.spritedmasourceaddr_;
    }
    _has_bits_[0] |= cached_has_bits;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
cmpq %rdi, %rsi
jne 0x24fbb
leaq 0x7dfe(%rip), %rdx      # 0x2cd81
leaq -0x58(%rbp), %r15
pushq $0x3
popq %rsi
movq %r15, %rdi
movl $0x1871, %ecx           # imm = 0x1871
callq 0xb460
leaq 0x7df2(%rip), %rsi      # 0x2cd90
movq %r15, %rdi
callq 0xb980
leaq -0x19(%rbp), %rdi
movq %rax, %rsi
callq 0xb5e0
leaq -0x58(%rbp), %rdi
callq 0xb730
movq 0x8(%r14), %rsi
testb $0x1, %sil
je 0x24fd6
leaq 0x8(%rbx), %rdi
andq $-0x2, %rsi
addq $0x8, %rsi
callq 0x291a6
movl 0x10(%r14), %eax
testb $0x7, %al
je 0x25002
testb $0x1, %al
je 0x24fe9
movb 0x18(%r14), %cl
movb %cl, 0x18(%rbx)
testb $0x2, %al
je 0x24ff4
movl 0x1c(%r14), %ecx
movl %ecx, 0x1c(%rbx)
testb $0x4, %al
je 0x24fff
movl 0x20(%r14), %ecx
movl %ecx, 0x20(%rbx)
orl %eax, 0x10(%rbx)
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2500f
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0xb730
movq %rbx, %rdi
callq 0xb4e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::DmaState::InternalSwap(Rnes::DmaState*)
void DmaState::InternalSwap(DmaState* other) {
  using std::swap;
  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  swap(_has_bits_[0], other->_has_bits_[0]);
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(DmaState, spritedmasourceaddr_)
      + sizeof(DmaState::spritedmasourceaddr_)
      - PROTOBUF_FIELD_OFFSET(DmaState, spritedmamode_)>(
          reinterpret_cast<char*>(&spritedmamode_),
          reinterpret_cast<char*>(&other->spritedmamode_));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rsi), %rsi
testb $0x1, 0x8(%rdi)
jne 0x2509b
testb $0x1, %sil
jne 0x250a1
jmp 0x250b2
testb $0x1, %sil
je 0x250e3
andq $-0x2, %rsi
addq $0x8, %rsi
leaq 0x8(%r14), %rdi
callq 0x2920c
movl 0x10(%r14), %eax
movl 0x10(%rbx), %ecx
movl %ecx, 0x10(%r14)
movl %eax, 0x10(%rbx)
movq 0x18(%r14), %rax
movq 0x18(%rbx), %rcx
movq %rcx, 0x18(%r14)
movq %rax, 0x18(%rbx)
movl 0x20(%r14), %eax
movl 0x20(%rbx), %ecx
movl %ecx, 0x20(%r14)
movl %eax, 0x20(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x8(%rbx), %rdi
callq 0x28ff8
movq %rax, %rsi
jmp 0x250a9
nop
// File: /workspace/github_cpp_makefile_star2_O2/mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::SaveState::InitAsDefaultInstance()
void SaveState::InitAsDefaultInstance() {
  ::Rnes::_SaveState_default_instance_._instance.get_mutable()->dma_ = const_cast< ::Rnes::DmaState*>(
      ::Rnes::DmaState::internal_default_instance());
  ::Rnes::_SaveState_default_instance_._instance.get_mutable()->cpu_ = const_cast< ::Rnes::CpuState*>(
      ::Rnes::CpuState::internal_default_instance());
  ::Rnes::_SaveState_default_instance_._instance.get_mutable()->apu_ = const_cast< ::Rnes::ApuState*>(
      ::Rnes::ApuState::internal_default_instance());
  ::Rnes::_SaveState_default_instance_._instance.get_mutable()->ppu_ = const_cast< ::Rnes::PpuState*>(
      ::Rnes::PpuState::internal_default_instance());
  ::Rnes::_SaveState_default_instance_._instance.get_mutable()->controller_ = const_cast< ::Rnes::ControllerState*>(
      ::Rnes::ControllerState::internal_default_instance());
  ::Rnes::_SaveState_default_instance_._instance.get_mutable()->cpumem_ = const_cast< ::Rnes::CpuMemoryState*>(
      ::Rnes::CpuMemoryState::internal_default_instance());
  ::Rnes::_SaveState_default_instance_._instance.get_mutable()->vidmem_ = const_cast< ::Rnes::VideoMemoryState*>(
      ::Rnes::VideoMemoryState::internal_default_instance());
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x1ca11(%rip), %rax     # 0x41b18
movq %rax, 0x1ca52(%rip)     # 0x41b60
leaq 0x1c6f3(%rip), %rax     # 0x41808
movq %rax, 0x1ca4c(%rip)     # 0x41b68
leaq 0x1c7bd(%rip), %rax     # 0x418e0
movq %rax, 0x1ca46(%rip)     # 0x41b70
leaq 0x1c847(%rip), %rax     # 0x41978
movq %rax, 0x1ca40(%rip)     # 0x41b78
leaq 0x1c961(%rip), %rax     # 0x41aa0
movq %rax, 0x1ca3a(%rip)     # 0x41b80
leaq 0x1c973(%rip), %rax     # 0x41ac0
movq %rax, 0x1ca34(%rip)     # 0x41b88
leaq 0x1c98d(%rip), %rax     # 0x41ae8
movq %rax, 0x1ca2e(%rip)     # 0x41b90
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::SaveState::MergeFrom(google::protobuf::Message const&)
void SaveState::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Rnes.SaveState)
  GOOGLE_DCHECK_NE(&from, this);
  const SaveState* source =
      ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SaveState>(
          &from);
  if (source == nullptr) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:Rnes.SaveState)
    ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:Rnes.SaveState)
    MergeFrom(*source);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r14
cmpq %rdi, %rsi
jne 0x25d21
leaq 0x7098(%rip), %rdx      # 0x2cd81
leaq -0x58(%rbp), %r15
pushq $0x3
popq %rsi
movq %r15, %rdi
movl $0x1a99, %ecx           # imm = 0x1A99
callq 0xb460
leaq 0x708c(%rip), %rsi      # 0x2cd90
movq %r15, %rdi
callq 0xb980
leaq -0x19(%rbp), %rdi
movq %rax, %rsi
callq 0xb5e0
leaq -0x58(%rbp), %rdi
callq 0xb730
leaq 0x1ada8(%rip), %rax     # 0x40ad0
cmpq %rax, (%rbx)
je 0x25d3a
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb580
jmp 0x25d45
movq %r14, %rdi
movq %rbx, %rsi
callq 0x25d66
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x25d52
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0xb730
movq %rbx, %rdi
callq 0xb4e0
// File: /workspace/github_cpp_makefile_star2_O2/mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::SaveState::InternalSwap(Rnes::SaveState*)
void SaveState::InternalSwap(SaveState* other) {
  using std::swap;
  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  swap(_has_bits_[0], other->_has_bits_[0]);
  savedate_.Swap(&other->savedate_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(SaveState, gametime_)
      + sizeof(SaveState::gametime_)
      - PROTOBUF_FIELD_OFFSET(SaveState, dma_)>(
          reinterpret_cast<char*>(&dma_),
          reinterpret_cast<char*>(&other->dma_));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %r15
movq 0x8(%rsi), %rsi
testb $0x1, %r15b
jne 0x25fca
testb $0x1, %sil
jne 0x25fd4
movb $0x1, %al
jmp 0x25ff2
testb $0x1, %sil
je 0x2607e
andq $-0x2, %rsi
addq $0x8, %rsi
leaq 0x8(%r14), %r15
movq %r15, %rdi
callq 0x2920c
movq (%r15), %r15
testb $0x1, %r15b
sete %al
movl 0x10(%r14), %ecx
movl 0x10(%rbx), %edx
movl %edx, 0x10(%r14)
movl %ecx, 0x10(%rbx)
leaq 0x18(%r14), %rdi
testb %al, %al
je 0x26075
leaq 0x18(%rbx), %r12
movq (%rdi), %rax
cmpq 0x1afba(%rip), %rax     # 0x40fd0
jne 0x26025
movq (%r12), %rax
cmpq 0x1afad(%rip), %rax     # 0x40fd0
je 0x26054
movq 0x1afa4(%rip), %rsi     # 0x40fd0
movq %r15, %rdx
callq 0x28f3c
movq %rax, %r13
movq %r12, %rdi
movq 0x1af8f(%rip), %rsi     # 0x40fd0
movq %r15, %rdx
callq 0x28f3c
movq %r13, %rdi
movq %rax, %rsi
callq 0xb930
addq $0x20, %r14
addq $0x20, %rbx
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x28a26
andq $-0x2, %r15
movq (%r15), %r15
jmp 0x26008
leaq 0x8(%rbx), %rdi
callq 0x28ff8
movq %rax, %rsi
jmp 0x25fdc
nop
// File: /workspace/github_cpp_makefile_star2_O2/mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::ApuState::SharedDtor()
void ApuState::SharedDtor() {
  GOOGLE_DCHECK(GetArena() == nullptr);
  if (this != internal_default_instance()) delete pulsea_;
  if (this != internal_default_instance()) delete pulseb_;
  if (this != internal_default_instance()) delete triangle_;
  if (this != internal_default_instance()) delete noise_;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rax
testb $0x1, %al
jne 0x26d83
testq %rax, %rax
je 0x26cfe
leaq 0x60bb(%rip), %rdx      # 0x2cd81
leaq -0x50(%rbp), %r14
pushq $0x3
popq %rsi
movq %r14, %rdi
movl $0x9c4, %ecx            # imm = 0x9C4
callq 0xb460
leaq 0x62c9(%rip), %rsi      # 0x2cfaa
movq %r14, %rdi
callq 0xb980
leaq -0x11(%rbp), %rdi
movq %rax, %rsi
callq 0xb5e0
leaq -0x50(%rbp), %rdi
callq 0xb730
leaq 0x1abdb(%rip), %rax     # 0x418e0
cmpq %rax, %rbx
je 0x26d7a
movq 0x28(%rbx), %r14
testq %r14, %r14
je 0x26d1b
movq %r14, %rdi
callq 0x1e3a8
pushq $0x38
popq %rsi
movq %r14, %rdi
callq 0xb0f0
movq 0x30(%rbx), %r14
testq %r14, %r14
je 0x26d37
movq %r14, %rdi
callq 0x1e3a8
pushq $0x38
popq %rsi
movq %r14, %rdi
callq 0xb0f0
movq 0x38(%rbx), %r14
testq %r14, %r14
je 0x26d53
movq %r14, %rdi
callq 0x1ec3e
pushq $0x30
popq %rsi
movq %r14, %rdi
callq 0xb0f0
movq 0x40(%rbx), %rbx
testq %rbx, %rbx
je 0x26d6f
movq %rbx, %rdi
callq 0x1f348
pushq $0x38
popq %rsi
movq %rbx, %rdi
callq 0xb0f0
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
andq $-0x2, %rax
movq (%rax), %rax
jmp 0x26cba
jmp 0x26d91
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0xb730
movq %rbx, %rdi
callq 0xb4e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::MmcState::SharedDtor()
void MmcState::SharedDtor() {
  GOOGLE_DCHECK(GetArena() == nullptr);
  if (this != internal_default_instance()) delete mmcnone_;
  if (this != internal_default_instance()) delete mmc1_;
  if (this != internal_default_instance()) delete mmc3_;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rax
testb $0x1, %al
jne 0x27791
testq %rax, %rax
je 0x27728
leaq 0x5691(%rip), %rdx      # 0x2cd81
leaq -0x50(%rbp), %r14
pushq $0x3
popq %rsi
movq %r14, %rdi
movl $0x1361, %ecx           # imm = 0x1361
callq 0xb460
leaq 0x589f(%rip), %rsi      # 0x2cfaa
movq %r14, %rdi
callq 0xb980
leaq -0x11(%rbp), %rdi
movq %rax, %rsi
callq 0xb5e0
leaq -0x50(%rbp), %rdi
callq 0xb730
leaq 0x1a341(%rip), %rax     # 0x41a70
cmpq %rax, %rbx
je 0x27788
movq 0x18(%rbx), %r14
testq %r14, %r14
je 0x27745
movq %r14, %rdi
callq 0x21c08
pushq $0x18
popq %rsi
movq %r14, %rdi
callq 0xb0f0
movq 0x20(%rbx), %r14
testq %r14, %r14
je 0x27761
movq %r14, %rdi
callq 0x21ff8
pushq $0x30
popq %rsi
movq %r14, %rdi
callq 0xb0f0
movq 0x28(%rbx), %rbx
testq %rbx, %rbx
je 0x2777d
movq %rbx, %rdi
callq 0x226e2
pushq $0x38
popq %rsi
movq %rbx, %rdi
callq 0xb0f0
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
andq $-0x2, %rax
movq (%rax), %rax
jmp 0x276e4
jmp 0x2779f
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0xb730
movq %rbx, %rdi
callq 0xb4e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/mindbeast[P]rnes/bin/save.pb.h
// Function: Rnes::MmcState::_internal_mutable_mmcnone()
inline ::Rnes::MmcState_MmcNoneState* MmcState::_internal_mutable_mmcnone() {
  _has_bits_[0] |= 0x00000001u;
  if (mmcnone_ == nullptr) {
    auto* p = CreateMaybeMessage<::Rnes::MmcState_MmcNoneState>(GetArena());
    mmcnone_ = p;
  }
  return mmcnone_;
}

// Assembly:
orb $0x1, 0x10(%rdi)
movq 0x18(%rdi), %rax
testq %rax, %rax
je 0x27840
retq
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testb $0x1, %dil
jne 0x27863
callq 0x2633a
movq %rax, 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
andq $-0x2, %rdi
movq (%rdi), %rdi
jmp 0x27853
// File: /workspace/github_cpp_makefile_star2_O2/mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::VideoMemoryState::SharedDtor()
void VideoMemoryState::SharedDtor() {
  GOOGLE_DCHECK(GetArena() == nullptr);
  patterntablememory_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  nametablememory_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  palettememory_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rax
testb $0x1, %al
jne 0x27d07
testq %rax, %rax
je 0x27cd0
leaq 0x50e9(%rip), %rdx      # 0x2cd81
leaq -0x50(%rbp), %r14
pushq $0x3
popq %rsi
movq %r14, %rdi
movl $0x169e, %ecx           # imm = 0x169E
callq 0xb460
leaq 0x52f7(%rip), %rsi      # 0x2cfaa
movq %r14, %rdi
callq 0xb980
leaq -0x11(%rbp), %rdi
movq %rax, %rsi
callq 0xb5e0
leaq -0x50(%rbp), %rdi
callq 0xb730
leaq 0x18(%rbx), %rdi
movq 0x192f5(%rip), %r14     # 0x40fd0
movq %r14, %rsi
callq 0x28f08
leaq 0x20(%rbx), %rdi
movq %r14, %rsi
callq 0x28f08
addq $0x28, %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x28f08
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
andq $-0x2, %rax
movq (%rax), %rax
jmp 0x27c8c
jmp 0x27d15
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0xb730
movq %rbx, %rdi
callq 0xb4e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/mindbeast[P]rnes/bin/save.pb.cc
// Function: Rnes::SaveState::SharedDtor()
void SaveState::SharedDtor() {
  GOOGLE_DCHECK(GetArena() == nullptr);
  savedate_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  if (this != internal_default_instance()) delete dma_;
  if (this != internal_default_instance()) delete cpu_;
  if (this != internal_default_instance()) delete apu_;
  if (this != internal_default_instance()) delete ppu_;
  if (this != internal_default_instance()) delete controller_;
  if (this != internal_default_instance()) delete cpumem_;
  if (this != internal_default_instance()) delete vidmem_;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rax
testb $0x1, %al
jne 0x28409
testq %rax, %rax
je 0x2831c
leaq 0x4a9d(%rip), %rdx      # 0x2cd81
leaq -0x50(%rbp), %r14
pushq $0x3
popq %rsi
movq %r14, %rdi
movl $0x1942, %ecx           # imm = 0x1942
callq 0xb460
leaq 0x4cab(%rip), %rsi      # 0x2cfaa
movq %r14, %rdi
callq 0xb980
leaq -0x11(%rbp), %rdi
movq %rax, %rsi
callq 0xb5e0
leaq -0x50(%rbp), %rdi
callq 0xb730
leaq 0x18(%rbx), %rdi
movq 0x18ca9(%rip), %rsi     # 0x40fd0
callq 0x28f08
leaq 0x1980d(%rip), %rax     # 0x41b40
cmpq %rax, %rbx
je 0x28400
movq 0x20(%rbx), %r14
testq %r14, %r14
je 0x2834d
movq %r14, %rdi
callq 0x24bd2
pushq $0x28
popq %rsi
movq %r14, %rdi
callq 0xb0f0
movq 0x28(%rbx), %r14
testq %r14, %r14
je 0x28369
movq %r14, %rdi
callq 0x1dc1c
pushq $0x38
popq %rsi
movq %r14, %rdi
callq 0xb0f0
movq 0x30(%rbx), %r14
testq %r14, %r14
je 0x28385
movq %r14, %rdi
callq 0x1fc2a
pushq $0x70
popq %rsi
movq %r14, %rdi
callq 0xb0f0
movq 0x38(%rbx), %r14
testq %r14, %r14
je 0x283a1
movq %r14, %rdi
callq 0x210c8
pushq $0x78
popq %rsi
movq %r14, %rdi
callq 0xb0f0
movq 0x40(%rbx), %r14
testq %r14, %r14
je 0x283bd
movq %r14, %rdi
callq 0x237b8
pushq $0x20
popq %rsi
movq %r14, %rdi
callq 0xb0f0
movq 0x48(%rbx), %r14
testq %r14, %r14
je 0x283d9
movq %r14, %rdi
callq 0x23d62
pushq $0x28
popq %rsi
movq %r14, %rdi
callq 0xb0f0
movq 0x50(%rbx), %rbx
testq %rbx, %rbx
je 0x283f5
movq %rbx, %rdi
callq 0x24470
pushq $0x30
popq %rsi
movq %rbx, %rdi
callq 0xb0f0
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
andq $-0x2, %rax
movq (%rax), %rax
jmp 0x282d8
jmp 0x28417
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0xb730
movq %rbx, %rdi
callq 0xb4e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/qema[P]orca-py/liborca.cpp
// Function: writeResults(int, char const*)
int writeResults(int g, const char* output_filename) {
    fstream fout; 
    if (fout.fail()) {
        cerr << "Failed to open file " << output_filename << endl;
        return 1;
    }
    fout.open(output_filename, fstream::out | fstream::binary);
    int no[] = {0,0,1,4,15,73};
    for (int i=0;i<n;i++) {
        for (int j=0;j<no[g];j++) {
            if (j!=0) 
                fout << " ";
            fout << orbit[i][j];
        }
        fout << endl;
    }
    fout.close();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
movq %rsi, %rbx
movl %edi, %ebp
movq %fs:0x28, %rax
movq %rax, 0x220(%rsp)
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x7210
movq (%r14), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x30(%rsp,%rax)
je 0xee48
movq 0x71fd(%rip), %rdi      # 0x15ff0
leaq 0x3256(%rip), %rsi      # 0x12050
callq 0x71c0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x71c0
movq %rax, %rdi
callq 0x70c0
leaq 0x10(%rsp), %rdi
callq 0x7050
movq %fs:0x28, %rax
cmpq 0x220(%rsp), %rax
jne 0xef14
pushq $0x1
popq %rax
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10(%rsp), %rdi
pushq $0x14
popq %rdx
movq %rbx, %rsi
callq 0x71a0
movslq %ebp, %rax
movq %rax, 0x8(%rsp)
leaq 0x20(%rsp), %rbx
movq 0x70d4(%rip), %r12      # 0x15f40
leaq 0x31f0(%rip), %r14      # 0x12063
xorl %r13d, %r13d
movq 0x7123(%rip), %rax      # 0x15fa0
movslq (%rax), %rax
cmpq %rax, %r13
jge 0xeedc
movq 0x8(%rsp), %rax
leaq 0x33bf(%rip), %rcx      # 0x12250
movl (%rcx,%rax,4), %ebp
testl %ebp, %ebp
movl $0x0, %eax
cmovlel %eax, %ebp
xorl %r15d, %r15d
cmpq %r15, %rbp
je 0xeecf
testq %r15, %r15
je 0xeeb6
movq %rbx, %rdi
movq %r14, %rsi
callq 0x71c0
movq (%r12), %rax
movq (%rax,%r13,8), %rax
movq (%rax,%r15,8), %rsi
movq %rbx, %rdi
callq 0x7080
incq %r15
jmp 0xeea1
movq %rbx, %rdi
callq 0x70c0
incq %r13
jmp 0xee76
leaq 0x10(%rsp), %rdi
callq 0x7030
jmp 0xeeec
jmp 0xeeec
jmp 0xeeec
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x7050
movq %fs:0x28, %rax
cmpq 0x220(%rsp), %rax
jne 0xef14
movq %rbx, %rdi
callq 0x7300
callq 0x7200
// File: /workspace/github_cpp_makefile_star2_O2/qema[P]orca-py/liborca.cpp
// Function: writeResultsString[abi:cxx11](int)
string writeResultsString(int g) {
    std::stringstream ss("", ios_base::app | ios_base::out);
    int no[] = {0,0,1,4,15,73};
    for (int i=0;i<n;i++) {
        for (int j=0;j<no[g];j++) {
            if (j!=0) 
                ss << " ";
            ss << orbit[i][j];
        }
        ss << endl;
    }
    return ss.str();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1c8, %rsp            # imm = 0x1C8
movl %esi, %ebp
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, 0x1c0(%rsp)
leaq 0x3240(%rip), %rsi      # 0x12187
leaq 0x18(%rsp), %rdi
leaq 0x17(%rsp), %rdx
callq 0xfddc
movq %rbx, (%rsp)
leaq 0x38(%rsp), %rdi
leaq 0x18(%rsp), %rsi
pushq $0x11
popq %rdx
callq 0x72c0
leaq 0x18(%rsp), %rdi
callq 0x7338
movslq %ebp, %rax
movq %rax, 0x8(%rsp)
leaq 0x48(%rsp), %r14
movq 0x6fb6(%rip), %r13      # 0x15f40
leaq 0x30d2(%rip), %r15      # 0x12063
xorl %ebx, %ebx
movq 0x7006(%rip), %rax      # 0x15fa0
movslq (%rax), %rax
cmpq %rax, %rbx
jge 0xeff9
movq 0x8(%rsp), %rax
leaq 0x32a2(%rip), %rcx      # 0x12250
movl (%rcx,%rax,4), %ebp
testl %ebp, %ebp
movl $0x0, %eax
cmovlel %eax, %ebp
xorl %r12d, %r12d
cmpq %r12, %rbp
je 0xefec
testq %r12, %r12
je 0xefd3
movq %r14, %rdi
movq %r15, %rsi
callq 0x71c0
movq (%r13), %rax
movq (%rax,%rbx,8), %rax
movq (%rax,%r12,8), %rsi
movq %r14, %rdi
callq 0x7080
incq %r12
jmp 0xefbe
movq %r14, %rdi
callq 0x70c0
incq %rbx
jmp 0xef93
leaq 0x50(%rsp), %rsi
movq (%rsp), %rbx
movq %rbx, %rdi
callq 0x72b0
leaq 0x38(%rsp), %rdi
callq 0x7140
movq %fs:0x28, %rax
cmpq 0x1c0(%rsp), %rax
jne 0xf07c
movq %rbx, %rax
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xf054
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x7338
jmp 0xf061
movq %rax, %rbx
jmp 0xf061
jmp 0xf054
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x7140
movq %fs:0x28, %rax
cmpq 0x1c0(%rsp), %rax
jne 0xf07c
movq %rbx, %rdi
callq 0x7300
callq 0x7200
// File: /workspace/github_cpp_makefile_star2_O2/qema[P]orca-py/liborca.cpp
// Function: writeEdgeResults(int, char const*)
int writeEdgeResults(int g, const char* output_filename) {
    fstream fout; 
    if (fout.fail()) {
        cerr << "Failed to open file " << output_filename << endl;
        return 1;
    }
    int no[] = {0,0,0,2,12,68};
    for (int i=0;i<m;i++) {
        for (int j=0;j<no[g];j++) {
            if (j!=0) fout << " ";
            fout << eorbit[i][j];
        }
        fout << endl;
    }
    fout.close();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
movq %rsi, %rbx
movl %edi, %ebp
movq %fs:0x28, %rax
movq %rax, 0x220(%rsp)
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x7210
movq (%r14), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x30(%rsp,%rax)
je 0xf11f
movq 0x6f26(%rip), %rdi      # 0x15ff0
leaq 0x2f7f(%rip), %rsi      # 0x12050
callq 0x71c0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x71c0
movq %rax, %rdi
callq 0x70c0
leaq 0x10(%rsp), %rdi
callq 0x7050
movq %fs:0x28, %rax
cmpq 0x220(%rsp), %rax
jne 0xf1db
pushq $0x1
popq %rax
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movslq %ebp, %rax
movq %rax, 0x8(%rsp)
leaq 0x20(%rsp), %rbx
movq 0x6e2d(%rip), %r12      # 0x15f60
leaq 0x2f29(%rip), %r14      # 0x12063
xorl %r13d, %r13d
movq 0x6e0c(%rip), %rax      # 0x15f50
movslq (%rax), %rax
cmpq %rax, %r13
jge 0xf1a3
movq 0x8(%rsp), %rax
leaq 0x3118(%rip), %rcx      # 0x12270
movl (%rcx,%rax,4), %ebp
testl %ebp, %ebp
movl $0x0, %eax
cmovlel %eax, %ebp
xorl %r15d, %r15d
cmpq %r15, %rbp
je 0xf196
testq %r15, %r15
je 0xf17d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x71c0
movq (%r12), %rax
movq (%rax,%r13,8), %rax
movq (%rax,%r15,8), %rsi
movq %rbx, %rdi
callq 0x7080
incq %r15
jmp 0xf168
movq %rbx, %rdi
callq 0x70c0
incq %r13
jmp 0xf13d
leaq 0x10(%rsp), %rdi
callq 0x7030
jmp 0xf1b3
jmp 0xf1b3
jmp 0xf1b3
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x7050
movq %fs:0x28, %rax
cmpq 0x220(%rsp), %rax
jne 0xf1db
movq %rbx, %rdi
callq 0x7300
callq 0x7200
// File: /workspace/github_cpp_makefile_star2_O2/qema[P]orca-py/liborca.cpp
// Function: writeEdgeResultsString[abi:cxx11](int)
string writeEdgeResultsString(int g) {
    std::stringstream ss("", ios_base::app | ios_base::out);
    int no[] = {0,0,0,2,12,68};
    for (int i=0;i<m;i++) {
        for (int j=0;j<no[g];j++) {
            if (j!=0) ss << " ";
            ss << eorbit[i][j];
        }
        ss << endl;
    }
    return ss.str();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1c8, %rsp            # imm = 0x1C8
movl %esi, %ebp
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, 0x1c0(%rsp)
leaq 0x2f79(%rip), %rsi      # 0x12187
leaq 0x18(%rsp), %rdi
leaq 0x17(%rsp), %rdx
callq 0xfddc
movq %rbx, (%rsp)
leaq 0x38(%rsp), %rdi
leaq 0x18(%rsp), %rsi
pushq $0x11
popq %rdx
callq 0x72c0
leaq 0x18(%rsp), %rdi
callq 0x7338
movslq %ebp, %rax
movq %rax, 0x8(%rsp)
leaq 0x48(%rsp), %r14
movq 0x6d0f(%rip), %r13      # 0x15f60
leaq 0x2e0b(%rip), %r15      # 0x12063
xorl %ebx, %ebx
movq 0x6cef(%rip), %rax      # 0x15f50
movslq (%rax), %rax
cmpq %rax, %rbx
jge 0xf2c0
movq 0x8(%rsp), %rax
leaq 0x2ffb(%rip), %rcx      # 0x12270
movl (%rcx,%rax,4), %ebp
testl %ebp, %ebp
movl $0x0, %eax
cmovlel %eax, %ebp
xorl %r12d, %r12d
cmpq %r12, %rbp
je 0xf2b3
testq %r12, %r12
je 0xf29a
movq %r14, %rdi
movq %r15, %rsi
callq 0x71c0
movq (%r13), %rax
movq (%rax,%rbx,8), %rax
movq (%rax,%r12,8), %rsi
movq %r14, %rdi
callq 0x7080
incq %r12
jmp 0xf285
movq %r14, %rdi
callq 0x70c0
incq %rbx
jmp 0xf25a
leaq 0x50(%rsp), %rsi
movq (%rsp), %rbx
movq %rbx, %rdi
callq 0x72b0
leaq 0x38(%rsp), %rdi
callq 0x7140
movq %fs:0x28, %rax
cmpq 0x1c0(%rsp), %rax
jne 0xf343
movq %rbx, %rax
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xf31b
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x7338
jmp 0xf328
movq %rax, %rbx
jmp 0xf328
jmp 0xf31b
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x7140
movq %fs:0x28, %rax
cmpq 0x1c0(%rsp), %rax
jne 0xf343
movq %rbx, %rdi
callq 0x7300
callq 0x7200
// File: /workspace/github_cpp_makefile_star2_O2/qema[P]orca-py/liborca.cpp
// Function: motif_counts_wrap(_object*, _object*)
PyObject * motif_counts_wrap(PyObject *self, PyObject *args) {
    //(const char* orbit_type, int graphlet_size, 
    //    const char* input_filename, const char* output_filename, string &out_str)
    char *orbit_type, *input_filename;//, *output_filename;
	int graphlet_size;

	if(!PyArg_ParseTuple(args, "sis", &orbit_type, &graphlet_size,
                &input_filename))
		return NULL;

	//sprintf(eq, "%d + %d", num1, num2);
    static string out;
    motif_counts(orbit_type, graphlet_size, input_filename, "", out);

	//return Py_BuildValue("is", num1 + num2, eq);
	return PyUnicode_FromString(out.c_str());
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rdi
movq %fs:0x28, %rax
movq %rax, 0x18(%rsp)
leaq 0x259e(%rip), %rsi      # 0x12188
xorl %ebx, %ebx
leaq 0x10(%rsp), %rdx
leaq 0x4(%rsp), %rcx
leaq 0x8(%rsp), %r8
xorl %eax, %eax
callq 0x7240
testl %eax, %eax
je 0xfc40
movb 0x676c(%rip), %al       # 0x16378
testb %al, %al
je 0xfc5e
movq 0x10(%rsp), %rdi
movl 0x4(%rsp), %esi
movq 0x8(%rsp), %rdx
leaq 0x2562(%rip), %rcx      # 0x12187
leaq 0x672c(%rip), %r8       # 0x16358
callq 0xf348
movq 0x6720(%rip), %rdi      # 0x16358
callq 0x7170
movq %rax, %rbx
movq %fs:0x28, %rax
cmpq 0x18(%rsp), %rax
jne 0xfc59
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
retq
callq 0x7200
leaq 0x6713(%rip), %rdi      # 0x16378
callq 0x7320
testl %eax, %eax
je 0xfc10
leaq 0x66f3(%rip), %rax      # 0x16368
movq %rax, 0x66dc(%rip)      # 0x16358
leaq 0x66d5(%rip), %rsi      # 0x16358
andq $0x0, 0x66d5(%rip)      # 0x16360
movb $0x0, 0x66d6(%rip)      # 0x16368
movq 0x62cf(%rip), %rdi      # 0x15f68
leaq 0x6500(%rip), %rdx      # 0x161a0
callq 0x7180
leaq 0x66cc(%rip), %rdi      # 0x16378
callq 0x70f0
jmp 0xfc10
// File: /workspace/github_cpp_makefile_star2_O2/qema[P]orca-py/liborca.cpp
// Function: init(int, char**)
int init(int argc, char *argv[]) {
    if (argc!=5) {
        cerr << "Incorrect number of arguments." << endl;
        cerr << "Usage: orca.exe [orbit type: node|edge] [graphlet size: 4/5] [graph - input file] [graphlets - output file]" << endl;
        return 0;
    }
    int graphlet_size;
    sscanf(argv[2],"%d", &graphlet_size);
    string out;
    motif_counts(argv[1], graphlet_size, argv[3], argv[4], out);

    return 1;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %fs:0x28, %rax
movq %rax, 0x30(%rsp)
cmpl $0x5, %edi
jne 0xfd26
movq %rsi, %rbx
movq 0x10(%rsi), %rdi
leaq 0x2539(%rip), %rsi      # 0x12217
leaq 0xc(%rsp), %r14
movq %r14, %rdx
xorl %eax, %eax
callq 0x71b0
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movl (%r14), %esi
movq 0x8(%rbx), %rdi
movq 0x18(%rbx), %rdx
movq 0x20(%rbx), %rcx
leaq 0x10(%rsp), %r8
callq 0xf348
leaq 0x10(%rsp), %rdi
callq 0x7338
pushq $0x1
popq %rax
jmp 0xfd5d
movq 0x62c3(%rip), %rbx      # 0x15ff0
leaq 0x2458(%rip), %rsi      # 0x1218c
movq %rbx, %rdi
callq 0x71c0
movq %rax, %rdi
callq 0x70c0
leaq 0x2460(%rip), %rsi      # 0x121ab
movq %rbx, %rdi
callq 0x71c0
movq %rax, %rdi
callq 0x70c0
xorl %eax, %eax
movq %fs:0x28, %rcx
cmpq 0x30(%rsp), %rcx
jne 0xfd9a
addq $0x38, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x7338
movq %fs:0x28, %rax
cmpq 0x30(%rsp), %rax
jne 0xfd9a
movq %rbx, %rdi
callq 0x7300
callq 0x7200
// File: /workspace/github_cpp_makefile_star2_O2/iZhangHui[P]CppPrimer/CH09_SequentialContainers/examples/stack.cc
// Function: main
int main()
{
    stack<int> intStack;  // empty stack

    // fill up the stack
    for (size_t ix = 0; ix != 10; ++ix)
        intStack.push(ix);   // intStack holds 0 . . . 9 inclusive

    // while there are still values in intStack
    while (!intStack.empty()) {
        int value = intStack.top();
        // code that uses value
        cout << value << endl;
        intStack.pop(); // pop the top element, and repeat
    }

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x58, %rsp
leaq -0x70(%rbp), %rbx
movq %rbx, %rdi
callq 0x130c
xorl %r15d, %r15d
leaq -0x1c(%rbp), %r14
cmpq $0xa, %r15
je 0x1296
movl %r15d, -0x1c(%rbp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x159c
incq %r15
jmp 0x127c
movl $0x200, %r15d           # imm = 0x200
movq 0x2d35(%rip), %rbx      # 0x3fd8
leaq -0x70(%rbp), %r14
movq -0x40(%rbp), %rax
cmpq -0x60(%rbp), %rax
je 0x12df
cmpq -0x38(%rbp), %rax
jne 0x12c2
movq -0x28(%rbp), %rax
movq -0x8(%rax), %rax
addq %r15, %rax
movl -0x4(%rax), %esi
movq %rbx, %rdi
callq 0x1100
movq %rax, %rdi
callq 0x1060
movq %r14, %rdi
callq 0x17f6
jmp 0x12a7
leaq -0x70(%rbp), %rdi
callq 0x133a
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x12f7
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x133a
movq %rbx, %rdi
callq 0x1110
nop
// File: /workspace/github_cpp_makefile_star2_O2/zengfenfei[P]codility/src/PermCheck.cpp
// Function: solution(std::vector<int, std::allocator<int>>&)
int solution(vector<int> &A) {
	unsigned int n = A.size();
	vector<bool> occurs(n, false);	// occurrence of 1 ~ n
	for (unsigned int i = 0; i < n; i++) {
		if (A[i] < 1 || A[i] > n) {
			return 0;
		}
		if (occurs[A[i] - 1]) {
			return 0;
		} else {
			occurs[A[i] - 1] = true;
		}
	}
	return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %r12
subq (%rdi), %r12
sarq $0x2, %r12
movl %r12d, %r14d
leaq -0x2a(%rbp), %rdx
movb $0x0, (%rdx)
leaq -0x58(%rbp), %r15
leaq -0x29(%rbp), %rcx
movq %r15, %rdi
movq %r14, %rsi
callq 0x1362
xorl %r13d, %r13d
cmpq %r13, %r14
je 0x12b9
movq (%rbx), %rax
movl (%rax,%r13,4), %esi
testl %esi, %esi
jle 0x12b9
cmpl %r12d, %esi
ja 0x12b9
decl %esi
movq %r15, %rdi
callq 0x13c2
testq %rdx, (%rax)
jne 0x12b9
movq (%rbx), %rax
movslq (%rax,%r13,4), %rsi
decq %rsi
movq %r15, %rdi
callq 0x13c2
orq %rdx, (%rax)
incq %r13
jmp 0x127b
xorl %ebx, %ebx
cmpq %r14, %r13
setae %bl
leaq -0x58(%rbp), %rdi
callq 0x13e4
movl %ebx, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x12dd
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x13e4
movq %rbx, %rdi
callq 0x10f0
// File: /workspace/github_cpp_makefile_star2_O2/zengfenfei[P]codility/src/PermCheck.cpp
// Function: main
int main() {
	vector<int> A(4);
	A[0] = 4;
	A[1] = 1;
	A[2] = 3;
	A[3] = 2;
	cout << solution(A) << '\n';	// 1
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x28, %rsp
leaq -0x28(%rbp), %rbx
pushq $0x4
popq %rsi
leaq -0x9(%rbp), %rdx
movq %rbx, %rdi
callq 0x13f8
movq (%rbx), %rax
movaps 0xcf9(%rip), %xmm0      # 0x2010
movups %xmm0, (%rax)
movq %rbx, %rdi
callq 0x123c
movq 0x2caf(%rip), %rdi      # 0x3fd8
movl %eax, %esi
callq 0x10e0
pushq $0xa
popq %rsi
movq %rax, %rdi
callq 0x10c0
leaq -0x28(%rbp), %rdi
callq 0x15e8
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %rbp
retq
movq %rax, %rbx
leaq -0x28(%rbp), %rdi
callq 0x15e8
movq %rbx, %rdi
callq 0x10f0
nop
// File: /workspace/github_cpp_makefile_star2_O2/ingowald[P]closestSurfacePointQueries/examples/benchmark.cpp
// Function: loadReference(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void loadReference(const std::string &fileName)
{
  FILE *file = fopen(fileName.c_str(),"r");
  if (!file) throw std::runtime_error("could not open "+fileName);

  for (int i=0;i<point_x.size();i++) {
    double x,y,z,s;
    if (fscanf(file,"%lf %lf %lf %lf\n",&x,&y,&z,&s) != 4)
      throw std::runtime_error("could not read reference result from "+fileName);
    reference_x.push_back(x);
    reference_y.push_back(y);
    reference_z.push_back(z);
    reference_dist.push_back(s);
  }
  std::cout << "loaded " << reference_dist.size() << " reference distances" << std::endl;
  fclose(file);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, (%rsp)
movq (%rdi), %rdi
leaq 0x5329(%rip), %rsi      # 0x8050
callq 0x2210
testq %rax, %rax
je 0x2e72
movq %rax, %r14
leaq 0x40(%rsp), %r12
leaq 0x38(%rsp), %r13
leaq 0x30(%rsp), %rbp
leaq 0x28(%rsp), %rbx
xorl %r15d, %r15d
movq 0x949a(%rip), %rax      # 0xc1f0
subq 0x948b(%rip), %rax      # 0xc1e8
sarq $0x3, %rax
cmpq %r15, %rax
jbe 0x2dcd
movq %r14, %rdi
leaq 0x53f4(%rip), %rsi      # 0x8164
movq %r12, %rdx
movq %r13, %rcx
movq %rbp, %r8
movq %rbx, %r9
xorl %eax, %eax
callq 0x2340
cmpl $0x4, %eax
jne 0x2e28
leaq 0x95a5(%rip), %rdi      # 0xc338
movq %r12, %rsi
callq 0x3ce4
leaq 0x95ae(%rip), %rdi      # 0xc350
movq %r13, %rsi
callq 0x3ce4
leaq 0x95b7(%rip), %rdi      # 0xc368
movq %rbp, %rsi
callq 0x3ce4
leaq 0x9560(%rip), %rdi      # 0xc320
movq %rbx, %rsi
callq 0x3ce4
incq %r15
jmp 0x2d4f
movq 0x91fc(%rip), %rdi      # 0xbfd0
leaq 0x532e(%rip), %rsi      # 0x8109
callq 0x21c0
movq 0x9541(%rip), %rsi      # 0xc328
subq 0x9532(%rip), %rsi      # 0xc320
sarq $0x3, %rsi
movq %rax, %rdi
callq 0x2130
leaq 0x539a(%rip), %rsi      # 0x819b
movq %rax, %rdi
callq 0x21c0
movq %rax, %rdi
callq 0x20f0
movq %r14, %rdi
callq 0x21d0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x2100
movq %rax, %r14
leaq 0x533b(%rip), %rsi      # 0x8175
leaq 0x8(%rsp), %rdi
movq (%rsp), %rdx
callq 0x3bf1
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x22d0
xorl %ebp, %ebp
movq 0x918f(%rip), %rsi      # 0xbff0
movq 0x9160(%rip), %rdx      # 0xbfc8
movq %r14, %rdi
callq 0x2300
jmp 0x2eba
pushq $0x10
popq %rdi
callq 0x2100
movq %rax, %r14
leaq 0x51ce(%rip), %rsi      # 0x8052
leaq 0x8(%rsp), %rdi
movq (%rsp), %rdx
callq 0x3bf1
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x22d0
xorl %ebp, %ebp
movq 0x9145(%rip), %rsi      # 0xbff0
movq 0x9116(%rip), %rdx      # 0xbfc8
movq %r14, %rdi
callq 0x2300
jmp 0x2ebe
jmp 0x2ed2
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x20e0
testb %bpl, %bpl
jne 0x2ed5
jmp 0x2edd
movq %rax, %rbx
movq %r14, %rdi
callq 0x2150
movq %rbx, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O2/ingowald[P]closestSurfacePointQueries/examples/benchmark.cpp
// Function: loadDennis(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void loadDennis(const std::string &fileName)
{
  FILE *file = fopen(fileName.c_str(),"r");
  if (!file) throw std::runtime_error("could not open "+fileName);

  for (int i=0;i<point_x.size();i++) {
    double s;
    if (fscanf(file,"%lf\n",&s) != 1)
      throw std::runtime_error("could not read dennis result from "+fileName);
    dennis_dist.push_back(s);
  }
  std::cout << "loaded " << dennis_dist.size() << " reference distances" << std::endl;
  fclose(file);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq (%rdi), %rdi
leaq 0x5150(%rip), %rsi      # 0x8050
callq 0x2210
testq %rax, %rax
je 0x3002
movq %rax, %r14
leaq 0x5258(%rip), %r15      # 0x8170
leaq 0x20(%rsp), %r12
leaq 0x945c(%rip), %r13      # 0xc380
xorl %ebp, %ebp
movq 0x92c3(%rip), %rax      # 0xc1f0
subq 0x92b4(%rip), %rax      # 0xc1e8
sarq $0x3, %rax
cmpq %rbp, %rax
jbe 0x2f62
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x2340
cmpl $0x1, %eax
jne 0x2fbd
movq %r13, %rdi
movq %r12, %rsi
callq 0x3ce4
incq %rbp
jmp 0x2f26
movq 0x9067(%rip), %rdi      # 0xbfd0
leaq 0x5199(%rip), %rsi      # 0x8109
callq 0x21c0
movq 0x940c(%rip), %rsi      # 0xc388
subq 0x93fd(%rip), %rsi      # 0xc380
sarq $0x3, %rsi
movq %rax, %rdi
callq 0x2130
leaq 0x5205(%rip), %rsi      # 0x819b
movq %rax, %rdi
callq 0x21c0
movq %rax, %rdi
callq 0x20f0
movq %r14, %rdi
callq 0x21d0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x2100
movq %rax, %r14
leaq 0x51e1(%rip), %rsi      # 0x81b0
movq %rsp, %rdi
movq %rbx, %rdx
callq 0x3bf1
movb $0x1, %bpl
movq %rsp, %rsi
movq %r14, %rdi
callq 0x22d0
xorl %ebp, %ebp
movq 0x8fff(%rip), %rsi      # 0xbff0
movq 0x8fd0(%rip), %rdx      # 0xbfc8
movq %r14, %rdi
callq 0x2300
jmp 0x3045
pushq $0x10
popq %rdi
callq 0x2100
movq %rax, %r14
leaq 0x503e(%rip), %rsi      # 0x8052
movq %rsp, %rdi
movq %rbx, %rdx
callq 0x3bf1
movb $0x1, %bpl
movq %rsp, %rsi
movq %r14, %rdi
callq 0x22d0
xorl %ebp, %ebp
movq 0x8fba(%rip), %rsi      # 0xbff0
movq 0x8f8b(%rip), %rdx      # 0xbfc8
movq %r14, %rdi
callq 0x2300
jmp 0x3049
jmp 0x305b
movq %rax, %rbx
movq %rsp, %rdi
callq 0x20e0
testb %bpl, %bpl
jne 0x305e
jmp 0x3066
movq %rax, %rbx
movq %r14, %rdi
callq 0x2150
movq %rbx, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O2/ingowald[P]closestSurfacePointQueries/examples/benchmark.cpp
// Function: loadPoints(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void loadPoints(const std::string &fileName)
{
  FILE *file = fopen(fileName.c_str(),"r");
  if (!file) throw std::runtime_error("could not open "+fileName);

  char line[1000];

  while (fgets(line,1000,file) && !feof(file) && strstr(line,"Zone")) {
    std::cout << "loading zone " << line;
    double x,y,z;
    
    while (fscanf(file,"%lf %lf %lf\n",&x,&y,&z)==3) {
      point_x.push_back(x);
      point_y.push_back(y);
      point_z.push_back(z);
    }
  }
  std::cout << "loaded total of " << point_x.size() << " points across all zones" << std::endl;
  fclose(file);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
movq %rdi, %r14
movq (%rdi), %rdi
leaq 0x4fc4(%rip), %rsi      # 0x8050
callq 0x2210
testq %rax, %rax
je 0x31bb
movq %rax, %rbx
leaq 0x18(%rsp), %r12
leaq 0x10(%rsp), %r13
leaq 0x8(%rsp), %r15
leaq 0x914d(%rip), %rbp      # 0xc200
leaq 0x915e(%rip), %r14      # 0xc218
leaq 0x20(%rsp), %rdi
movl $0x3e8, %esi            # imm = 0x3E8
movq %rbx, %rdx
callq 0x22b0
testq %rax, %rax
je 0x315d
movq %rbx, %rdi
callq 0x2290
testl %eax, %eax
jne 0x315d
leaq 0x20(%rsp), %rdi
leaq 0x50e6(%rip), %rsi      # 0x81d3
callq 0x2060
testq %rax, %rax
je 0x315d
movq 0x8ed2(%rip), %rdi      # 0xbfd0
leaq 0x50d3(%rip), %rsi      # 0x81d8
callq 0x21c0
movq %rax, %rdi
leaq 0x20(%rsp), %rsi
callq 0x21c0
movq %rbx, %rdi
leaq 0x5047(%rip), %rsi      # 0x8168
movq %r12, %rdx
movq %r13, %rcx
movq %r15, %r8
xorl %eax, %eax
callq 0x2340
cmpl $0x3, %eax
jne 0x30ba
leaq 0x90ab(%rip), %rdi      # 0xc1e8
movq %r12, %rsi
callq 0x3ce4
movq %rbp, %rdi
movq %r13, %rsi
callq 0x3ce4
movq %r14, %rdi
movq %r15, %rsi
callq 0x3ce4
jmp 0x3117
movq 0x8e6c(%rip), %rdi      # 0xbfd0
leaq 0x507b(%rip), %rsi      # 0x81e6
callq 0x21c0
movq 0x9079(%rip), %rsi      # 0xc1f0
subq 0x906a(%rip), %rsi      # 0xc1e8
sarq $0x3, %rsi
movq %rax, %rdi
callq 0x2130
leaq 0x5066(%rip), %rsi      # 0x81f7
movq %rax, %rdi
callq 0x21c0
movq %rax, %rdi
callq 0x20f0
movq %rbx, %rdi
callq 0x21d0
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x2100
movq %rax, %rbx
leaq 0x4e85(%rip), %rsi      # 0x8052
leaq 0x20(%rsp), %rdi
movq %r14, %rdx
callq 0x3bf1
movb $0x1, %bpl
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x22d0
xorl %ebp, %ebp
movq 0x8dfd(%rip), %rsi      # 0xbff0
movq 0x8dce(%rip), %rdx      # 0xbfc8
movq %rbx, %rdi
callq 0x2300
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x20e0
testb %bpl, %bpl
jne 0x3219
jmp 0x3221
movq %rax, %r14
movq %rbx, %rdi
callq 0x2150
movq %r14, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O2/ingowald[P]closestSurfacePointQueries/src/distanceQueries.cpp
// Function: rtdqNewTriangleMeshfi
distance_query_scene rtdqNewTriangleMeshfi(const float   *vertex_x,
                                             const float   *vertex_y,
                                             const float   *vertex_z,
                                             const size_t   vertex_stride,
                                             const int32_t *index_x,
                                             const int32_t *index_y,
                                             const int32_t *index_z,
                                             const size_t   index_stride,
                                             const size_t    numTriangles)
  {
    if (index_stride == 1 && vertex_stride == 1)
      return (distance_query_scene)
        new GeneralTriangleMesh<float,int,0>(vertex_x,vertex_y,vertex_z,vertex_stride,
                                             index_x,index_y,index_z,index_stride,
                                             numTriangles);
    else
      return (distance_query_scene)
        new GeneralTriangleMesh<float,int,1>(vertex_x,vertex_y,vertex_z,vertex_stride,
                                             index_x,index_y,index_z,index_stride,
                                             numTriangles);

  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, 0x10(%rsp)
movq %r8, 0x8(%rsp)
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r14
movq 0x58(%rsp), %r15
xorq $0x1, %r15
movq %rcx, %rbp
xorq $0x1, %rbp
movl $0x90, %edi
callq 0x21e0
orq %r15, %rbp
jne 0x43f8
pushq $0x1
popq %r8
movq %rax, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r12, %rcx
movq 0x8(%rsp), %r9
pushq 0x60(%rsp)
pushq $0x1
pushq 0x60(%rsp)
pushq 0x28(%rsp)
movq %rax, %rbx
callq 0x4af2
addq $0x20, %rsp
jmp 0x4428
movq %rax, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r12, %rcx
movq %rbx, %r8
movq 0x8(%rsp), %r9
pushq 0x60(%rsp)
pushq 0x60(%rsp)
pushq 0x60(%rsp)
pushq 0x28(%rsp)
movq %rax, %rbx
callq 0x4b66
addq $0x20, %rsp
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x443c
movq %rax, %r14
movl $0x90, %esi
movq %rbx, %rdi
callq 0x21f0
movq %r14, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O2/ingowald[P]closestSurfacePointQueries/src/distanceQueries.cpp
// Function: rtdqNewTriangleMeshdi
distance_query_scene rtdqNewTriangleMeshdi(const double   *vertex_x,
                                             const double   *vertex_y,
                                             const double   *vertex_z,
                                             const size_t   vertex_stride,
                                             const int32_t *index_x,
                                             const int32_t *index_y,
                                             const int32_t *index_z,
                                             const size_t   index_stride,
                                             const size_t    numTriangles)
  {
    if (index_stride == 1 && vertex_stride == 1)
      return (distance_query_scene)
        new GeneralTriangleMesh<double,int,0>(vertex_x,vertex_y,vertex_z,vertex_stride,
                                              index_x,index_y,index_z,index_stride,
                                              numTriangles);
    else
      return (distance_query_scene)
        new GeneralTriangleMesh<double,int,1>(vertex_x,vertex_y,vertex_z,vertex_stride,
                                              index_x,index_y,index_z,index_stride,
                                              numTriangles);

  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, 0x10(%rsp)
movq %r8, 0x8(%rsp)
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r14
movq 0x58(%rsp), %r15
xorq $0x1, %r15
movq %rcx, %rbp
xorq $0x1, %rbp
movl $0x90, %edi
callq 0x21e0
orq %r15, %rbp
jne 0x44c8
pushq $0x1
popq %r8
movq %rax, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r12, %rcx
movq 0x8(%rsp), %r9
pushq 0x60(%rsp)
pushq $0x1
pushq 0x60(%rsp)
pushq 0x28(%rsp)
movq %rax, %rbx
callq 0x4bda
addq $0x20, %rsp
jmp 0x44f8
movq %rax, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r12, %rcx
movq %rbx, %r8
movq 0x8(%rsp), %r9
pushq 0x60(%rsp)
pushq 0x60(%rsp)
pushq 0x60(%rsp)
pushq 0x28(%rsp)
movq %rax, %rbx
callq 0x4c4e
addq $0x20, %rsp
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x450c
movq %rax, %r14
movl $0x90, %esi
movq %rbx, %rdi
callq 0x21f0
movq %r14, %rdi
callq 0x2310