LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/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
leaq 0x8(%rsi), %rdi
testb $0x1, 0x8(%r14)
jne 0x31aec
testb $0x1, (%rdi)
je 0x31b0d
leaq 0x8(%r14), %r15
movq (%rdi), %rsi
testb $0x1, %sil
je 0x31c05
andq $-0x2, %rsi
addq $0x8, %rsi
movq %r15, %rdi
callq 0x3325c
movl 0x10(%r14), %eax
movl 0x10(%rbx), %ecx
movl %ecx, 0x10(%r14)
movl %eax, 0x10(%rbx)
leaq 0x18(%r14), %r12
movq 0x8(%r14), %r15
testb $0x1, %r15b
jne 0x31bf9
leaq 0x18(%rbx), %r13
movq (%r12), %rax
cmpq 0x16484(%rip), %rax     # 0x47fc0
je 0x31bc8
movq (%r12), %r12
movq (%r13), %rax
cmpq 0x1646f(%rip), %rax     # 0x47fc0
jne 0x31b65
movq 0x16466(%rip), %rdx     # 0x47fc0
movq %r13, %rdi
movq %r15, %rsi
callq 0x23c3e
movq (%r13), %rsi
movq %r12, %rdi
callq 0xb940
movups 0x20(%r14), %xmm0
movups 0x20(%rbx), %xmm1
movups %xmm1, 0x20(%r14)
movups %xmm0, 0x20(%rbx)
movups 0x30(%r14), %xmm0
movups 0x30(%rbx), %xmm1
movups %xmm1, 0x30(%r14)
movups %xmm0, 0x30(%rbx)
movups 0x40(%r14), %xmm0
movups 0x40(%rbx), %xmm1
movups %xmm1, 0x40(%r14)
movups %xmm0, 0x40(%rbx)
movups 0x50(%r14), %xmm0
movups 0x50(%rbx), %xmm1
movups %xmm1, 0x50(%r14)
movups %xmm0, 0x50(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%r13), %rcx
cmpq 0x163ed(%rip), %rcx     # 0x47fc0
je 0x31b71
cmpq 0x163e4(%rip), %rax     # 0x47fc0
jne 0x31b42
movq 0x163d7(%rip), %rdx     # 0x47fc0
movq %r12, %rdi
movq %r15, %rsi
callq 0x23c3e
jmp 0x31b42
andq $-0x2, %r15
movq (%r15), %r15
jmp 0x31b2d
callq 0x33078
movq %rax, %rsi
jmp 0x31b05
// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %r15
testb $0x1, %r15b
jne 0x32649
testq %r15, %r15
je 0x325a4
leaq 0x4727(%rip), %rdx      # 0x36c91
leaq -0x58(%rbp), %r14
movq %r14, %rdi
movl $0x3, %esi
movl $0x9c4, %ecx            # imm = 0x9C4
callq 0xb450
leaq 0x4933(%rip), %rsi      # 0x36eba
movq %r14, %rdi
callq 0xb980
leaq -0x19(%rbp), %rdi
movq %rax, %rsi
callq 0xb600
leaq -0x58(%rbp), %rdi
callq 0xb730
testq %r15, %r15
leaq 0x16332(%rip), %r15     # 0x488e0
cmpq %r15, %rbx
je 0x3263e
movq 0x28(%rbx), %r14
testq %r14, %r14
je 0x325d5
movq %r14, %rdi
callq 0x2563c
movl $0x38, %esi
movq %r14, %rdi
callq 0xb0e0
cmpq %r15, %rbx
je 0x3263e
movq 0x30(%rbx), %r14
testq %r14, %r14
je 0x325f8
movq %r14, %rdi
callq 0x2563c
movl $0x38, %esi
movq %r14, %rdi
callq 0xb0e0
cmpq %r15, %rbx
je 0x3263e
movq 0x38(%rbx), %r14
testq %r14, %r14
je 0x3261b
movq %r14, %rdi
callq 0x26482
movl $0x30, %esi
movq %r14, %rdi
callq 0xb0e0
cmpq %r15, %rbx
je 0x3263e
movq 0x40(%rbx), %rbx
testq %rbx, %rbx
je 0x3263e
movq %rbx, %rdi
callq 0x26f80
movl $0x38, %esi
movq %rbx, %rdi
callq 0xb0e0
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
andq $-0x2, %r15
movq (%r15), %r15
jmp 0x3255e
jmp 0x32657
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0xb730
movq %rbx, %rdi
callq 0xb4d0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %r15
testb $0x1, %r15b
jne 0x32842
testq %r15, %r15
je 0x327c4
leaq 0x4507(%rip), %rdx      # 0x36c91
leaq -0x58(%rbp), %r14
movq %r14, %rdi
movl $0x3, %esi
movl $0x1361, %ecx           # imm = 0x1361
callq 0xb450
leaq 0x4713(%rip), %rsi      # 0x36eba
movq %r14, %rdi
callq 0xb980
leaq -0x19(%rbp), %rdi
movq %rax, %rsi
callq 0xb600
leaq -0x58(%rbp), %rdi
callq 0xb730
testq %r15, %r15
leaq 0x162a2(%rip), %r15     # 0x48a70
cmpq %r15, %rbx
je 0x32837
movq 0x18(%rbx), %r14
testq %r14, %r14
je 0x327f1
movq %r14, %rdi
callq 0x2b620
movl $0x18, %esi
movq %r14, %rdi
callq 0xb0e0
cmpq %r15, %rbx
je 0x32837
movq 0x20(%rbx), %r14
testq %r14, %r14
je 0x32814
movq %r14, %rdi
callq 0x2bb16
movl $0x30, %esi
movq %r14, %rdi
callq 0xb0e0
cmpq %r15, %rbx
je 0x32837
movq 0x28(%rbx), %rbx
testq %rbx, %rbx
je 0x32837
movq %rbx, %rdi
callq 0x2c5e6
movl $0x38, %esi
movq %rbx, %rdi
callq 0xb0e0
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
andq $-0x2, %r15
movq (%r15), %r15
jmp 0x3277e
jmp 0x32850
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0xb730
movq %rbx, %rdi
callq 0xb4d0
// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %r15
testb $0x1, %r15b
jne 0x32a96
testq %r15, %r15
je 0x329d4
leaq 0x42f7(%rip), %rdx      # 0x36c91
leaq -0x58(%rbp), %r14
movq %r14, %rdi
movl $0x3, %esi
movl $0x169e, %ecx           # imm = 0x169E
callq 0xb450
leaq 0x4503(%rip), %rsi      # 0x36eba
movq %r14, %rdi
callq 0xb980
leaq -0x19(%rbp), %rdi
movq %rax, %rsi
callq 0xb600
leaq -0x58(%rbp), %rdi
callq 0xb730
testq %r15, %r15
movq 0x18(%rbx), %r14
cmpq 0x155de(%rip), %r14     # 0x47fc0
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
jne 0x32a13
movq (%r14), %rdi
leaq 0x10(%r14), %rax
cmpq %rax, %rdi
je 0x32a06
movq (%rax), %rsi
incq %rsi
callq 0xb0e0
movl $0x20, %esi
movq %r14, %rdi
callq 0xb0e0
movq 0x20(%rbx), %r14
cmpq 0x155a2(%rip), %r14     # 0x47fc0
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
jne 0x32a4f
movq (%r14), %rdi
leaq 0x10(%r14), %rax
cmpq %rax, %rdi
je 0x32a42
movq (%rax), %rsi
incq %rsi
callq 0xb0e0
movl $0x20, %esi
movq %r14, %rdi
callq 0xb0e0
movq 0x28(%rbx), %rbx
cmpq 0x15566(%rip), %rbx     # 0x47fc0
sete %al
testq %rbx, %rbx
sete %cl
orb %al, %cl
jne 0x32a8b
movq (%rbx), %rdi
leaq 0x10(%rbx), %rax
cmpq %rax, %rdi
je 0x32a7e
movq (%rax), %rsi
incq %rsi
callq 0xb0e0
movl $0x20, %esi
movq %rbx, %rdi
callq 0xb0e0
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
andq $-0x2, %r15
movq (%r15), %r15
jmp 0x3298e
jmp 0x32aa4
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0xb730
movq %rbx, %rdi
callq 0xb4d0
// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %r15
testb $0x1, %r15b
jne 0x32c72
testq %r15, %r15
je 0x32b1c
leaq 0x41af(%rip), %rdx      # 0x36c91
leaq -0x58(%rbp), %r14
movq %r14, %rdi
movl $0x3, %esi
movl $0x1942, %ecx           # imm = 0x1942
callq 0xb450
leaq 0x43bb(%rip), %rsi      # 0x36eba
movq %r14, %rdi
callq 0xb980
leaq -0x19(%rbp), %rdi
movq %rax, %rsi
callq 0xb600
leaq -0x58(%rbp), %rdi
callq 0xb730
testq %r15, %r15
movq 0x18(%rbx), %r14
cmpq 0x15496(%rip), %r14     # 0x47fc0
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
jne 0x32b5b
movq (%r14), %rdi
leaq 0x10(%r14), %rax
cmpq %rax, %rdi
je 0x32b4e
movq (%rax), %rsi
incq %rsi
callq 0xb0e0
movl $0x20, %esi
movq %r14, %rdi
callq 0xb0e0
leaq 0x15fde(%rip), %r15     # 0x48b40
cmpq %r15, %rbx
je 0x32c67
movq 0x20(%rbx), %r14
testq %r14, %r14
je 0x32b89
movq %r14, %rdi
callq 0x2fa68
movl $0x28, %esi
movq %r14, %rdi
callq 0xb0e0
cmpq %r15, %rbx
je 0x32c67
movq 0x28(%rbx), %r14
testq %r14, %r14
je 0x32bb0
movq %r14, %rdi
callq 0x249f6
movl $0x38, %esi
movq %r14, %rdi
callq 0xb0e0
cmpq %r15, %rbx
je 0x32c67
movq 0x30(%rbx), %r14
testq %r14, %r14
je 0x32bd7
movq %r14, %rdi
callq 0x27e88
movl $0x70, %esi
movq %r14, %rdi
callq 0xb0e0
cmpq %r15, %rbx
je 0x32c67
movq 0x38(%rbx), %r14
testq %r14, %r14
je 0x32bfe
movq %r14, %rdi
callq 0x2a08e
movl $0x78, %esi
movq %r14, %rdi
callq 0xb0e0
cmpq %r15, %rbx
je 0x32c67
movq 0x40(%rbx), %r14
testq %r14, %r14
je 0x32c21
movq %r14, %rdi
callq 0x2e002
movl $0x20, %esi
movq %r14, %rdi
callq 0xb0e0
cmpq %r15, %rbx
je 0x32c67
movq 0x48(%rbx), %r14
testq %r14, %r14
je 0x32c44
movq %r14, %rdi
callq 0x2e7f4
movl $0x28, %esi
movq %r14, %rdi
callq 0xb0e0
cmpq %r15, %rbx
je 0x32c67
movq 0x50(%rbx), %rbx
testq %rbx, %rbx
je 0x32c67
movq %rbx, %rdi
callq 0x2f0b6
movl $0x30, %esi
movq %rbx, %rdi
callq 0xb0e0
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
andq $-0x2, %r15
movq (%r15), %r15
jmp 0x32ad6
jmp 0x32c80
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0xb730
movq %rbx, %rdi
callq 0xb4d0
// File: /workspace/github_cpp_makefile_star2_O1/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, %r14
movl %edi, %ebx
movq %fs:0x28, %rax
movq %rax, 0x220(%rsp)
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x5230
movq (%r15), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x30(%rsp,%rax)
je 0xded0
movq 0x61cf(%rip), %rbx      # 0x13ff0
leaq 0x31f1(%rip), %rsi      # 0x11019
movl $0x14, %edx
movq %rbx, %rdi
callq 0x5220
testq %r14, %r14
je 0xde56
movq %r14, %rdi
callq 0x50c0
movq 0x61a7(%rip), %rdi      # 0x13ff0
movq %r14, %rsi
movq %rax, %rdx
callq 0x5220
jmp 0xde6d
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x5310
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x51c0
movsbl %al, %esi
movq 0x6165(%rip), %rdi      # 0x13ff0
callq 0x5030
movq %rax, %rdi
callq 0x5130
leaq 0x10(%rsp), %rdi
callq 0x5060
movq %fs:0x28, %rax
cmpq 0x220(%rsp), %rax
jne 0xdfbc
movl $0x1, %eax
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
movl $0x14, %edx
callq 0x51b0
movq 0x60b7(%rip), %rax      # 0x13fa0
cmpl $0x0, (%rax)
jle 0xdf84
movslq %ebx, %rcx
leaq 0x3314(%rip), %rax      # 0x11210
movq %rcx, 0x8(%rsp)
movl (%rax,%rcx,4), %eax
leaq 0x20(%rsp), %rbx
cmpl $0x2, %eax
movl $0x1, %r13d
cmovgel %eax, %r13d
xorl %ebp, %ebp
movq 0x6029(%rip), %r15      # 0x13f48
leaq 0x3106(%rip), %r14      # 0x1102c
movabsq $0x3ffffffffffffffe, %rax # imm = 0x3FFFFFFFFFFFFFFE
testq %rax, 0x8(%rsp)
je 0xdf6a
xorl %r12d, %r12d
testq %r12, %r12
je 0xdf4f
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5220
movq (%r15), %rax
movq (%rax,%rbp,8), %rax
movq (%rax,%r12,8), %rsi
movq %rbx, %rdi
callq 0x50a0
incq %r12
cmpq %r12, %r13
jne 0xdf3a
movq %rbx, %rdi
callq 0x50d0
incq %rbp
movq 0x6024(%rip), %rax      # 0x13fa0
movslq (%rax), %rax
cmpq %rax, %rbp
jl 0xdf26
leaq 0x10(%rsp), %rdi
callq 0x5040
jmp 0xdf94
jmp 0xdf94
jmp 0xdf94
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x5060
movq %fs:0x28, %rax
cmpq 0x220(%rsp), %rax
jne 0xdfbc
movq %rbx, %rdi
callq 0x5330
callq 0x5210
// File: /workspace/github_cpp_makefile_star2_O1/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 0x28(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x3158(%rip), %rdx      # 0x11150
leaq 0x18(%rsp), %rdi
movq %rdx, %rsi
callq 0xfb56
leaq 0x38(%rsp), %rdi
leaq 0x18(%rsp), %rsi
movl $0x11, %edx
callq 0x52e0
movq %rbx, 0x8(%rsp)
movq 0x18(%rsp), %rdi
cmpq %r14, %rdi
je 0xe035
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x51f0
movq 0x5f64(%rip), %rax      # 0x13fa0
cmpl $0x0, (%rax)
jle 0xe0f7
movslq %ebp, %rcx
leaq 0x31c1(%rip), %rax      # 0x11210
movq %rcx, 0x10(%rsp)
movl (%rax,%rcx,4), %eax
leaq 0x48(%rsp), %r14
cmpl $0x2, %eax
movl $0x1, %ebp
cmovgel %eax, %ebp
xorl %ebx, %ebx
movq 0x5ed8(%rip), %r12      # 0x13f48
leaq 0x2fb5(%rip), %r15      # 0x1102c
movabsq $0x3ffffffffffffffe, %rax # imm = 0x3FFFFFFFFFFFFFFE
testq %rax, 0x10(%rsp)
je 0xe0bc
xorl %r13d, %r13d
testq %r13, %r13
je 0xe0a0
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x5220
movq (%r12), %rax
movq (%rax,%rbx,8), %rax
movq (%rax,%r13,8), %rsi
movq %r14, %rdi
callq 0x50a0
incq %r13
cmpq %r13, %rbp
jne 0xe08b
movq 0x48(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x51c0
movsbl %al, %esi
movq %r14, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5130
incq %rbx
movq 0x5eb1(%rip), %rax      # 0x13fa0
movslq (%rax), %rax
cmpq %rax, %rbx
jl 0xe077
leaq 0x50(%rsp), %rsi
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x52d0
movq 0x5e30(%rip), %rsi      # 0x13f40
leaq 0x38(%rsp), %rdi
callq 0x5160
leaq 0xb8(%rsp), %rdi
callq 0x5080
movq %fs:0x28, %rax
cmpq 0x1c0(%rsp), %rax
jne 0xe1b0
movq %rbx, %rax
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xe174
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r14, %rdi
je 0xe195
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x51f0
jmp 0xe195
movq %rax, %rbx
jmp 0xe195
jmp 0xe174
movq %rax, %rbx
movq 0x5dc2(%rip), %rsi      # 0x13f40
leaq 0x38(%rsp), %rdi
callq 0x5160
leaq 0xb8(%rsp), %rdi
callq 0x5080
movq %fs:0x28, %rax
cmpq 0x1c0(%rsp), %rax
jne 0xe1b0
movq %rbx, %rdi
callq 0x5330
callq 0x5210
// File: /workspace/github_cpp_makefile_star2_O1/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, %r14
movl %edi, %ebx
movq %fs:0x28, %rax
movq %rax, 0x220(%rsp)
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x5230
movq (%r15), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x30(%rsp,%rax)
je 0xe2b1
movq 0x5dee(%rip), %rbx      # 0x13ff0
leaq 0x2e10(%rip), %rsi      # 0x11019
movl $0x14, %edx
movq %rbx, %rdi
callq 0x5220
testq %r14, %r14
je 0xe237
movq %r14, %rdi
callq 0x50c0
movq 0x5dc6(%rip), %rdi      # 0x13ff0
movq %r14, %rsi
movq %rax, %rdx
callq 0x5220
jmp 0xe24e
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x5310
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x51c0
movsbl %al, %esi
movq 0x5d84(%rip), %rdi      # 0x13ff0
callq 0x5030
movq %rax, %rdi
callq 0x5130
leaq 0x10(%rsp), %rdi
callq 0x5060
movq %fs:0x28, %rax
cmpq 0x220(%rsp), %rax
jne 0xe393
movl $0x1, %eax
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x5c98(%rip), %rax      # 0x13f50
cmpl $0x0, (%rax)
jle 0xe35b
movslq %ebx, %rax
leaq 0x2f65(%rip), %rcx      # 0x11230
movl (%rcx,%rax,4), %ecx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
andq %rax, %rdx
addq $-0x3, %rdx
movq %rdx, 0x8(%rsp)
cmpl $0x2, %ecx
movl $0x1, %r13d
cmovgel %ecx, %r13d
leaq 0x20(%rsp), %rbx
xorl %ebp, %ebp
movq 0x5c61(%rip), %r15      # 0x13f60
leaq 0x2d26(%rip), %r14      # 0x1102c
cmpq $0x2, 0x8(%rsp)
ja 0xe341
xorl %r12d, %r12d
testq %r12, %r12
je 0xe326
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5220
movq (%r15), %rax
movq (%rax,%rbp,8), %rax
movq (%rax,%r12,8), %rsi
movq %rbx, %rdi
callq 0x50a0
incq %r12
cmpq %r12, %r13
jne 0xe311
movq %rbx, %rdi
callq 0x50d0
incq %rbp
movq 0x5bfd(%rip), %rax      # 0x13f50
movslq (%rax), %rax
cmpq %rax, %rbp
jl 0xe306
leaq 0x10(%rsp), %rdi
callq 0x5040
jmp 0xe36b
jmp 0xe36b
jmp 0xe36b
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x5060
movq %fs:0x28, %rax
cmpq 0x220(%rsp), %rax
jne 0xe393
movq %rbx, %rdi
callq 0x5330
callq 0x5210
// File: /workspace/github_cpp_makefile_star2_O1/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 0x28(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x2d81(%rip), %rdx      # 0x11150
leaq 0x18(%rsp), %rdi
movq %rdx, %rsi
callq 0xfb56
leaq 0x38(%rsp), %rdi
leaq 0x18(%rsp), %rsi
movl $0x11, %edx
callq 0x52e0
movq %rbx, 0x8(%rsp)
movq 0x18(%rsp), %rdi
cmpq %r14, %rdi
je 0xe40c
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x51f0
movq 0x5b3d(%rip), %rax      # 0x13f50
cmpl $0x0, (%rax)
jle 0xe4d6
movslq %ebp, %rax
leaq 0x2e0a(%rip), %rcx      # 0x11230
movl (%rcx,%rax,4), %ecx
movabsq $0x3fffffffffffffff, %rdx # imm = 0x3FFFFFFFFFFFFFFF
andq %rax, %rdx
addq $-0x3, %rdx
movq %rdx, 0x10(%rsp)
cmpl $0x2, %ecx
movl $0x1, %ebp
cmovgel %ecx, %ebp
leaq 0x48(%rsp), %r14
xorl %ebx, %ebx
movq 0x5b08(%rip), %r12      # 0x13f60
leaq 0x2bcd(%rip), %r15      # 0x1102c
cmpq $0x2, 0x10(%rsp)
ja 0xe49b
xorl %r13d, %r13d
testq %r13, %r13
je 0xe47f
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x5220
movq (%r12), %rax
movq (%rax,%rbx,8), %rax
movq (%rax,%r13,8), %rsi
movq %r14, %rdi
callq 0x50a0
incq %r13
cmpq %r13, %rbp
jne 0xe46a
movq 0x48(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x51c0
movsbl %al, %esi
movq %r14, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5130
incq %rbx
movq 0x5a82(%rip), %rax      # 0x13f50
movslq (%rax), %rax
cmpq %rax, %rbx
jl 0xe45f
leaq 0x50(%rsp), %rsi
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x52d0
movq 0x5a51(%rip), %rsi      # 0x13f40
leaq 0x38(%rsp), %rdi
callq 0x5160
leaq 0xb8(%rsp), %rdi
callq 0x5080
movq %fs:0x28, %rax
cmpq 0x1c0(%rsp), %rax
jne 0xe58f
movq %rbx, %rax
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xe553
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r14, %rdi
je 0xe574
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x51f0
jmp 0xe574
movq %rax, %rbx
jmp 0xe574
jmp 0xe553
movq %rax, %rbx
movq 0x59e3(%rip), %rsi      # 0x13f40
leaq 0x38(%rsp), %rdi
callq 0x5160
leaq 0xb8(%rsp), %rdi
callq 0x5080
movq %fs:0x28, %rax
cmpq 0x1c0(%rsp), %rax
jne 0xe58f
movq %rbx, %rdi
callq 0x5330
callq 0x5210
// File: /workspace/github_cpp_makefile_star2_O1/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 0x211d(%rip), %rsi      # 0x11151
xorl %ebx, %ebx
leaq 0x10(%rsp), %rdx
leaq 0x4(%rsp), %rcx
leaq 0x8(%rsp), %r8
xorl %eax, %eax
callq 0x5260
testl %eax, %eax
je 0xf08a
movb 0x5332(%rip), %al       # 0x14388
testb %al, %al
je 0xf0a8
movq 0x10(%rsp), %rdi
movl 0x4(%rsp), %esi
movq 0x8(%rsp), %rdx
leaq 0x20e1(%rip), %rcx      # 0x11150
leaq 0x52f2(%rip), %r8       # 0x14368
callq 0xe594
movq 0x52e6(%rip), %rdi      # 0x14368
callq 0x5190
movq %rax, %rbx
movq %fs:0x28, %rax
cmpq 0x18(%rsp), %rax
jne 0xf0a3
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
retq
callq 0x5210
callq 0x5370
jmp 0xf05a
// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %fs:0x28, %rax
movq %rax, 0x28(%rsp)
cmpl $0x5, %edi
jne 0xf134
movq %rsi, %rbx
movq 0x10(%rsi), %rdi
leaq 0x2107(%rip), %rsi      # 0x111e0
leaq 0x4(%rsp), %r14
movq %r14, %rdx
xorl %eax, %eax
callq 0x51d0
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
movl (%r14), %esi
movq 0x8(%rbx), %rdi
movq 0x18(%rbx), %rdx
movq 0x20(%rbx), %rcx
leaq 0x8(%rsp), %r8
callq 0xe594
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xf12d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x51f0
movl $0x1, %eax
jmp 0xf1b3
movq 0x4eb5(%rip), %rbx      # 0x13ff0
leaq 0x2013(%rip), %rsi      # 0x11155
movl $0x1e, %edx
movq %rbx, %rdi
callq 0x5220
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x51c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5130
leaq 0x1ff7(%rip), %rsi      # 0x11174
movl $0x6b, %edx
movq %rbx, %rdi
callq 0x5220
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x51c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5130
xorl %eax, %eax
movq %fs:0x28, %rcx
cmpq 0x28(%rsp), %rcx
jne 0xf1ff
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xf1e7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x51f0
movq %fs:0x28, %rax
cmpq 0x28(%rsp), %rax
jne 0xf1ff
movq %rbx, %rdi
callq 0x5330
callq 0x5210
// File: /workspace/github_cpp_makefile_star2_O1/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
xorps %xmm0, %xmm0
leaq -0x70(%rbp), %rbx
movaps %xmm0, 0x40(%rbx)
movaps %xmm0, 0x30(%rbx)
movaps %xmm0, 0x20(%rbx)
movaps %xmm0, 0x10(%rbx)
movaps %xmm0, (%rbx)
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1440
leaq -0x1c(%rbp), %r14
movl %r15d, -0x1c(%rbp)
movq -0x40(%rbp), %rax
movq -0x30(%rbp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x12e6
movl %r15d, (%rax)
addq $0x4, %rax
movq %rax, -0x40(%rbp)
jmp 0x12f1
movq %rbx, %rdi
movq %r14, %rsi
callq 0x15c8
incq %r15
cmpq $0xa, %r15
jne 0x12c4
movq -0x40(%rbp), %rax
cmpq -0x60(%rbp), %rax
je 0x13ab
movl $0x200, %r15d           # imm = 0x200
movq 0x2cc3(%rip), %rbx      # 0x3fd8
cmpq -0x38(%rbp), %rax
jne 0x1326
movq -0x28(%rbp), %rax
movq -0x8(%rax), %rax
addq %r15, %rax
movl -0x4(%rax), %esi
movq %rbx, %rdi
callq 0x1120
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x10b0
movsbl %al, %esi
movq %r14, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1080
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rdi
cmpq %rdi, %rax
je 0x136e
addq $-0x4, %rax
jmp 0x139d
movl $0x200, %esi            # imm = 0x200
callq 0x10d0
movq -0x28(%rbp), %rax
leaq -0x8(%rax), %rcx
movq %rcx, -0x28(%rbp)
movq -0x8(%rax), %rax
movq %rax, -0x38(%rbp)
leaq 0x200(%rax), %rcx
movq %rcx, -0x30(%rbp)
addq $0x1fc, %rax            # imm = 0x1FC
movq %rax, -0x40(%rbp)
cmpq -0x60(%rbp), %rax
jne 0x1315
leaq -0x70(%rbp), %rdi
callq 0x13e6
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x13c3
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x13e6
movq %rbx, %rdi
callq 0x1130
// File: /workspace/github_cpp_makefile_star2_O1/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 %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %r15
subq (%rdi), %r15
sarq $0x2, %r15
movl %r15d, %esi
leaq -0x1a(%rbp), %rdx
movb $0x0, (%rdx)
leaq -0x48(%rbp), %rdi
leaq -0x19(%rbp), %rcx
callq 0x13f0
testl %r15d, %r15d
sete %r14b
je 0x130c
movq (%rbx), %rax
movl (%rax), %ecx
testl %ecx, %ecx
jle 0x130c
cmpl %r15d, %ecx
ja 0x130c
movq -0x48(%rbp), %rdx
movl $0x1, %esi
movabsq $-0x8000000000000000, %rdi # imm = 0x8000000000000000
leaq 0x3f(%rdi), %r8
movslq %ecx, %rcx
leaq -0x1(%rcx), %r10
leaq 0x3e(%rcx), %r11
testq %r10, %r10
cmovnsq %r10, %r11
sarq $0x6, %r11
andq %r8, %r10
xorl %r9d, %r9d
cmpq %rdi, %r10
setbe %r9b
decb %cl
movl $0x1, %r10d
shlq %cl, %r10
leaq (%rdx,%r11,8), %r11
movq -0x8(%r11,%r9,8), %rbx
movzbl %cl, %ecx
btq %rcx, %rbx
jb 0x130c
leaq -0x8(,%r9,8), %rcx
orq %r10, %rbx
movq %rbx, (%r11,%rcx)
cmpl %r15d, %esi
setae %r14b
je 0x130c
movl %esi, %ecx
movl (%rax,%rcx,4), %ecx
testl %ecx, %ecx
jle 0x130c
incl %esi
cmpl %r15d, %ecx
jbe 0x12a4
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
je 0x1335
movq -0x28(%rbp), %rsi
subq %rdi, %rsi
callq 0x10a0
xorl %eax, %eax
movq %rax, -0x48(%rbp)
movl %eax, -0x40(%rbp)
movq %rax, -0x38(%rbp)
movl %eax, -0x30(%rbp)
movq %rax, -0x28(%rbp)
movzbl %r14b, %eax
andl $0x1, %eax
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 %r14
pushq %rbx
subq $0x20, %rsp
xorps %xmm0, %xmm0
leaq -0x30(%rbp), %r14
movaps %xmm0, (%r14)
movq $0x0, 0x10(%r14)
movl $0x10, %edi
callq 0x1090
movq %rax, %rbx
movq %rax, (%r14)
movq %rax, 0x8(%r14)
addq $0x10, %rax
movq %rax, 0x10(%r14)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq %rax, 0x8(%r14)
movaps 0xc7e(%rip), %xmm0      # 0x2010
movups %xmm0, (%rbx)
movq %r14, %rdi
callq 0x123c
movq 0x2c34(%rip), %rdi      # 0x3fd8
movl %eax, %esi
callq 0x10d0
leaq -0x11(%rbp), %rsi
movb $0xa, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x10b0
movl $0x10, %esi
movq %rbx, %rdi
callq 0x10a0
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movl $0x10, %esi
movq %rbx, %rdi
callq 0x10a0
movq %r14, %rdi
callq 0x10e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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, %r14
movq (%rdi), %rdi
leaq 0x6dad(%rip), %rsi      # 0xa050
callq 0x2220
testq %rax, %rax
je 0x3410
movq %rax, %rbx
movq 0x9f1d(%rip), %rax      # 0xd1d8
cmpq 0x9f0e(%rip), %rax      # 0xd1d0
je 0x333b
leaq 0x6ea5(%rip), %r15      # 0xa170
movq %rsp, %r12
leaq 0xa093(%rip), %r13      # 0xd368
xorl %ebp, %ebp
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x2320
cmpl $0x1, %eax
jne 0x33c5
movq 0xa079(%rip), %rsi      # 0xd370
cmpq 0xa07a(%rip), %rsi      # 0xd378
je 0x3316
movsd (%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0xa05c(%rip)      # 0xd370
jmp 0x3321
movq %r13, %rdi
movq %r12, %rdx
callq 0x469c
incq %rbp
movq 0x9ead(%rip), %rax      # 0xd1d8
subq 0x9e9e(%rip), %rax      # 0xd1d0
sarq $0x3, %rax
cmpq %rbp, %rax
ja 0x32d7
movq 0x9c8e(%rip), %r14      # 0xcfd0
leaq 0x6dc0(%rip), %rsi      # 0xa109
movl $0x7, %edx
movq %r14, %rdi
callq 0x2200
movq 0xa013(%rip), %rsi      # 0xd370
subq 0xa004(%rip), %rsi      # 0xd368
sarq $0x3, %rsi
movq %r14, %rdi
callq 0x2120
movq %rax, %r14
leaq 0x6e21(%rip), %rsi      # 0xa19b
movl $0x14, %edx
movq %rax, %rdi
callq 0x2200
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2130
movq %rbx, %rdi
callq 0x21c0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x20e0
movq %rax, %r15
leaq 0x6dd7(%rip), %rsi      # 0xa1b0
leaq 0x8(%rsp), %rdi
movq %r14, %rdx
callq 0x433c
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x22b0
xorl %ebp, %ebp
movq 0x9bf1(%rip), %rsi      # 0xcff0
movq 0x9bc2(%rip), %rdx      # 0xcfc8
movq %r15, %rdi
callq 0x22e0
jmp 0x3459
movl $0x10, %edi
callq 0x20e0
movq %rax, %r15
leaq 0x6c2e(%rip), %rsi      # 0xa052
leaq 0x8(%rsp), %rdi
movq %r14, %rdx
callq 0x433c
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x22b0
xorl %ebp, %ebp
movq 0x9ba6(%rip), %rsi      # 0xcff0
movq 0x9b77(%rip), %rdx      # 0xcfc8
movq %r15, %rdi
callq 0x22e0
jmp 0x345d
jmp 0x347d
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3483
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21e0
jmp 0x3483
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x3490
movq %r15, %rdi
callq 0x2150
movq %rbx, %rdi
callq 0x22f0
// File: /workspace/github_cpp_makefile_star2_O1/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, %rbp
movq 0x58(%rsp), %r15
xorq $0x1, %r15
movq %rcx, %r14
xorq $0x1, %r14
movl $0x90, %edi
callq 0x21d0
orq %r15, %r14
jne 0x4b26
movl $0x1, %r8d
movq %rax, %rdi
movq %rbp, %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 0x53f2
addq $0x20, %rsp
jmp 0x4b56
movq %rax, %rdi
movq %rbp, %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 0x547e
addq $0x20, %rsp
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4b6a
movq %rax, %r14
movl $0x90, %esi
movq %rbx, %rdi
callq 0x21e0
movq %r14, %rdi
callq 0x22f0
// File: /workspace/github_cpp_makefile_star2_O1/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, %rbp
movq 0x58(%rsp), %r15
xorq $0x1, %r15
movq %rcx, %r14
xorq $0x1, %r14
movl $0x90, %edi
callq 0x21d0
orq %r15, %r14
jne 0x4bf8
movl $0x1, %r8d
movq %rax, %rdi
movq %rbp, %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 0x550a
addq $0x20, %rsp
jmp 0x4c28
movq %rax, %rdi
movq %rbp, %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 0x5596
addq $0x20, %rsp
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4c3c
movq %rax, %r14
movl $0x90, %esi
movq %rbx, %rdi
callq 0x21e0
movq %r14, %rdi
callq 0x22f0
// File: /workspace/github_cpp_makefile_star2_O1/ingowald[P]closestSurfacePointQueries/src/distanceQueries.cpp
// Function: bvhlib::GeneralTriangleMesh<double, int, false>::initBuildPrim(bvhlib::BuildPrim&, unsigned long) const
inline Triangle GeneralTriangleMesh<coord_t,index_t,has_strides>::getTriangle(const size_t primID) const
  {
    Triangle t;
    if (has_strides) {
      const size_t i0 = this->idx_x[primID*idx_stride];
      const size_t i1 = this->idx_y[primID*idx_stride];
      const size_t i2 = this->idx_z[primID*idx_stride];
    
      t.v0 = vec3fa(this->vtx_x[i0*vtx_stride],
                    this->vtx_y[i0*vtx_stride],
                    this->vtx_z[i0*vtx_stride]);
      t.v1 = vec3fa(this->vtx_x[i1*vtx_stride],
                    this->vtx_y[i1*vtx_stride],
                    this->vtx_z[i1*vtx_stride]);
      t.v2 = vec3fa(this->vtx_x[i2*vtx_stride],
                    this->vtx_y[i2*vtx_stride],
                    this->vtx_z[i2*vtx_stride]);
    } else {
      const size_t i0 = this->idx_x[primID];
      const size_t i1 = this->idx_y[primID];
      const size_t i2 = this->idx_z[primID];
    
      t.v0 = vec3fa(this->vtx_x[i0],
                    this->vtx_y[i0],
                    this->vtx_z[i0]);
      t.v1 = vec3fa(this->vtx_x[i1],
                    this->vtx_y[i1],
                    this->vtx_z[i1]);
      t.v2 = vec3fa(this->vtx_x[i2],
                    this->vtx_y[i2],
                    this->vtx_z[i2]);
    }
    return t;
  }

// Assembly:
movq 0x68(%rdi), %rax
movslq (%rax,%rdx,4), %rax
movq 0x48(%rdi), %rcx
movq 0x50(%rdi), %r8
cvtsd2ss (%rcx,%rax,8), %xmm0
cvtsd2ss (%r8,%rax,8), %xmm1
movq 0x58(%rdi), %r9
cvtsd2ss (%r9,%rax,8), %xmm2
movq 0x70(%rdi), %rax
movslq (%rax,%rdx,4), %rax
cvtsd2ss (%rcx,%rax,8), %xmm3
cvtsd2ss (%r8,%rax,8), %xmm4
movq 0x78(%rdi), %rdi
cvtsd2ss (%r9,%rax,8), %xmm5
movslq (%rdi,%rdx,4), %rax
cvtsd2ss (%rcx,%rax,8), %xmm6
cvtsd2ss (%r8,%rax,8), %xmm7
cvtsd2ss (%r9,%rax,8), %xmm8
movaps %xmm0, %xmm9
minss %xmm3, %xmm9
movaps %xmm1, %xmm10
minss %xmm4, %xmm10
movaps %xmm2, %xmm11
minss %xmm5, %xmm11
minss %xmm6, %xmm9
minss %xmm7, %xmm10
minss %xmm8, %xmm11
movss %xmm9, (%rsi)
movss %xmm10, 0x4(%rsi)
movss %xmm11, 0x8(%rsi)
maxss %xmm0, %xmm3
maxss %xmm1, %xmm4
maxss %xmm2, %xmm5
maxss %xmm3, %xmm6
maxss %xmm4, %xmm7
maxss %xmm5, %xmm8
movss %xmm6, 0x10(%rsi)
movss %xmm7, 0x14(%rsi)
movss %xmm8, 0x18(%rsi)
retq
// File: /workspace/github_cpp_makefile_star2_O1/yuansliu[P]HiRGC/hirgc.cpp
// Function: readRefFile(char*)
void readRefFile(char *refFile) { // processing reference file
	int _ref_seq_len = 0;
	char ch[1024];
	FILE *fp = fopen(refFile, "r");
	if (NULL == fp) {
		printf("fail to open file %s\n", refFile);
		return;
	}
	int temp_len, index;
	char temp_ch;
	
	// fscanf(fp, "%s", ch);//meta_data
	fgets(ch, 1024, fp);
	while (fscanf(fp, "%s", ch) != EOF) {
		temp_len = strlen(ch);
		for (int i = 0; i < temp_len; i++) {
			temp_ch = ch[i];
			if (islower(temp_ch)) {
				temp_ch = toupper(temp_ch);
			}
			index = agctIndex(temp_ch);
			if (index^4) {//only A T C T are saved
				ref_seq_code[_ref_seq_len++] = index;
			}
		}
	}
	fclose(fp);
	ref_seq_len = _ref_seq_len;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x418, %rsp            # imm = 0x418
movq %rdi, %r14
leaq 0x2875(%rip), %rsi      # 0x5050
callq 0x2190
testq %rax, %rax
je 0x2910
movq %rax, %rbx
leaq 0x10(%rsp), %r14
movq %r14, %rdi
movl $0x400, %esi            # imm = 0x400
movq %rax, %rdx
callq 0x2210
leaq 0x28a6(%rip), %rsi      # 0x50ae
xorl %r15d, %r15d
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x2280
cmpl $-0x1, %eax
je 0x28ef
leaq 0x10(%rsp), %r14
xorl %r15d, %r15d
movq %rbx, 0x8(%rsp)
movq %r14, %rdi
callq 0x20b0
movq %rax, %r12
testl %r12d, %r12d
jle 0x28c8
movq 0x595f(%rip), %r14      # 0x81a8
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
xorl %ebx, %ebx
movb 0x10(%rsp,%rbx), %bpl
movsbl %bpl, %r13d
movl %r13d, %edi
callq 0x21c0
testl %eax, %eax
je 0x2871
movl %r13d, %edi
callq 0x2290
movl %eax, %ebp
movzbl %bpl, %eax
cmpl $0x46, %eax
jg 0x288b
cmpl $0x41, %eax
je 0x28a5
cmpl $0x43, %eax
jne 0x289c
movl $0x1, %eax
jmp 0x28b0
cmpl $0x47, %eax
je 0x28ab
cmpl $0x54, %eax
jne 0x289c
movl $0x3, %eax
jmp 0x28b0
movl $0x4, %eax
movb $0x1, %cl
jmp 0x28b2
xorl %ecx, %ecx
xorl %eax, %eax
jmp 0x28b2
movl $0x2, %eax
xorl %ecx, %ecx
testb %cl, %cl
jne 0x28c0
movslq %r15d, %rcx
incl %r15d
movl %eax, (%r14,%rcx,4)
incq %rbx
cmpq %rbx, %r12
jne 0x2852
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
leaq 0x27d7(%rip), %rsi      # 0x50ae
leaq 0x10(%rsp), %r14
movq %r14, %rdx
xorl %eax, %eax
callq 0x2280
cmpl $-0x1, %eax
jne 0x282e
movq %rbx, %rdi
callq 0x2160
movl %r15d, 0x58be(%rip)     # 0x81bc
addq $0x418, %rsp            # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2753(%rip), %rdi      # 0x506a
movq %r14, %rsi
xorl %eax, %eax
addq $0x418, %rsp            # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2040
// File: /workspace/github_cpp_makefile_star2_O1/yuansliu[P]HiRGC/hirgc.cpp
// Function: writeRunLengthCoding(_IO_FILE*, int, int*)
void writeRunLengthCoding(FILE *fp, int vec_len, int *vec) { // run-length coding for EOL
	vector<int> code;
	if (vec_len > 0) {
		code.push_back(vec[0]);
		int pre_value = code[0], cnt = 1;
		for (int i = 1; i < vec_len; i++) {
			if (vec[i] == pre_value) {
				cnt++;
			} else {
				code.push_back(cnt);
				code.push_back(vec[i]);
				pre_value = vec[i];
				cnt = 1;
			}
		}
		code.push_back(cnt);
	}
	int code_len = code.size();
	fprintf(fp, "%d", code_len);

	for (int i = 0; i < code_len; i++) {
		fprintf(fp, " %d", code[i]);
	}
	fprintf(fp, "\n");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
testl %esi, %esi
jle 0x2da6
movq %rdx, %r14
movl %esi, %ebp
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x2cc6
movl (%r14), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x2cd3
leaq 0x10(%rsp), %rdi
movq %r14, %rdx
callq 0x43c0
movq 0x10(%rsp), %rax
movl (%rax), %eax
movl $0x1, 0xc(%rsp)
cmpl $0x1, %ebp
je 0x2d7a
cmpl $0x3, %ebp
movl $0x2, %r13d
cmovgel %ebp, %r13d
addq $0x4, %r14
decq %r13
leaq 0x10(%rsp), %r15
leaq 0xc(%rsp), %r12
cmpl %eax, (%r14)
jne 0x2d16
movl 0xc(%rsp), %ecx
incl %ecx
jmp 0x2d6d
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x2d33
movl 0xc(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x2d3e
movq %r15, %rdi
movq %r12, %rdx
callq 0x43c0
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x2d5a
movl (%r14), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x2d65
movq %r15, %rdi
movq %r14, %rdx
callq 0x43c0
movl (%r14), %eax
movl $0x1, %ecx
movl %ecx, 0xc(%rsp)
addq $0x4, %r14
decq %r13
jne 0x2d09
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x2d97
movl 0xc(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x2da6
leaq 0x10(%rsp), %rdi
leaq 0xc(%rsp), %rdx
callq 0x43c0
movq 0x18(%rsp), %r14
subq 0x10(%rsp), %r14
shrq $0x2, %r14
leaq 0x229f(%rip), %rsi      # 0x505a
movq %rbx, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0x21e0
testl %r14d, %r14d
jle 0x2dfc
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
leaq 0x227a(%rip), %r15      # 0x5055
xorl %r12d, %r12d
movq 0x10(%rsp), %rax
movl (%rax,%r12,4), %edx
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x21e0
incq %r12
cmpq %r12, %r14
jne 0x2dde
movl $0xa, %edi
movq %rbx, %rsi
callq 0x21a0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2e18
callq 0x2150
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2e2b
jmp 0x2e2b
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2e3d
callq 0x2150
movq %rbx, %rdi
callq 0x2260
// File: /workspace/github_cpp_makefile_star2_O1/yuansliu[P]HiRGC/hirgc.cpp
// Function: preProcessRef()
void preProcessRef() { // construction of hash table
	for (int i = 0; i < max_arr_num; i++) {//initial entries
		point[i] = -1;
	}

	// memset(point, -1, sizeof(int)*max_arr_num);

	uint64_t value = 0;
	for (int k = sub_str_num - 1; k >= 0; k--) {
		value <<= 2;
		value += ref_seq_code[k];
	}
	int id = value&(uint64_t)(max_arr_num-1);
	loc[0] = point[id];
	point[id] = 0;

	int step_len = ref_seq_len - sub_str_num + 1;
	int shift_bit_num = (sub_str_num*2-2);
	int one_sub_str = sub_str_num - 1;

	for (int i = 1; i < step_len; i++) {
		value >>= 2;
		value += ((uint64_t)ref_seq_code[i + one_sub_str]<<shift_bit_num);
		
		id = value&(uint64_t)(max_arr_num-1);
		loc[i] = point[id];
		point[id] = i;
	}	
}

// Assembly:
pushq %rax
movq 0x4fe5(%rip), %rdi      # 0x81d8
movabsq $0x100000000, %rdx      # imm = 0x100000000
movl $0xff, %esi
callq 0x20d0
movl $0x13, %ecx
xorl %eax, %eax
movq 0x4f93(%rip), %rdx      # 0x81a8
movslq (%rdx,%rcx,4), %rsi
leaq (%rsi,%rax,4), %rax
addq $-0x1, %rcx
jb 0x3215
movq 0x4fae(%rip), %rcx      # 0x81d8
leal (,%rax,4), %esi
movl (%rcx,%rsi), %edi
movq 0x4f95(%rip), %rdx      # 0x81d0
movl %edi, (%rdx)
movl $0x0, (%rcx,%rsi)
movl 0x4f72(%rip), %esi      # 0x81bc
cmpl $0x15, %esi
jl 0x328a
addl $-0x13, %esi
movq 0x4f4f(%rip), %rdi      # 0x81a8
decq %rsi
xorl %r8d, %r8d
shrq $0x2, %rax
movl 0x50(%rdi,%r8,4), %r9d
shlq $0x26, %r9
addq %rax, %r9
shll $0x2, %eax
movl (%rcx,%rax), %r10d
movl %r10d, 0x4(%rdx,%r8,4)
incq %r8
movl %r8d, (%rcx,%rax)
movq %r9, %rax
cmpq %r8, %rsi
jne 0x325f
popq %rax
retq