LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/kebwi[P]Trifid/src/FFT/fftlib.cpp
// Function: fftCosInit(long, double*)
void fftCosInit(long M, Float_t *Utbl){
/* Compute Utbl, the cosine table for ffts	*/
/* of size (pow(2,M)/4 +1)	*/
/* INPUTS */
/* M = log2 of fft size	*/
/* OUTPUTS */
/* *Utbl = cosine table	*/
unsigned long fftN = POW2(M);
unsigned long i1;
	Utbl[0] = 1.0;
	for (i1 = 1; i1 < fftN/4; i1++)
		Utbl[i1] = cos( (2.0 * MYPI * i1) / fftN );
	Utbl[fftN/4] = 0.0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %rcx
movl $0x1, %r14d
movl $0x1, %eax
shlq %cl, %rax
movabsq $0x3ff0000000000000, %rdx # imm = 0x3FF0000000000000
movq %rdx, (%rsi)
movq %rax, %r15
shrq $0x2, %r15
cmpq $0x3, %rdi
jb 0x24855
movq %rax, %xmm0
punpckldq 0x581a(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x5822(%rip), %xmm0     # 0x2a030
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movapd %xmm1, (%rsp)
cmpq $0x3, %r15
movl $0x2, %r12d
cmovaeq %r15, %r12
xorps %xmm0, %xmm0
cvtsi2sd %r14, %xmm0
mulsd 0xa1c3(%rip), %xmm0     # 0x2ea00
divsd (%rsp), %xmm0
callq 0x3530
movsd %xmm0, (%rbx,%r14,8)
incq %r14
cmpq %r14, %r12
jne 0x2482d
movq $0x0, (%rbx,%r15,8)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/kebwi[P]Trifid/src/FFT/fftlib.cpp
// Function: fftBRInit(long, short*)
void fftBRInit(long M, short *BRLow){
/* Compute BRLow, the bit reversed table for ffts	*/
/* of size pow(2,M/2 -1)	*/
/* INPUTS */
/* M = log2 of fft size	*/
/* OUTPUTS */
/* *BRLow = bit reversed counter table	*/
long	Mroot_1 = M / 2 - 1;
long	Nroot_1 = POW2(Mroot_1);
long i1;
long bitsum;
long bitmask;
long bit;
for (i1 = 0; i1 < Nroot_1; i1++){
	bitsum = 0;
	bitmask = 1;
	for (bit=1; bit <= Mroot_1; bitmask<<=1, bit++)
		if (i1 & bitmask)
			bitsum = bitsum + (Nroot_1 >> bit);
	BRLow[i1] = bitsum;
};
}

// Assembly:
movq %rdi, %r9
shrq $0x3f, %r9
addq %rdi, %r9
sarq %r9
leaq -0x1(%r9), %rcx
movl $0x1, %eax
movl $0x1, %edx
shlq %cl, %rdx
cmpq $0x3f, %rcx
je 0x248f3
pushq %r14
pushq %rbx
cmpq $0x3, %r9
movl $0x2, %r8d
cmovgeq %r9, %r8
cmpq $0x2, %rdx
cmovgeq %rdx, %rax
xorl %r9d, %r9d
cmpq $0x4, %rdi
jl 0x248e0
movl $0x1, %ecx
movl $0x1, %r11d
xorl %r10d, %r10d
movq %r11, %rbx
movq %rdx, %r14
sarq %cl, %r14
andq %r9, %rbx
testq %rbx, %rbx
cmoveq %rbx, %r14
addq %r14, %r10
addq %r11, %r11
incq %rcx
cmpq %rcx, %r8
jne 0x248bd
jmp 0x248e3
xorl %r10d, %r10d
movw %r10w, (%rsi,%r9,2)
incq %r9
cmpq %rax, %r9
jne 0x248a9
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/kebwi[P]Trifid/src/FFT/fftlib.cpp
// Function: fftrecurs(double*, long, double*, long, long, long)
void fftrecurs(Float_t *ioptr, long M, Float_t *Utbl, long Ustride, long NDiffU, long StageCnt){
/* recursive bfstages calls to maximize on chip cache efficiency */
long i1;
if (M <= MCACHE)  // fits on chip ?
	bfstages(ioptr, M, Utbl, Ustride, NDiffU, StageCnt);		/*  RADIX 8 Stages	*/
else{
	for (i1=0; i1<8; i1++){
		fftrecurs(&ioptr[i1*POW2(M-3)*2], M-3, Utbl, 8*Ustride, NDiffU, StageCnt-1);	/*  RADIX 8 Stages	*/
	}
	bfstages(ioptr, M, Utbl, Ustride, POW2(M-3), 1);	/*  RADIX 8 Stage	*/
}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, (%rsp)
movq %r8, %r13
movq %rdx, %r12
movq %rdi, %rbp
cmpq $0xb, %rsi
jae 0x24924
movq %rbp, %rdi
movq %r12, %rdx
movq %r13, %r8
movq (%rsp), %r9
jmp 0x2498f
movq %rsi, 0x8(%rsp)
leaq -0x3(%rsi), %rbx
movq %rcx, 0x10(%rsp)
leaq (,%rcx,8), %r15
decq (%rsp)
xorl %r14d, %r14d
movq %r14, %rdi
movl %ebx, %ecx
shlq %cl, %rdi
shlq $0x4, %rdi
addq %rbp, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %r15, %rcx
movq %r13, %r8
movq (%rsp), %r9
callq 0x248f4
incq %r14
cmpq $0x8, %r14
jne 0x24941
movl $0x1, %r8d
movl %ebx, %ecx
shlq %cl, %r8
movl $0x1, %r9d
movq %rbp, %rdi
movq 0x8(%rsp), %rsi
movq %r12, %rdx
movq 0x10(%rsp), %rcx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x25ba5
// File: /workspace/github_cpp_makefile_star2_O3/kebwi[P]Trifid/src/FFT/fftlib.cpp
// Function: ifftrecurs(double*, long, double*, long, long, long)
void ifftrecurs(Float_t *ioptr, long M, Float_t *Utbl, long Ustride, long NDiffU, long StageCnt){
/* recursive bfstages calls to maximize on chip cache efficiency */
long i1;
if (M <= MCACHE)
	ibfstages(ioptr, M, Utbl, Ustride, NDiffU, StageCnt);		/*  RADIX 8 Stages	*/
else{
	for (i1=0; i1<8; i1++){
		ifftrecurs(&ioptr[i1*POW2(M-3)*2], M-3, Utbl, 8*Ustride, NDiffU, StageCnt-1);	/*  RADIX 8 Stages	*/
	}
	ibfstages(ioptr, M, Utbl, Ustride, POW2(M-3), 1);	/*  RADIX 8 Stage	*/
}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, (%rsp)
movq %r8, %r13
movq %rdx, %r12
movq %rdi, %rbp
cmpq $0xb, %rsi
jae 0x24e83
movq %rbp, %rdi
movq %r12, %rdx
movq %r13, %r8
movq (%rsp), %r9
jmp 0x24eee
movq %rsi, 0x8(%rsp)
leaq -0x3(%rsi), %rbx
movq %rcx, 0x10(%rsp)
leaq (,%rcx,8), %r15
decq (%rsp)
xorl %r14d, %r14d
movq %r14, %rdi
movl %ebx, %ecx
shlq %cl, %rdi
shlq $0x4, %rdi
addq %rbp, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %r15, %rcx
movq %r13, %r8
movq (%rsp), %r9
callq 0x24e53
incq %r14
cmpq $0x8, %r14
jne 0x24ea0
movl $0x1, %r8d
movl %ebx, %ecx
shlq %cl, %r8
movl $0x1, %r9d
movq %rbp, %rdi
movq 0x8(%rsp), %rsi
movq %r12, %rdx
movq 0x10(%rsp), %rcx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x27149
// File: /workspace/github_cpp_makefile_star2_O3/Czxck001[P]algorithms/src/fft.cc
// Function: auto ifft<double>(std::vector<std::complex<double>, std::allocator<std::complex<double>>> const&)
auto ifft(const CVec<T> &X) {
  auto x0 = fft(X);
  auto x = x0;
  auto N = static_cast<T>(x.size());

  for (auto i = 1; i < N; i++) {
    x[i] = 1.0 / N * x0[N - i];
  }
  return x;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
leaq -0x40(%rbp), %r14
movq %r14, %rdi
callq 0x154c
leaq -0x28(%rbp), %rdi
movq %r14, %rsi
callq 0x19be
movq -0x28(%rbp), %rax
movq -0x20(%rbp), %rcx
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x4, %rdx
cmpq $0x2, %rdx
jb 0x196e
movq %rdx, %xmm1
punpckldq 0x750(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x758(%rip), %xmm1      # 0x2030
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movsd 0x724(%rip), %xmm3      # 0x2010
movapd %xmm3, %xmm1
divsd %xmm0, %xmm1
movl $0x18, %eax
movl $0x2, %ecx
movsd 0x712(%rip), %xmm2      # 0x2018
movapd %xmm0, %xmm4
subsd %xmm3, %xmm4
cvttsd2si %xmm4, %rdx
movq %rdx, %rsi
sarq $0x3f, %rsi
subsd %xmm2, %xmm4
cvttsd2si %xmm4, %rdi
andq %rsi, %rdi
orq %rdx, %rdi
movq -0x40(%rbp), %rdx
shlq $0x4, %rdi
movsd (%rdx,%rdi), %xmm3
mulsd %xmm1, %xmm3
movsd 0x8(%rdx,%rdi), %xmm4
mulsd %xmm1, %xmm4
movq -0x28(%rbp), %rdx
movsd %xmm3, -0x8(%rdx,%rax)
movsd %xmm4, (%rdx,%rax)
xorps %xmm3, %xmm3
cvtsi2sd %ecx, %xmm3
addq $0x10, %rax
incl %ecx
ucomisd %xmm3, %xmm0
ja 0x1906
movq -0x28(%rbp), %rax
movq -0x20(%rbp), %rcx
movq %rax, (%rbx)
movq %rcx, 0x8(%rbx)
movq -0x18(%rbp), %rax
movq %rax, 0x10(%rbx)
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x1992
movq -0x30(%rbp), %rsi
subq %rdi, %rsi
callq 0x10c0
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x19b6
movq -0x30(%rbp), %rsi
subq %rdi, %rsi
callq 0x10c0
movq %rbx, %rdi
callq 0x1100
// File: /workspace/github_cpp_makefile_star2_O3/estan[P]tsp/tsp.cpp
// Function: createDistanceMatrix(std::istream&)
Matrix<uint32_t> createDistanceMatrix(istream& in) {
    // Read vertex coordinates.
    size_t N;
    in >> N;
    vector<double> x(N);
    vector<double> y(N);
    for (size_t i = 0; i < N; ++i) {
        in >> x[i] >> y[i];
    }

    // Calculate distance matrix.
    Matrix<uint32_t> d(N, N);
    for (size_t i = 0; i < N; ++i) {
        for (size_t j = i + 1; j < N; ++j) {
            d[i][j] = d[j][i] = round(sqrt(pow(x[i]-x[j], 2) + pow(y[i]-y[j], 2)));
        }
    }

    return d;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %r14
movq %rdi, %r13
leaq 0x8(%rsp), %r15
movq %rsi, %rdi
movq %r15, %rsi
callq 0x20a0
movq (%r15), %rsi
leaq 0x80(%rsp), %rdi
leaq 0x68(%rsp), %rdx
callq 0x2a8c
movq (%r15), %rsi
leaq 0x68(%rsp), %rdi
leaq 0x14(%rsp), %rdx
callq 0x2a8c
cmpq $0x0, 0x8(%rsp)
je 0x247c
xorl %ebx, %ebx
xorl %r12d, %r12d
movq 0x80(%rsp), %rsi
addq %rbx, %rsi
movq %r14, %rdi
callq 0x20c0
movq 0x68(%rsp), %rsi
addq %rbx, %rsi
movq %rax, %rdi
callq 0x20c0
incq %r12
movq 0x8(%rsp), %rbp
addq $0x8, %rbx
cmpq %rbp, %r12
jb 0x2446
jmp 0x247e
xorl %ebp, %ebp
movq %rbp, %rsi
imulq %rbp, %rsi
leaq 0x14(%rsp), %rdx
movl $0x0, (%rdx)
leaq 0x7(%rsp), %rcx
movq %r13, %rdi
callq 0x3458
movq %rbp, 0x18(%r13)
movq %r13, 0x18(%rsp)
movq %rbp, 0x20(%r13)
movq 0x8(%rsp), %rcx
movq 0x68(%rsp), %r12
testq %rcx, %rcx
je 0x25bf
movabsq $0x100000000, %rbx      # imm = 0x100000000
movq 0x80(%rsp), %r13
movq 0x18(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x38(%rsp)
leaq (,%rbp,4), %rax
movq %rax, 0x30(%rsp)
xorl %eax, %eax
movq %rbx, 0x20(%rsp)
movq %rcx, 0x40(%rsp)
leaq 0x1(%rax), %r9
movq %r9, 0x28(%rsp)
cmpq %rcx, %r9
jae 0x25ac
movslq %eax, %r10
imulq 0x30(%rsp), %r10
movq 0x38(%rsp), %r9
addq %r9, %r10
movq %r10, 0x60(%rsp)
movsd (%r13,%rax,8), %xmm0
movsd %xmm0, 0x58(%rsp)
movsd (%r12,%rax,8), %xmm0
movsd %xmm0, 0x50(%rsp)
leaq (%r9,%rax,4), %rax
movq %rax, 0x48(%rsp)
movq 0x20(%rsp), %r15
movq 0x28(%rsp), %r14
movsd 0x58(%rsp), %xmm0
subsd (%r13,%r14,8), %xmm0
movsd 0x50(%rsp), %xmm1
subsd (%r12,%r14,8), %xmm1
mulsd %xmm0, %xmm0
mulsd %xmm1, %xmm1
addsd %xmm0, %xmm1
xorps %xmm0, %xmm0
sqrtsd %xmm1, %xmm0
callq 0x2080
cvttsd2si %xmm0, %rax
movq %r15, %rcx
sarq $0x20, %rcx
imulq %rbp, %rcx
movq 0x48(%rsp), %r9
movl %eax, (%r9,%rcx,4)
movq 0x40(%rsp), %rcx
movq 0x60(%rsp), %r9
movl %eax, (%r9,%r14,4)
incq %r14
addq %rbx, %r15
cmpq %rcx, %r14
jb 0x2549
addq %rbx, 0x20(%rsp)
movq 0x28(%rsp), %rax
cmpq %rcx, %rax
jne 0x24f5
testq %r12, %r12
je 0x25cc
movq %r12, %rdi
callq 0x2140
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
movq 0x18(%rsp), %rbx
je 0x25e3
callq 0x2140
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x25ff
movq %rax, %rbx
jmp 0x2611
movq %rax, %rbx
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x2611
callq 0x2140
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x2623
callq 0x2140
movq %rbx, %rdi
callq 0x21b0
// File: /workspace/github_cpp_makefile_star2_O3/estan[P]tsp/tsp.cpp
// Function: main
int main(int argc, char *argv[]) {

    // Approximate/print a TSP tour in ~1950 milliseconds.
    for (auto city : approximate(cin, now() + chrono::milliseconds(1950))) {
        cout << city << endl;
    }

    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
callq 0x2040
addq $0x743aa380, %rax       # imm = 0x743AA380
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq 0x4752(%rip), %rsi      # 0x6fe0
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x2ba5
movq (%r14), %rbx
movq 0x8(%r14), %r12
cmpq %r12, %rbx
je 0x28f1
movq 0x4722(%rip), %r14      # 0x6fd0
movzwl (%rbx), %esi
movq %r14, %rdi
callq 0x20d0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20e0
addq $0x2, %rbx
cmpq %r12, %rbx
jne 0x28ae
movq 0x10(%rsp), %rbx
testq %rbx, %rbx
je 0x28fe
movq %rbx, %rdi
callq 0x2140
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x291e
callq 0x2140
movq %rbx, %rdi
callq 0x21b0
// File: /workspace/github_cpp_makefile_star2_O3/estan[P]tsp/tsp.cpp
// Function: greedy(Matrix<unsigned int> const&)
inline vector<uint16_t> greedy(const Matrix<uint32_t>& d) {
    size_t N = d.rows();
    vector<uint16_t> tour(N);
    vector<bool> used(N, false);
    tour[0] = 0;
    used[0] = true;
    for (size_t i = 1; i < N; ++i) {
        // Find k, the closest city to the (i - 1):th city in tour.
        int32_t k = -1;
        for (uint16_t j = 0; j < N; ++j) {
            if (!used[j] && (k == -1 || d[tour[i-1]][j] < d[tour[i-1]][k])) {
                k = j;
            }
        }
        tour[i] = k;
        used[k] = true;
    }
    return tour;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x18(%rsi), %r15
leaq 0x10(%rsp), %rdx
movq %r15, %rsi
callq 0x2b1a
leaq 0x7(%rsp), %rdx
movb $0x0, (%rdx)
leaq 0x10(%rsp), %rdi
leaq 0x6(%rsp), %rcx
movq %r15, %rsi
callq 0x4ab8
movq %rbx, 0x8(%rsp)
movq (%rbx), %rax
movw $0x0, (%rax)
movq 0x10(%rsp), %rdi
orq $0x1, (%rdi)
cmpq $0x2, %r15
jb 0x3a6f
movl $0x1, %edx
movabsq $-0x8000000000000000, %rsi # imm = 0x8000000000000000
leaq 0x3f(%rsi), %r8
movq (%r14), %rcx
movq 0x20(%r14), %r9
leaq (,%r9,4), %r10
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
xorl %r12d, %r12d
movl %r12d, %r13d
shrl $0x3, %r13d
andl $0x1ff8, %r13d          # imm = 0x1FF8
movq (%rdi,%r13), %r13
btq %r12, %r13
jb 0x3a1c
cmpl $-0x1, %r11d
je 0x3a19
movzwl -0x2(%rax,%rdx,2), %r13d
movq %r9, %rbp
imulq %r13, %rbp
leaq (%rcx,%rbp,4), %rbp
imulq %r10, %r13
addq %rcx, %r13
movl (%r13,%r12,4), %r13d
movslq %r11d, %rbx
cmpl (%rbp,%rbx,4), %r13d
jae 0x3a1c
movl %r12d, %r11d
incq %r12
movzwl %r12w, %ebx
cmpq %rbx, %r15
ja 0x39d4
movw %r11w, (%rax,%rdx,2)
movslq %r11d, %rcx
leal 0x3f(%rcx), %r9d
testl %ecx, %ecx
cmovnsl %ecx, %r9d
sarl $0x6, %r9d
movslq %r9d, %r9
movq %rcx, %r10
andq %r8, %r10
xorl %r11d, %r11d
cmpq %rsi, %r10
setbe %r11b
movl $0x1, %r10d
shlq %cl, %r10
leaq (%rdi,%r9,8), %rcx
orq %r10, -0x8(%rcx,%r11,8)
incq %rdx
cmpq %r15, %rdx
jne 0x39bc
callq 0x2140
movq 0x8(%rsp), %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3a98
callq 0x2140
movq %r14, %rdi
callq 0x21b0
// File: /workspace/github_cpp_makefile_star2_O3/estan[P]tsp/tsp.cpp
// Function: doubleBridge(std::vector<unsigned short, std::allocator<unsigned short>> const&)
inline vector<uint16_t> doubleBridge(const vector<uint16_t>& tour) {
    const size_t N = tour.size();
    vector<uint16_t> newTour;
    newTour.reserve(N);
    uniform_int_distribution<size_t> randomOffset(1, N / 4);
    size_t A = randomOffset(rng);
    size_t B = A + randomOffset(rng);
    size_t C = B + randomOffset(rng);
    copy(tour.begin(), tour.begin() + A, back_inserter(newTour));
    copy(tour.begin() + C, tour.end(), back_inserter(newTour));
    copy(tour.begin() + B, tour.begin() + C, back_inserter(newTour));
    copy(tour.begin() + A, tour.begin() + B, back_inserter(newTour));
    return newTour;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rsi), %r15
subq (%rsi), %r15
sarq %r15
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq %r15, %rsi
callq 0x4be6
shrq $0x2, %r15
movq %rsp, %rdi
movq $0x1, (%rdi)
movq %r15, 0x8(%rdi)
leaq 0x3c1d(%rip), %rsi      # 0x8498
movq %rdi, %rdx
callq 0x4c76
movq %rax, %r15
leaq 0x3c0b(%rip), %rsi      # 0x8498
movq %rsp, %rdi
movq %rdi, %rdx
callq 0x4c76
movq %rax, %r12
leaq 0x3bf6(%rip), %rsi      # 0x8498
movq %rsp, %rdi
movq %rdi, %rdx
callq 0x4c76
movq %rax, %r13
movq (%r14), %rdi
leaq (%rdi,%r15,2), %rsi
movq %rbx, %rdx
callq 0x4e02
addq %r15, %r12
addq %r12, %r13
leaq (,%r13,2), %rdi
addq (%r14), %rdi
movq 0x8(%r14), %rsi
movq %rbx, %rdx
callq 0x4e02
movq (%r14), %rax
leaq (%rax,%r12,2), %rdi
leaq (%rax,%r13,2), %rsi
movq %rbx, %rdx
callq 0x4e02
movq (%r14), %rax
leaq (%rax,%r15,2), %rdi
leaq (%rax,%r12,2), %rsi
movq %rbx, %rdx
callq 0x4e02
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x4921
jmp 0x4921
jmp 0x4921
jmp 0x4921
jmp 0x4921
jmp 0x4921
jmp 0x4921
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x4931
callq 0x2140
movq %r14, %rdi
callq 0x21b0
// File: /workspace/github_cpp_makefile_star2_O3/iZhangHui[P]CppPrimer/CH16_TemplatesAndGenericProgramming/exercises/./ex16_12_13.h
// Function: bool operator==<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(BlobPtr<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&, BlobPtr<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&)
bool operator==(const BlobPtr<T>& lhs, const BlobPtr<T>& rhs)
{
	// std::shared_ptr<T> lock() const;(since C++11)
	// Creates a new std::shared_ptr that shares ownership of the managed object.
	// If there is no managed object, i.e. *this is empty, then the returned shared_ptr also is empty.
	// Effectively returns expired() ? shared_ptr<T>() : shared_ptr<T>(*this), executed atomically.
	return lhs.wptr.lock().get() == rhs.wptr.lock().get() && lhs.curr == rhs.curr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq 0x8(%rdi), %rbx
testq %rbx, %rbx
je 0x39ed
movl 0x8(%rbx), %eax
xorl %edx, %edx
testl %eax, %eax
je 0x39f3
leal 0x1(%rax), %ecx
lock
cmpxchgl %ecx, 0x8(%rbx)
jne 0x39d3
movl 0x8(%rbx), %eax
testl %eax, %eax
je 0x39ef
movq (%rdi), %rdx
jmp 0x39f5
xorl %ebx, %ebx
xorl %edx, %edx
jmp 0x39f5
xorl %ebx, %ebx
movq 0x8(%rsi), %rcx
testq %rcx, %rcx
je 0x3a1d
movl 0x8(%rcx), %eax
testl %eax, %eax
je 0x3a1d
leal 0x1(%rax), %r8d
lock
cmpxchgl %r8d, 0x8(%rcx)
jne 0x3a01
movl 0x8(%rcx), %eax
testl %eax, %eax
je 0x3a2e
movq (%rsi), %rax
jmp 0x3a30
movq 0x10(%rsi), %rax
xorq 0x10(%rdi), %rax
orq %rax, %rdx
sete %r14b
jmp 0x3a4a
xorl %eax, %eax
xorq %rax, %rdx
movq 0x10(%rsi), %rax
xorq 0x10(%rdi), %rax
orq %rdx, %rax
sete %r14b
movq %rcx, %rdi
callq 0x2f44
testq %rbx, %rbx
je 0x3a57
movq %rbx, %rdi
callq 0x2f44
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/iZhangHui[P]CppPrimer/CH16_TemplatesAndGenericProgramming/exercises/./ex16_12_13.h
// Function: BlobPtr<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::check(unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
std::shared_ptr<std::vector<T>> BlobPtr<T>::check(std::size_t i, const std::string& msg) const
{
	// is the vector still around?
	auto ret = wptr.lock();
	if (!ret)
		throw std::runtime_error("unbound StrBlobPtr");

	if (i >= ret->size())
		throw std::out_of_range(msg);

	// otherwise, return a shared_ptr to the vector
	return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %r14
movq %rdi, %rbx
callq 0x3a60
movq (%rbx), %rax
testq %rax, %rax
je 0x3ae4
movq 0x8(%rax), %rcx
subq (%rax), %rcx
sarq $0x5, %rcx
cmpq %r14, %rcx
jbe 0x3b10
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x2080
movq %rax, %r14
leaq 0x5da(%rip), %rsi       # 0x40d2
movq %rax, %rdi
callq 0x2060
movq 0x34a9(%rip), %rdx      # 0x6fb0
movq 0x34e2(%rip), %rsi      # 0x6ff0
jmp 0x3b36
movl $0x10, %edi
callq 0x2080
movq %rax, %r14
movq %rax, %rdi
movq %r15, %rsi
callq 0x2170
movq 0x3499(%rip), %rdx      # 0x6fc8
movq 0x349a(%rip), %rsi      # 0x6fd0
movq %r14, %rdi
callq 0x21b0
jmp 0x3b40
movq %rax, %r15
movq %r14, %rdi
callq 0x20d0
jmp 0x3b50
movq %rax, %r15
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x3b5e
callq 0x2f44
movq %r15, %rdi
callq 0x21d0
// File: /workspace/github_cpp_makefile_star2_O3/buildsi[P]ldaudit-yaml/auditlib.cpp
// Function: doPrint(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
static void doPrint(std::string output) {
  char * out = getenv("LDAUDIT_OUTFILE");
    
  // Open for append to write, and then close
  // This is obviously not ideal for many writes, but I don't
  // see an easy way to do this without having an exit function.
  if (out) {
     std::ofstream file;
     file.open(out, std::ios_base::app);
     if (!file) {
        printf("Error writing to output file.\n");
        exit (EXIT_FAILURE);
     }
     file << output;
     file.close();
  } else {
      std::cout << output;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x200, %rsp            # imm = 0x200
movq %rdi, %rbx
leaq 0x37e7(%rip), %rdi      # 0x6020
callq 0x2190
testq %rax, %rax
je 0x28c9
movq %rax, %r14
movq %rsp, %r15
movq %r15, %rdi
callq 0x2220
movq %r15, %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x2030
movq (%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x20(%rsp,%rax)
jne 0x28e8
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %rsp, %rdi
callq 0x2150
movq %rsp, %rdi
callq 0x21b0
movq 0x673e(%rip), %rax      # 0x8fd0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x8(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, (%rsp,%rcx)
callq 0x2100
leaq 0xf8(%rsp), %rdi
callq 0x2070
addq $0x200, %rsp            # imm = 0x200
popq %rbx
popq %r14
popq %r15
retq
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x6701(%rip), %rdi      # 0x8fd8
addq $0x200, %rsp            # imm = 0x200
popq %rbx
popq %r14
popq %r15
jmp 0x2150
leaq 0x3de5(%rip), %rdi      # 0x66d4
callq 0x21e0
movl $0x1, %edi
callq 0x2180
movq %rax, %rbx
movq %rsp, %rdi
callq 0x21c0
movq %rbx, %rdi
callq 0x2230
// File: /workspace/github_cpp_makefile_star2_O3/buildsi[P]ldaudit-yaml/auditlib.cpp
// Function: la_preinit
void la_preinit(uintptr_t *cookie) {
  std::stringstream ss;
  ss << cookie;   
  std::string output = "  - event: pre_init\n    function: la_preinit\n    initiated_by: " + ss.str() +"\n";
  doPrint(output);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x210, %rsp            # imm = 0x210
movq %rdi, %rbx
leaq 0x88(%rsp), %rdi
callq 0x20b0
leaq 0x98(%rsp), %rdi
movq %rbx, %rsi
callq 0x20e0
leaq 0xa0(%rsp), %rsi
leaq 0x68(%rsp), %rdi
callq 0x2200
leaq 0x3739(%rip), %rcx      # 0x608f
leaq 0x68(%rsp), %rdi
movl $0x3f, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x2140
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2991
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x2998
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x393f(%rip), %rsi      # 0x62fa
callq 0x2250
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x29e7
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x29ee
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x2a1d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a38
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0x2090
leaq 0x48(%rsp), %rdi
callq 0x2823
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x2a79
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a90
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x6521(%rip), %rsi      # 0x8fb8
leaq 0x88(%rsp), %rdi
callq 0x20d0
leaq 0x108(%rsp), %rdi
callq 0x2070
addq $0x210, %rsp            # imm = 0x210
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x2add
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x2add
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2b2f
movq 0x18(%rsp), %rsi
jmp 0x2b20
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x2b0d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x2b0d
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b2f
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x2b2f
jmp 0x2b2c
movq %rax, %rbx
movq 0x6482(%rip), %rsi      # 0x8fb8
leaq 0x88(%rsp), %rdi
callq 0x20d0
leaq 0x108(%rsp), %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x2230
// File: /workspace/github_cpp_makefile_star2_O3/buildsi[P]ldaudit-yaml/auditlib.cpp
// Function: la_objclose
unsigned int la_objclose (uintptr_t *cookie) {
  std::stringstream ss;
  ss << cookie;

  std::string output = "  - event: object_closed\n    function: la_objclose\n    identifier: " + ss.str() + "\n";
  doPrint(output);
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x210, %rsp            # imm = 0x210
movq %rdi, %rbx
leaq 0x88(%rsp), %rdi
callq 0x20b0
leaq 0x98(%rsp), %rdi
movq %rbx, %rsi
callq 0x20e0
leaq 0xa0(%rsp), %rsi
leaq 0x68(%rsp), %rdi
callq 0x2200
leaq 0x21fd(%rip), %rcx      # 0x6522
leaq 0x68(%rsp), %rdi
movl $0x43, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x2140
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4360
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x4367
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x1f70(%rip), %rsi      # 0x62fa
callq 0x2250
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x43b6
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x43bd
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x43ec
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4407
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2130
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0x2090
leaq 0x48(%rsp), %rdi
callq 0x2823
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x4448
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x445f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2130
movq 0x4b52(%rip), %rsi      # 0x8fb8
leaq 0x88(%rsp), %rdi
callq 0x20d0
leaq 0x108(%rsp), %rdi
callq 0x2070
xorl %eax, %eax
addq $0x210, %rsp            # imm = 0x210
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x44ae
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x44ae
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4500
movq 0x18(%rsp), %rsi
jmp 0x44f1
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x44de
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x44de
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4500
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x4500
jmp 0x44fd
movq %rax, %rbx
movq 0x4ab1(%rip), %rsi      # 0x8fb8
leaq 0x88(%rsp), %rdi
callq 0x20d0
leaq 0x108(%rsp), %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x2230
// File: /workspace/github_cpp_makefile_star2_O3/arinaschwartz[P]KNN-MNIST/MNISTImageImpls.cpp
// Function: ArrayMNISTImage::distance(MNISTImage const*) const
double ArrayMNISTImage::distance(const MNISTImage *img) const
{
    const ArrayMNISTImage *arrayimg = dynamic_cast<const ArrayMNISTImage*>(img);
    double squared_distance = 0;
    double first_image_point;
    double second_image_point;
    double diff;

    for(uint32 i = 0; i < size; i++){
        first_image_point = this->data[i];
        second_image_point = arrayimg->data[i];
        diff = first_image_point - second_image_point;
        squared_distance += (diff*diff);
    }
	return sqrt(squared_distance);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
testq %rsi, %rsi
je 0x2bfa
leaq 0x4024(%rip), %rax      # 0x6c08
leaq 0x407d(%rip), %rdx      # 0x6c68
movq %rsi, %rdi
movq %rax, %rsi
xorl %ecx, %ecx
callq 0x21c0
jmp 0x2bfc
xorl %eax, %eax
movl 0x18(%rbx), %ecx
xorpd %xmm1, %xmm1
xorpd %xmm0, %xmm0
testq %rcx, %rcx
je 0x2c40
movq 0x10(%rbx), %rdx
movq 0x10(%rax), %rax
xorl %esi, %esi
movzbl (%rdx,%rsi), %edi
xorps %xmm2, %xmm2
cvtsi2sd %edi, %xmm2
movzbl (%rax,%rsi), %edi
xorps %xmm3, %xmm3
cvtsi2sd %edi, %xmm3
subsd %xmm3, %xmm2
mulsd %xmm2, %xmm2
addsd %xmm2, %xmm0
incq %rsi
cmpq %rsi, %rcx
jne 0x2c16
ucomisd %xmm1, %xmm0
jb 0x2c4c
sqrtsd %xmm0, %xmm0
popq %rbx
retq
popq %rbx
jmp 0x2150
// File: /workspace/github_cpp_makefile_star2_O3/arinaschwartz[P]KNN-MNIST/MNISTImageImpls.cpp
// Function: FullArrayMNISTImage::FullArrayMNISTImage(unsigned char*, unsigned int, unsigned char)
FullArrayMNISTImage::FullArrayMNISTImage(uint8 data[], uint32 size, uint8 label):
		ArrayMNISTImage(label)
{
    
    this->data = new uint8[size];
    for(uint32 i = 0; i < size; i++){
        this->data[i] = data[i];
    }

    this->size = size;
    this->label = label;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ebp
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %rbx
movl %ecx, %esi
callq 0x2b4c
movq $0x0, 0x10(%rbx)
movl $0x0, 0x18(%rbx)
leaq 0x4066(%rip), %rax      # 0x6ce8
movq %rax, (%rbx)
movl %r14d, %r12d
movq %r12, %rdi
callq 0x2030
movq %rax, 0x10(%rbx)
testl %r14d, %r14d
je 0x2cae
xorl %eax, %eax
movb (%r15,%rax), %cl
movq 0x10(%rbx), %rdx
movb %cl, (%rdx,%rax)
incq %rax
cmpq %rax, %r12
jne 0x2c9b
movl %r14d, 0x18(%rbx)
movb %bpl, 0x8(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x2b5c
movq %r14, %rdi
callq 0x2280
// File: /workspace/github_cpp_makefile_star2_O3/arinaschwartz[P]KNN-MNIST/MNISTImageImpls.cpp
// Function: DownsampleMNISTImage::DownsampleMNISTImage(unsigned char*, unsigned int, unsigned char, unsigned int)
DownsampleMNISTImage::DownsampleMNISTImage(uint8 data[], uint32 size, uint8 label, uint32 factor):
		ArrayMNISTImage(label)
{
    uint32 new_size = size/factor;
	this->data = new uint8[new_size];
    for(uint32 i = 0; i < size; i++){
        if(i % factor == 0){
            this->data[i/factor] = data[i];
        }
    }
    this->size = new_size;
    this->label = label;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %r14d
movl %ecx, %ebp
movl %edx, %r13d
movq %rsi, %r15
movq %rdi, %rbx
movl %ecx, %esi
callq 0x2b4c
movq $0x0, 0x10(%rbx)
movl $0x0, 0x18(%rbx)
leaq 0x4008(%rip), %rax      # 0x6d10
movq %rax, (%rbx)
movl %r13d, %eax
xorl %edx, %edx
divl %r14d
movl %eax, %r12d
movq %r12, %rdi
callq 0x2030
movq %rax, 0x10(%rbx)
testl %r13d, %r13d
je 0x2d4c
movl %r13d, %esi
xorl %ecx, %ecx
movl %ecx, %eax
xorl %edx, %edx
divl %r14d
testl %edx, %edx
jne 0x2d44
movb (%r15,%rcx), %dl
movq 0x10(%rbx), %rdi
movl %eax, %eax
movb %dl, (%rdi,%rax)
incq %rcx
cmpq %rcx, %rsi
jne 0x2d2c
movl %r12d, 0x18(%rbx)
movb %bpl, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x2b5c
movq %r14, %rdi
callq 0x2280
// File: /workspace/github_cpp_makefile_star2_O3/arinaschwartz[P]KNN-MNIST/MNISTImageImpls.cpp
// Function: ScaledMNISTImage::ScaledMNISTImage(unsigned char*, unsigned int, unsigned int, unsigned char, unsigned int)
ScaledMNISTImage::ScaledMNISTImage(uint8 data[], uint32 numRows, uint32 numCols, uint8 label, uint32 factor):
		ArrayMNISTImage(label)
{
    uint32 newNumRows = numRows/factor;
    uint32 newNumCols = numCols/factor;
    this->data = new uint8[newNumRows*newNumCols];
    for(uint32 i = 0; i < numRows; i++){
        for(uint32 j = 0; j < numCols; j++){
            this->data[(i/factor)*newNumRows + (j/factor)] +=
                        (data[(i * numRows) + j])/(factor*factor);
        }
    }
    this->size = newNumRows*newNumCols;
    this->label = label;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, %r14d
movl %ecx, %ebp
movl %edx, %r12d
movq %rsi, %r13
movq %rdi, %rbx
movl %r8d, 0x8(%rsp)
movl %r8d, %esi
callq 0x2b4c
movq $0x0, 0x10(%rbx)
movl $0x0, 0x18(%rbx)
leaq 0x3f83(%rip), %rax      # 0x6d38
movq %rax, (%rbx)
movl %r12d, %eax
xorl %edx, %edx
divl %r14d
movl %eax, %ecx
movl %ebp, 0x4(%rsp)
movl %ebp, %eax
xorl %edx, %edx
divl %r14d
movl %ecx, 0xc(%rsp)
imull %ecx, %eax
movq %rax, 0x10(%rsp)
movq %rax, %rdi
callq 0x2030
movq %rax, 0x10(%rbx)
testl %r12d, %r12d
je 0x2e48
movl %r14d, %r9d
imull %r14d, %r9d
movl 0x4(%rsp), %r10d
movl %r12d, %r11d
xorl %ebp, %ebp
xorl %ecx, %ecx
cmpl $0x0, 0x4(%rsp)
je 0x2e3e
movl %ecx, %eax
xorl %edx, %edx
divl %r14d
movl %eax, %esi
imull 0xc(%rsp), %esi
xorl %edi, %edi
leal (%rdi,%rbp), %eax
movzbl (%r13,%rax), %eax
xorl %edx, %edx
divl %r9d
movl %eax, %r8d
movq 0x10(%rbx), %r15
movl %edi, %eax
xorl %edx, %edx
divl %r14d
addl %esi, %eax
addb %r8b, (%r15,%rax)
incq %rdi
cmpq %rdi, %r10
jne 0x2e14
incl %ecx
addq %r11, %rbp
cmpl %r12d, %ecx
jne 0x2dfd
movq 0x10(%rsp), %rax
movl %eax, 0x18(%rbx)
movl 0x8(%rsp), %eax
movb %al, 0x8(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x2b5c
movq %r14, %rdi
callq 0x2280
nop
// File: /workspace/github_cpp_makefile_star2_O3/arinaschwartz[P]KNN-MNIST/MNISTImageImpls.cpp
// Function: SumMNISTImage::SumMNISTImage(unsigned char*, unsigned int, unsigned char)
SumMNISTImage::SumMNISTImage(uint8 data[], uint32 size, uint8 label):
		MNISTImage(label)
{
	uint32 sum = 0;
    for(uint32 i = 0; i < size; i++){
        sum += data[i];
    }
    this->sum = sum;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movl %ecx, %esi
callq 0x2b4c
leaq 0x3dfc(%rip), %rax      # 0x6c90
movq %rax, (%rbx)
testl %ebp, %ebp
je 0x2eb2
movl %ebp, %eax
xorl %edx, %edx
xorl %ecx, %ecx
movzbl (%r14,%rdx), %esi
addl %esi, %ecx
incq %rdx
cmpq %rdx, %rax
jne 0x2ea1
jmp 0x2eb4
xorl %ecx, %ecx
movl %ecx, 0xc(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/arinaschwartz[P]KNN-MNIST/MNISTImageImpls.cpp
// Function: SumMNISTImage::distance(MNISTImage const*) const
double SumMNISTImage::distance(const MNISTImage *img) const
{
    const SumMNISTImage *arrayimg = dynamic_cast<const SumMNISTImage*>(img);
    double first_image_sum = this->sum;
    double second_image_sum = arrayimg->sum;
    double diff = first_image_sum - second_image_sum;
    double distance = sqrt((diff*diff));

	return distance;

}

// Assembly:
pushq %rbx
movq %rsi, %rax
movq %rdi, %rbx
leaq 0x3d3e(%rip), %rsi      # 0x6c08
leaq 0x3dd7(%rip), %rdx      # 0x6ca8
movq %rax, %rdi
xorl %ecx, %ecx
callq 0x21c0
movl 0xc(%rbx), %ecx
cvtsi2sd %rcx, %xmm0
movl 0xc(%rax), %eax
cvtsi2sd %rax, %xmm1
subsd %xmm1, %xmm0
mulsd %xmm0, %xmm0
sqrtsd %xmm0, %xmm0
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/rellla[P]E3DC-Rscp/RscpMain.cpp
// Function: showhelp(char*)
void showhelp(char *prog)
{
    printf("Usage:\n");
    printf("%s [-hebts] [-w 0|1]\n", prog);
    printf("  --help, -h         \tshows this help\n");
    printf("  --battery, -b      \tshows battery details\n");
    printf("  --ems, -e          \tshows ems details\n");
    printf("  --time, -t         \tshows idle periods\n");
    printf("  --settime, -s      \tsets idle periods (currently hardcoded values)\n");
    printf("  --weather, -w      \tsets weather enable option [on|off]\n");
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0xc6d6(%rip), %rdi      # 0x106de
callq 0x21c0
leaq 0xc4a5(%rip), %rdi      # 0x104b9
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2040
leaq 0xc6c0(%rip), %rdi      # 0x106e5
callq 0x21c0
leaq 0xc6da(%rip), %rdi      # 0x1070b
callq 0x21c0
leaq 0xc6fa(%rip), %rdi      # 0x10737
callq 0x21c0
leaq 0xc716(%rip), %rdi      # 0x1075f
callq 0x21c0
leaq 0xc733(%rip), %rdi      # 0x10788
callq 0x21c0
leaq 0xc76c(%rip), %rdi      # 0x107cd
popq %rbx
jmp 0x21c0
// File: /workspace/github_cpp_makefile_star2_O3/rellla[P]E3DC-Rscp/RscpProtocol.cpp
// Function: RscpProtocol::calculateCRC32(unsigned char const*, unsigned short)
uint32_t RscpProtocol::calculateCRC32(const uint8_t *data, uint16_t length) {
    static const uint32_t crc_table[] = {
      0x4DBDF21C, 0x500AE278, 0x76D3D2D4, 0x6B64C2B0,
      0x3B61B38C, 0x26D6A3E8, 0x000F9344, 0x1DB88320,
      0xA005713C, 0xBDB26158, 0x9B6B51F4, 0x86DC4190,
      0xD6D930AC, 0xCB6E20C8, 0xEDB71064, 0xF0000000
    };
	uint32_t crc = 0;
    for(uint32_t n = 0; n < length; n++) {
        crc = (crc >> 4) ^ crc_table[(crc ^ (data[n] >> 0)) & 0x0F];  /* lower nibble */
        crc = (crc >> 4) ^ crc_table[(crc ^ (data[n] >> 4)) & 0x0F];  /* upper nibble */
	}
	return crc;
}

// Assembly:
testl %edx, %edx
je 0x4a7b
movzwl %dx, %ecx
xorl %edx, %edx
leaq 0xbeae(%rip), %rdi      # 0x108f0
xorl %r8d, %r8d
movzbl (%rsi,%rdx), %r9d
xorl %r8d, %r9d
movl %r9d, %eax
andl $0xf, %eax
movl (%rdi,%rax,4), %eax
shrl $0x8, %r8d
shrl $0x4, %r9d
xorl %eax, %r9d
shrl $0x4, %eax
xorl %r8d, %eax
andl $0xf, %r9d
xorl (%rdi,%r9,4), %eax
incq %rdx
movl %eax, %r8d
cmpq %rdx, %rcx
jne 0x4a45
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/rellla[P]E3DC-Rscp/RscpProtocol.cpp
// Function: RscpProtocol::getFrameLength(unsigned char const*, unsigned int const&)
int32_t RscpProtocol::getFrameLength(const uint8_t * data, const uint32_t & length) {
	// validate input
	if(data == NULL) {
		return RSCP::ERR_INVALID_INPUT;
	}
	// first the length must at least be of the header size
	if(length < sizeof(SRscpFrameHeader)) {
		return RSCP::ERR_INVALID_FRAME_LENGTH;
	}
	// check the header information for length
	SRscpFrameHeader *header = reinterpret_cast<SRscpFrameHeader *> ((uint8_t*)data);

	if(header->magic != RSCP::MAGIC) {
		return RSCP::ERR_INVALID_MAGIC;
	}
	// check the frame version number
	if(header->ctrl.bits.version != RSCP::VERSION) {
		return RSCP::ERR_PROT_VERSION_MISMATCH;
	}
	// calculate the expected frame length
	int32_t frameLength = sizeof(SRscpFrameHeader) + header->dataLength + ((header->ctrl.bits.crc != 0) ? sizeof(uint32_t) : 0);
	return frameLength;
}

// Assembly:
testq %rsi, %rsi
je 0x4ac2
movl $0xfffffffb, %eax       # imm = 0xFFFFFFFB
cmpl $0x12, (%rdx)
jb 0x4ac1
movl $0xfffffffd, %eax       # imm = 0xFFFFFFFD
cmpw $0xdce3, (%rsi)         # imm = 0xDCE3
jne 0x4ac1
movzwl 0x2(%rsi), %ecx
movl %ecx, %edx
andl $0xf00, %edx            # imm = 0xF00
movl $0xfffffffc, %eax       # imm = 0xFFFFFFFC
cmpl $0x100, %edx            # imm = 0x100
jne 0x4ac1
movzwl 0x10(%rsi), %eax
shrl $0xa, %ecx
andl $0x4, %ecx
addl %ecx, %eax
addl $0x12, %eax
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
// File: /workspace/github_cpp_makefile_star2_O3/rellla[P]E3DC-Rscp/RscpProtocol.cpp
// Function: RscpProtocol::createFrameAsBuffer(SRscpFrameBuffer*, unsigned char const*, unsigned short, bool)
int32_t RscpProtocol::createFrameAsBuffer(SRscpFrameBuffer* frameBuffer, const uint8_t * data, uint16_t dataLength, bool calcCRC) {
	if(frameBuffer == NULL) {
		return RSCP::ERR_INVALID_INPUT;
	}
	// calculate the required frame size
	size_t sFrameSize =  sizeof(SRscpFrameHeader);
	// allocate the required memory
	frameBuffer->data = (uint8_t *) malloc(sFrameSize + dataLength + (calcCRC ? 4 : 0));
	if(frameBuffer->data == NULL) {
		return RSCP::ERR_NO_MEMORY;
	}
	// set the memory size
	frameBuffer->dataLength = sFrameSize + dataLength + (calcCRC ? 4 : 0);
	// set initial header values
	memset(frameBuffer->data, 0, sizeof(SRscpFrameHeader));
	SRscpFrame* tmpFrame = reinterpret_cast<SRscpFrame*>(frameBuffer->data);
	tmpFrame->header.magic = RSCP::MAGIC;
	tmpFrame->header.ctrl.bits.crc = calcCRC;
	tmpFrame->header.ctrl.bits.version = RSCP::VERSION;
	tmpFrame->header.dataLength = dataLength;
	setHeaderTimestamp(tmpFrame);

	// insert data from the SRscpValues
	memcpy(&tmpFrame->header + 1, data, dataLength);

	// calculate CRC if necessary and add to the frame
	if(calcCRC) {
		uint32_t uCRC32 = calculateCRC32(frameBuffer->data, frameBuffer->dataLength - sizeof(uint32_t));
		memcpy(&frameBuffer->data[frameBuffer->dataLength - sizeof(uCRC32)], &uCRC32, sizeof(uCRC32));
	}

	return RSCP::OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
testq %rsi, %rsi
je 0x4b94
movl %ecx, %ebp
movq %rsi, %rbx
movq %rdx, (%rsp)
movzwl %bp, %r12d
movzbl %r8b, %r14d
leaq (%r12,%r14,4), %r15
addq $0x12, %r15
movq %r15, %rdi
callq 0x2190
movq %rax, (%rbx)
testq %rax, %rax
je 0x4b9c
movq %rax, %r13
movl %r15d, 0x8(%rbx)
movl $0x0, 0xc(%rax)
movq $0x0, 0x4(%rax)
movw $0xdce3, (%rax)         # imm = 0xDCE3
movl %r14d, %eax
shll $0xc, %eax
orl $0x100, %eax            # imm = 0x100
movw %ax, 0x2(%r13)
movw %bp, 0x10(%r13)
xorl %r15d, %r15d
leaq 0x8(%rsp), %rbp
movq %rbp, %rdi
xorl %esi, %esi
callq 0x2200
movq (%rbp), %rax
movq %rax, 0x4(%r13)
imull $0x3e8, 0x8(%rbp), %eax # imm = 0x3E8
movl %eax, 0xc(%r13)
addq $0x12, %r13
movq %r13, %rdi
movq (%rsp), %rsi
movq %r12, %rdx
callq 0x20f0
testb %r14b, %r14b
je 0x4ba2
movq (%rbx), %r14
movl 0x8(%rbx), %ebx
leal -0x4(%rbx), %eax
movzwl %ax, %edx
movq %r14, %rsi
callq 0x4a32
movl %eax, -0x4(%r14,%rbx)
jmp 0x4ba2
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
jmp 0x4ba2
movl $0xfffffffe, %r15d      # imm = 0xFFFFFFFE
movl %r15d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/rellla[P]E3DC-Rscp/RscpProtocol.cpp
// Function: RscpProtocol::createFrame(SRscpFrame*, std::vector<SRscpValue, std::allocator<SRscpValue>> const&, bool)
int32_t RscpProtocol::createFrame(SRscpFrame* frame, const std::vector<SRscpValue> & data, bool calcCRC) {
	if(frame == NULL) {
		return RSCP::ERR_INVALID_INPUT;
	}

	// set frame edge values
	memset(&frame->header, 0, sizeof(frame->header));
	frame->header.magic = RSCP::MAGIC;
	frame->header.ctrl.bits.crc = calcCRC;
	frame->header.ctrl.bits.version = RSCP::VERSION;
	setHeaderTimestamp(frame);
	frame->data = data;

	// calculate the data length
	for(size_t i = 0; i < data.size(); ++i) {
		frame->header.dataLength += sizeof(SRscpValue) - sizeof(data[i].data) + data[i].length;
	}

	// in case the CRC has to be calculated we need to generate a new frame buffer which then calculates the CRC
	if(calcCRC) {
		SRscpFrameBuffer frameBuffer;
		int32_t iResult = createFrameAsBuffer(&frameBuffer, *frame, calcCRC);
		if(iResult != RSCP::OK) {
			return iResult;
		}
		// get the CRC from the frame buffer
		memcpy(&frame->CRC, &frameBuffer.data + frameBuffer.dataLength - sizeof(frame->CRC), sizeof(frame->CRC));
		// free the buffer data again
		destroyFrameData(frameBuffer);
	}
	return RSCP::OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
testq %rsi, %rsi
je 0x5062
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rsi)
movw $0x0, 0x10(%rsi)
movw $0xdce3, (%rsi)         # imm = 0xDCE3
movzbl %bpl, %eax
shll $0xc, %eax
orl $0x100, %eax            # imm = 0x100
movw %ax, 0x2(%rsi)
xorl %ebx, %ebx
movq %rsp, %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x2200
movq (%r12), %rax
movq %rax, 0x4(%r14)
imull $0x3e8, 0x8(%r12), %eax # imm = 0x3E8
movl %eax, 0xc(%r14)
leaq 0x18(%r14), %rdi
movq %r15, %rsi
callq 0x5914
movq (%r15), %rax
movq 0x8(%r15), %rcx
subq %rax, %rcx
je 0x5045
movabsq $-0x1111111111111111, %rdx # imm = 0xEEEEEEEEEEEEEEEF
imulq %rdx, %rcx
movzwl 0x10(%r14), %edx
cmpq $0x1, %rcx
adcq $0x0, %rcx
addq $0x5, %rax
addw (%rax), %dx
addl $0x7, %edx
addq $0xf, %rax
decq %rcx
jne 0x5031
movw %dx, 0x10(%r14)
testb %bpl, %bpl
je 0x5067
movq %rsp, %rsi
movq %r14, %rdx
movl $0x1, %ecx
callq 0x4dc0
testl %eax, %eax
je 0x5076
movl %eax, %ebx
jmp 0x5067
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl 0x8(%rsp), %eax
movl -0x20(%rsp,%rax,8), %eax
movl %eax, 0x30(%r14)
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x5067
callq 0x2180
jmp 0x5067
// File: /workspace/github_cpp_makefile_star2_O3/rellla[P]E3DC-Rscp/RscpProtocol.cpp
// Function: RscpProtocol::allocateMemory(SRscpValue*, unsigned long)
bool RscpProtocol::allocateMemory(SRscpValue* value, size_t size)  {
	// sanity check
	if(value == NULL) {
		return false;
	}
	// if no data is allocated yet -> allocate full size
	if(value->data == NULL) {
		if(size == 0) {
			return true;
		}
		value->data = (uint8_t *) malloc(size);
		return (value->data != NULL);
	}
	else {
		// if data is already allocated -> reallocate to the correct size
		uint8_t *ucTmp = (uint8_t *) realloc(value->data, size);
		if(ucTmp != NULL) {
			value->data = ucTmp;
			return true;
		}
	}
	return false;
}

// Assembly:
testq %rsi, %rsi
je 0x50b7
pushq %rbx
movq %rsi, %rbx
movq 0x7(%rsi), %rdi
testq %rdi, %rdi
je 0x50ba
movq %rdx, %rsi
callq 0x2220
testq %rax, %rax
je 0x50d7
movq %rax, 0x7(%rbx)
jmp 0x50d3
xorl %eax, %eax
retq
testq %rdx, %rdx
je 0x50d3
movq %rdx, %rdi
callq 0x2190
movq %rax, 0x7(%rbx)
testq %rax, %rax
setne %al
jmp 0x50d9
movb $0x1, %al
jmp 0x50d9
xorl %eax, %eax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/rellla[P]E3DC-Rscp/RscpProtocol.cpp
// Function: RscpProtocol::parseData(unsigned char const*, unsigned int const&, std::vector<SRscpValue, std::allocator<SRscpValue>>&)
int32_t RscpProtocol::parseData(const uint8_t* data, const uint32_t & length, std::vector<SRscpValue> & vecValues) {
	// sanity check
	if(data == NULL) {
		return RSCP::ERR_INVALID_INPUT;
	}
	// start parsing
	uint32_t uiPos = 0;
	SRscpValue * value = reinterpret_cast<SRscpValue *>(((uint8_t*)data) + uiPos);

	// check the boundaries of the buffer
	while((uiPos < length) && ((uiPos + value->length) <= length)) {
		// parse the data
		SRscpValue newVal;
		newVal.tag = value->tag;
		newVal.dataType = value->dataType;
		newVal.length = value->length;
		if(value->length > 0) {
			// allocate data memory for each value separately
			newVal.data = (uint8_t *) malloc(value->length);
			if(newVal.data == NULL) {
				// not enough memory, return only what parsed until now
				destroyValueData(vecValues);
				return RSCP::ERR_NO_MEMORY;
			}
			memcpy(newVal.data, &value->data, value->length);
		}
		else {
			// set NULL pointer as no data is in this tag
			newVal.data = NULL;
		}
		//push new value to the return vector
		vecValues.push_back(newVal);
		// increment value pointer
		uiPos += sizeof(SRscpValue) - sizeof(newVal.data) + value->length;
		value =  reinterpret_cast<SRscpValue *>(((uint8_t*)data) + uiPos);
	}

	// return all collected values
	return uiPos;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
testq %rsi, %rsi
je 0x52af
movq %rdx, %r15
movl (%rdx), %eax
testl %eax, %eax
je 0x52b6
movq %rcx, %r14
movq %rsi, %r13
xorl %ebx, %ebx
movq %rsi, %r12
movzwl 0x5(%r12), %ebp
leal (%rbx,%rbp), %ecx
cmpl %eax, %ecx
ja 0x52c7
movl (%r12), %eax
movl %eax, 0x8(%rsp)
movb 0x4(%r12), %al
movb %al, 0xc(%rsp)
movw %bp, 0xd(%rsp)
testw %bp, %bp
je 0x525b
movq %rbp, %rdi
callq 0x2190
movq %rax, 0xf(%rsp)
testq %rax, %rax
je 0x52ba
leaq 0x7(%r12), %rsi
movq %rax, %rdi
movq %rbp, %rdx
callq 0x20f0
jmp 0x5264
movq $0x0, 0xf(%rsp)
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0x5286
movq 0x8(%rsp), %rax
movq 0xf(%rsp), %rcx
movq %rcx, 0x7(%rsi)
movq %rax, (%rsi)
addq $0xf, 0x8(%r14)
jmp 0x5293
movq %r14, %rdi
leaq 0x8(%rsp), %rdx
callq 0x5a24
movzwl 0x5(%r12), %eax
addl %eax, %ebx
addl $0x7, %ebx
leaq (%rbx,%r13), %r12
movl (%r15), %eax
cmpl %eax, %ebx
jb 0x520b
jmp 0x52c7
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0x52c7
xorl %ebx, %ebx
jmp 0x52c7
movq %r14, %rsi
callq 0x52d8
movl $0xfffffffe, %ebx       # imm = 0xFFFFFFFE
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/rellla[P]E3DC-Rscp/RscpProtocol.cpp
// Function: RscpProtocol::destroyValueData(std::vector<SRscpValue, std::allocator<SRscpValue>>&)
int32_t RscpProtocol::destroyValueData(std::vector<SRscpValue> & value) {
	for(size_t i = 0; i < value.size(); ++i) {
		destroyValueData(value[i]);
	}
	value.clear();
	return RSCP::OK;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq (%rsi), %r14
movq 0x8(%rsi), %rax
cmpq %r14, %rax
je 0x5336
movl $0x7, %r15d
xorl %r12d, %r12d
movabsq $-0x1111111111111111, %r13 # imm = 0xEEEEEEEEEEEEEEEF
movq (%r14,%r15), %rdi
testq %rdi, %rdi
je 0x5320
callq 0x2180
movq $0x0, (%r14,%r15)
movq (%rbx), %r14
movq 0x8(%rbx), %rax
incq %r12
movq %rax, %rcx
subq %r14, %rcx
imulq %r13, %rcx
addq $0xf, %r15
cmpq %rcx, %r12
jb 0x5303
cmpq %r14, %rax
je 0x533f
movq %r14, 0x8(%rbx)
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop