LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/davmac314[P]dinit/src/dinit-iostream.cc
// Function: dio::istream::open_nx(char const*, int, unsigned int)
bool istream::open_nx(const char *path, const int flags, const mode_t mode) noexcept
{
    buf = std::unique_ptr<streambuf>(new(std::nothrow) streambuf);
    if (!buf) return false;

    fd = bp_sys::open(path, O_RDONLY | flags, mode);
    if (fd < 0) {
        io_error = errno;
        return false;
    }
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebp
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %rbx
movq 0x9111(%rip), %rsi      # 0x1cf78
movl $0x4008, %edi           # imm = 0x4008
callq 0x4580
testq %rax, %rax
je 0x13e83
movq $0x0, 0x4000(%rax)
jmp 0x13e85
xorl %eax, %eax
movq 0x8(%rbx), %rdi
movq %rax, 0x8(%rbx)
testq %rdi, %rdi
je 0x13e9c
movl $0x4008, %esi           # imm = 0x4008
callq 0x42f0
cmpq $0x0, 0x8(%rbx)
je 0x13ec6
movq %r15, %rdi
movl %r14d, %esi
movl %ebp, %edx
xorl %eax, %eax
callq 0x4250
movl %eax, %ecx
movl %eax, (%rbx)
movb $0x1, %al
testl %ecx, %ecx
jns 0x13ec8
callq 0x4040
movl (%rax), %eax
movl %eax, 0x10(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rdi
callq 0xe564
nop
// File: /workspace/github_cpp_makefile_star2_O1/davmac314[P]dinit/src/dinit-iostream.cc
// Function: dio::istream::close_nx()
bool istream::close_nx() noexcept
{
    if (fd < 0) {
        // Only mark an error if one has not been recorded yet:
        if (good()) {
            io_error = EBADF;
        }
        return false;
    }

    buf.reset();

    if (bp_sys::close(fd) < 0) {
        io_error = errno;
        fd = -1;
        return false;
    }

    fd = -1;
    return good();
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpl $0x0, (%rdi)
js 0x13f55
movq 0x8(%rbx), %rdi
movq $0x0, 0x8(%rbx)
testq %rdi, %rdi
je 0x13f1e
movl $0x4008, %esi           # imm = 0x4008
callq 0x42f0
movl (%rbx), %edi
callq 0x4560
testl %eax, %eax
js 0x13f79
movl $0xffffffff, (%rbx)     # imm = 0xFFFFFFFF
cmpq $0x0, 0x8(%rbx)
setne %cl
movb 0x15(%rbx), %al
cmpl $0x0, 0x10(%rbx)
sete %dl
cmpb $0x0, 0x14(%rbx)
sete %sil
andb %cl, %sil
xorb $0x1, %al
andb %dl, %al
andb %sil, %al
jmp 0x13f8b
xorl %eax, %eax
cmpl $0x0, 0x10(%rbx)
jne 0x13f8b
cmpb $0x0, 0x15(%rbx)
jne 0x13f8b
cmpb $0x0, 0x14(%rbx)
jne 0x13f8b
cmpq $0x0, 0x8(%rbx)
je 0x13f8b
movl $0x9, 0x10(%rbx)
jmp 0x13f89
callq 0x4040
movl (%rax), %eax
movl %eax, 0x10(%rbx)
movl $0xffffffff, (%rbx)     # imm = 0xFFFFFFFF
xorl %eax, %eax
popq %rbx
retq
movq %rax, %rdi
callq 0xe564
nop
// File: /workspace/github_cpp_makefile_star2_O1/davmac314[P]dinit/src/dinit-iostream.cc
// Function: dio::istream::close()
void istream::close()
{
    bool buf_fail = (fd >= 0 && buf == nullptr);
    bool r = close_nx();
    if (!r) {
        // Failed close_nx leaves an error state bit set, so this will throw:
        throw_exception_on(io_states::io_fail_bit | io_states::eof_bit
                | io_states::input_fail_bit);
        if (buf_fail) {
            throw_exception_on(io_states::buffer_fail_bit);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl (%rdi), %ebp
movq 0x8(%rdi), %r14
callq 0x13efa
testb %al, %al
je 0x13fd7
popq %rbx
popq %r14
popq %rbp
retq
movq %rbx, %rdi
movl $0xd, %esi
callq 0x13c66
testl %ebp, %ebp
js 0x13fd2
testq %r14, %r14
jne 0x13fd2
movq %rbx, %rdi
movl $0x2, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x13c66
// File: /workspace/github_cpp_makefile_star2_O1/davmac314[P]dinit/src/dinit-iostream.cc
// Function: dio::istream::current_state()
int istream::current_state() noexcept
{
    int bits = 0;
    if (eof_state) bits |= io_states::eof_bit;
    if (!buf) bits |= io_states::buffer_fail_bit;
    if (string_failed) bits |= io_states::input_fail_bit;
    if (io_error) bits |= io_states::io_fail_bit;
    return bits;
}

// Assembly:
movzbl 0x14(%rdi), %eax
leal 0x2(%rax), %ecx
cmpq $0x0, 0x8(%rdi)
cmovnel %eax, %ecx
leal 0x4(%rcx), %edx
cmpb $0x0, 0x15(%rdi)
cmovel %ecx, %edx
cmpl $0x0, 0x10(%rdi)
leal 0x8(%rdx), %eax
cmovel %edx, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/davmac314[P]dinit/src/dinit-iostream.cc
// Function: dio::istream::getc_nx()
getc_result istream::getc_nx() noexcept
{
    if (!good()) {
        return {false, 0};
    }
    if (buf->get_length() == 0) {
        int r = load_into_buf(1);
        if (r <= 0) return {false, 0};
    }
    char result = *buf->get_ptr(0);
    buf->consume(1);
    return {true, result};
}

// Assembly:
xorl %eax, %eax
cmpl $0x0, 0x10(%rdi)
jne 0x140b1
pushq %rbx
movq %rdi, %rbx
cmpb $0x0, 0x15(%rdi)
jne 0x140b7
cmpb $0x0, 0x14(%rbx)
jne 0x140b7
movq 0x8(%rbx), %rdx
movl $0x0, %ecx
testq %rdx, %rdx
je 0x140b9
cmpl $0x0, 0x4004(%rdx)
jne 0x14070
movq %rbx, %rdi
movl $0x1, %esi
callq 0x13c1c
testl %eax, %eax
jle 0x140b5
movq 0x8(%rbx), %rax
movl 0x4000(%rax), %edx
leal -0x4000(%rdx), %ecx
movl $0x4000, %esi           # imm = 0x4000
cmpl %esi, %edx
cmovbl %edx, %ecx
leal 0x1(%rdx), %edi
addl $0xffffc001, %edx       # imm = 0xFFFFC001
cmpl %esi, %edi
cmovbl %edi, %edx
movzbl (%rax,%rcx), %ecx
movl %edx, 0x4000(%rax)
decl 0x4004(%rax)
shll $0x8, %ecx
movw $0x1, %ax
jmp 0x140b9
xorl %ecx, %ecx
jmp 0x140ba
xorl %eax, %eax
xorl %ecx, %ecx
popq %rbx
movzwl %ax, %eax
orl %ecx, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/davmac314[P]dinit/src/dinit-iostream.cc
// Function: dio::istream::getc()
char istream::getc()
{
    getc_result r = getc_nx();
    if (!r.success) {
        // Failed getc_nx leaves an error state bit set, so this will throw:
        throw_exception_on(io_states::eof_bit | io_states::buffer_fail_bit
                | io_states::input_fail_bit | io_states::io_fail_bit);
    }
    return r.character;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0x14030
movl %eax, %ebx
testb $0x1, %bl
jne 0x140e0
movq %r14, %rdi
movl $0xf, %esi
callq 0x13c66
shrl $0x8, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/davmac314[P]dinit/src/dinit-iostream.cc
// Function: dio::istream::get_line_until_eof(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, char)
void istream::get_line_until_eof(std::string &dest, char delim)
{
    // If we had already hit eof, we fail at this point
    throw_exception_on(io_states::buffer_fail_bit | io_states::input_fail_bit
            | io_states::io_fail_bit | io_states::eof_bit);
    bool r = get_line_nx(dest, delim);
    if (!r) {
        throw_exception_on(io_states::buffer_fail_bit | io_states::input_fail_bit
                | io_states::io_fail_bit);
    }
    // (eof_state may be set, i.e. we reached end-of-file, but that's not an error)
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movl $0xf, %esi
callq 0x13c66
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x140ee
testb %al, %al
je 0x1439a
popq %rbx
popq %r14
popq %rbp
retq
movq %rbx, %rdi
movl $0xe, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x13c66
nop
// File: /workspace/github_cpp_makefile_star2_O1/davmac314[P]dinit/src/dinit-iostream.cc
// Function: dio::istream::get_line_until_eof_nx(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, char)
bool istream::get_line_until_eof_nx(std::string &dest, char delim) noexcept
{
    if (!good()) return false;
    bool r = get_line_nx(dest, delim);
    if (!r) {
        // If we hit end-of-file and there is no other error, return success.
        // (We can ignore buffer failure, that can't happen between the initial
        // check above and this point).
        if (io_error != 0 || string_failed) return false;
    }
    return true;
}

// Assembly:
xorl %eax, %eax
cmpl $0x0, 0x10(%rdi)
jne 0x143ed
pushq %rbx
movq %rdi, %rbx
cmpb $0x0, 0x15(%rdi)
jne 0x143ec
cmpb $0x0, 0x14(%rbx)
jne 0x143ec
cmpq $0x0, 0x8(%rbx)
je 0x143ec
movsbl %dl, %edx
movq %rbx, %rdi
callq 0x140ee
testb %al, %al
je 0x143de
movb $0x1, %al
jmp 0x143ec
cmpl $0x0, 0x10(%rbx)
jne 0x143ea
cmpb $0x0, 0x15(%rbx)
je 0x143da
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/fukunagatsu[P]LogicomeProfiler/main.cpp
// Function: main
int main(int argc, char* argv[]){
  if(argc != 5){
    cout << "The number of argument is invalid." << endl;
    exit(1);
  }

  LogicomeProfiler temp_logicome_profiler;
  temp_logicome_profiler.SetParameters(argv);
  temp_logicome_profiler.Run();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
cmpl $0x5, %edi
jne 0x2661
movq %rsi, %rbx
movq %rsp, %r14
movq %r14, %rdi
callq 0x269a
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5d92
movq %rsp, %rdi
callq 0x2ab2
movq %rsp, %rdi
callq 0x27f4
xorl %eax, %eax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r14
retq
movq 0xa970(%rip), %rdi      # 0xcfd8
leaq 0x6995(%rip), %rsi      # 0x9004
callq 0x2210
movq %rax, %rdi
callq 0x2120
movl $0x1, %edi
callq 0x2290
movq %rax, %rbx
movq %rsp, %rdi
callq 0x27f4
movq %rbx, %rdi
callq 0x2370
nop
// File: /workspace/github_cpp_makefile_star2_O1/fukunagatsu[P]LogicomeProfiler/./logicome_profiler.h
// Function: LogicomeProfiler::LogicomeProfiler()
LogicomeProfiler(){
    _input_data_file_name = "";
    _output_file_name = "";
    _number_of_samples = 0;
    _number_of_elements = 0;
    _criteria = 0;
    _alpha = 0.0;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x60(%rdi), %rax
movq %rax, 0x10(%rsp)
leaq 0x78(%rdi), %rax
movq %rax, 0x8(%rsp)
leaq 0xa8(%rdi), %rax
movq %rax, (%rsp)
leaq 0xc0(%rdi), %rbp
leaq 0xd0(%rdi), %r14
xorl %r12d, %r12d
movl $0xc0, %edx
xorl %esi, %esi
callq 0x2140
movq %r14, 0xc0(%rbx)
movq %r12, 0xc8(%rbx)
movb %r12b, 0xd0(%rbx)
leaq 0xe0(%rbx), %r13
leaq 0xf0(%rbx), %r15
movq %r15, 0xe0(%rbx)
movq %r12, 0xe8(%rbx)
movb %r12b, 0xf0(%rbx)
leaq 0x69a2(%rip), %rcx      # 0x90c6
movq %rbp, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %r8d, %r8d
callq 0x22f0
movq 0xe8(%rbx), %rdx
leaq 0x6985(%rip), %rcx      # 0x90c6
movq %r13, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x22f0
movl $0x0, 0x114(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x100(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r12
movq (%r13), %rdi
cmpq %r15, %rdi
je 0x2782
callq 0x21f0
movq (%rbp), %rdi
cmpq %r14, %rdi
je 0x2790
callq 0x21f0
movq (%rsp), %rdi
callq 0x2886
movq 0x90(%rbx), %rdi
testq %rdi, %rdi
je 0x27aa
callq 0x21f0
movq 0x8(%rsp), %rdi
callq 0x28ca
movq 0x10(%rsp), %rdi
callq 0x2904
movq 0x48(%rbx), %rdi
testq %rdi, %rdi
je 0x27cc
callq 0x21f0
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0x27da
callq 0x21f0
leaq 0x18(%rbx), %rdi
callq 0x2944
movq %rbx, %rdi
callq 0x296c
movq %r12, %rdi
callq 0x2370
nop
// File: /workspace/github_cpp_makefile_star2_O1/fukunagatsu[P]LogicomeProfiler/logicome_profiler.cpp
// Function: LogicomeProfiler::Run()
void LogicomeProfiler::Run(){
  ReadData();
  CountElements();
  MakeLogicOccurrenceTensor();
  CalcLogFact();
  if(_criteria == 0){
    FirstScreeningForFWER();
    SecondScreeningForFWER();
  }else if(_criteria == 1){
    CalcPVForFDR();
  }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x2afe
movq %rbx, %rdi
callq 0x2e8c
movq %rbx, %rdi
callq 0x2f56
movq %rbx, %rdi
callq 0x30d6
movl 0x114(%rbx), %eax
cmpl $0x1, %eax
je 0x2af3
testl %eax, %eax
jne 0x2afc
movq %rbx, %rdi
callq 0x315c
movq %rbx, %rdi
popq %rbx
jmp 0x3420
movq %rbx, %rdi
popq %rbx
jmp 0x375e
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/fukunagatsu[P]LogicomeProfiler/logicome_profiler.cpp
// Function: LogicomeProfiler::CountElements()
void LogicomeProfiler::CountElements(){
  _count_vector.reserve(_number_of_elements);
  for(int i = 0; i < _number_of_elements; i++){
    int count = 0;
    for(int j = 0; j < _number_of_samples;j++){
      if(_dataset[j][i]==true){
	count += 1;
      }
    }
    _count_vector.push_back(count);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x30(%rdi), %r14
movslq 0x104(%rdi), %rsi
movq %r14, %rdi
callq 0x61fe
cmpl $0x0, 0x104(%rbx)
jle 0x2f49
xorl %r15d, %r15d
leaq 0x4(%rsp), %r12
movl $0x0, 0x4(%rsp)
movslq 0x100(%rbx), %r8
testq %r8, %r8
jle 0x2f11
movl 0x4(%rsp), %eax
movq 0x18(%rbx), %rdx
movq %r15, %rsi
movl $0x1, %edi
movl %r15d, %ecx
shlq %cl, %rdi
shrq $0x6, %rsi
shlq $0x3, %r8
leaq (%r8,%r8,4), %rcx
xorl %r8d, %r8d
movq (%rdx,%r8), %r9
testq %rdi, (%r9,%rsi,8)
je 0x2f08
incl %eax
movl %eax, 0x4(%rsp)
addq $0x28, %r8
cmpq %r8, %rcx
jne 0x2ef8
movq 0x38(%rbx), %rsi
cmpq 0x40(%rbx), %rsi
je 0x2f2b
movl 0x4(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x38(%rbx)
jmp 0x2f36
movq %r14, %rdi
movq %r12, %rdx
callq 0x7ada
incq %r15
movslq 0x104(%rbx), %rax
cmpq %rax, %r15
jl 0x2ebf
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/fukunagatsu[P]LogicomeProfiler/logicome_profiler.cpp
// Function: LogicomeProfiler::MakeLogicOccurrenceTensor()
void LogicomeProfiler::MakeLogicOccurrenceTensor(){
  
  
  for(int i = 0; i < _number_of_elements; i++){
    vector<vector<int> > temp_matrix; temp_matrix.reserve(_number_of_elements);
    for(int j = 0; j < _number_of_elements;j++){
      vector<int> temp_vector; temp_vector.reserve(7);
      temp_vector.push_back(0);
      
      for(int k = 1;k <= 6;k++){
	int count = CountLogicOccurrence(i,j,k);
	temp_vector.push_back(count);
      }
      temp_matrix.push_back(temp_vector);
    }
    _logic_occurrence_tensor.push_back(temp_matrix);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl 0x104(%rdi), %eax
testl %eax, %eax
jle 0x3099
movq %rdi, %rbx
xorl %ebp, %ebp
leaq 0x30(%rsp), %r14
leaq 0x10(%rsp), %r15
leaq 0xc(%rsp), %r12
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
movslq %eax, %rsi
movq %r14, %rdi
callq 0x611e
cmpl $0x0, 0x104(%rbx)
jle 0x3076
xorl %r13d, %r13d
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movl $0x7, %esi
movq %r15, %rdi
callq 0x61fe
movl $0x0, 0xc(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x2ff5
movl $0x0, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x3000
movq %r15, %rdi
movq %r12, %rdx
callq 0x79c2
movl $0x1, %r14d
movq %rbx, %rdi
movl %ebp, %esi
movl %r13d, %edx
movl %r14d, %ecx
callq 0x5c0c
movl %eax, 0xc(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x3033
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x303e
movq %r15, %rdi
movq %r12, %rdx
callq 0x7ada
incl %r14d
cmpl $0x7, %r14d
jne 0x3006
leaq 0x30(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x628c
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x3066
callq 0x21f0
incl %r13d
cmpl 0x104(%rbx), %r13d
jl 0x2fb2
movq %rbx, %rdi
movq %r14, %rsi
callq 0x62b8
movq %r14, %rdi
callq 0x2a64
incl %ebp
movl 0x104(%rbx), %eax
cmpl %eax, %ebp
jl 0x2f86
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x30c3
jmp 0x30b1
jmp 0x30b1
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x30c3
callq 0x21f0
leaq 0x30(%rsp), %rdi
callq 0x2a64
movq %rbx, %rdi
callq 0x2370
nop
// File: /workspace/github_cpp_makefile_star2_O1/fukunagatsu[P]LogicomeProfiler/logicome_profiler.cpp
// Function: LogicomeProfiler::CalcLogFact()
void LogicomeProfiler::CalcLogFact(){
  int N = _number_of_samples;
  _log_fact.resize(N+1,0.0);

  double temp = 0.0;
  for(int i = 1; i<=N;i++){
    temp += log(i);
    _log_fact[i] = temp;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movslq 0x100(%rdi), %r14
addq $0x90, %rbx
leaq 0x1(%r14), %rsi
leaq 0x8(%rsp), %rdx
movq $0x0, (%rdx)
movq %rbx, %rdi
callq 0x60ea
testq %r14, %r14
jle 0x3152
movl %r14d, %r14d
incq %r14
xorps %xmm0, %xmm0
movl $0x1, %r15d
movsd %xmm0, (%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %r15d, %xmm0
callq 0x21b0
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movsd (%rsp), %xmm0
movq (%rbx), %rax
movsd %xmm0, (%rax,%r15,8)
incq %r15
cmpq %r15, %r14
jne 0x311c
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/fukunagatsu[P]LogicomeProfiler/logicome_profiler.cpp
// Function: LogicomeProfiler::CalcProb(int, int, int, int, double)
double LogicomeProfiler::CalcProb(int x, int y, int z, int N, double threshold){
  int z_max = x > y ? y : x;
  double sum = 0.0;
  double temp = CalcCombination(N,y);
  for(int k = z; k<=z_max; k++){
    double prob = -temp;
    prob = prob + CalcCombination(x,k)+CalcCombination(N-x,y-k);
    prob = exp(prob);
    sum += prob;
    if(sum > threshold){
      return(sum);
    }
  }
  return(sum);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movsd %xmm0, 0x20(%rsp)
movq %rdi, 0x8(%rsp)
cmpl %edx, %esi
movl %edx, %ebp
cmovll %esi, %ebp
xorpd %xmm0, %xmm0
subl %ecx, %ebp
jl 0x5796
movslq %r8d, %r14
movq 0x8(%rsp), %rax
movq 0x90(%rax), %rax
movsd (%rax,%r14,8), %xmm1
movslq %edx, %r15
movsd (%rax,%r15,8), %xmm0
movl %r14d, %edi
subl %edx, %edi
movslq %edi, %rdx
addsd (%rax,%rdx,8), %xmm0
subsd %xmm0, %xmm1
movsd %xmm1, 0x18(%rsp)
movslq %esi, %r13
movl %r14d, %eax
subl %esi, %eax
cltq
movq %rax, 0x10(%rsp)
movslq %ecx, %rbx
shlq $0x3, %r14
leaq (,%r15,8), %rax
subq %rax, %r14
leaq (,%r13,8), %rax
subq %rax, %r14
subq %rbx, %r15
movq %r13, %r12
subq %rbx, %r12
incl %ebp
xorpd %xmm0, %xmm0
movsd %xmm0, 0x28(%rsp)
movq 0x8(%rsp), %rax
movq 0x90(%rax), %rax
movsd (%rax,%r13,8), %xmm1
leaq (%rax,%rbx,8), %rcx
movsd (%rax,%rbx,8), %xmm0
addsd (%rax,%r12,8), %xmm0
subsd %xmm0, %xmm1
subsd 0x18(%rsp), %xmm1
movq 0x10(%rsp), %rdx
movsd (%rax,%rdx,8), %xmm0
movsd (%rax,%r15,8), %xmm2
addsd (%r14,%rcx), %xmm2
subsd %xmm2, %xmm0
addsd %xmm1, %xmm0
callq 0x2380
addsd 0x28(%rsp), %xmm0
movsd 0x20(%rsp), %xmm1
ucomisd %xmm1, %xmm0
cmpnltsd %xmm0, %xmm1
movapd %xmm1, %xmm2
andnpd %xmm0, %xmm2
andpd 0x30(%rsp), %xmm1
orpd %xmm2, %xmm1
ja 0x5792
movapd %xmm1, 0x30(%rsp)
incq %rbx
decq %r15
decq %r12
decl %ebp
jne 0x56fc
jmp 0x5796
movapd %xmm1, %xmm0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/fukunagatsu[P]LogicomeProfiler/logicome_profiler.cpp
// Function: LogicomeProfiler::CountLogicOccurrence(int, int, int)
int LogicomeProfiler::CountLogicOccurrence(int a, int b, int l){
  int x = 0;
  for(int i = 0; i < _number_of_samples;i++){
    switch(l){
    case 1:
      if(_dataset[i][a]==true && _dataset[i][b]==true){
	x += 1;
      }
      break;
    case 2:
      if(!(_dataset[i][a]==true && _dataset[i][b]==true)){
	x += 1;
      }
      break;
    case 3:
      if(_dataset[i][a]==true || _dataset[i][b]==true){
	x += 1;
      }
      break;
    case 4:
      if(!(_dataset[i][a]==true || _dataset[i][b]==true)){
	x += 1;
      }
      break;
    case 5:
      if(_dataset[i][a]==true && _dataset[i][b]!=true){
	x += 1;
      }
      break;
    case 6:
      if(_dataset[i][a] !=true || _dataset[i][b]==true){
	x += 1;
      }
      break;
    }
  }
  return x;
}

// Assembly:
movslq 0x100(%rdi), %rax
testq %rax, %rax
jle 0x5d8f
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %ecx, %r8d
movq 0x18(%rdi), %rdi
movslq %esi, %rcx
leaq 0x3f(%rcx), %rsi
testq %rcx, %rcx
cmovnsq %rcx, %rsi
sarq $0x6, %rsi
movabsq $-0x8000000000000000, %rbx # imm = 0x8000000000000000
leaq 0x3f(%rbx), %r14
movq %rcx, %r9
andq %r14, %r9
xorl %r11d, %r11d
cmpq %rbx, %r9
setbe %r11b
movl $0x1, %r9d
shlq %cl, %r9
movl $0x1, %r10d
movslq %edx, %rcx
leaq 0x3f(%rcx), %rdx
testq %rcx, %rcx
cmovnsq %rcx, %rdx
sarq $0x6, %rdx
andq %rcx, %r14
xorl %r15d, %r15d
cmpq %rbx, %r14
setbe %r15b
shlq %cl, %r10
leaq -0x8(,%r11,8), %rcx
leaq -0x8(,%r15,8), %r11
shlq $0x3, %rax
leaq (%rax,%rax,4), %rbx
xorl %r14d, %r14d
decl %r8d
leaq 0x33e5(%rip), %r15      # 0x9098
xorl %eax, %eax
cmpl $0x5, %r8d
ja 0x5d77
movslq (%r15,%r8,4), %r12
addq %r15, %r12
jmpq *%r12
movq (%rdi,%r14), %r12
leaq (%r12,%rsi,8), %r13
testq %r9, (%rcx,%r13)
je 0x5d77
leaq (%r12,%rdx,8), %r12
movq (%r11,%r12), %r12
andq %r10, %r12
cmpq $0x1, %r12
sbbl $-0x1, %eax
jmp 0x5d77
movq (%rdi,%r14), %r12
leaq (%r12,%rsi,8), %r13
testq %r9, (%rcx,%r13)
je 0x5d77
leaq (%r12,%rdx,8), %r12
movq (%r11,%r12), %r12
andq %r10, %r12
cmpq $0x1, %r12
adcl $0x0, %eax
jmp 0x5d77
movq (%rdi,%r14), %r12
leaq (%r12,%rsi,8), %r13
testq %r9, (%rcx,%r13)
jne 0x5d6c
jmp 0x5d62
movq (%rdi,%r14), %r12
leaq (%r12,%rsi,8), %r13
xorl %ebp, %ebp
testq %r9, (%rcx,%r13)
jne 0x5d75
jmp 0x5d44
movq (%rdi,%r14), %r12
leaq (%r12,%rsi,8), %r13
testq %r9, (%rcx,%r13)
je 0x5d70
leaq (%r12,%rdx,8), %r12
xorl %ebp, %ebp
testq %r10, (%r11,%r12)
sete %bpl
jmp 0x5d75
movq (%rdi,%r14), %r12
leaq (%r12,%rsi,8), %r13
testq %r9, (%rcx,%r13)
je 0x5d6c
leaq (%r12,%rdx,8), %r12
testq %r10, (%r11,%r12)
je 0x5d77
incl %eax
jmp 0x5d77
movl $0x1, %ebp
addl %ebp, %eax
addq $0x28, %r14
cmpq %r14, %rbx
jne 0x5cb5
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/fukunagatsu[P]LogicomeProfiler/logicome_profiler.cpp
// Function: LogicomeProfiler::SetParameters(char**)
void LogicomeProfiler::SetParameters(char* argv[]){
  _input_data_file_name = argv[1];
  _output_file_name = argv[2];
  _criteria = atoi(argv[3]);
  _alpha = atof(argv[4]);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rsi), %r15
leaq 0xc0(%rdi), %r12
movq 0xc8(%rdi), %r13
movq %r15, %rdi
callq 0x2100
movq %r12, %rdi
xorl %esi, %esi
movq %r13, %rdx
movq %r15, %rcx
movq %rax, %r8
callq 0x22f0
movq 0x10(%r14), %r15
leaq 0xe0(%rbx), %r12
movq 0xe8(%rbx), %r13
movq %r15, %rdi
callq 0x2100
movq %r12, %rdi
xorl %esi, %esi
movq %r13, %rdx
movq %r15, %rcx
movq %rax, %r8
callq 0x22f0
movq 0x18(%r14), %rdi
callq 0x2300
movl %eax, 0x114(%rbx)
movq 0x20(%r14), %rdi
callq 0x22a0
movsd %xmm0, 0x108(%rbx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/lemire[P]fastscancount/benchmark/counters.cpp
// Function: scancount(std::vector<std::vector<unsigned int, std::allocator<unsigned int>> const*, std::allocator<std::vector<unsigned int, std::allocator<unsigned int>> const*>> const&, std::vector<unsigned int, std::allocator<unsigned int>>&, unsigned long)
void scancount(const std::vector<const std::vector<uint32_t>*> &data,
               std::vector<uint32_t> &out, size_t threshold) {
  uint64_t largest = 0;
  for(auto z : data) {
    const std::vector<uint32_t> & v = *z;
    if(v[v.size() - 1] > largest) largest = v[v.size() - 1];
  }
  std::vector<uint8_t> counters(largest+1);
  out.clear();
  for (size_t c = 0; c < data.size(); c++) {
    const std::vector<uint32_t> &v = *data[c];
    for (size_t i = 0; i < v.size(); i++) {
      counters[v[i]]++;
    }
  }
  for (uint32_t i = 0; i < counters.size(); i++) {
    if (counters[i] > threshold)
      out.push_back(i);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
cmpq %rcx, %rax
je 0x283e
xorl %esi, %esi
movq %rsi, %rdx
movq (%rax), %rsi
movq 0x8(%rsi), %rsi
movl -0x4(%rsi), %esi
cmpq %rsi, %rdx
cmovaq %rdx, %rsi
addq $0x8, %rax
cmpq %rcx, %rax
jne 0x281c
incq %rsi
jmp 0x2843
movl $0x1, %esi
leaq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %rdx
callq 0x5890
movq (%r14), %rax
cmpq %rax, 0x8(%r14)
je 0x285f
movq %rax, 0x8(%r14)
movq (%r15), %rcx
cmpq %rcx, 0x8(%r15)
je 0x28b0
xorl %eax, %eax
movq (%rcx,%rax,8), %rcx
movq (%rcx), %rdx
cmpq %rdx, 0x8(%rcx)
je 0x289a
xorl %esi, %esi
movl (%rdx,%rsi,4), %edx
movq 0x8(%rsp), %rdi
incb (%rdi,%rdx)
incq %rsi
movq (%rcx), %rdx
movq 0x8(%rcx), %rdi
subq %rdx, %rdi
sarq $0x2, %rdi
cmpq %rdi, %rsi
jb 0x2879
incq %rax
movq (%r15), %rcx
movq 0x8(%r15), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
cmpq %rdx, %rax
jb 0x286a
movl $0x0, 0x4(%rsp)
movq 0x8(%rsp), %rdi
cmpq %rdi, 0x10(%rsp)
je 0x2911
xorl %eax, %eax
leaq 0x4(%rsp), %r15
movzbl (%rdi,%rax), %ecx
cmpq %rbx, %rcx
jbe 0x28f5
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0x28ea
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r14)
jmp 0x28f5
movq %r14, %rdi
movq %r15, %rdx
callq 0x6dca
movl 0x4(%rsp), %eax
incl %eax
movl %eax, 0x4(%rsp)
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rcx
subq %rdi, %rcx
cmpq %rax, %rcx
ja 0x28cb
testq %rdi, %rdi
je 0x2923
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2947
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x2390
// File: /workspace/github_cpp_makefile_star2_O1/lemire[P]fastscancount/benchmark/counters.cpp
// Function: calc_boundaries(unsigned int, unsigned int, std::vector<unsigned int, std::allocator<unsigned int>> const&, std::vector<unsigned int, std::allocator<unsigned int>>&)
void calc_boundaries(uint32_t largest, uint32_t range_size, 
                    const std::vector<uint32_t>& data, 
                    std::vector<uint32_t>& range_ends) {
  if (!range_size) {
    throw std::runtime_error("range_size must be > 0");
  }
  uint32_t end = 0;
  range_ends.clear();
  
  for (uint32_t start = 0; start <= largest; start += range_size) {
    uint32_t curr_max = std::min(largest, start + range_size - 1);
    while (end < data.size() && data[end] <= curr_max) {
      end++;
    }
    range_ends.push_back(end);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testl %esi, %esi
je 0x29f1
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %r15d
movl %edi, %ebp
movl $0x0, 0x4(%rsp)
movq (%rcx), %rax
cmpq %rax, 0x8(%rcx)
je 0x2982
movq %rax, 0x8(%rbx)
xorl %r13d, %r13d
leaq 0x4(%rsp), %r12
leal (%r15,%r13), %ecx
decl %ecx
cmpl %ebp, %ecx
cmovael %ebp, %ecx
movq (%r14), %rdx
movq 0x8(%r14), %rsi
subq %rdx, %rsi
sarq $0x2, %rsi
movl 0x4(%rsp), %eax
cmpq %rax, %rsi
jbe 0x29b9
cmpl %ecx, (%rdx,%rax,4)
ja 0x29b9
incl %eax
movl %eax, 0x4(%rsp)
jmp 0x29a7
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x29cf
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x29da
movq %rbx, %rdi
movq %r12, %rdx
callq 0x6dca
addl %r15d, %r13d
cmpl %ebp, %r13d
jbe 0x298a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x2130
movq %rax, %rbx
leaq 0x5643(%rip), %rsi      # 0x8048
movq %rax, %rdi
callq 0x20f0
movq 0x95dc(%rip), %rsi      # 0xbff0
movq 0x959d(%rip), %rdx      # 0xbfb8
movq %rbx, %rdi
callq 0x2380
movq %rax, %r14
movq %rbx, %rdi
callq 0x21a0
movq %r14, %rdi
callq 0x2390
// File: /workspace/github_cpp_makefile_star2_O1/lemire[P]fastscancount/benchmark/counters.cpp
// Function: calc_alldata_boundaries(std::vector<std::vector<unsigned int, std::allocator<unsigned int>>, std::allocator<std::vector<unsigned int, std::allocator<unsigned int>>>> const&, std::vector<std::vector<unsigned int, std::allocator<unsigned int>>, std::allocator<std::vector<unsigned int, std::allocator<unsigned int>>>>&, unsigned long)
void calc_alldata_boundaries(const std::vector<std::vector<uint32_t>>& data,
                             std::vector<std::vector<uint32_t>>& range_ends,
                             size_t range_size) {
  uint32_t largest = 0;
  range_ends.clear();
  range_ends.resize(data.size());
  for(const auto& v : data) {
    if (!v.empty() && v[v.size() - 1] > largest) largest = v[v.size() - 1];
  }
  for (unsigned i = 0; i < data.size(); ++i) {
    calc_boundaries(largest, range_size, data[i], range_ends[i]); 
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rsi), %rsi
movq %r14, %rdi
callq 0x6ea6
movq 0x8(%r15), %rsi
subq (%r15), %rsi
sarq $0x3, %rsi
movabsq $-0x5555555555555555, %r12 # imm = 0xAAAAAAAAAAAAAAAB
imulq %r12, %rsi
movq %r14, %rdi
callq 0x59ac
movq (%r15), %rax
movq 0x8(%r15), %rcx
xorl %ebp, %ebp
cmpq %rcx, %rax
je 0x2a9b
movq 0x8(%rax), %rdx
cmpq %rdx, (%rax)
je 0x2a95
movl -0x4(%rdx), %edx
cmpl %ebp, %edx
cmoval %edx, %ebp
addq $0x18, %rax
jmp 0x2a7f
movq (%r15), %rdx
cmpq %rdx, 0x8(%r15)
je 0x2ae0
movl $0x1, %r13d
xorl %eax, %eax
shlq $0x3, %rax
leaq (%rax,%rax,2), %rcx
addq %rcx, %rdx
addq (%r14), %rcx
movl %ebp, %edi
movl %ebx, %esi
callq 0x294f
movl %r13d, %eax
movq (%r15), %rdx
movq 0x8(%r15), %rcx
subq %rdx, %rcx
sarq $0x3, %rcx
imulq %r12, %rcx
incl %r13d
cmpq %rax, %rcx
ja 0x2aac
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/lemire[P]fastscancount/benchmark/maropuparser.h
// Function: MaropuGapReader::open()
bool open() {
    close();
    fd = ::fopen(mFilename.c_str(), "rb");
    if (fd == NULL) {
      return false;
    }
    setvbuf(fd, NULL, _IOFBF, 1024 * 4); // large buffer
    return true;
  }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x20(%rdi), %rdi
testq %rdi, %rdi
je 0x5daf
callq 0x2210
movq $0x0, 0x20(%r14)
movq (%r14), %rdi
leaq 0x247f(%rip), %rsi      # 0x8238
callq 0x2270
movq %rax, %rbx
movq %rax, 0x20(%r14)
testq %rax, %rax
je 0x5ddb
movl $0x1000, %ecx           # imm = 0x1000
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2030
testq %rbx, %rbx
setne %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/lemire[P]fastscancount/benchmark/maropuparser.h
// Function: bool MaropuGapReader::loadIntegers<std::vector<unsigned int, std::allocator<unsigned int>>>(std::vector<unsigned int, std::allocator<unsigned int>>&)
bool loadIntegers(container &buffer) {
    uint32_t qty = 0;
    if (!ReadQty(qty))
      return false; // EOF
    buffer.resize(qty);
    errno = 0;
    size_t result = fread(buffer.data(), sizeof(uint32_t), buffer.size(), fd);
    if (result != buffer.size()) {
      if (!errno) {
        // If we can't read, the file maybe truncated, i.e., corrupt
        throw std::runtime_error("The file appears to be truncated/corrupt!");
      }
      std::stringstream err;
      err << "Error reading from file, IO status: " << strerror(errno);
      throw std::runtime_error(err.str());
    }
    return true;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rsi, %r14
movq %rdi, %r15
leaq 0xc(%rsp), %rsi
movl $0x0, (%rsi)
callq 0x7b62
movl %eax, %ebp
testb %al, %al
je 0x5ee1
movl 0xc(%rsp), %esi
movq %r14, %rdi
callq 0x58f0
callq 0x2050
movq %rax, %rbx
movl $0x0, (%rax)
movq (%r14), %rdi
movq 0x8(%r14), %rdx
subq %rdi, %rdx
sarq $0x2, %rdx
movq 0x20(%r15), %rcx
movl $0x4, %esi
callq 0x22d0
movq 0x8(%r14), %rcx
subq (%r14), %rcx
sarq $0x2, %rcx
cmpq %rcx, %rax
jne 0x5ef1
movl %ebp, %eax
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x0, (%rbx)
jne 0x5f28
movl $0x10, %edi
callq 0x2130
movq %rax, %rbx
leaq 0x247d(%rip), %rsi      # 0x8387
movq %rax, %rdi
callq 0x20f0
movq 0x60d7(%rip), %rsi      # 0xbff0
movq 0x6098(%rip), %rdx      # 0xbfb8
movq %rbx, %rdi
callq 0x2380
leaq 0x30(%rsp), %rdi
callq 0x2180
leaq 0x40(%rsp), %r14
leaq 0x2473(%rip), %rsi      # 0x83b1
movl $0x24, %edx
movq %r14, %rdi
callq 0x2260
movl (%rbx), %edi
callq 0x20d0
movq %r14, %rdi
movq %rax, %rsi
callq 0x2200
movl $0x10, %edi
callq 0x2130
movq %rax, %rbx
leaq 0x48(%rsp), %rsi
leaq 0x10(%rsp), %rdi
callq 0x2320
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x2350
xorl %ebp, %ebp
movq 0x605e(%rip), %rsi      # 0xbff0
movq 0x601f(%rip), %rdx      # 0xbfb8
movq %rbx, %rdi
callq 0x2380
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5fc7
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0x5fc7
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x5fe6
movq %rbx, %rdi
callq 0x21a0
jmp 0x5fe6
movq %rax, %r14
movq %rbx, %rdi
callq 0x21a0
jmp 0x6004
movq %rax, %r14
movq 0x5fb3(%rip), %rsi      # 0xbfa0
leaq 0x30(%rsp), %rdi
callq 0x21b0
leaq 0xb0(%rsp), %rdi
callq 0x20c0
movq %r14, %rdi
callq 0x2390
// File: /workspace/github_cpp_makefile_star2_O1/lemire[P]fastscancount/benchmark/linux-perf-events.h
// Function: LinuxEvents<0>::LinuxEvents(int)
LinuxEvents(int config) : fd(0) {
        memset(&attribs, 0, sizeof(attribs));
        attribs.type        = TYPE;
        attribs.size        = sizeof(attribs);
        attribs.config      = config;
        attribs.disabled        = 1;
        attribs.exclude_kernel  = 1;
        attribs.exclude_hv      = 1;

        const int pid = 0;    // the current process
        const int cpu = -1;   // all CPUs
        const int group = -1; // no group
        const unsigned long flags = 0;
        fd = syscall(__NR_perf_event_open, &attribs, pid, cpu, group, flags);
        if (fd == -1) {
            report_error("perf_event_open");
        }
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movl $0x0, (%rdi)
leaq 0x8(%rdi), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movups %xmm0, 0x28(%rdi)
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x38(%rdi)
movups %xmm0, 0x48(%rdi)
movups %xmm0, 0x58(%rdi)
movups %xmm0, 0x68(%rdi)
movups %xmm0, 0x78(%rdi)
movl $0x80, 0xc(%rdi)
movslq %esi, %rcx
movq %rcx, 0x10(%rdi)
orb $0x61, 0x30(%rdi)
movl $0x12a, %edi            # imm = 0x12A
movq %rax, %rsi
xorl %edx, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x2060
movl %eax, (%rbx)
cmpl $-0x1, %eax
jne 0x612c
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x2105(%rip), %rsi      # 0x81fe
leaq 0x210d(%rip), %rdx      # 0x820d
movq %rsp, %r14
movq %r14, %rdi
callq 0x733c
movq %rbx, %rdi
movq %r14, %rsi
callq 0x64ae
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x612c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2230
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x614f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x2390
nop
// File: /workspace/github_cpp_makefile_star2_O1/lemire[P]fastscancount/benchmark/linux-perf-events-wrapper.h
// Function: LinuxEventsWrapper::end()
void end() {
#ifdef __linux__
      for (const auto& [ecode, ptr]: event_obj) {
        event_res[ecode] = ptr->end();  
      }
#endif
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r12
testq %r12, %r12
je 0x740d
movq %rdi, %rbx
addq $0x38, %rbx
leaq 0x8(%r12), %r14
movq 0x10(%r12), %rdi
callq 0x750c
movq %rax, %r15
movq %rbx, %rdi
movq %r14, %rsi
callq 0x75fa
movq %r15, (%rax)
movq (%r12), %r12
testq %r12, %r12
jne 0x73e4
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/lemire[P]fastscancount/benchmark/linux-perf-events.h
// Function: LinuxEvents<0>::start()
void start() {
        if (ioctl(fd, PERF_EVENT_IOC_RESET, 0) == -1) {
            report_error("ioctl(PERF_EVENT_IOC_RESET)");
        }

        if (ioctl(fd, PERF_EVENT_IOC_ENABLE, 0) == -1) {
            report_error("ioctl(PERF_EVENT_IOC_ENABLE)");
        }
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movl (%rdi), %edi
movl $0x2403, %esi           # imm = 0x2403
xorl %edx, %edx
xorl %eax, %eax
callq 0x2290
cmpl $-0x1, %eax
jne 0x747e
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xed4(%rip), %rsi       # 0x831d
leaq 0xee8(%rip), %rdx       # 0x8338
leaq 0x8(%rsp), %rdi
callq 0x733c
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x64ae
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x747e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2230
movl (%rbx), %edi
movl $0x2400, %esi           # imm = 0x2400
xorl %edx, %edx
xorl %eax, %eax
callq 0x2290
cmpl $-0x1, %eax
jne 0x74d8
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xe96(%rip), %rsi       # 0x8339
leaq 0xeab(%rip), %rdx       # 0x8355
leaq 0x8(%rsp), %rdi
callq 0x733c
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x64ae
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x74d8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2230
addq $0x28, %rsp
popq %rbx
popq %r14
retq
jmp 0x74e2
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x7503
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0x7503
jmp 0x7500
movq %rax, %rbx
movq %rbx, %rdi
callq 0x2390
nop
// File: /workspace/github_cpp_makefile_star2_O1/lemire[P]fastscancount/benchmark/linux-perf-events.h
// Function: LinuxEvents<0>::end()
unsigned long end() {
        if (ioctl(fd, PERF_EVENT_IOC_DISABLE, 0) == -1) {
            report_error("ioctl(PERF_EVENT_IOC_DISABLE)");
        }

        unsigned long result;
        if (read(fd, &result, sizeof(result)) == -1) {
            report_error("read");
        }

        return result;
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movl (%rdi), %edi
movl $0x2401, %esi           # imm = 0x2401
xorl %edx, %edx
xorl %eax, %eax
callq 0x2290
cmpl $-0x1, %eax
jne 0x756b
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xe1b(%rip), %rsi       # 0x8356
leaq 0xe31(%rip), %rdx       # 0x8373
movq %rsp, %rdi
callq 0x733c
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x64ae
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x756b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2230
movl (%rbx), %edi
leaq 0x20(%rsp), %rsi
movl $0x8, %edx
callq 0x22a0
cmpq $-0x1, %rax
jne 0x75c2
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xde2(%rip), %rsi       # 0x8374
leaq 0xddf(%rip), %rdx       # 0x8378
movq %rsp, %rdi
callq 0x733c
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x64ae
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x75c2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x20(%rsp), %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
jmp 0x75d1
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x75f1
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0x75f1
jmp 0x75ee
movq %rax, %rbx
movq %rbx, %rdi
callq 0x2390
nop
// File: /workspace/github_cpp_makefile_star2_O1/lemire[P]fastscancount/benchmark/maropuparser.h
// Function: MaropuGapReader::ReadQty(unsigned int&)
bool ReadQty(uint32_t &qty) {
    qty = 0;
    if (fd == NULL) {
      throw std::runtime_error("You forgot to open the file.");
    }
    errno = 0;
    size_t result = fread(&qty, sizeof(qty), 1, fd);
    if (errno) {
      std::stringstream err;
      err << "Error opening file, IO status: " << strerror(errno);
      throw std::runtime_error(err.str());
    }
    if (result != 1) {
      return false;
    }
    if (qty > 1 << 29) {
      std::cout << "warning: reading a very large array (" << qty
                << " integers) : is your input file in the right format?" << std::endl;
    }
    return true;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movl $0x0, (%rsi)
movq 0x20(%rdi), %rbx
testq %rbx, %rbx
je 0x7c3d
movq %rsi, %r14
callq 0x2050
movq %rax, %r15
movl $0x0, (%rax)
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x22d0
cmpl $0x0, (%r15)
jne 0x7c6f
movq %rax, %rbx
cmpq $0x1, %rax
jne 0x7c28
cmpl $0x20000001, (%r14)     # imm = 0x20000001
jb 0x7c28
movq 0x43fd(%rip), %r15      # 0xbfc8
leaq 0x841(%rip), %rsi       # 0x8413
movl $0x25, %edx
movq %r15, %rdi
callq 0x2260
movl (%r14), %esi
movq %r15, %rdi
callq 0x2160
movq %rax, %r14
leaq 0x845(%rip), %rsi       # 0x8439
movl $0x34, %edx
movq %rax, %rdi
callq 0x2260
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2170
cmpq $0x1, %rbx
sete %al
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x2130
movq %rax, %rbx
leaq 0x785(%rip), %rsi       # 0x83d6
movq %rax, %rdi
callq 0x20f0
movq 0x4390(%rip), %rsi      # 0xbff0
movq 0x4351(%rip), %rdx      # 0xbfb8
movq %rbx, %rdi
callq 0x2380
leaq 0x20(%rsp), %rdi
callq 0x2180
leaq 0x30(%rsp), %rbx
leaq 0x76e(%rip), %rsi       # 0x83f3
movl $0x1f, %edx
movq %rbx, %rdi
callq 0x2260
movl (%r15), %edi
callq 0x20d0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2200
movl $0x10, %edi
callq 0x2130
movq %rax, %rbx
leaq 0x38(%rsp), %rsi
movq %rsp, %rdi
callq 0x2320
movb $0x1, %bpl
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x2350
xorl %ebp, %ebp
movq 0x431a(%rip), %rsi      # 0xbff0
movq 0x42db(%rip), %rdx      # 0xbfb8
movq %rbx, %rdi
callq 0x2380
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7d0b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0x7d0b
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x7d2a
movq %rbx, %rdi
callq 0x21a0
jmp 0x7d2a
movq %rax, %r14
movq %rbx, %rdi
callq 0x21a0
jmp 0x7d48
movq %rax, %r14
movq 0x426f(%rip), %rsi      # 0xbfa0
leaq 0x20(%rsp), %rdi
callq 0x21b0
leaq 0xa0(%rsp), %rdi
callq 0x20c0
movq %r14, %rdi
callq 0x2390
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/./gtp.h
// Function: GTPclient::run()
bool run(){
		running = true;
		char buf[1001];

		while(running && fgets(buf, 1000, in)){
			string line(buf);

			trim(line);

			if(line.length() == 0 || line[0] == '#')
				continue;

			GTPResponse response = cmd(line);

			if(out){
				string output = response.to_s();

				fwrite(output.c_str(), 1, output.length(), out);
				fflush(out);
			}
		}
		return running;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4a8, %rsp            # imm = 0x4A8
movq %rdi, %rbx
movb $0x1, 0x34(%rdi)
leaq 0x18(%rsp), %rbp
leaq 0x58(%rsp), %r13
leaq 0xb0(%rsp), %r14
leaq 0x8(%rsp), %r15
leaq 0x48(%rsp), %r12
movq (%rbx), %rdx
movq %r14, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x44d0
testq %rax, %rax
je 0x7b41
movq %rbp, 0x8(%rsp)
movq %r14, %rdi
callq 0x4120
leaq 0xb0(%rsp,%rax), %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0xa874
movq %r15, %rdi
callq 0x15862
movq 0x10(%rsp), %rdx
testq %rdx, %rdx
je 0x7b28
movq 0x8(%rsp), %rsi
cmpb $0x23, (%rsi)
je 0x7b28
movq %r13, 0x48(%rsp)
addq %rsi, %rdx
movq %r12, %rdi
callq 0x8df0
leaq 0x68(%rsp), %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x768e
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x7aac
callq 0x42b0
cmpq $0x0, 0x8(%rbx)
je 0x7af7
leaq 0x28(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0xa646
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rdx
movq 0x8(%rbx), %rcx
movl $0x1, %esi
callq 0x4630
movq 0x8(%rbx), %rdi
callq 0x4370
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x7af7
callq 0x42b0
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x7b11
callq 0x42b0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x7b28
callq 0x42b0
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7b37
callq 0x42b0
cmpb $0x0, 0x34(%rbx)
jne 0x7a20
movb 0x34(%rbx), %al
addq $0x4a8, %rsp            # imm = 0x4A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x79c0
jmp 0x7b7e
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x7b7e
callq 0x42b0
jmp 0x7b7e
jmp 0x7b7b
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7b8d
callq 0x42b0
movq %rbx, %rdi
callq 0x45b0
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/./gtp.h
// Function: GTPclient::gtp_list_commands(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, bool)
GTPResponse gtp_list_commands(vecstr args, bool showdesc){
		string ret = "\n";
		for(unsigned int i = 0; i < callbacks.size(); i++){
			ret += callbacks[i].name;
			if(showdesc && callbacks[i].desc.length() > 0){
				ret += string(longest_cmd + 2 - callbacks[i].name.length(), ' ');
				ret += callbacks[i].desc;
			}
			ret += "\n";
		}
		return GTPResponse(true, ret);
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %ecx, %ebp
movq %rsi, %r14
movq %rdi, 0x40(%rsp)
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x212fe(%rip), %rsi     # 0x29ae2
leaq 0x212f8(%rip), %rdx     # 0x29ae3
leaq 0x20(%rsp), %rdi
callq 0xa874
movq 0x18(%r14), %rax
cmpq %rax, 0x20(%r14)
je 0x88d6
movl $0x1, %r12d
xorl %ecx, %ecx
leaq 0x20(%rsp), %r15
leaq 0x212cb(%rip), %r13     # 0x29ae2
leaq (%rcx,%rcx,2), %rbx
shlq $0x5, %rbx
movq (%rax,%rbx), %rsi
movq 0x8(%rax,%rbx), %rdx
movq %r15, %rdi
callq 0x40b0
testb %bpl, %bpl
je 0x889f
movq 0x18(%r14), %rax
cmpq $0x0, 0x28(%rax,%rbx)
je 0x889f
addq %rbx, %rax
movl 0x30(%r14), %esi
addl $0x2, %esi
subq 0x8(%rax), %rsi
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %rsp, %rdi
movl $0x20, %edx
callq 0x4350
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r15, %rdi
callq 0x40b0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8889
callq 0x42b0
movq 0x18(%r14), %rax
movq 0x20(%rax,%rbx), %rsi
movq 0x28(%rax,%rbx), %rdx
movq %r15, %rdi
callq 0x40b0
movq %r15, %rdi
movq %r13, %rsi
callq 0x4610
movl %r12d, %ecx
movq 0x18(%r14), %rax
movq 0x20(%r14), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rsi, %rdx
incl %r12d
cmpq %rcx, %rdx
ja 0x8817
leaq 0x58(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0x8df0
leaq 0x48(%rsp), %rdx
movq 0x40(%rsp), %r14
movq %r14, %rdi
movl $0x1, %esi
callq 0x8d7a
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0x891c
callq 0x42b0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x8930
callq 0x42b0
movq %r14, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
jne 0x8964
jmp 0x8970
jmp 0x896d
movq %rax, %r14
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8970
callq 0x42b0
jmp 0x8970
jmp 0x896d
movq %rax, %r14
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x8984
callq 0x42b0
movq %r14, %rdi
callq 0x45b0
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/./gtp.h
// Function: GTPclient::gtp_logfile(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
GTPResponse gtp_logfile(vecstr args){
		if(args.size() != 1)
			return GTPResponse(false, "Wrong number of arguments");

		FILE * fd = fopen(args[0].c_str(), "w");
		if(!fd)
			return GTPResponse(false, "Couldn't open file " + args[0]);

		setlogfile(fd);

		return GTPResponse(true);
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
movq (%rdx), %rax
movq 0x8(%rdx), %rcx
subq %rax, %rcx
cmpq $0x20, %rcx
jne 0x8af8
movq %rdx, %r15
movq %rsi, %r14
movq (%rax), %rdi
leaq 0x221e4(%rip), %rsi     # 0x2ac82
callq 0x4380
testq %rax, %rax
je 0x8b47
movq %rax, %r12
movq 0x10(%r14), %rdi
testq %rdi, %rdi
je 0x8abd
callq 0x42d0
movq %r12, 0x10(%r14)
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x21012(%rip), %rdx     # 0x29ae3
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rdx, %rsi
callq 0xa874
movq %rbx, %rdi
movl $0x1, %esi
movq %r14, %rdx
callq 0x8d7a
movq 0x8(%rsp), %rdi
jmp 0x8b2e
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x20e97(%rip), %rsi     # 0x2999f
leaq 0x20ea9(%rip), %rdx     # 0x299b8
leaq 0x28(%rsp), %r14
movq %r14, %rdi
callq 0xa874
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x8d7a
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x8b38
callq 0x42b0
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq (%r15), %rdx
leaq 0x20e68(%rip), %rsi     # 0x299b9
leaq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0x7b95
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x8d7a
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x8b33
jmp 0x8b38
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x8ba5
jmp 0x8baa
movq %rax, %rbx
movq 0x8(%rsp), %rdi
jmp 0x8ba0
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x8baa
callq 0x42b0
movq %rbx, %rdi
callq 0x45b0