LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/errantlinguist[P]Forecast/src/math/Coordinate.cpp
// Function: math::Coordinate::createLatitudeString[abi:cxx11](double)
std::string Coordinate::createLatitudeString(double latitude)
{
	std::stringstream ss(std::stringstream::out);
	ss << std::setprecision(DEFAULT_PRECISION) << std::abs(latitude);
	ss << POLARITY_SEPARATOR;

	if (latitude < 0)
	{
		ss << LATITUDE_NEGATIVE_SYMBOL;

	}
	else
	{
		ss << LATITUDE_POSITIVE_SYMBOL;
	}

	return ss.str();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movaps %xmm0, 0x10(%rsp)
movq %rdi, %rbx
leaq 0x20(%rsp), %rdi
movl $0x10, %esi
callq 0x9220
leaq 0x30(%rsp), %r14
movq (%r14), %rax
movq -0x18(%rax), %rax
movq $0x2, 0x38(%rsp,%rax)
movapd 0x320a(%rip), %xmm0     # 0x2c670
andpd 0x10(%rsp), %xmm0
movq %r14, %rdi
callq 0x9490
leaq 0x3205(%rip), %rsi      # 0x2c680
movl $0x3, %edx
movq %r14, %rdi
callq 0x95c0
xorpd %xmm0, %xmm0
ucomisd 0x10(%rsp), %xmm0
jbe 0x294ab
leaq 0xf(%rsp), %rsi
movb $0x53, (%rsi)
movl $0x1, %edx
movq %r14, %rdi
callq 0x95c0
jmp 0x294c0
leaq 0xf(%rsp), %rsi
movb $0x4e, (%rsi)
movl $0x1, %edx
movq %r14, %rdi
callq 0x95c0
leaq 0x38(%rsp), %rsi
movq %rbx, %rdi
callq 0x91d0
movq 0x15acc(%rip), %rsi     # 0x3efa0
leaq 0x20(%rsp), %rdi
callq 0x9470
leaq 0xa0(%rsp), %rdi
callq 0x9420
movq %rbx, %rax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq 0x15a9d(%rip), %rsi     # 0x3efa0
leaq 0x20(%rsp), %rdi
callq 0x9470
leaq 0xa0(%rsp), %rdi
callq 0x9420
movq %rbx, %rdi
callq 0x9390
// File: /workspace/github_cpp_makefile_star2_O1/errantlinguist[P]Forecast/src/math/Coordinate.cpp
// Function: math::Coordinate::createLongitudeString[abi:cxx11](double)
std::string Coordinate::createLongitudeString(double longitude)
{
	std::stringstream ss(std::stringstream::out);
	ss << std::setprecision(DEFAULT_PRECISION) << std::abs(longitude);
	ss << POLARITY_SEPARATOR;

	if (longitude < 0)
	{
		ss << LONGITUDE_NEGATIVE_SYMBOL;
	}
	else
	{
		ss << LONGITUDE_POSITIVE_SYMBOL;
	}

	return ss.str();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movaps %xmm0, 0x10(%rsp)
movq %rdi, %rbx
leaq 0x20(%rsp), %rdi
movl $0x10, %esi
callq 0x9220
leaq 0x30(%rsp), %r14
movq (%r14), %rax
movq -0x18(%rax), %rax
movq $0x2, 0x38(%rsp,%rax)
movapd 0x3110(%rip), %xmm0     # 0x2c670
andpd 0x10(%rsp), %xmm0
movq %r14, %rdi
callq 0x9490
leaq 0x310b(%rip), %rsi      # 0x2c680
movl $0x3, %edx
movq %r14, %rdi
callq 0x95c0
xorpd %xmm0, %xmm0
ucomisd 0x10(%rsp), %xmm0
jbe 0x295a5
leaq 0xf(%rsp), %rsi
movb $0x57, (%rsi)
movl $0x1, %edx
movq %r14, %rdi
callq 0x95c0
jmp 0x295ba
leaq 0xf(%rsp), %rsi
movb $0x45, (%rsi)
movl $0x1, %edx
movq %r14, %rdi
callq 0x95c0
leaq 0x38(%rsp), %rsi
movq %rbx, %rdi
callq 0x91d0
movq 0x159d2(%rip), %rsi     # 0x3efa0
leaq 0x20(%rsp), %rdi
callq 0x9470
leaq 0xa0(%rsp), %rdi
callq 0x9420
movq %rbx, %rax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq 0x159a3(%rip), %rsi     # 0x3efa0
leaq 0x20(%rsp), %rdi
callq 0x9470
leaq 0xa0(%rsp), %rdi
callq 0x9420
movq %rbx, %rdi
callq 0x9390
// File: /workspace/github_cpp_makefile_star2_O1/errantlinguist[P]Forecast/src/math/RadialVelocity.cpp
// Function: math::RadialVelocity::dump(std::ostream&) const
std::ostream& RadialVelocity::dump(std::ostream& o) const
{
	o << "RadialVelocity[getMagnitude()=";
	o << common::to_quoted_string(getMagnitude());
	o << ", getDirection()=";
	o << common::to_quoted_string(getDirection());
	o << ']';

	return o;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x2e53(%rip), %rsi      # 0x2c69b
movl $0x1e, %edx
movq %rbx, %rdi
callq 0x95c0
movsd 0x8(%r14), %xmm0
movq 0x15716(%rip), %rsi     # 0x3ef78
leaq 0x2e63(%rip), %rcx      # 0x2c6cc
movq %rsp, %r15
movl $0x148, %edx            # imm = 0x148
movq %r15, %rdi
movb $0x1, %al
callq 0x299fa
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rbx, %rdi
callq 0x95c0
leaq 0x10(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %r15, %rdi
je 0x298a5
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x90a0
leaq 0x2e0e(%rip), %rsi      # 0x2c6ba
movl $0x11, %edx
movq %rbx, %rdi
callq 0x95c0
movsd 0x10(%r14), %xmm0
movq 0x156b2(%rip), %rsi     # 0x3ef78
leaq 0x2dff(%rip), %rcx      # 0x2c6cc
movq %rsp, %r14
movl $0x148, %edx            # imm = 0x148
movq %r14, %rdi
movb $0x1, %al
callq 0x299fa
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x95c0
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x29904
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x90a0
movq %rsp, %rsi
movb $0x5d, (%rsi)
movl $0x1, %edx
movq %rbx, %rdi
callq 0x95c0
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
jne 0x29943
jmp 0x29950
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x29950
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x90a0
movq %rbx, %rdi
callq 0x9390
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/CmdLineParser.cpp
// Function: CmdLineParser::printExplanationsPretty(std::ostream&) const
void CmdLineParser::printExplanationsPretty(ostream &os) const {
    int prefixWidth = this->calculatePrefixColumnWidth();
    const unsigned int LINE_WIDTH = 80;
    for (unsigned int i = 0; i < allOptions.size(); i++) {
        printExplanationPretty(allOptions[i], prefixWidth, os, LINE_WIDTH);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x5354
movl %eax, %ebp
movq 0x8(%r14), %rax
cmpq %rax, 0x10(%r14)
je 0x5349
movl $0x1, %r15d
xorl %ecx, %ecx
movq (%rax,%rcx,8), %rdi
movl %ebp, %esi
movq %rbx, %rdx
movl $0x50, %ecx
callq 0x53e4
movl %r15d, %ecx
movq 0x8(%r14), %rax
movq 0x10(%r14), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
incl %r15d
cmpq %rcx, %rdx
ja 0x531c
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Datapoint.cpp
// Function: Datapoint::maxNdx(int, int, double*) const
int Datapoint::maxNdx(int start, int end, double *value) const {
    start = start < 0 ? 0 : start;
    if (end == -1) { end = size(); }
    else { end = (end >= (int)size()) ? size() : end; }

    if (size() <= 0 || start >= end || start >= (int)size()) {
        return -1;
    }

    int ndx = start;
    double max = (*this)[start];

    for (unsigned int i = start + 1; i < (unsigned int)end; i++) {
        if ((*this)[i] > max) {
            max = (*this)[i];
            ndx = i;
        }
    }

    if (value) { *value = max; }

    return ndx;
}

// Assembly:
xorl %r8d, %r8d
testl %esi, %esi
cmovgl %esi, %r8d
movq (%rdi), %rsi
movq 0x8(%rdi), %r10
movq %r10, %r9
subq %rsi, %r9
shrq $0x3, %r9
cmpl %edx, %r9d
movl %edx, %edi
cmovll %r9d, %edi
cmpl $-0x1, %edx
cmovel %r9d, %edi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl %edi, %r8d
jge 0x6537
cmpq %rsi, %r10
je 0x6537
cmpl %r9d, %r8d
jge 0x6537
movl %r8d, %eax
movsd (%rsi,%rax,8), %xmm0
leal 0x1(%r8), %eax
cmpl %edi, %eax
jae 0x6527
movl %edi, %edx
movsd (%rsi,%rax,8), %xmm1
ucomisd %xmm0, %xmm1
cmoval %eax, %r8d
maxsd %xmm0, %xmm1
incq %rax
movapd %xmm1, %xmm0
cmpq %rax, %rdx
jne 0x6508
jmp 0x652b
movapd %xmm0, %xmm1
testq %rcx, %rcx
je 0x6534
movsd %xmm1, (%rcx)
movl %r8d, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Datapoint.cpp
// Function: Datapoint::operator+=(Datapoint const&)
Datapoint &Datapoint::operator+=(const Datapoint &dp) {
    unsigned int s = size();
    for (unsigned int i = 0; i < s; i++) {
        (*this)[i] += dp[i];
    }

    return *this;
}

// Assembly:
movq %rdi, %rax
movq (%rdi), %rcx
movq 0x8(%rdi), %rdi
subq %rcx, %rdi
shrq $0x3, %rdi
testl %edi, %edi
je 0x656b
movq (%rsi), %rdx
movl %edi, %esi
xorl %edi, %edi
movsd (%rdx,%rdi,8), %xmm0
addsd (%rcx,%rdi,8), %xmm0
movsd %xmm0, (%rcx,%rdi,8)
incq %rdi
cmpq %rdi, %rsi
jne 0x6554
retq
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Datapoint.cpp
// Function: Datapoint::operator/=(double)
Datapoint &Datapoint::operator/=(double d) {
    unsigned int s = size();
    for (unsigned int i = 0; i < s; i++) {
        (*this)[i] /= d;
    }

    return *this;
}

// Assembly:
movq %rdi, %rax
movq (%rdi), %rcx
movq 0x8(%rdi), %rdx
subq %rcx, %rdx
shrq $0x3, %rdx
testl %edx, %edx
je 0x659b
movl %edx, %edx
xorl %esi, %esi
movsd (%rcx,%rsi,8), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rcx,%rsi,8)
incq %rsi
cmpq %rsi, %rdx
jne 0x6585
retq
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Datapoint.cpp
// Function: Datapoint::operator-(Datapoint const&) const
Datapoint Datapoint::operator-(const Datapoint &dp) const {
    Datapoint toReturn(*this);
    unsigned int s = size();

    for (unsigned int i = 0; i < s; i++) {
        toReturn[i] -= dp[i];
    }

    return toReturn;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
callq 0x6b78
movq 0x8(%r15), %rdx
subq (%r15), %rdx
shrq $0x3, %rdx
testl %edx, %edx
je 0x6615
movq (%r14), %rax
movq (%rbx), %rcx
movl %edx, %edx
xorl %esi, %esi
movsd (%rcx,%rsi,8), %xmm0
subsd (%rax,%rsi,8), %xmm0
movsd %xmm0, (%rcx,%rsi,8)
incq %rsi
cmpq %rsi, %rdx
jne 0x65fe
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Datapoint.cpp
// Function: Datapoint::write(std::ostream&) const
void Datapoint::write(ostream &os) const {
    unsigned int s = size();
    os << s << ": ";

    for (unsigned int i = 0; i < s; i++) {
        os << (*this)[i] << " ";
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %r15
subq (%rdi), %r15
shrq $0x3, %r15
movl %r15d, %esi
movq %rbx, %rdi
callq 0x41c0
leaq 0x15a5e(%rip), %rsi     # 0x1c0a8
movl $0x2, %edx
movq %rax, %rdi
callq 0x4330
testl %r15d, %r15d
je 0x6692
movl %r15d, %r12d
xorl %r13d, %r13d
leaq 0x18b9b(%rip), %r15     # 0x1f204
movq (%r14), %rax
movsd (%rax,%r13,8), %xmm0
movq %rbx, %rdi
callq 0x4510
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x4330
incq %r13
cmpq %r13, %r12
jne 0x6669
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Datapoint.cpp
// Function: Datapoint::write(_IO_FILE*) const
void Datapoint::write(FILE *out) const {
    unsigned int s = size();
    fprintf(out, "%u: ", s);

    for (unsigned int i = 0; i < s; i++) {
        fprintf(out, "%.20f ", (*this)[i]);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %r15
subq (%rdi), %r15
shrq $0x3, %r15
leaq 0x15b43(%rip), %rsi     # 0x1c200
movq %rbx, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0x4460
testl %r15d, %r15d
je 0x66fa
movl %r15d, %r12d
xorl %r13d, %r13d
leaq 0x15b29(%rip), %r15     # 0x1c205
movq (%r14), %rax
movsd (%rax,%r13,8), %xmm0
movq %rbx, %rdi
movq %r15, %rsi
movb $0x1, %al
callq 0x4460
incq %r13
cmpq %r13, %r12
jne 0x66dc
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Datapoint.cpp
// Function: Datapoint::read(std::istream&)
void Datapoint::read(istream &is) {
    unsigned int length;
    is >> length;

    char c = is.get();
    Utilities::check(':' == c, "Datapoint::read() missing : separator");

    resize(length);

    for (unsigned int i = 0; i < length; i++) {
        is >> (*this)[i];
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xc(%rsp), %rsi
movq %rbx, %rdi
callq 0x4570
movq %rbx, %rdi
callq 0x4360
movl %eax, %ebp
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x15acf(%rip), %rsi     # 0x1c20c
leaq 0x15aed(%rip), %rdx     # 0x1c231
leaq 0x10(%rsp), %rdi
callq 0x6086
cmpb $0x3a, %bpl
jne 0x67af
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x676b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x42d0
movl 0xc(%rsp), %esi
movq %r14, %rdi
callq 0x6bf8
cmpl $0x0, 0xc(%rsp)
je 0x67a2
xorl %r15d, %r15d
xorl %r12d, %r12d
movq (%r14), %rsi
addq %r15, %rsi
movq %rbx, %rdi
callq 0x41b0
incq %r12
movl 0xc(%rsp), %eax
addq $0x8, %r15
cmpq %rax, %r12
jb 0x6784
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20b7a(%rip), %rax     # 0x27330
movl (%rax), %ecx
shrl $0x1f, %ecx
movq 0x8(%rax,%rcx,8), %rbx
leaq 0x159b1(%rip), %rsi     # 0x1c178
movl $0x8, %edx
movq %rbx, %rdi
callq 0x4330
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4160
movl $0x1, %edi
callq 0x4370
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x6812
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4580
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Datapoint.cpp
// Function: Datapoint::read(_IO_FILE*)
void Datapoint::read(FILE *in) {
    unsigned int length;
    fscanf(in, "%u", &length);

    char c = fgetc(in);
    Utilities::check(':' == c, "Datapoint::read() missing : separator");

    resize(length);

    for (unsigned int i = 0; i < length; i++) {
        fscanf(in, "%lf", &(*this)[i]);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x159fd(%rip), %rsi     # 0x1c232
leaq 0x4(%rsp), %rdx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x45b0
movq %rbx, %rdi
callq 0x44e0
movl %eax, %ebp
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x159ae(%rip), %rsi     # 0x1c20c
leaq 0x159cc(%rip), %rdx     # 0x1c231
leaq 0x8(%rsp), %rdi
callq 0x6086
cmpb $0x3a, %bpl
jne 0x68de
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x688c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
movl 0x4(%rsp), %esi
movq %r14, %rdi
callq 0x6bf8
cmpl $0x0, 0x4(%rsp)
je 0x68cf
leaq 0x1598f(%rip), %r15     # 0x1c235
xorl %r12d, %r12d
xorl %r13d, %r13d
movq (%r14), %rdx
addq %r12, %rdx
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x45b0
incq %r13
movl 0x4(%rsp), %eax
addq $0x8, %r12
cmpq %rax, %r13
jb 0x68ac
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20a4b(%rip), %rax     # 0x27330
movl (%rax), %ecx
shrl $0x1f, %ecx
movq 0x8(%rax,%rcx,8), %rbx
leaq 0x15882(%rip), %rsi     # 0x1c178
movl $0x8, %edx
movq %rbx, %rdi
callq 0x4330
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4160
movl $0x1, %edi
callq 0x4370
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6941
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4580
nop
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Datapoint.cpp
// Function: Datapoint::writeBinary(std::ostream&) const
void Datapoint::writeBinary(ostream &os) const {
    unsigned int s = size();
    os.write((const char *)&s, sizeof(unsigned int));
    Datapoint::const_iterator b = this->begin();
    os.write((const char *)&(*b), size() * sizeof(double));
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rax
subq (%rdi), %rax
movq %rsi, %r14
shrq $0x3, %rax
leaq 0x4(%rsp), %rsi
movl %eax, (%rsi)
movl $0x4, %edx
movq %r14, %rdi
callq 0x43e0
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
subq %rsi, %rdx
movq %r14, %rdi
callq 0x43e0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Datapoint.cpp
// Function: Datapoint::writeBinary(_IO_FILE*) const
void Datapoint::writeBinary(FILE *out) const {
    unsigned int s = size();
    fwrite((void *)&s, sizeof(unsigned int), 1, out);
    Datapoint::const_iterator b = this->begin();
    fwrite((void *)&(*b), sizeof(double), size(), out);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rax
subq (%rdi), %rax
movq %rsi, %r14
shrq $0x3, %rax
leaq 0x4(%rsp), %rdi
movl %eax, (%rdi)
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x45e0
movq (%rbx), %rdi
movq 0x8(%rbx), %rdx
subq %rdi, %rdx
sarq $0x3, %rdx
movl $0x8, %esi
movq %r14, %rcx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x45e0
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Datapoint.cpp
// Function: Datapoint::readBinary(std::istream&)
void Datapoint::readBinary(istream &is) {
    unsigned int length;
    is.read((char *)&length, sizeof(unsigned int));
    resize(length);
    Datapoint::iterator b = this->begin();
    is.read((char *)&(*b), length * sizeof(double));
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xc(%rsp), %r15
movl $0x4, %edx
movq %rsi, %rdi
movq %r15, %rsi
callq 0x43b0
movl (%r15), %esi
movq %r14, %rdi
callq 0x6bf8
movq (%r14), %rsi
movl (%r15), %edx
shlq $0x3, %rdx
movq %rbx, %rdi
callq 0x43b0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Datapoint.cpp
// Function: Datapoint::readBinary(_IO_FILE*)
void Datapoint::readBinary(FILE *in) {
    unsigned int length;
    fread((void *)&length, sizeof(unsigned int), 1, in);
    resize(length);
    Datapoint::iterator b = this->begin();
    fread((void *)&(*b), sizeof(double), length, in);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xc(%rsp), %r15
movl $0x4, %esi
movl $0x1, %edx
movq %r15, %rdi
movq %rbx, %rcx
callq 0x4490
movl (%r15), %r15d
movq %r14, %rdi
movq %r15, %rsi
callq 0x6bf8
movq (%r14), %rdi
movl $0x8, %esi
movq %r15, %rdx
movq %rbx, %rcx
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x4490
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Datapoint.cpp
// Function: operator<<(std::ostream&, Datapoint const&)
ostream &operator<<(ostream &os, const Datapoint &dp) {
    unsigned int s = dp.size();
    for (unsigned int i = 0; i < s; i++) {
        os.precision(20);
        os << dp[i] << "\t";
    }
    return os;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rsi), %rax
subq (%rsi), %rax
shrq $0x3, %rax
testl %eax, %eax
je 0x6ae1
movq %rsi, %r14
movl %eax, %r12d
xorl %r13d, %r13d
leaq 0x15791(%rip), %r15     # 0x1c239
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq $0x14, 0x8(%rbx,%rax)
movq (%r14), %rax
movsd (%rax,%r13,8), %xmm0
movq %rbx, %rdi
callq 0x4510
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x4330
incq %r13
cmpq %r13, %r12
jne 0x6aa8
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Dataset.cpp
// Function: Dataset::write(std::ostream&) const
void Dataset::write(ostream &os) const {
    bool hasWeights = weights.size() > 0;
    os.precision(20);

    unsigned int nr = numRows();
    os << nr << ":" << (hasWeights ? "w\n" : "\n");

    for (unsigned int row = 0; row < nr; row++) {
        if (hasWeights) { os << weights[row] << " "; }
        (*this)[row].write(os);
        os << endl;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x18(%rdi), %r12
movq 0x20(%rdi), %r13
movq (%rsi), %rax
movq -0x18(%rax), %rax
movq $0x14, 0x8(%rsi,%rax)
movq 0x8(%rdi), %rax
subq (%rdi), %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rbp # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rbp
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movq %rbp, %rsi
andq %r15, %rsi
movq %rbx, %rdi
callq 0x41c0
movq %rax, (%rsp)
leaq 0x151f6(%rip), %rsi     # 0x1c295
movl $0x1, %edx
movq %rax, %rdi
callq 0x4330
xorl %edx, %edx
cmpq %r12, %r13
leaq 0x15f6d(%rip), %rax     # 0x1d025
leaq 0x151d1(%rip), %rsi     # 0x1c290
cmoveq %rax, %rsi
setne %dl
incq %rdx
movq (%rsp), %rdi
callq 0x4330
andq %rbp, %r15
je 0x7149
movl %ebp, %ebp
xorl %r15d, %r15d
cmpq %r12, %r13
je 0x7107
movq 0x18(%r14), %rax
movsd (%rax,%r15,8), %xmm0
movq %rbx, %rdi
callq 0x4510
movl $0x1, %edx
movq %rax, %rdi
leaq 0x18102(%rip), %rsi     # 0x1f204
callq 0x4330
leaq (%r15,%r15,2), %rdi
shlq $0x3, %rdi
addq (%r14), %rdi
movq %rbx, %rsi
callq 0x661e
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4290
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x41d0
incq %r15
cmpq %rbp, %r15
jne 0x70dc
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Dataset.cpp
// Function: Dataset::write(_IO_FILE*) const
void Dataset::write(FILE *out) const {
    bool hasWeights = weights.size() > 0;
    unsigned int nr = numRows();

    fprintf(out, "%u:", nr);
    if (hasWeights) { fprintf(out, "w"); }
    fprintf(out, "\n");

    for (unsigned int row = 0; row < nr; row++) {
        if (hasWeights) { fprintf(out, "%.20f ", weights[row]); }
        (*this)[row].write(out);
        fprintf(out, "\n");
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x20(%rdi), %r12
movq 0x8(%rdi), %rax
subq (%rdi), %rax
movq 0x18(%rdi), %r13
sarq $0x3, %rax
movabsq $-0x5555555555555555, %r15 # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %r15
leaq 0x15102(%rip), %rsi     # 0x1c293
movq %rbx, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0x4460
cmpq %r13, %r12
je 0x71b0
movl $0x77, %edi
movq %rbx, %rsi
callq 0x43a0
movl $0xa, %edi
movq %rbx, %rsi
callq 0x43a0
testl %r15d, %r15d
je 0x7210
movl %r15d, %ebp
xorl %r15d, %r15d
cmpq %r13, %r12
je 0x71e8
movq 0x18(%r14), %rax
movsd (%rax,%r15,8), %xmm0
movq %rbx, %rdi
leaq 0x15024(%rip), %rsi     # 0x1c205
movb $0x1, %al
callq 0x4460
leaq (%r15,%r15,2), %rdi
shlq $0x3, %rdi
addq (%r14), %rdi
movq %rbx, %rsi
callq 0x669c
movl $0xa, %edi
movq %rbx, %rsi
callq 0x43a0
incq %r15
cmpq %rbp, %r15
jne 0x71c8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Dataset.cpp
// Function: Dataset::read(std::istream&)
void Dataset::read(istream &is) {
    unsigned int length;
    is >> length;

    char c = is.get();
    Utilities::check(':' == c, "Dataset::read() missing : separator");

    resize(length);

    // check for weights (backwards compatibility)
    c = is.get();
    bool hasWeights = (c == 'w');
    double weight;
    if (! hasWeights) { is.putback(c); }

    for (unsigned int i = 0; i < length; i++) {
        if (hasWeights) {
            is >> weight;
            setWeight(i, weight);
        } else {
            setWeight(i, 1.0 / length);
        }
        (*this)[i].read(is);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xc(%rsp), %rsi
movq %rbx, %rdi
callq 0x4570
movq %rbx, %rdi
callq 0x4360
movl %eax, %ebp
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1503c(%rip), %rsi     # 0x1c297
leaq 0x15058(%rip), %rdx     # 0x1c2ba
leaq 0x10(%rsp), %rdi
callq 0x6086
cmpb $0x3a, %bpl
jne 0x7363
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x728d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x42d0
movl 0xc(%rsp), %r15d
leaq 0x30(%rsp), %r12
movq %r12, %rdi
callq 0x6380
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x7cdc
leaq 0x18(%r14), %rdi
movq %r15, %rsi
callq 0x6bf8
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x72d0
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4360
movzbl %al, %ebp
cmpl $0x77, %ebp
je 0x72eb
movsbl %al, %esi
movq %rbx, %rdi
callq 0x45c0
movl 0xc(%rsp), %eax
testl %eax, %eax
je 0x7354
xorl %r12d, %r12d
leaq 0x10(%rsp), %r15
xorl %r13d, %r13d
cmpl $0x77, %ebp
jne 0x7316
movq %rbx, %rdi
movq %r15, %rsi
callq 0x41b0
movsd 0x10(%rsp), %xmm0
jmp 0x732c
movl %eax, %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
movsd 0x14f60(%rip), %xmm0    # 0x1c288
divsd %xmm1, %xmm0
movq 0x18(%r14), %rax
movsd %xmm0, (%rax,%r13,8)
movq (%r14), %rdi
addq %r12, %rdi
movq %rbx, %rsi
callq 0x6704
incq %r13
movl 0xc(%rsp), %eax
addq $0x18, %r12
cmpq %rax, %r13
jb 0x72fe
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1ffc6(%rip), %rax     # 0x27330
movl (%rax), %ecx
shrl $0x1f, %ecx
movq 0x8(%rax,%rcx,8), %rbx
leaq 0x14dfd(%rip), %rsi     # 0x1c178
movl $0x8, %edx
movq %rbx, %rdi
callq 0x4330
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4160
movl $0x1, %edi
callq 0x4370
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x73e2
movq 0x20(%rsp), %rsi
incq %rsi
jmp 0x73dd
movq %rax, %rbx
jmp 0x73e2
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x73e2
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4580
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Dataset.cpp
// Function: Dataset::read(_IO_FILE*)
void Dataset::read(FILE *in) {
    unsigned int length;
    fscanf(in, "%u", &length);

    char c = fgetc(in);
    Utilities::check(':' == c, "Dataset::read() missing : separator");

    resize(length);

    // check for weights (backwards compatibility)
    c = fgetc(in);
    bool hasWeights = (c == 'w');
    double weight;
    if (! hasWeights) { ungetc(c, in); }

    for (unsigned int i = 0; i < length; i++) {
        if (hasWeights) {
            fscanf(in, "%lf", &weight);
            setWeight(i, weight);
        } else {
            setWeight(i, 1.0 / length);
        }
        (*this)[i].read(in);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x14e05(%rip), %rsi     # 0x1c232
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x45b0
movq %rbx, %rdi
callq 0x44e0
movl %eax, %ebp
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x14e41(%rip), %rsi     # 0x1c297
leaq 0x14e5d(%rip), %rdx     # 0x1c2ba
leaq 0x10(%rsp), %rdi
callq 0x6086
cmpb $0x3a, %bpl
jne 0x7571
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x7488
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x42d0
movl 0xc(%rsp), %r15d
leaq 0x30(%rsp), %r12
movq %r12, %rdi
callq 0x6380
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x7cdc
leaq 0x18(%r14), %rdi
movq %r15, %rsi
callq 0x6bf8
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x74cb
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x44e0
movl %eax, %ebp
shll $0x18, %ebp
cmpl $0x77000000, %ebp       # imm = 0x77000000
je 0x74ed
movl %ebp, %edi
sarl $0x18, %edi
movq %rbx, %rsi
callq 0x4070
movl 0xc(%rsp), %eax
testl %eax, %eax
je 0x7562
leaq 0x10(%rsp), %r12
xorl %r13d, %r13d
xorl %r15d, %r15d
cmpl $0x77000000, %ebp       # imm = 0x77000000
jne 0x7524
movq %rbx, %rdi
leaq 0x14d23(%rip), %rsi     # 0x1c235
movq %r12, %rdx
xorl %eax, %eax
callq 0x45b0
movsd 0x10(%rsp), %xmm0
jmp 0x753a
movl %eax, %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
movsd 0x14d52(%rip), %xmm0    # 0x1c288
divsd %xmm1, %xmm0
movq 0x18(%r14), %rax
movsd %xmm0, (%rax,%r15,8)
movq (%r14), %rdi
addq %r13, %rdi
movq %rbx, %rsi
callq 0x681a
incq %r15
movl 0xc(%rsp), %eax
addq $0x18, %r13
cmpq %rax, %r15
jb 0x7500
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1fdb8(%rip), %rax     # 0x27330
movl (%rax), %ecx
shrl $0x1f, %ecx
movq 0x8(%rax,%rcx,8), %rbx
leaq 0x14bef(%rip), %rsi     # 0x1c178
movl $0x8, %edx
movq %rbx, %rdi
callq 0x4330
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4160
movl $0x1, %edi
callq 0x4370
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x75f0
movq 0x20(%rsp), %rsi
incq %rsi
jmp 0x75eb
movq %rax, %rbx
jmp 0x75f0
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x75f0
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4580
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Dataset.cpp
// Function: Dataset::writeBinary(std::ostream&) const
void Dataset::writeBinary(ostream &os) const {
    // write the header information... size and whether weights are included
    unsigned int length = numRows();
    os.write((char *)&length, sizeof(unsigned int));

    unsigned int hasWeights = weights.size() > 0;
    os.write((char *)&hasWeights, sizeof(unsigned int));

    // write out all the data & weights (if appropriate)
    for (unsigned int row = 0; row < length; row++) {
        if (hasWeights) { os.write((char *)&(weights[row]), sizeof(double)); }
        (*this)[row].writeBinary(os);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rax
subq (%rdi), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
leaq 0xc(%rsp), %r15
movl %eax, (%r15)
movl $0x4, %edx
movq %rsi, %rdi
movq %r15, %rsi
callq 0x43e0
movq 0x20(%r14), %rax
xorl %ecx, %ecx
cmpq 0x18(%r14), %rax
setne %cl
leaq 0x8(%rsp), %rsi
movl %ecx, (%rsi)
movl $0x4, %edx
movq %rbx, %rdi
callq 0x43e0
cmpl $0x0, (%r15)
je 0x76a1
xorl %r15d, %r15d
xorl %r12d, %r12d
xorl %r13d, %r13d
cmpl $0x0, 0x8(%rsp)
je 0x767f
movq 0x18(%r14), %rsi
addq %r15, %rsi
movl $0x8, %edx
movq %rbx, %rdi
callq 0x43e0
movq (%r14), %rdi
addq %r12, %rdi
movq %rbx, %rsi
callq 0x694a
incq %r13
movl 0xc(%rsp), %eax
addq $0x18, %r12
addq $0x8, %r15
cmpq %rax, %r13
jb 0x7664
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Dataset.cpp
// Function: Dataset::writeBinary(_IO_FILE*) const
void Dataset::writeBinary(FILE *out) const {
    // write the header information... size and whether weights are included
    unsigned int length = numRows();
    fwrite((void *)&length, sizeof(unsigned int), 1, out);

    unsigned int hasWeights = weights.size() > 0;
    fwrite((void *)&hasWeights, sizeof(unsigned int), 1, out);

    // write out all the data & weights (if appropriate)
    for (unsigned int row = 0; row < length; row++) {
        if (hasWeights) { fwrite((void *)&(weights[row]), sizeof(double), 1, out); }
        (*this)[row].writeBinary(out);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rax
subq (%rdi), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
leaq 0xc(%rsp), %r15
movl %eax, (%r15)
movl $0x4, %esi
movl $0x1, %edx
movq %r15, %rdi
movq %rbx, %rcx
callq 0x45e0
movq 0x20(%r14), %rax
xorl %ecx, %ecx
cmpq 0x18(%r14), %rax
setne %cl
leaq 0x8(%rsp), %rdi
movl %ecx, (%rdi)
movl $0x4, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x45e0
movl (%r15), %r15d
testq %r15, %r15
je 0x7762
movl 0x8(%rsp), %ebp
xorl %r12d, %r12d
testl %ebp, %ebp
je 0x7747
leaq (,%r12,8), %rdi
addq 0x18(%r14), %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x45e0
leaq (%r12,%r12,2), %rdi
shlq $0x3, %rdi
addq (%r14), %rdi
movq %rbx, %rsi
callq 0x698e
incq %r12
cmpq %r15, %r12
jne 0x7725
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Dataset.cpp
// Function: Dataset::readBinary(std::istream&)
void Dataset::readBinary(istream &is) {
    unsigned int length;
    is.read((char *)&length, sizeof(unsigned int));

    unsigned int hasWeights;
    is.read((char *)&hasWeights, sizeof(unsigned int));

    resize(length);

    double weight;
    for (unsigned int i = 0; i < length; i++) {
        if (hasWeights) {
            is.read((char *)&weight, sizeof(double));
            setWeight(i, weight);
        } else {
            setWeight(i, 1.0 / length);
        }
        (*this)[i].readBinary(is);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x8(%rsp), %r15
movl $0x4, %edx
movq %rsi, %rdi
movq %r15, %rsi
callq 0x43b0
leaq 0xc(%rsp), %rsi
movl $0x4, %edx
movq %rbx, %rdi
callq 0x43b0
movl (%r15), %r15d
leaq 0x18(%rsp), %r12
movq %r12, %rdi
callq 0x6380
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x7cdc
leaq 0x18(%r14), %rdi
movq %r15, %rsi
callq 0x6bf8
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x77eb
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
movl 0x8(%rsp), %eax
testl %eax, %eax
je 0x785b
xorl %r12d, %r12d
leaq 0x10(%rsp), %r15
xorl %r13d, %r13d
cmpl $0x0, 0xc(%rsp)
je 0x781d
movl $0x8, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x43b0
movsd 0x10(%rsp), %xmm0
jmp 0x7833
movl %eax, %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
movsd 0x14a59(%rip), %xmm0    # 0x1c288
divsd %xmm1, %xmm0
movq 0x18(%r14), %rax
movsd %xmm0, (%rax,%r13,8)
movq (%r14), %rdi
addq %r12, %rdi
movq %rbx, %rsi
callq 0x69de
incq %r13
movl 0x8(%rsp), %eax
addq $0x18, %r12
cmpq %rax, %r13
jb 0x77fe
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x7883
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4580
nop
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Dataset.cpp
// Function: Dataset::readBinary(_IO_FILE*)
void Dataset::readBinary(FILE *in) {
    unsigned int length;
    fread((void *)&length, sizeof(unsigned int), 1, in);

    unsigned int hasWeights;
    fread((void *)&hasWeights, sizeof(unsigned int), 1, in);

    resize(length);

    double weight;
    for (unsigned int i = 0; i < length; i++) {
        if (hasWeights) {
            fread((void *)&weight, sizeof(double), 1, in);
            setWeight(i, weight);
        } else {
            setWeight(i, 1.0 / length);
        }
        (*this)[i].readBinary(in);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x1c(%rsp), %r15
movl $0x4, %esi
movl $0x1, %edx
movq %r15, %rdi
movq %rbx, %rcx
callq 0x4490
leaq 0x4(%rsp), %rdi
movl $0x4, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x4490
movl (%r15), %r15d
leaq 0x20(%rsp), %r12
movq %r12, %rdi
callq 0x6380
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x7cdc
leaq 0x18(%r14), %rdi
movq %r15, %rsi
callq 0x6bf8
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x7912
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
testq %r15, %r15
je 0x798b
movl 0x4(%rsp), %ebp
cvtsi2sd %r15, %xmm0
movsd 0x14960(%rip), %xmm1    # 0x1c288
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
xorl %r13d, %r13d
leaq 0x10(%rsp), %r12
movsd 0x8(%rsp), %xmm0
testl %ebp, %ebp
je 0x795f
movl $0x8, %esi
movl $0x1, %edx
movq %r12, %rdi
movq %rbx, %rcx
callq 0x4490
movsd 0x10(%rsp), %xmm0
movq 0x18(%r14), %rax
movsd %xmm0, (%rax,%r13,8)
leaq (,%r13,2), %rdi
addq %r13, %rdi
shlq $0x3, %rdi
addq (%r14), %rdi
movq %rbx, %rsi
callq 0x6a2a
incq %r13
cmpq %r15, %r13
jne 0x793a
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x79b4
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4580
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Dataset.cpp
// Function: operator<<(std::ostream&, Dataset const&)
ostream &operator<<(ostream &os, const Dataset &ds) {
    unsigned int s = ds.size();
    for (unsigned int i = 0; i < s; i++) {
        os << ds[i] << endl;
    }

    return os;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rsi), %rcx
subq (%rsi), %rcx
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
testl %eax, %eax
je 0x7a36
movq %rsi, %r14
movl %eax, %eax
shlq $0x3, %rax
leaq (%rax,%rax,2), %r12
xorl %r13d, %r13d
movq (%r14), %rsi
addq %r13, %rsi
movq %rbx, %rdi
callq 0x6a7d
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x4290
movsbl %al, %esi
movq %r15, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x41d0
addq $0x18, %r13
cmpq %r13, %r12
jne 0x79f5
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/FVParser.cpp
// Function: FVParser::FVParser(_IO_FILE*)
FVParser::FVParser(FILE *input_file) {
    Utilities::check(input_file != NULL, 
                     "FVParser::FVParser() input_file is NULL");
    input = input_file;
    lineNumber = 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x13f07(%rip), %rsi     # 0x1c2d2
leaq 0x13f27(%rip), %rdx     # 0x1c2f9
movq %rsp, %rdi
callq 0x6086
testq %r14, %r14
je 0x8409
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x83f5
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42d0
movq %r14, (%rbx)
movl $0x0, 0x8(%rbx)
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x1ef20(%rip), %rax     # 0x27330
movl (%rax), %ecx
shrl $0x1f, %ecx
movq 0x8(%rax,%rcx,8), %rbx
leaq 0x13d57(%rip), %rsi     # 0x1c178
movl $0x8, %edx
movq %rbx, %rdi
callq 0x4330
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4160
movl $0x1, %edi
callq 0x4370
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x846a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4580
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/KMeans.cpp
// Function: KMeans::initializeRandomly(int, Dataset const&, Dataset*)
void KMeans::initializeRandomly(int randSeed, const Dataset &data,
        Dataset *centers) {
    Random rand(randSeed);

    for (unsigned int i = 0; i < centers->numRows(); i++) {
        int ndx = rand.randInt() % data.numRows();
        (*centers)[i] = data[ndx];
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x120, %rsp            # imm = 0x120
movslq %edi, %rax
movq %rax, %rcx
negq %rcx
cmpl $0x2, %eax
cmovlq %rax, %rcx
movq %rcx, 0x8(%rsp)
movq $0x75bcd15, 0x10(%rsp)  # imm = 0x75BCD15
movq $0x0, 0x18(%rsp)
movq 0x8(%rdx), %rax
subq (%rdx), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
testl %eax, %eax
je 0x8854
movq %rdx, %rbx
movq %rsi, %r14
xorl %r12d, %r12d
leaq 0x8(%rsp), %r15
xorl %r13d, %r13d
movq %r15, %rdi
callq 0x19950
mulss 0x13b2b(%rip), %xmm0    # 0x1c330
cvttss2si %xmm0, %eax
movq (%r14), %rcx
movq 0x8(%r14), %rdx
subq %rcx, %rdx
shrq $0x3, %rdx
imull $0xaaaaaaab, %edx, %esi # imm = 0xAAAAAAAB
xorl %edx, %edx
divl %esi
movslq %edx, %rax
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rsi
movq (%rbx), %rdi
addq %r12, %rdi
callq 0x8260
incq %r13
movq 0x8(%rbx), %rax
subq (%rbx), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
addq $0x18, %r12
cmpq %rax, %r13
jb 0x87f5
addq $0x120, %rsp            # imm = 0x120
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/KMeans.cpp
// Function: KMeans::findLabelsAndDists(Dataset const&, Dataset const&, std::vector<int, std::allocator<int>>*, Datapoint*)
void KMeans::findLabelsAndDists(const Dataset &data, const Dataset &centers,
                                vector<int> *labels, Datapoint *dists) {
    unsigned int n = data.numRows();
    unsigned int k = centers.numRows();
    for (unsigned int i = 0; i < n; i++) {
        (*labels)[i] = 0;
        double minDist = data[i].distSquared(centers[0]);

        for (unsigned int c = 1; c < k; c++) {
            double d = data[i].distSquared(centers[c]);
            if (d < minDist) {
                (*labels)[i] = c;
                minDist = d;
            }
        }
        if (dists) { (*dists)[i] = sqrt(minDist); }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq %rsi, 0x8(%rsp)
movq 0x8(%rdi), %rax
subq (%rdi), %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
testl %eax, %eax
je 0x902d
movq %rdi, %r12
movq 0x8(%rsp), %rdx
movq 0x8(%rdx), %rsi
subq (%rdx), %rsi
sarq $0x3, %rsi
imulq %rcx, %rsi
movl %eax, %eax
movq %rax, 0x28(%rsp)
movq %rsi, 0x30(%rsp)
movl %esi, %ebp
xorl %r13d, %r13d
movq 0x20(%rsp), %rax
movq (%rax), %rax
movl $0x0, (%rax,%r13,4)
leaq (,%r13,2), %rbx
addq %r13, %rbx
shlq $0x3, %rbx
movq (%r12), %rdi
addq %rbx, %rdi
movq 0x8(%rsp), %rax
movq (%rax), %rsi
callq 0x647c
testl $0xfffffffe, 0x30(%rsp) # imm = 0xFFFFFFFE
movsd %xmm0, 0x10(%rsp)
je 0x8fee
movl $0x1, %r14d
movl $0x18, %r15d
movq (%r12), %rdi
addq %rbx, %rdi
movq 0x8(%rsp), %rax
movq (%rax), %rsi
addq %r15, %rsi
callq 0x647c
movsd 0x10(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x8fdc
movq 0x20(%rsp), %rax
movq (%rax), %rax
movl %r14d, (%rax,%r13,4)
movapd %xmm0, %xmm1
movsd %xmm1, 0x10(%rsp)
incq %r14
addq $0x18, %r15
cmpq %r14, %rbp
jne 0x8fa9
cmpq $0x0, 0x18(%rsp)
je 0x901f
movsd 0x10(%rsp), %xmm0
ucomisd 0x1333c(%rip), %xmm0    # 0x1c340
jb 0x900c
sqrtsd %xmm0, %xmm0
jmp 0x9011
callq 0x4210
movq 0x18(%rsp), %rax
movq (%rax), %rax
movsd %xmm0, (%rax,%r13,8)
incq %r13
cmpq 0x28(%rsp), %r13
jne 0x8f5a
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/KMeans.cpp
// Function: KMeans::findWeights(std::vector<int, std::allocator<int>> const&, std::vector<int, std::allocator<int>>*)
void KMeans::findWeights(const vector<int> &labels, vector<int> *weights) {
    unsigned int i;
    for (i = 0; i < weights->size(); i++) {
        (*weights)[i] = 0;
    }

    for (i = 0; i < labels.size(); i++) {
        (*weights)[labels[i]]++;
    }
}

// Assembly:
movq (%rsi), %rax
movq 0x8(%rsi), %rcx
subq %rax, %rcx
je 0x905f
sarq $0x2, %rcx
xorl %edx, %edx
movl $0x0, (%rax,%rdx,4)
incq %rdx
movl %edx, %esi
cmpq %rsi, %rcx
ja 0x904e
movq (%rdi), %rcx
movq 0x8(%rdi), %rdx
subq %rcx, %rdx
je 0x9082
sarq $0x2, %rdx
xorl %esi, %esi
movslq (%rcx,%rsi,4), %rdi
incl (%rax,%rdi,4)
incq %rsi
movl %esi, %edi
cmpq %rdi, %rdx
ja 0x9071
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Simpoint.cpp
// Function: Simpoint::openInputVectorFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool)
FILE *Simpoint::openInputVectorFile(const string &filename, bool isGzipped) {
    Utilities::check(isRegularFile(filename),
            "openInputVectorFile() not regular file: " + filename);
    FILE *input = NULL;
    if (isGzipped) {
        string command = "gzip -dc " + filename;
        input = popen(command.c_str(), "r");
    } else {
        input = fopen(filename.c_str(), "r");
    }
    Utilities::check(input != NULL, 
        "openInputVectorFile() could not open file " + filename);
    return input;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x90, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movq (%rdi), %rdi
movq %rsp, %r14
movq %r14, %rsi
callq 0x4280
movl %eax, %r15d
movl $0xf000, %r12d          # imm = 0xF000
andl 0x18(%r14), %r12d
leaq 0x12902(%rip), %rsi     # 0x1c410
movq %rsp, %rdi
movq %rbx, %rdx
callq 0x5ed9
testl %r15d, %r15d
jne 0x9be0
cmpl $0x8000, %r12d          # imm = 0x8000
jne 0x9be0
leaq 0x10(%rsp), %r12
movq -0x10(%r12), %rdi
cmpq %r12, %rdi
je 0x9b4b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42d0
testb %bpl, %bpl
je 0x9b8e
leaq 0x128e2(%rip), %rsi     # 0x1c439
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rdx
callq 0x5ed9
movq (%r15), %rdi
leaq 0x127bc(%rip), %rsi     # 0x1c32b
callq 0x4100
movq %rax, %r14
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x9ba0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0x9ba0
movq (%rbx), %rdi
leaq 0x12793(%rip), %rsi     # 0x1c32b
callq 0x4350
movq %rax, %r14
leaq 0x1289c(%rip), %rsi     # 0x1c443
movq %rsp, %rdi
movq %rbx, %rdx
callq 0x5ed9
testq %r14, %r14
je 0x9c20
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x9bcd
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42d0
movq %r14, %rax
addq $0x90, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1d749(%rip), %rax     # 0x27330
movl (%rax), %ecx
shrl $0x1f, %ecx
movq 0x8(%rax,%rcx,8), %rbx
leaq 0x12580(%rip), %rsi     # 0x1c178
movl $0x8, %edx
movq %rbx, %rdi
callq 0x4330
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4160
jmp 0x9c5e
leaq 0x1d709(%rip), %rax     # 0x27330
movl (%rax), %ecx
shrl $0x1f, %ecx
movq 0x8(%rax,%rcx,8), %rbx
leaq 0x12540(%rip), %rsi     # 0x1c178
movl $0x8, %edx
movq %rbx, %rdi
callq 0x4330
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4160
movl $0x1, %edi
callq 0x4370
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
jne 0x9c87
jmp 0x9c94
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9c94
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4580
// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/Simpoint.cpp
// Function: Simpoint::~Simpoint()
Simpoint::~Simpoint() {
    if (wholeDataset && (wholeDataset == sampledDataset)) {
        delete wholeDataset;
    } else {
        if (wholeDataset) { delete wholeDataset; }
        if (sampledDataset) { delete sampledDataset; }
    }
    wholeDataset = sampledDataset = NULL;

    for (unsigned int i = 0; i < initialCenters.size(); i++) {
        if (initialCenters[i]) { delete initialCenters[i]; initialCenters[i] = NULL; }
    }

    for (unsigned int i = 0; i < finalCenters.size(); i++) {
        if (finalCenters[i]) { delete finalCenters[i]; finalCenters[i] = NULL; }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %r14
testq %r14, %r14
je 0xf1d0
cmpq 0x8(%rbx), %r14
je 0xf208
testq %r14, %r14
je 0xf1ff
movq 0x18(%r14), %rdi
testq %rdi, %rdi
je 0xf1ea
movq 0x28(%r14), %rsi
subq %rdi, %rsi
callq 0x42d0
movq %r14, %rdi
callq 0x7bf4
movl $0x30, %esi
movq %r14, %rdi
callq 0x42d0
movq 0x8(%rbx), %r14
testq %r14, %r14
je 0xf232
movq 0x18(%r14), %rdi
testq %rdi, %rdi
je 0xf21d
movq 0x28(%r14), %rsi
subq %rdi, %rsi
callq 0x42d0
movq %r14, %rdi
callq 0x7bf4
movl $0x30, %esi
movq %r14, %rdi
callq 0x42d0
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq 0x10(%rbx), %rax
cmpq %rax, 0x18(%rbx)
je 0xf2a2
movl $0x1, %ebp
xorl %r15d, %r15d
movq (%rax,%r15,8), %r14
testq %r14, %r14
je 0xf289
movq 0x18(%r14), %rdi
testq %rdi, %rdi
je 0xf268
movq 0x28(%r14), %rsi
subq %rdi, %rsi
callq 0x42d0
movq %r14, %rdi
callq 0x7bf4
movl $0x30, %esi
movq %r14, %rdi
callq 0x42d0
movq 0x10(%rbx), %rax
movq $0x0, (%rax,%r15,8)
movl %ebp, %r15d
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
incl %ebp
cmpq %r15, %rcx
ja 0xf24a
movq 0x28(%rbx), %rax
cmpq %rax, 0x30(%rbx)
je 0xf30c
movl $0x1, %ebp
xorl %r15d, %r15d
movq (%rax,%r15,8), %r14
testq %r14, %r14
je 0xf2f3
movq 0x18(%r14), %rdi
testq %rdi, %rdi
je 0xf2d2
movq 0x28(%r14), %rsi
subq %rdi, %rsi
callq 0x42d0
movq %r14, %rdi
callq 0x7bf4
movl $0x30, %esi
movq %r14, %rdi
callq 0x42d0
movq 0x28(%rbx), %rax
movq $0x0, (%rax,%r15,8)
movl %ebp, %r15d
movq 0x28(%rbx), %rax
movq 0x30(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
incl %ebp
cmpq %r15, %rcx
ja 0xf2b4
leaq 0x58(%rbx), %rdi
callq 0xf966
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0xf32a
movq 0x50(%rbx), %rsi
subq %rdi, %rsi
callq 0x42d0
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0xf33f
movq 0x38(%rbx), %rsi
subq %rdi, %rsi
callq 0x42d0
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0xf35e
movq 0x20(%rbx), %rsi
subq %rdi, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x42d0
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop