LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/lvandeve[P]base256/base256.cpp
// Function: Binary::decode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::string decode(const std::string& s) {
    std::string result;
    int count = 0;
    int val = 0;
    for(size_t i = 0; i < s.size(); i++) {
      char c = s[i];
      if(c != '0' && c != '1') continue;
      if(lsb_first) {
        val |= (c == '1' ? 1 : 0) << count;
      } else {
        val <<= 1;
        val |= (c == '1' ? 1 : 0);
      }
      count++;
      if(count == 8) {
        count = 0;
        char c2 = val;
        result += c2;
        val = 0;
      }
    }
    if(count != 0) {
      char c2 = val;
      result += c2;
    }
    return result;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %r13
movq %r13, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
xorl %r14d, %r14d
cmpq $0x0, 0x8(%rdx)
je 0xd858
movq %rdx, %r15
movq %rsi, %r12
xorl %eax, %eax
xorl %ebp, %ebp
movq (%r15), %rcx
movb (%rcx,%rbp), %cl
leal -0x32(%rcx), %edx
cmpb $-0x2, %dl
jb 0xd844
cmpb $0x1, 0x9(%r12)
jne 0xd820
xorl %edx, %edx
cmpb $0x31, %cl
sete %dl
movl %r14d, %ecx
shll %cl, %edx
orl %edx, %eax
jmp 0xd82b
xorl %edx, %edx
cmpb $0x31, %cl
sete %dl
leal (%rdx,%rax,2), %eax
incl %r14d
cmpl $0x8, %r14d
jne 0xd844
xorl %r14d, %r14d
movsbl %al, %esi
movq %rbx, %rdi
callq 0x51f0
xorl %eax, %eax
incq %rbp
cmpq 0x8(%r15), %rbp
jb 0xd7f9
testl %r14d, %r14d
sete %cl
movl %eax, %r14d
jmp 0xd85a
movb $0x1, %cl
testb %cl, %cl
jne 0xd86a
movsbl %r14b, %esi
movq %rbx, %rdi
callq 0x51f0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xd87e
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r13, %rdi
je 0xd88e
callq 0x5210
movq %r14, %rdi
callq 0x53e0
// File: /workspace/github_cpp_makefile_star2_O1/isaacbrodsky[P]K-means-plus-plus/main.cpp
// Function: main
int main(int argc, char *argv[]) {

	// local variables
	Cluster_set clCluster_set_instance;

	// check if there are any command line arguments
	if (argc < 2) { // missing input argument
		cout << "No control file specified" << endl << endl;
		cout << "Required input format is: k-means++ <control file name>" << endl << endl;
		return 1;
	}
	else { // input argument present
		// read the parameter data from the input file
		clCluster_set_instance.Read_control_data(argv[1]);

		// start the clustering program
		clCluster_set_instance.Execute_clustering();
	} // if

	return 0;  // that's all folks
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x1460, %rsp           # imm = 0x1460
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x28(%rsp), %rdi
callq 0x3a9e
cmpl $0x1, %ebp
jg 0x3796
movq 0x890a(%rip), %rbx      # 0xbfc0
leaq 0x4947(%rip), %rsi      # 0x8004
movl $0x19, %edx
movq %rbx, %rdi
callq 0x3330
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x32d0
movsbl %al, %esi
movq 0x88d8(%rip), %rdi      # 0xbfc0
callq 0x3030
movq %rax, %rdi
callq 0x31e0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31e0
movq 0x889a(%rip), %rbx      # 0xbfc0
leaq 0x48f1(%rip), %rsi      # 0x801e
movl $0x37, %edx
movq %rbx, %rdi
callq 0x3330
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x32d0
movsbl %al, %esi
movq 0x8868(%rip), %rdi      # 0xbfc0
callq 0x3030
movq %rax, %rdi
callq 0x31e0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movl $0x1, %ebx
movq %rax, %rdi
callq 0x31e0
jmp 0x37df
movq 0x8(%rbx), %rsi
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x3884
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x3ca0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x37d3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32f0
xorl %ebx, %ebx
leaq 0x28(%rsp), %rdi
callq 0x402e
leaq 0xa8(%rsp), %r14
movq %r14, %rdi
callq 0x3914
movq -0x28(%r14), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x3810
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x32f0
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x382b
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x32f0
leaq 0x40(%rsp), %rdi
callq 0x3944
leaq 0x28(%rsp), %rdi
callq 0x3944
movl %ebx, %eax
addq $0x1460, %rsp           # imm = 0x1460
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3872
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32f0
jmp 0x3872
jmp 0x386f
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x38c2
movq %rbx, %rdi
callq 0x3450
// File: /workspace/github_cpp_makefile_star2_O1/isaacbrodsky[P]K-means-plus-plus/k-means-multi.cpp
// Function: Cluster_set::Cluster_set()
Cluster_set::Cluster_set(void){

	// local variables
	random_device rd;

	// initialize the class variables
	iIteration = 0;
	iK_count = 1;
	sIn_file = "default_in.dat";
	sOut_file = "default_out.txt";
	bUseLabels = false;
	fTolerance = 0.1f;
	// Use K-means++ by default.
	bUsePlusPlus = true;
	// Seed with real random value if available
	mtRandom = mt19937(rd());
	iNumThreads = 1;
	iNumPlusPlusThreads = 1;

	return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2718, %rsp           # imm = 0x2718
movq %rdi, %rbx
leaq 0x38(%rdi), %r14
leaq 0x48(%rdi), %rbp
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq %rbp, 0x38(%rdi)
xorl %eax, %eax
movq %rax, 0x40(%rdi)
movb %al, 0x48(%rdi)
leaq 0x58(%rdi), %r15
leaq 0x68(%rdi), %r13
movq %r13, 0x58(%rdi)
movq %rax, 0x60(%rdi)
movb %al, 0x68(%rdi)
leaq 0x80(%rdi), %rcx
movq %rcx, (%rsp)
movups %xmm0, 0x80(%rdi)
movq %rax, 0x90(%rdi)
leaq 0xa8(%rdi), %r12
movq $0x1571, 0xa8(%rdi) # imm = 0x1571
movl $0x1571, %ecx           # imm = 0x1571
movl $0x16, %eax
movq %rcx, %rdx
shrq $0x1e, %rdx
xorl %ecx, %edx
imull $0x6c078965, %edx, %ecx # imm = 0x6C078965
addl %eax, %ecx
addl $-0x15, %ecx
movq %rcx, (%rbx,%rax,8)
incq %rax
cmpq $0x285, %rax            # imm = 0x285
jne 0x3b1d
movq $0x270, 0x1428(%rbx) # imm = 0x270
leaq 0x8(%rsp), %rdi
callq 0x57f0
movl $0x0, 0x98(%rbx)
movl $0x1, 0x30(%rbx)
movq 0x40(%rbx), %rdx
leaq 0x4547(%rip), %rcx      # 0x80b8
movl $0xe, %r8d
movq %r14, %rdi
xorl %esi, %esi
callq 0x33b0
movq 0x60(%rbx), %rdx
leaq 0x453b(%rip), %rcx      # 0x80c7
movl $0xf, %r8d
movq %r15, %rdi
xorl %esi, %esi
callq 0x33b0
movw $0x100, 0xa0(%rbx)      # imm = 0x100
movl $0x3dcccccd, 0x78(%rbx) # imm = 0x3DCCCCCD
leaq 0x8(%rsp), %rdi
callq 0x3360
movl %eax, %eax
movq %rax, 0x1390(%rsp)
movl $0x1, %ecx
movq %rax, %rdx
shrq $0x1e, %rdx
xorl %eax, %edx
imull $0x6c078965, %edx, %eax # imm = 0x6C078965
addl %ecx, %eax
movq %rax, 0x1390(%rsp,%rcx,8)
incq %rcx
cmpq $0x270, %rcx            # imm = 0x270
jne 0x3bc5
leaq 0x1390(%rsp), %rsi
movq $0x270, 0x1380(%rsi) # imm = 0x270
movl $0x1388, %edx           # imm = 0x1388
movq %r12, %rdi
callq 0x3220
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, 0x1430(%rbx)
leaq 0x8(%rsp), %rdi
callq 0x32c0
addq $0x2718, %rsp           # imm = 0x2718
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3c97
jmp 0x3c40
movq %rax, %r12
jmp 0x3c4d
movq %rax, %r12
leaq 0x8(%rsp), %rdi
callq 0x32c0
movq (%rsp), %rdi
callq 0x3914
movq (%r15), %rdi
cmpq %r13, %rdi
je 0x3c6a
movq (%r13), %rsi
incq %rsi
callq 0x32f0
movq (%r14), %rdi
cmpq %rbp, %rdi
je 0x3c7e
movq (%rbp), %rsi
incq %rsi
callq 0x32f0
leaq 0x18(%rbx), %rdi
callq 0x3944
movq %rbx, %rdi
callq 0x3944
movq %r12, %rdi
callq 0x3450
movq %rax, %rdi
callq 0x3991
nop
// File: /workspace/github_cpp_makefile_star2_O1/isaacbrodsky[P]K-means-plus-plus/k-means-multi.cpp
// Function: Cluster_set::Identify_mean_values()
void Cluster_set::Identify_mean_values(void){

	// local variables
	int iCluster_index, iAttribute_index;
	vector<float> vfValues;

	// allocate memory for the local vector
	vfValues.resize(iAttribute_ct);

	if (iIteration < 1) { // if this is the first iteration - initialize the cluster mean values
		if (bUsePlusPlus) {
			Initialize_plus_plus();
		}
		else { // Use the first k instances.
			for (iCluster_index = 0; iCluster_index < iK_count; iCluster_index++){ // read K-instances
				for (iAttribute_index = 0; iAttribute_index < iAttribute_ct; iAttribute_index++){ // read attributes
					vvfMeans[iCluster_index][iAttribute_index]
						= vclInput_data[iCluster_index].vfAttribute[iAttribute_index];
				} // for
			} //for
		}
	} // if

	// save the existing mean values
	for (iCluster_index = 0; iCluster_index < iK_count; iCluster_index++){
		for (iAttribute_index = 0; iAttribute_index < iAttribute_ct; iAttribute_index++){

			// copy the new_means values into the old_means values storage
			vvfOld_means[iCluster_index][iAttribute_index] = vvfMeans[iCluster_index][iAttribute_index];
		} // for
	} //for

	return;
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movq %rsp, %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movslq 0x9c(%rbx), %rsi
callq 0x586a
cmpl $0x0, 0x98(%rbx)
jg 0x439a
cmpb $0x0, 0xa1(%rbx)
je 0x4349
movq %rbx, %rdi
callq 0x4bdc
jmp 0x439a
movslq 0x30(%rbx), %rax
testq %rax, %rax
jle 0x439a
movl 0x9c(%rbx), %ecx
movq (%rbx), %rdx
movq 0x80(%rbx), %rsi
xorl %edi, %edi
testl %ecx, %ecx
jle 0x4392
movq %rdi, %r8
shlq $0x6, %r8
movq (%rsi,%r8), %r8
leaq (%rdi,%rdi,2), %r9
movq (%rdx,%r9,8), %r9
xorl %r10d, %r10d
movss (%r8,%r10,4), %xmm0
movss %xmm0, (%r9,%r10,4)
incq %r10
cmpq %r10, %rcx
jne 0x437e
incq %rdi
cmpq %rax, %rdi
jne 0x4364
movslq 0x30(%rbx), %rax
testq %rax, %rax
jle 0x43e9
movl 0x9c(%rbx), %ecx
movq (%rbx), %rdx
movq 0x18(%rbx), %rsi
xorl %edi, %edi
testl %ecx, %ecx
jle 0x43e1
leaq (,%rdi,8), %r8
leaq (%r8,%r8,2), %r9
movq (%rdx,%r9), %r8
movq (%rsi,%r9), %r9
xorl %r10d, %r10d
movss (%r8,%r10,4), %xmm0
movss %xmm0, (%r9,%r10,4)
incq %r10
cmpq %r10, %rcx
jne 0x43cd
incq %rdi
cmpq %rax, %rdi
jne 0x43b2
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x43ff
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x32f0
addq $0x20, %rsp
popq %rbx
retq
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x441e
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x32f0
movq %rbx, %rdi
callq 0x3450
// File: /workspace/github_cpp_makefile_star2_O1/isaacbrodsky[P]K-means-plus-plus/k-means-multi.cpp
// Function: Cluster_set::Cluster_data()
void Cluster_set::Cluster_data(void){
	if (iNumThreads == 1)
	{
		//Don't bother creating more threads.
		Cluster_data_process(0, vclInput_data.size());
	}
	else
	{
		// local variables
		unsigned uPerThread;
		unsigned uData;
		unsigned uDataStart;
		int iThread_index;
		vector<thread> vtThreads;

		uDataStart = 0;
		uData = vclInput_data.size();
		uPerThread = uData / iNumThreads;

		//Split the dataset into parts and launch as individual
		//threads.
		for (iThread_index = 0; iThread_index < iNumThreads; iThread_index++)
		{
			//Force the last thread to take remaining data
			if (iThread_index == iNumThreads - 1)
			{
				uPerThread = uData - uDataStart;
			}

			vtThreads.push_back(thread([=](unsigned uStart, unsigned uLength) { Cluster_data_process(uStart, uLength); }, uDataStart, uPerThread));

			uDataStart += uPerThread;
		} // Launch all threads

		//Wait for all threads to complete.
		for (iThread_index = 0; iThread_index < iNumThreads; iThread_index++)
		{
			vtThreads[iThread_index].join();
		} // Wait for all threads
	}
	return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movl 0x1434(%rdi), %esi
cmpl $0x1, %esi
jne 0x446c
movq 0x88(%rbx), %rdx
subq 0x80(%rbx), %rdx
shrq $0x6, %rdx
movq %rbx, %rdi
xorl %esi, %esi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x52f4
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movl 0x1434(%rbx), %ecx
testl %ecx, %ecx
jle 0x452f
movq 0x88(%rbx), %r14
subq 0x80(%rbx), %r14
shrq $0x6, %r14
xorl %r12d, %r12d
movl %r14d, %eax
xorl %edx, %edx
divl %esi
movl %eax, %ebp
leaq 0x8(%rsp), %r15
xorl %r13d, %r13d
movl %ebp, %eax
decl %ecx
movl %r14d, %ebp
subl %r13d, %ebp
cmpl %ecx, %r12d
cmovnel %eax, %ebp
movq $0x0, 0x8(%rsp)
movl $0x18, %edi
callq 0x32e0
leaq 0x7745(%rip), %rcx      # 0xbc20
movq %rcx, (%rax)
movl %ebp, 0x8(%rax)
movl %r13d, 0xc(%rax)
movq %rbx, 0x10(%rax)
movq %rax, (%rsp)
movq %r15, %rdi
movq %rsp, %rsi
xorl %edx, %edx
callq 0x3280
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x4509
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x74fa
cmpq $0x0, 0x8(%rsp)
jne 0x459d
addl %ebp, %r13d
incl %r12d
movl 0x1434(%rbx), %ecx
cmpl %ecx, %r12d
jl 0x44b1
cmpl $0x0, 0x1434(%rbx)
jle 0x455e
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x10(%rsp), %rdi
addq %r14, %rdi
callq 0x34a8
incq %r15
movslq 0x1434(%rbx), %rax
addq $0x8, %r14
cmpq %rax, %r15
jl 0x453e
leaq 0x10(%rsp), %rdi
callq 0x5b12
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x45a2
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x458b
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, (%rsp)
jmp 0x45a5
cmpq $0x0, 0x8(%rsp)
je 0x45a2
callq 0x3090
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x5b12
movq %rbx, %rdi
callq 0x3450
nop
// File: /workspace/github_cpp_makefile_star2_O1/isaacbrodsky[P]K-means-plus-plus/k-means-multi.cpp
// Function: Cluster_set::Calculate_cluster_means()
void Cluster_set::Calculate_cluster_means(void){

	// local variables
	int iK_index, iAttribute_index;
	unsigned uInstance_index, uInstance_sz;
	vector<int> viCounts(iK_count);

	uInstance_sz = vclInput_data.size();
	
	for (uInstance_index = 0; uInstance_index < uInstance_sz; uInstance_index++)
	{
		iK_index = vclInput_data[uInstance_index].iCluster;
		//loop through each vector attribute
		for (iAttribute_index = 0; iAttribute_index < iAttribute_ct; iAttribute_index++){
			vvfMeans[iK_index][iAttribute_index] += vclInput_data[uInstance_index].vfAttribute[iAttribute_index];
		} // for

		viCounts[iK_index]++;
	}
	
	// loop thru each cluster
	for (iK_index = 0; iK_index < iK_count; iK_index++){
		//loop through each vector attribute
		for (iAttribute_index = 0; iAttribute_index < iAttribute_ct; iAttribute_index++) {
			//If no elements, default to origin as per old code.
			if (viCounts[iK_index] == 0)
				vvfMeans[iK_index][iAttribute_index] = 0;
			else
				vvfMeans[iK_index][iAttribute_index] /= (float)viCounts[iK_index];
		}
	} // for

	return;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movslq 0x30(%rdi), %rsi
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x5b4e
movq 0x80(%rbx), %rax
movq 0x88(%rbx), %rsi
subq %rax, %rsi
shrq $0x6, %rsi
testl %esi, %esi
je 0x4649
movq (%rbx), %rcx
movq 0x10(%rsp), %rdx
movl %esi, %esi
xorl %edi, %edi
movq %rdi, %r10
shlq $0x6, %r10
movslq 0x38(%rax,%r10), %r8
movslq 0x9c(%rbx), %r9
testq %r9, %r9
jle 0x463d
addq %rax, %r10
movq (%r10), %r10
leaq (%r8,%r8,2), %r11
movq (%rcx,%r11,8), %r11
xorl %r14d, %r14d
movss (%r10,%r14,4), %xmm0
addss (%r11,%r14,4), %xmm0
movss %xmm0, (%r11,%r14,4)
incq %r14
cmpq %r14, %r9
jne 0x4623
incl (%rdx,%r8,4)
incq %rdi
cmpq %rsi, %rdi
jne 0x45fa
movslq 0x30(%rbx), %rax
testq %rax, %rax
jle 0x46af
movl 0x9c(%rbx), %ecx
movq 0x10(%rsp), %rdx
xorl %esi, %esi
testl %ecx, %ecx
jle 0x46a7
movl (%rdx,%rsi,4), %edi
xorps %xmm0, %xmm0
cvtsi2ss %edi, %xmm0
leaq (%rsi,%rsi,2), %r8
shlq $0x3, %r8
addq (%rbx), %r8
xorl %r9d, %r9d
testl %edi, %edi
je 0x4694
movq (%r8), %r10
movss (%r10,%r9,4), %xmm1
divss %xmm0, %xmm1
movss %xmm1, (%r10,%r9,4)
jmp 0x469f
movq (%r8), %r10
movl $0x0, (%r10,%r9,4)
incq %r9
cmpq %r9, %rcx
jne 0x467b
incq %rsi
cmpq %rax, %rsi
jne 0x465f
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x46c6
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x32f0
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/isaacbrodsky[P]K-means-plus-plus/k-means-multi.cpp
// Function: Cluster_set::Compare_mean_values()
bool Cluster_set::Compare_mean_values(void){

	// local variables
	bool bNot_done;
	float sStep_difference;
	float fResult_difference = 0;
	int iCluster_index, iAttribute_index;

	// calculate the difference between the old means and the new means
	for (iCluster_index = 0; iCluster_index < iK_count; iCluster_index++){ // by each cluster
		// compare the attribute mean values
		for (iAttribute_index = 0; iAttribute_index < iAttribute_ct; iAttribute_index++){

			sStep_difference = vvfMeans[iCluster_index][iAttribute_index]
				- vvfOld_means[iCluster_index][iAttribute_index];
			// guarantee a positive value without using squares
			if (sStep_difference < 0) sStep_difference = sStep_difference * (-1);

			// add the step difference to the total difference of means
			fResult_difference = fResult_difference + sStep_difference;

		} // for

	} // for

	// stop clustering if there is little change in  the mean values
	if (fResult_difference < fTolerance) bNot_done = false;
	else bNot_done = true;

	return bNot_done;

}

// Assembly:
movslq 0x30(%rdi), %rax
testq %rax, %rax
jle 0x4738
movl 0x9c(%rdi), %ecx
movq (%rdi), %rdx
movq 0x18(%rdi), %rsi
xorps %xmm0, %xmm0
xorl %r8d, %r8d
movaps 0x398f(%rip), %xmm1     # 0x8080
testl %ecx, %ecx
jle 0x472e
leaq (,%r8,8), %r9
leaq (%r9,%r9,2), %r10
movq (%rdx,%r10), %r9
movq (%rsi,%r10), %r10
xorl %r11d, %r11d
movss (%r9,%r11,4), %xmm2
subss (%r10,%r11,4), %xmm2
movaps %xmm2, %xmm3
xorps %xmm1, %xmm3
maxss %xmm2, %xmm3
addss %xmm3, %xmm0
incq %r11
cmpq %r11, %rcx
jne 0x470c
incq %r8
cmpq %rax, %r8
jne 0x46f1
jmp 0x473b
xorps %xmm0, %xmm0
movss 0x78(%rdi), %xmm1
ucomiss %xmm0, %xmm1
setbe %al
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/isaacbrodsky[P]K-means-plus-plus/k-means-multi.cpp
// Function: Cluster_set::Initialize_plus_plus_process(unsigned int, unsigned int, int, std::vector<float, std::allocator<float>>&, std::vector<bool, std::allocator<bool>> const&)
float Cluster_set::Initialize_plus_plus_process(unsigned uIndex, unsigned uLength, int iSelectedPoints, vector<float>& vfDistance, const vector<bool>& vbSkipPoints) {

	unsigned uLastIndex = uIndex + uLength;
	int iAttribute_index;
	int iK_index;
	float fSum_of_squares;
	float fDifference;
	float fTotalDistance = 0;

	// Compute distance to nearest cluster for all data instances.
	for (; uIndex < uLastIndex; uIndex++) {
		// Skip if already selected as a starting point
		if (!vbSkipPoints[uIndex]) {
			// Compute distance to nearest mean
			for (iK_index = 0; iK_index < iSelectedPoints; iK_index++) {
				fSum_of_squares = 0;

				for (iAttribute_index = 0; iAttribute_index < iAttribute_ct; iAttribute_index++) {
					fDifference = (vclInput_data[uIndex].vfAttribute[iAttribute_index] - vvfMeans[iK_index][iAttribute_index]);
					fSum_of_squares += (fDifference * fDifference);
				} // for

				// If this is the first evaluated distance, use it.
				// Otherwise only use the distance if it is better
				// than the previous best distance.
				if (iK_index == 0 || fSum_of_squares < vfDistance[uIndex]) {
					vfDistance[uIndex] = fSum_of_squares;
				}
			}

			// Sum the distance of all points to the closest
			// starting points as each one is calculated.
			fTotalDistance += vfDistance[uIndex];
		}
	}

	return fTotalDistance;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r8, -0x8(%rsp)
addl %esi, %edx
xorps %xmm0, %xmm0
cmpl %esi, %edx
jbe 0x4bd1
movq (%r9), %rax
movl 0x9c(%rdi), %r9d
movq -0x8(%rsp), %r8
movq (%r8), %r8
movl %esi, %esi
movl %edx, %edx
movl %ecx, %r11d
movq %rsi, %r10
shrq $0x6, %r10
movq (%rax,%r10,8), %r10
btq %rsi, %r10
jb 0x4bc5
testl %ecx, %ecx
jle 0x4bbf
movq %rsi, %rbx
shlq $0x6, %rbx
addq 0x80(%rdi), %rbx
movq (%rdi), %r14
movq -0x8(%rsp), %r10
movq (%r10), %r15
xorl %r12d, %r12d
testl %r9d, %r9d
jle 0x4b9e
movq (%rbx), %r13
leaq (%r12,%r12,2), %r10
movq (%r14,%r10,8), %rbp
xorps %xmm1, %xmm1
xorl %r10d, %r10d
movss (%r13,%r10,4), %xmm2
subss (%rbp,%r10,4), %xmm2
mulss %xmm2, %xmm2
addss %xmm2, %xmm1
incq %r10
cmpq %r10, %r9
jne 0x4b7e
jmp 0x4ba1
xorps %xmm1, %xmm1
testq %r12, %r12
je 0x4bb1
movss (%r15,%rsi,4), %xmm2
ucomiss %xmm1, %xmm2
jbe 0x4bb7
movss %xmm1, (%r15,%rsi,4)
incq %r12
cmpq %r11, %r12
jne 0x4b68
addss (%r8,%rsi,4), %xmm0
incq %rsi
cmpq %rdx, %rsi
jne 0x4b37
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/isaacbrodsky[P]K-means-plus-plus/k-means-multi.cpp
// Function: Cluster_set::Cluster_data_process(unsigned int, unsigned int)
void Cluster_set::Cluster_data_process(unsigned uIndex, unsigned uLength)
{
	// local variables
	float fDifference;
	float fSquared_difference, fSum_of_squares;
	float fBest_squared_difference;
	int iBest_index;
	int iK_index, iAttribute_index;
	unsigned uLast = uIndex + uLength;

	// loop for all the input data values
	for (; uIndex < uLast; uIndex++) {

		// initialize the tracking variables
		fBest_squared_difference = FLT_MAX; // make this erroneously big
		iBest_index = -1; // Forces taking the first value

		// get the next data vector
		Cluster_instance& clData_instance = vclInput_data[uIndex];

		// loop thru all of the mean values
		for (iK_index = 0; iK_index < iK_count; iK_index++) {

			// initialize the variables
			fDifference = 0;
			fSum_of_squares = 0;

			// compare the data vector to the mean vector
			for (iAttribute_index = 0; iAttribute_index < iAttribute_ct; iAttribute_index++){
				// calculate the difference between the data value and the mean value
				fDifference = (clData_instance.vfAttribute[iAttribute_index] - vvfMeans[iK_index][iAttribute_index]);
				// square the difference
				fSquared_difference = fDifference * fDifference;
				// add to the sum of squares
				fSum_of_squares = fSum_of_squares + fSquared_difference;
			} // for

			// if this value is less than the best squared difference (BSD)
			if (iBest_index == -1 || fSum_of_squares < fBest_squared_difference){
				fBest_squared_difference = fSum_of_squares; // save it as BSD

				// and save the this index as best index
				iBest_index = iK_index;

			} // if
		} // for

		clData_instance.iCluster = iBest_index;
	} // for

}

// Assembly:
addl %esi, %edx
cmpl %esi, %edx
jbe 0x53bf
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x80(%rdi), %rax
movl 0x30(%rdi), %ecx
movl 0x9c(%rdi), %r8d
movl %esi, %esi
movl %edx, %edx
movss 0x2d81(%rip), %xmm0     # 0x80a4
movq %rsi, %r9
shlq $0x6, %r9
addq %rax, %r9
testl %ecx, %ecx
jle 0x53a1
movq (%rdi), %r11
movl $0xffffffff, %r10d      # imm = 0xFFFFFFFF
xorl %ebx, %ebx
movaps %xmm0, %xmm1
testl %r8d, %r8d
jle 0x5373
movq (%r9), %r14
leaq (%rbx,%rbx,2), %r15
movq (%r11,%r15,8), %r15
xorps %xmm2, %xmm2
xorl %r12d, %r12d
movss (%r14,%r12,4), %xmm3
subss (%r15,%r12,4), %xmm3
mulss %xmm3, %xmm3
addss %xmm3, %xmm2
incq %r12
cmpq %r12, %r8
jne 0x5355
jmp 0x5376
xorps %xmm2, %xmm2
cmpl $-0x1, %r10d
sete %bpl
ucomiss %xmm2, %xmm1
seta %r14b
orb %bpl, %r14b
testb %r14b, %r14b
jne 0x5390
movaps %xmm1, %xmm2
cmovnel %ebx, %r10d
incq %rbx
movaps %xmm2, %xmm1
cmpq %rcx, %rbx
jne 0x533f
jmp 0x53a7
movl $0xffffffff, %r10d      # imm = 0xFFFFFFFF
movl %r10d, 0x38(%r9)
incq %rsi
cmpq %rdx, %rsi
jne 0x5323
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/akw0088[P]openssl/rsa_dec.cpp
// Function: createRSA(unsigned char*, bool)
RSA *createRSA(unsigned char *key, bool pub)
{
	RSA *rsa = NULL;
	BIO *keybio = BIO_new_mem_buf(key, -1); // a bio is just a memory buffer, -1 means do strlen of char *key

	if (keybio == NULL)
	{
		printf( "Failed to create key BIO");
		return 0;
	}

	if (pub)
	{
		rsa = PEM_read_bio_RSA_PUBKEY(keybio, &rsa, NULL, NULL);
	}
	else
	{
		rsa = PEM_read_bio_RSAPrivateKey(keybio, &rsa, NULL, NULL);
	}
	BIO_free_all(keybio);

	if (rsa == NULL)
	{
		printf( "Failed to create RSA");
	}
 
	return rsa;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %r14d
movq $0x0, -0x18(%rbp)
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x1060
testq %rax, %rax
je 0x12bb
movq %rax, %rbx
leaq -0x18(%rbp), %rsi
movq %rax, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
testb %r14b, %r14b
je 0x12cd
callq 0x1170
jmp 0x12d2
leaq 0xd42(%rip), %rdi       # 0x2004
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x1050
jmp 0x12f7
callq 0x1150
movq %rax, -0x18(%rbp)
movq %rbx, %rdi
callq 0x1080
cmpq $0x0, -0x18(%rbp)
jne 0x12f3
leaq 0xd31(%rip), %rdi       # 0x201d
xorl %eax, %eax
callq 0x1050
movq -0x18(%rbp), %rbx
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/akw0088[P]openssl/rsa_dec.cpp
// Function: main
int main(int argc, char *argv[])
{
	unsigned char *prikey = NULL;
	unsigned int size;

	if (argc < 3)
	{
		printf("Usage: dec private_key encrypted_file\r\n");
		return -1;
	}

	prikey = (unsigned char *)get_file(argv[1], &size);
	if (prikey == NULL)
	{
		printf("Failed to open private key\r\n");
		return -1;
	}

	unsigned int encrypted_length = 0;

	unsigned char *encrypted = (unsigned char *)get_file(argv[2], &encrypted_length);

	printf("Read %d bytes of encrypted file\r\n", encrypted_length);
	unsigned char decrypted[4098]={};

	
	RSA *rsa = createRSA(prikey, false);
	int decrypted_length = RSA_private_decrypt(encrypted_length, encrypted, decrypted, rsa, RSA_PKCS1_PADDING);
	if (decrypted_length == -1)
	{
		char err[130];

		ERR_load_crypto_strings();
		ERR_error_string(ERR_get_error(), err);
		printf("ERROR: %s\n", err);
		return -1;
	}
	RSA_free(rsa);

	printf("Decrypted Text: %s\n", decrypted);
	printf("Decrypted Length: %d\n", decrypted_length);
	write_file((char *)"file.txt", (char *)decrypted, decrypted_length);
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10a8, %rsp           # imm = 0x10A8
cmpl $0x2, %edi
jg 0x1457
leaq 0xc9e(%rip), %rdi       # 0x20f0
jmp 0x152f
movq %rsi, %rbx
movq 0x8(%rsi), %rdi
leaq -0x30(%rbp), %rsi
callq 0x1303
testq %rax, %rax
je 0x1528
movq %rax, %r14
leaq -0x2c(%rbp), %r15
movl $0x0, (%r15)
movq 0x10(%rbx), %rdi
movq %r15, %rsi
callq 0x1303
movq %rax, %r12
movl (%r15), %esi
leaq 0xbc1(%rip), %rdi       # 0x2058
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x1050
leaq -0x10d0(%rbp), %rdi
movl $0x1002, %edx           # imm = 0x1002
xorl %esi, %esi
callq 0x10a0
movq %r14, %rdi
xorl %esi, %esi
callq 0x127c
movq %rax, %r13
movl (%r15), %edi
movq %r12, %rsi
leaq -0x10d0(%rbp), %rdx
movq %rax, %rcx
movl $0x1, %r8d
callq 0x10b0
cmpl $-0x1, %eax
je 0x154d
movl %eax, %r14d
movq %r13, %rdi
callq 0x10f0
leaq 0xb93(%rip), %rdi       # 0x2085
leaq -0x10d0(%rbp), %r15
movq %r15, %rsi
xorl %eax, %eax
callq 0x1050
leaq 0xb8f(%rip), %rdi       # 0x2099
movl %r14d, %esi
xorl %eax, %eax
callq 0x1050
leaq 0xb94(%rip), %rdi       # 0x20af
movq %r15, %rsi
movl %r14d, %edx
callq 0x13b5
jmp 0x1539
leaq 0xba5(%rip), %rdi       # 0x20d4
callq 0x1140
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebx, %eax
addq $0x10a8, %rsp           # imm = 0x10A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x2, %edi
xorl %esi, %esi
callq 0x1090
callq 0x1120
leaq -0xc0(%rbp), %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1070
leaq 0xb03(%rip), %rdi       # 0x207a
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1050
jmp 0x1534
// File: /workspace/github_cpp_makefile_star2_O1/Neurochrom[P]hours_calc/hours_calc.cpp
// Function: operator-(HourMin const&, HourMin const&)
unsigned operator-(const HourMin& hmLater, const HourMin& hmSooner)
{
   HourMin hmLater2 = hmLater;
   if (hmLater2 < hmSooner)
      hmLater2.h += 24;
   unsigned r = (hmLater2.h - hmSooner.h) * 60;
   if (hmLater2.m >= hmSooner.m)
      r += hmLater2.m - hmSooner.m;
   else
      r -= hmSooner.m - hmLater2.m;
   return r;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rcx
movq %rcx, %rax
shrq $0x20, %rax
movl (%rsi), %edx
movb $0x1, %dil
cmpl %ecx, %edx
ja 0x35a0
jae 0x3599
xorl %edi, %edi
jmp 0x35a0
cmpl %eax, 0x4(%rsi)
seta %dil
leal 0x18(%rcx), %r8d
testb %dil, %dil
cmovel %ecx, %r8d
subl %edx, %r8d
imull $0x3c, %r8d, %ecx
subl 0x4(%rsi), %eax
addl %ecx, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Neurochrom[P]hours_calc/hours_calc.cpp
// Function: isEmptyOrWhitespace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool isEmptyOrWhitespace(const std::string& s)
{
   for (size_t i = 0; i < s.size(); ++i)
      if (!isspace(s[i]))
         return false;
   return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x8(%rdi), %r14
testq %r14, %r14
sete %bl
je 0x36fb
movq (%rdi), %r15
movsbl (%r15), %edi
callq 0x3070
testl %eax, %eax
je 0x36fb
movl $0x1, %ecx
movq %rcx, %rbx
cmpq %rcx, %r14
je 0x36f5
movsbl (%r15,%rbx), %edi
callq 0x3070
leaq 0x1(%rbx), %rcx
testl %eax, %eax
jne 0x36db
cmpq %r14, %rbx
setae %bl
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Neurochrom[P]hours_calc/hours_calc.cpp
// Function: lowerCase(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::string lowerCase(const std::string& s)
{
   std::string r = s;
   for (size_t i = 0; i < r.size(); ++i)
      if ((r[i] >= 'A') && (r[i] <= 'Z'))
         r[i] = (char)(r[i] - 'A' + 'a');
   return r;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %rax, %rsi
callq 0x7404
cmpq $0x0, 0x8(%rbx)
je 0x3751
xorl %eax, %eax
movq (%rbx), %rcx
movb (%rcx,%rax), %dl
leal -0x41(%rdx), %esi
cmpb $0x19, %sil
ja 0x3748
orb $0x20, %dl
movb %dl, (%rcx,%rax)
incq %rax
cmpq 0x8(%rbx), %rax
jb 0x3733
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Neurochrom[P]hours_calc/hours_calc.cpp
// Function: upperCase(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::string upperCase(const std::string& s)
{
    std::string r = s;
    for (size_t i = 0; i < r.size(); ++i)
        if ((r[i] >= 'a') && (r[i] <= 'z'))
            r[i] = (char)(r[i] - 'a' + 'A');
    return r;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %rax, %rsi
callq 0x7404
cmpq $0x0, 0x8(%rbx)
je 0x37a4
xorl %eax, %eax
movq (%rbx), %rcx
movb (%rcx,%rax), %dl
leal -0x61(%rdx), %esi
cmpb $0x19, %sil
ja 0x379b
addb $-0x20, %dl
movb %dl, (%rcx,%rax)
incq %rax
cmpq 0x8(%rbx), %rax
jb 0x3786
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Neurochrom[P]hours_calc/hours_calc.cpp
// Function: expandStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long)
std::string expandStr(const std::string& str, size_t size)
{
   size_t strLen = str.length();
   if (strLen >= size)
      return str;
   else
      return str + std::string(size - strLen, ' ');
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rsi), %rax
subq %rax, %rdx
jbe 0x381e
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
leaq -0x40(%rbp), %r15
movq %r15, %rdi
movq %rdx, %rsi
movl $0x20, %edx
callq 0x32b0
movq (%r14), %rcx
movq 0x8(%r14), %r8
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3280
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x3838
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x383e
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq (%r14), %rsi
addq %rsi, %rax
movq %rbx, %rdi
movq %rax, %rdx
callq 0x7404
jmp 0x3863
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x3863
callq 0x3200
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x3884
callq 0x3200
movq %rbx, %rdi
callq 0x33c0
// File: /workspace/github_cpp_makefile_star2_O1/Neurochrom[P]hours_calc/hours_calc.cpp
// Function: hoursMinsStr[abi:cxx11](unsigned int, unsigned long)
std::string hoursMinsStr(unsigned minutes, size_t size = 0)
{
   std::ostringstream oss;
   oss.precision(2);
   oss << std::fixed << minutes / 60.0 << " h";

   return expandStr(oss.str(), size);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1a0, %rsp            # imm = 0x1A0
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %rbx
leaq -0x1b8(%rbp), %r12
movq %r12, %rdi
callq 0x3310
movq (%r12), %rax
movq -0x18(%rax), %rcx
movq $0x2, -0x1b0(%rbp,%rcx)
movq -0x18(%rax), %rax
movl $0xfffffefb, %ecx       # imm = 0xFFFFFEFB
andl -0x1a0(%rbp,%rax), %ecx
orl $0x4, %ecx
movl %ecx, -0x1a0(%rbp,%rax)
movl %r15d, %eax
cvtsi2sd %rax, %xmm0
divsd 0x4714(%rip), %xmm0     # 0x8008
movq %r12, %rdi
callq 0x3390
leaq 0x474d(%rip), %rsi      # 0x8050
movl $0x2, %edx
movq %rax, %rdi
callq 0x3290
leaq -0x1b0(%rbp), %rsi
leaq -0x40(%rbp), %rdi
callq 0x3380
leaq -0x40(%rbp), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x37ae
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3941
callq 0x3200
movq 0x7678(%rip), %rsi      # 0xafc0
leaq -0x1b8(%rbp), %rdi
callq 0x3140
leaq -0x148(%rbp), %rdi
callq 0x30c0
movq %rbx, %rax
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x398f
callq 0x3200
jmp 0x398f
jmp 0x398c
movq %rax, %rbx
movq 0x762a(%rip), %rsi      # 0xafc0
leaq -0x1b8(%rbp), %rdi
callq 0x3140
leaq -0x148(%rbp), %rdi
callq 0x30c0
movq %rbx, %rdi
callq 0x33c0
// File: /workspace/github_cpp_makefile_star2_O1/Neurochrom[P]hours_calc/hours_calc.cpp
// Function: parseHourMin(HourMin*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool parseHourMin(HourMin* result, const std::string& s)
{
   std::vector<std::string> ss = splitIntoTokens(s, ".:");
   if (ss.size() != 2)
      return false;
   unsigned h,m;
   try
   {
      h = std::stoi(ss[0]);
      m = std::stoi(ss[1]);
   }
   catch (std::exception&)
   {
      return false;
   }
   if (m > 59)
      return false;
   if (h > 47)  // We shall allow 26 instead of 2am the next day but there is a limit
      return false;
   if (result != 0)
      *result = HourMin(h, m);
   return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r14
leaq 0x44f4(%rip), %rdx      # 0x80dd
leaq 0x46b4(%rip), %rcx      # 0x82a4
leaq -0x50(%rbp), %rbx
movq %rbx, %rdi
callq 0x39b6
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
cmpq $0x40, %rcx
jne 0x3d2b
movq (%rax), %r12
callq 0x3050
movq %rax, %rbx
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
movl $0x0, (%rbx)
leaq -0x38(%rbp), %r13
movq %r12, %rdi
movq %r13, %rsi
movl $0xa, %edx
callq 0x3320
cmpq %r12, (%r13)
je 0x3cda
movq %rax, %r15
movslq %r15d, %rax
cmpq %r15, %rax
jne 0x3ce6
movl (%rbx), %eax
cmpl $0x22, %eax
je 0x3ce6
testl %eax, %eax
jne 0x3c67
movl -0x2c(%rbp), %eax
movl %eax, (%rbx)
movq -0x50(%rbp), %rax
movq 0x20(%rax), %r12
movl (%rbx), %eax
movl %eax, -0x2c(%rbp)
movl $0x0, (%rbx)
movq %r12, %rdi
movq %r13, %rsi
movl $0xa, %edx
callq 0x3320
cmpq %r12, (%r13)
je 0x3cf2
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
leaq -0x80000000(%rax), %rdx
cmpq %rcx, %rdx
jb 0x3cfe
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x3cfe
testl %ecx, %ecx
jne 0x3cb6
movl -0x2c(%rbp), %ecx
movl %ecx, (%rbx)
xorl %ebx, %ebx
cmpl $0x2f, %r15d
ja 0x3d2d
cmpl $0x3b, %eax
ja 0x3d2d
movb $0x1, %bl
testq %r14, %r14
je 0x3d2d
shlq $0x20, %rax
andl $0x3f, %r15d
orq %rax, %r15
movq %r15, (%r14)
jmp 0x3d2d
leaq 0x4686(%rip), %rdi      # 0x8367
callq 0x3160
leaq 0x467a(%rip), %rdi      # 0x8367
callq 0x3330
leaq 0x466e(%rip), %rdi      # 0x8367
callq 0x3160
leaq 0x4662(%rip), %rdi      # 0x8367
callq 0x3330
jmp 0x3d0c
movq %rax, %r14
cmpl $0x0, (%rbx)
jne 0x3d19
movl -0x2c(%rbp), %eax
movl %eax, (%rbx)
cmpl $0x1, %edx
jne 0x3d4a
movq %r14, %rdi
callq 0x3100
callq 0x33a0
xorl %ebx, %ebx
leaq -0x50(%rbp), %rdi
callq 0x6376
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq -0x50(%rbp), %rdi
callq 0x6376
movq %r14, %rdi
callq 0x33c0
// File: /workspace/github_cpp_makefile_star2_O1/Neurochrom[P]hours_calc/hours_calc.cpp
// Function: MinutesMap::PersonMonStats::update(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned int)
void update(const std::string& tow, unsigned minutes)
      {
         auto mi = s.find(tow);
         if (mi != s.end())
            mi->second += minutes;
         else
            s[tow] = minutes;
      }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
callq 0x6ecc
leaq 0x8(%r15), %rcx
cmpq %rcx, %rax
je 0x6b67
addl %ebx, 0x40(%rax)
jmp 0x6b74
movq %r15, %rdi
movq %r14, %rsi
callq 0x6e4c
movl %ebx, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/shirookad[P]propcpp/include/prop.h
// Function: prop::observable_property<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::set(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
inline T& set(const param_t value) {
			willSet(value);
			T oldValue = std::move(m_value);
			m_value = value;
			didSet(oldValue);
			return m_value;
		}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
cmpq $0x0, 0x30(%rdi)
je 0x2c6a
movq %rsi, %r14
movq %rdi, %rbx
addq $0x20, %rdi
callq *0x38(%rbx)
leaq -0x28(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rcx
leaq 0x10(%rbx), %rax
cmpq %rax, %rcx
je 0x2c0c
movq %rcx, -0x38(%rbp)
movq (%rax), %rcx
movq %rcx, -0x28(%rbp)
jmp 0x2c13
movups (%rax), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rbx), %rcx
movq %rcx, -0x30(%rbp)
movq %rax, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2080
cmpq $0x0, 0x50(%rbx)
je 0x2c6f
leaq 0x40(%rbx), %rdi
leaq -0x38(%rbp), %rsi
callq *0x58(%rbx)
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x2c5c
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x20f0
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x2060
callq 0x2060
movq %rax, %rbx
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x2c8c
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x20f0
movq %rbx, %rdi
callq 0x2120
// File: /workspace/github_cpp_makefile_star2_O1/shirookad[P]propcpp/main.cpp
// Function: observerTest::~observerTest()
prop::observable_property<int> someOtherVal {
		WILL_SET(newValue) {
			//std::cout << "will set from " << currentValue << " to " << newValue << std::endl;
		},
		DID_SET(oldValue) {
			//std::cout << "did set from " << oldValue << " to " << newValue << std::endl;
		}
	};
	
	prop::computed_property<int> comp {
		GET {
			return 5;
		}
	};
	
	prop::observable_property<std::string> strVal {
		WILL_SET(newValue) { std::cout << "Will set from " << strVal.get() << " to " << newValue << std::endl; },
		DID_SET(oldValue) { std::cout << "Did set from " << oldValue << " to " << strVal.get() << std::endl; }
	};
	
	prop::readonly_property<observerTest, int> intVal { 5 };
	
	observerTest() { intVal.set(3); }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xb8(%rdi), %rax
testq %rax, %rax
je 0x2cba
leaq 0xa8(%rbx), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x98(%rbx), %rax
testq %rax, %rax
je 0x2cd7
leaq 0x88(%rbx), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x68(%rbx), %rdi
leaq 0x78(%rbx), %rax
cmpq %rax, %rdi
je 0x2cef
movq (%rax), %rsi
incq %rsi
callq 0x20f0
movq 0x58(%rbx), %rax
testq %rax, %rax
je 0x2d06
leaq 0x48(%rbx), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x38(%rbx), %rax
testq %rax, %rax
je 0x2d1d
leaq 0x28(%rbx), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x2d37
addq $0x8, %rbx
movq %rbx, %rdi
movq %rbx, %rsi
movl $0x3, %edx
callq *%rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
jmp 0x2d46
jmp 0x2d46
jmp 0x2d46
jmp 0x2d46
movq %rax, %rdi
callq 0x2d4e
// File: /workspace/github_cpp_makefile_star2_O1/mrlordkaj[P]i2cdevlib-pi/AD7746/AD7746.cpp
// Function: AD7746::getCapacitance()
uint32_t AD7746::getCapacitance() {
    uint32_t capacitance;
    I2Cdev::readBytes(devAddr, 0, 4, buffer);
    capacitance = ((uint32_t)buffer[1] << 16) | ((uint32_t)buffer[2] << 8) | (uint32_t)buffer[3];
    
    return capacitance;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movzbl (%rdi), %edi
leaq 0x1(%rbx), %rcx
movq 0x26e26(%rip), %rax     # 0x46f48
movzwl (%rax), %r8d
xorl %esi, %esi
movl $0x4, %edx
callq 0x1f630
movzbl 0x2(%rbx), %eax
shll $0x10, %eax
movzbl 0x3(%rbx), %ecx
shll $0x8, %ecx
orl %eax, %ecx
movzbl 0x4(%rbx), %eax
orl %ecx, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/mrlordkaj[P]i2cdevlib-pi/ADS1115/ADS1115.cpp
// Function: ADS1115::initialize()
void ADS1115::initialize() {
  setMultiplexer(ADS1115_MUX_P0_N1);
  setGain(ADS1115_PGA_2P048);
  setMode(ADS1115_MODE_SINGLESHOT);
  setRate(ADS1115_RATE_128);
  setComparatorMode(ADS1115_COMP_MODE_HYSTERESIS);
  setComparatorPolarity(ADS1115_COMP_POL_ACTIVE_LOW);
  setComparatorLatchEnabled(ADS1115_COMP_LAT_NON_LATCHING);
  setComparatorQueueMode(ADS1115_COMP_QUE_DISABLE);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
xorl %esi, %esi
callq 0x1f140
movq %rbx, %rdi
movl $0x2, %esi
callq 0x1f620
movzbl (%rbx), %edi
movl $0x1, %esi
movl $0x8, %edx
movl $0x1, %ecx
callq 0x1f790
testb %al, %al
je 0x201eb
movb $0x1, 0x6(%rbx)
movzbl (%rbx), %edi
movl $0x1, %esi
movl $0x7, %edx
movl $0x3, %ecx
movl $0x4, %r8d
callq 0x1f260
movzbl (%rbx), %edi
movl $0x1, %esi
movl $0x4, %edx
xorl %ecx, %ecx
callq 0x1f790
movzbl (%rbx), %edi
movl $0x1, %esi
movl $0x3, %edx
xorl %ecx, %ecx
callq 0x1f790
movzbl (%rbx), %edi
movl $0x1, %esi
movl $0x2, %edx
xorl %ecx, %ecx
callq 0x1f790
movzbl (%rbx), %edi
movl $0x1, %esi
movl $0x1, %edx
movl $0x2, %ecx
movl $0x3, %r8d
popq %rbx
jmp 0x1f260
// File: /workspace/github_cpp_makefile_star2_O1/mrlordkaj[P]i2cdevlib-pi/ADS1115/ADS1115.cpp
// Function: ADS1115::setMultiplexer(unsigned char)
void ADS1115::setMultiplexer(uint8_t mux) {
    if (I2Cdev::writeBitsW(devAddr, ADS1115_RA_CONFIG, ADS1115_CFG_MUX_BIT, ADS1115_CFG_MUX_LENGTH, mux)) {
        muxMode = mux;
        if (devMode == ADS1115_MODE_CONTINUOUS) {
          // Force a stop/start
          setMode(ADS1115_MODE_SINGLESHOT);
          getConversion();
          setMode(ADS1115_MODE_CONTINUOUS);
        }
    }
    
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movzbl (%rdi), %edi
movl $0x1, %esi
movl $0xe, %edx
movl $0x3, %ecx
movl %ebp, %r8d
callq 0x1f260
testb %al, %al
je 0x202da
movb %bpl, 0x7(%rbx)
cmpb $0x0, 0x6(%rbx)
jne 0x202da
movzbl (%rbx), %edi
movl $0x1, %esi
movl $0x8, %edx
movl $0x1, %ecx
callq 0x1f790
testb %al, %al
je 0x202b1
movb $0x1, 0x6(%rbx)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x1f800
movzbl (%rbx), %edi
movl $0x1, %esi
movl $0x8, %edx
xorl %ecx, %ecx
callq 0x1f790
testb %al, %al
je 0x202da
movb $0x0, 0x6(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/mrlordkaj[P]i2cdevlib-pi/ADS1115/ADS1115.cpp
// Function: ADS1115::setGain(unsigned char)
void ADS1115::setGain(uint8_t gain) {
    if (I2Cdev::writeBitsW(devAddr, ADS1115_RA_CONFIG, ADS1115_CFG_PGA_BIT, ADS1115_CFG_PGA_LENGTH, gain)) {
      pgaMode = gain;
         if (devMode == ADS1115_MODE_CONTINUOUS) {
            // Force a stop/start
            setMode(ADS1115_MODE_SINGLESHOT);
            getConversion();
            setMode(ADS1115_MODE_CONTINUOUS);
         }
    }
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movzbl (%rdi), %edi
movl $0x1, %esi
movl $0xb, %edx
movl $0x3, %ecx
movl %ebp, %r8d
callq 0x1f260
testb %al, %al
je 0x2035a
movb %bpl, 0x8(%rbx)
cmpb $0x0, 0x6(%rbx)
jne 0x2035a
movzbl (%rbx), %edi
movl $0x1, %esi
movl $0x8, %edx
movl $0x1, %ecx
callq 0x1f790
testb %al, %al
je 0x20331
movb $0x1, 0x6(%rbx)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x1f800
movzbl (%rbx), %edi
movl $0x1, %esi
movl $0x8, %edx
xorl %ecx, %ecx
callq 0x1f790
testb %al, %al
je 0x2035a
movb $0x0, 0x6(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/mrlordkaj[P]i2cdevlib-pi/ADS1115/ADS1115.cpp
// Function: ADS1115::getConversion(bool)
int16_t ADS1115::getConversion(bool triggerAndPoll) {
    if (triggerAndPoll && devMode == ADS1115_MODE_SINGLESHOT) {
      triggerConversion();
      pollConversion(I2CDEV_DEFAULT_READ_TIMEOUT);
    }
    I2Cdev::readWord(devAddr, ADS1115_RA_CONVERSION, buffer);
    return buffer[0];
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
testl %esi, %esi
je 0x20516
cmpb $0x1, 0x6(%rbx)
jne 0x20516
movzbl (%rbx), %edi
movl $0x1, %esi
movl $0xf, %edx
movl $0x1, %ecx
callq 0x1f790
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x1f430
movzbl (%rbx), %edi
leaq 0x2(%rbx), %rdx
movq 0x26a24(%rip), %rax     # 0x46f48
movzwl (%rax), %ecx
xorl %esi, %esi
callq 0x1f6a0
movzwl 0x2(%rbx), %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/mrlordkaj[P]i2cdevlib-pi/ADS1115/ADS1115.cpp
// Function: ADS1115::setConversionReadyPinMode()
void ADS1115::setConversionReadyPinMode() {
    I2Cdev::writeBitW(devAddr, ADS1115_RA_HI_THRESH, 15, 1);
    I2Cdev::writeBitW(devAddr, ADS1115_RA_LO_THRESH, 15, 0);
    setComparatorPolarity(0);
    setComparatorQueueMode(0);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movzbl (%rdi), %edi
movl $0x3, %esi
movl $0xf, %edx
movl $0x1, %ecx
callq 0x1f790
movzbl (%rbx), %edi
movl $0x2, %esi
movl $0xf, %edx
xorl %ecx, %ecx
callq 0x1f790
movzbl (%rbx), %edi
movl $0x1, %esi
movl $0x3, %edx
xorl %ecx, %ecx
callq 0x1f790
movzbl (%rbx), %edi
movl $0x1, %esi
movl $0x1, %edx
movl $0x2, %ecx
xorl %r8d, %r8d
popq %rbx
jmp 0x1f260
// File: /workspace/github_cpp_makefile_star2_O1/mrlordkaj[P]i2cdevlib-pi/ADS1115/ADS1115.cpp
// Function: createMask(unsigned int, unsigned int)
unsigned createMask(unsigned a, unsigned b) {
   unsigned mask = 0;
   for (unsigned i=a; i<=b; i++)
       mask |= 1 << i;
   return mask;
}

// Assembly:
xorl %eax, %eax
cmpl %esi, %edi
ja 0x20919
xorl %eax, %eax
btsl %edi, %eax
incl %edi
cmpl %esi, %edi
jbe 0x20910
retq
// File: /workspace/github_cpp_makefile_star2_O1/mrlordkaj[P]i2cdevlib-pi/ADXL345/ADXL345.cpp
// Function: ADXL345::getOffset(signed char*, signed char*, signed char*)
void ADXL345::getOffset(int8_t* x, int8_t* y, int8_t* z) {
    I2Cdev::readBytes(devAddr, ADXL345_RA_OFSX, 3, buffer);
    *x = buffer[0];
    *y = buffer[1];
    *z = buffer[2];
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movzbl (%rdi), %edi
leaq 0x1(%r12), %rcx
movq 0x264d7(%rip), %rax     # 0x46f48
movzwl (%rax), %r8d
movl $0x1e, %esi
movl $0x3, %edx
callq 0x1f630
movb 0x1(%r12), %al
movb %al, (%r15)
movb 0x2(%r12), %al
movb %al, (%r14)
movb 0x3(%r12), %al
movb %al, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/mrlordkaj[P]i2cdevlib-pi/ADXL345/ADXL345.cpp
// Function: ADXL345::getAcceleration(short*, short*, short*)
void ADXL345::getAcceleration(int16_t* x, int16_t* y, int16_t* z) {
    I2Cdev::readBytes(devAddr, ADXL345_RA_DATAX0, 6, buffer);
    *x = (((int16_t)buffer[1]) << 8) | buffer[0];
    *y = (((int16_t)buffer[3]) << 8) | buffer[2];
    *z = (((int16_t)buffer[5]) << 8) | buffer[4];
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movzbl (%rdi), %edi
leaq 0x1(%r12), %rcx
movq 0x25519(%rip), %rax     # 0x46f48
movzwl (%rax), %r8d
movl $0x32, %esi
movl $0x6, %edx
callq 0x1f630
movzwl 0x1(%r12), %eax
movw %ax, (%r15)
movzwl 0x3(%r12), %eax
movw %ax, (%r14)
movzwl 0x5(%r12), %eax
movw %ax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop