// File: /workspace/github_cpp_makefile_star2_O1/parth-shel[P]xpac/client.cpp
// Function: calculate_differences()
void calculate_differences() {
	std::string to_update_string;
	std::vector<std::string> updates;
	for(auto key_itr = user_installed_list.begin(); key_itr!=user_installed_list.end(); key_itr++) {
		if(key_itr->second.compare(universe_list.find(key_itr->first)->second) != 0) {
			to_update_string += key_itr->first + " " + key_itr->second + " -> " + universe_list.find(key_itr->first)->second + "\n";
			updates.push_back(key_itr->first);
		}
	}
	std::cout<<"Updates available: "<<std::endl;
	if(to_update_string.compare("") == 0) {
		std::cout<<"None!"<<std::endl;
	}
	else {
		std::cout<<to_update_string;
	}
	
	//Writing all the updates to the file
	std::fstream file;
	file.open(update_file, std::ios::out | std::ios::trunc);

	// Simply appending to file
	for(auto itr = updates.begin(); itr!=updates.end(); itr++)
		file << *itr <<"\n";
	file.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2c8, %rsp            # imm = 0x2C8
leaq -0x38(%rbp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb $0x0, (%rcx)
movq %rax, -0x50(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x60(%rbp)
leaq 0xc6ed(%rip), %r13      # 0x105c0
movq 0x18(%r13), %rbx
addq $0x8, %r13
cmpq %r13, %rbx
je 0x4175
leaq 0xc685(%rip), %r14      # 0x10570
leaq -0xe0(%rbp), %r15
leaq 0x20(%rbx), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x812c
leaq 0x40(%rbx), %rdi
addq $0x40, %rax
movq %rax, %rsi
callq 0x3040
testl %eax, %eax
je 0x4161
leaq -0xd0(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x8092
movq %r15, %rdi
leaq 0x85b1(%rip), %rsi      # 0xc4f5
callq 0x3650
movq 0x40(%rbx), %rsi
movq 0x48(%rbx), %rdx
movq %r15, %rdi
callq 0x3140
leaq -0x70(%rbp), %rsi
movq %rsi, -0x80(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3f7d
movq %rdx, -0x80(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x70(%rbp)
jmp 0x3f83
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x78(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x80(%rbp), %rdi
leaq 0x8089(%rip), %rsi      # 0xc02e
callq 0x3650
leaq -0x90(%rbp), %rsi
movq %rsi, -0xa0(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3fda
movq %rdx, -0xa0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x90(%rbp)
jmp 0x3fe0
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x98(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r14, %rdi
movq %r12, %rsi
callq 0x812c
movq 0x40(%rax), %rsi
movq 0x48(%rax), %rdx
leaq -0xa0(%rbp), %rdi
callq 0x3140
leaq -0xb0(%rbp), %rsi
movq %rsi, -0xc0(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4049
movq %rdx, -0xc0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xb0(%rbp)
jmp 0x404f
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0xb8(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0xc0(%rbp), %rdi
leaq 0x8773(%rip), %rsi      # 0xc7ea
callq 0x3650
leaq -0x2e0(%rbp), %rsi
movq %rsi, -0x2f0(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x40ac
movq %rdx, -0x2f0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x2e0(%rbp)
jmp 0x40b2
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x2e8(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x2f0(%rbp), %rsi
movq -0x2e8(%rbp), %rdx
leaq -0x48(%rbp), %rdi
callq 0x3140
movq -0x2f0(%rbp), %rdi
leaq -0x2e0(%rbp), %rax
cmpq %rax, %rdi
je 0x40fb
callq 0x3360
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x4113
callq 0x3360
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x412b
callq 0x3360
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x413d
callq 0x3360
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x4155
callq 0x3360
leaq -0x60(%rbp), %rdi
movq %r12, %rsi
callq 0x741a
movq %rbx, %rdi
callq 0x3290
movq %rax, %rbx
cmpq %r13, %rax
jne 0x3ef2
movq 0xbe54(%rip), %rbx      # 0xffd0
leaq 0x7eb0(%rip), %rsi      # 0xc033
movl $0x13, %edx
movq %rbx, %rdi
callq 0x3400
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x3370
movsbl %al, %esi
movq 0xbe22(%rip), %rdi      # 0xffd0
callq 0x3030
movq %rax, %rdi
callq 0x3280
leaq 0x8629(%rip), %rsi      # 0xc7eb
leaq -0x48(%rbp), %rdi
callq 0x3130
testl %eax, %eax
je 0x41e5
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq 0xbdf2(%rip), %rdi      # 0xffd0
callq 0x3400
jmp 0x422b
movq 0xbde4(%rip), %rbx      # 0xffd0
leaq 0x7e54(%rip), %rsi      # 0xc047
movl $0x5, %edx
movq %rbx, %rdi
callq 0x3400
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x3370
movsbl %al, %esi
movq 0xbdb2(%rip), %rdi      # 0xffd0
callq 0x3030
movq %rax, %rdi
callq 0x3280
leaq -0x2f0(%rbp), %rdi
callq 0x3430
leaq 0xc1a2(%rip), %rsi      # 0x103e0
leaq -0x2f0(%rbp), %rdi
movl $0x30, %edx
callq 0x34a0
movq -0x60(%rbp), %r15
cmpq -0x58(%rbp), %r15
je 0x4290
leaq -0x2e0(%rbp), %rbx
leaq 0x8583(%rip), %r14      # 0xc7ea
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rbx, %rdi
callq 0x3400
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x3400
addq $0x20, %r15
cmpq -0x58(%rbp), %r15
jne 0x4267
leaq -0x2f0(%rbp), %rdi
callq 0x3080
leaq -0x2f0(%rbp), %rdi
callq 0x30d0
leaq -0x60(%rbp), %rdi
callq 0x7466
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x42c3
callq 0x3360
addq $0x2c8, %rsp            # imm = 0x2C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4378
jmp 0x437d
jmp 0x4378
jmp 0x4378
jmp 0x42f0
movq %rax, %rbx
jmp 0x4310
movq %rax, %rbx
jmp 0x435e
movq %rax, %rbx
movq -0x2f0(%rbp), %rdi
leaq -0x2e0(%rbp), %rax
cmpq %rax, %rdi
je 0x4310
callq 0x3360
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x4334
callq 0x3360
jmp 0x4334
movq %rax, %rbx
jmp 0x434c
jmp 0x4378
movq %rax, %rbx
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x434c
callq 0x3360
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x435e
callq 0x3360
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x438c
callq 0x3360
jmp 0x438c
movq %rax, %rbx
jmp 0x438c
movq %rax, %rbx
leaq -0x2f0(%rbp), %rdi
callq 0x30d0
leaq -0x38(%rbp), %r14
leaq -0x60(%rbp), %rdi
callq 0x7466
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x43a7
callq 0x3360
movq %rbx, %rdi
callq 0x35c0