LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/wichtounet[P]articles/include/policies.hpp
// Function: FilledRandom<std::__cxx11::list<NonTrivialStringMovable, std::allocator<NonTrivialStringMovable>>>::make(unsigned long)
inline static Container make(std::size_t size){
        // prepare randomized data that will have all the integers from the range
        if(v.size() != size){
            v.clear();
            v.reserve(size);
            for(std::size_t i = 0; i < size; ++i){
                v.push_back({i});
            }
            std::shuffle(begin(v), end(v), std::mt19937());
        }

        // fill with randomized data
        Container container;
        for(std::size_t i = 0; i < size; ++i){
            container.push_back(v[i]);
        }

        return container;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1398, %rsp           # imm = 0x1398
movq %rsi, %r14
movq %rdi, %rbx
movq 0xb56b8(%rip), %rax     # 0xf0890
subq 0xb56a9(%rip), %rax     # 0xf0888
sarq $0x3, %rax
movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD
imulq %rax, %rcx
cmpq %rsi, %rcx
je 0x3b2fb
leaq 0xb5687(%rip), %r15     # 0xf0888
movq %r15, %rdi
callq 0x3a996
movq %r15, %rdi
movq %r14, %rsi
callq 0x1a14a
testq %r14, %r14
je 0x3b2a4
leaq 0x20(%rsp), %rbp
xorl %r12d, %r12d
leaq 0x10(%rsp), %r15
leaq 0xb5657(%rip), %r13     # 0xf0888
movq %rbp, 0x10(%rsp)
movq $0x41, 0x8(%rsp)
movq %r15, %rdi
leaq 0x8(%rsp), %rsi
xorl %edx, %edx
callq 0x42e0
movq %rax, 0x10(%rsp)
movq 0x8(%rsp), %rcx
movq %rcx, 0x20(%rsp)
vmovups 0x7dcaa(%rip), %zmm0    # 0xb8f11
vmovups %zmm0, (%rax)
movb $0x4f, 0x40(%rax)
movq %rcx, 0x18(%rsp)
movb $0x0, (%rax,%rcx)
movq %r12, 0x30(%rsp)
movq %r13, %rdi
movq %r15, %rsi
vzeroupper
callq 0x3ad2e
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x3b29c
callq 0x41a0
incq %r12
cmpq %r12, %r14
jne 0x3b231
movq 0xb55dd(%rip), %rdi     # 0xf0888
movq 0xb55de(%rip), %rsi     # 0xf0890
movq $0x1571, 0x10(%rsp)     # imm = 0x1571
movl $0x1, %eax
movl $0x1571, %ecx           # imm = 0x1571
movq %rcx, %rdx
shrq $0x1e, %rdx
xorl %ecx, %edx
imull $0x6c078965, %edx, %ecx # imm = 0x6C078965
addl %eax, %ecx
movq %rcx, 0x10(%rsp,%rax,8)
incq %rax
cmpq $0x270, %rax            # imm = 0x270
jne 0x3b2c5
leaq 0x10(%rsp), %rdx
movq $0x270, 0x1380(%rdx) # imm = 0x270
callq 0x3a9db
movq %rbx, 0x8(%rbx)
movq %rbx, (%rbx)
movq $0x0, 0x10(%rbx)
testq %r14, %r14
je 0x3b33c
xorl %r15d, %r15d
movq 0xb556f(%rip), %rsi     # 0xf0888
addq %r15, %rsi
movq %rbx, %rdi
callq 0x19b3c
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4050
incq 0x10(%rbx)
addq $0x28, %r15
decq %r14
jne 0x3b312
movq %rbx, %rax
addq $0x1398, %rsp           # imm = 0x1398
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x3b370
callq 0x41a0
jmp 0x3b370
movq %rax, %r14
movq %rbx, %rdi
callq 0x19b92
movq %r14, %rdi
callq 0x42d0
// File: /workspace/github_cpp_makefile_star2_O1/wichtounet[P]articles/include/policies.hpp
// Function: FilledRandomInsert<plf::colony<NonTrivialStringMovable, std::allocator<NonTrivialStringMovable>, unsigned short>>::make(unsigned long)
inline static Container make(std::size_t size){
        // prepare randomized data that will have all the integers from the range
        if(v.size() != size){
            v.clear();
            v.reserve(size);
            for(std::size_t i = 0; i < size; ++i){
                v.push_back({i});
            }
            std::shuffle(begin(v), end(v), std::mt19937());
        }

        // fill with randomized data
        Container container;
        for(std::size_t i = 0; i < size; ++i){
            container.insert(v[i]);
        }

        return container;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1398, %rsp           # imm = 0x1398
movq %rsi, %r14
movq %rdi, %rbx
movq 0xb50ca(%rip), %rax     # 0xf08d0
subq 0xb50bb(%rip), %rax     # 0xf08c8
sarq $0x3, %rax
movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD
imulq %rax, %rcx
cmpq %rsi, %rcx
je 0x3b929
leaq 0xb5099(%rip), %r15     # 0xf08c8
movq %r15, %rdi
callq 0x3a996
movq %r15, %rdi
movq %r14, %rsi
callq 0x1a14a
testq %r14, %r14
je 0x3b8d2
leaq 0x20(%rsp), %rbp
xorl %r12d, %r12d
leaq 0x10(%rsp), %r15
leaq 0xb5069(%rip), %r13     # 0xf08c8
movq %rbp, 0x10(%rsp)
movq $0x41, 0x8(%rsp)
movq %r15, %rdi
leaq 0x8(%rsp), %rsi
xorl %edx, %edx
callq 0x42e0
movq %rax, 0x10(%rsp)
movq 0x8(%rsp), %rcx
movq %rcx, 0x20(%rsp)
vmovups 0x7d67c(%rip), %zmm0    # 0xb8f11
vmovups %zmm0, (%rax)
movb $0x4f, 0x40(%rax)
movq %rcx, 0x18(%rsp)
movb $0x0, (%rax,%rcx)
movq %r12, 0x30(%rsp)
movq %r13, %rdi
movq %r15, %rsi
vzeroupper
callq 0x3ad2e
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x3b8ca
callq 0x41a0
incq %r12
cmpq %r12, %r14
jne 0x3b85f
movq 0xb4fef(%rip), %rdi     # 0xf08c8
movq 0xb4ff0(%rip), %rsi     # 0xf08d0
movq $0x1571, 0x10(%rsp)     # imm = 0x1571
movl $0x1, %eax
movl $0x1571, %ecx           # imm = 0x1571
movq %rcx, %rdx
shrq $0x1e, %rdx
xorl %ecx, %edx
imull $0x6c078965, %edx, %ecx # imm = 0x6C078965
addl %eax, %ecx
movq %rcx, 0x10(%rsp,%rax,8)
incq %rax
cmpq $0x270, %rax            # imm = 0x270
jne 0x3b8f3
leaq 0x10(%rsp), %rdx
movq $0x270, 0x1380(%rdx) # imm = 0x270
callq 0x3a9db
vxorps %xmm0, %xmm0, %xmm0
vmovups %zmm0, (%rbx)
movl $0xffff000a, 0x40(%rbx) # imm = 0xFFFF000A
vxorps %xmm0, %xmm0, %xmm0
vmovups %ymm0, 0x48(%rbx)
vmovups %ymm0, 0x58(%rbx)
movq $0x8, 0x78(%rbx)
testq %r14, %r14
je 0x3b97e
xorl %r12d, %r12d
leaq 0x10(%rsp), %r15
movq 0xb4f64(%rip), %rdx     # 0xf08c8
addq %r12, %rdx
movq %r15, %rdi
movq %rbx, %rsi
vzeroupper
callq 0x1a29c
addq $0x28, %r12
decq %r14
jne 0x3b95d
movq %rbx, %rax
addq $0x1398, %rsp           # imm = 0x1398
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
vzeroupper
retq
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x3b9b5
callq 0x41a0
jmp 0x3b9b5
movq %rax, %r14
movq %rbx, %rdi
callq 0x1a27a
movq %r14, %rdi
callq 0x42d0
nop
// File: /workspace/github_cpp_makefile_star2_O1/wichtounet[P]articles/plf_colony_alpha/plf_colony.h
// Function: plf::colony<Trivial<8>, std::allocator<Trivial<8>>, unsigned short>::reduced_stack::initialize(unsigned long)
void initialize(const size_type first_group_size)
		{
			first_group = current_group = PLF_COLONY_ALLOCATE(stack_group_allocator_type, group_allocator_pair, 1, 0);

			try
			{
				#ifdef PLF_COLONY_VARIADICS_SUPPORT
					PLF_COLONY_CONSTRUCT(stack_group_allocator_type, group_allocator_pair, first_group, first_group_size);
				#else
					PLF_COLONY_CONSTRUCT(stack_group_allocator_type, group_allocator_pair, first_group, group(first_group_size));
				#endif
			}
			catch (...)
			{
				PLF_COLONY_DEALLOCATE(stack_group_allocator_type, group_allocator_pair, first_group, 1);
				first_group = current_group = NULL;
				throw;
			}

			top_element = start_element = first_group->elements;
			end_element = first_group->end;
		}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movl $0x20, %edi
callq 0x41c0
movq %rax, %r15
movq %rax, (%rbx)
movq %rax, 0x8(%rbx)
movq %rax, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xc4da
movq %rax, (%r15)
leaq -0x8(%rax,%r14,8), %rax
vxorps %xmm0, %xmm0, %xmm0
vmovups %xmm0, 0x8(%r15)
movq %rax, 0x18(%r15)
movq 0x8(%rbx), %rax
movq (%rax), %rcx
movq %rcx, 0x18(%rbx)
movq %rcx, 0x10(%rbx)
movq 0x18(%rax), %rax
movq %rax, 0x20(%rbx)
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rdi
callq 0x40c0
movq 0x8(%rbx), %rdi
callq 0x41a0
vxorps %xmm0, %xmm0, %xmm0
vmovups %xmm0, (%rbx)
callq 0x4270
movq %rax, %rbx
callq 0x42c0
movq %rbx, %rdi
callq 0x42d0
movq %rax, %rdi
callq 0xab5d
// File: /workspace/github_cpp_makefile_star2_O1/wichtounet[P]articles/plf_colony_alpha/plf_colony.h
// Function: plf::colony<Trivial<8>, std::allocator<Trivial<8>>, unsigned short>::change_group_sizes(unsigned short, unsigned short)
void change_group_sizes(const skipfield_type min_allocation_amount, const skipfield_type max_allocation_amount)
	{
		assert((min_allocation_amount > 2) & (min_allocation_amount <= max_allocation_amount));

		min_elements_per_group = min_allocation_amount;
		group_allocator_pair.max_elements_per_group = max_allocation_amount;

		// The following will only have an effect if the erased_locations becomes empty or is already empty
		erased_locations.group_allocator_pair.min_elements_per_group = ((min_allocation_amount < 8) ? min_allocation_amount : (min_allocation_amount >> 7) + 8);

		if (first_group != NULL && (first_group->size < min_allocation_amount || end_iterator.group_pointer->size > max_allocation_amount))
		{
			consolidate();
		}
	}

// Assembly:
pushq %r14
pushq %rbx
subq $0x88, %rsp
movw %si, 0x40(%rdi)
movw %dx, 0x42(%rdi)
movl %esi, %eax
shrl $0x7, %eax
addl $0x8, %eax
cmpw $0x8, %si
cmovbl %esi, %eax
movq %rax, 0x78(%rdi)
movq 0x30(%rdi), %rax
testq %rax, %rax
je 0x6d7f3
movq %rdi, %rbx
cmpw %si, 0x32(%rax)
jb 0x6d7ce
movq (%rbx), %rax
cmpw %dx, 0x32(%rax)
jbe 0x6d7f3
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0xcd5c
movq %rbx, %rdi
movq %r14, %rsi
callq 0xce1a
leaq 0x8(%rsp), %rdi
callq 0xc7b6
addq $0x88, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0xc7b6
movq %rbx, %rdi
callq 0x42d0
nop
// File: /workspace/github_cpp_makefile_star2_O1/wichtounet[P]articles/plf_colony_alpha/plf_timsort.h
// Function: plf::TimSort<Trivial<8>**, plf::colony<Trivial<8>, std::allocator<Trivial<8>>, unsigned short>::sort_dereferencer<plf::colony<Trivial<8>, std::allocator<Trivial<8>>, unsigned short>::less>>::sort(Trivial<8>**, Trivial<8>**, plf::Compare<Trivial<8>* const&, plf::colony<Trivial<8>, std::allocator<Trivial<8>>, unsigned short>::sort_dereferencer<plf::colony<Trivial<8>, std::allocator<Trivial<8>>, unsigned short>::less>>)
static void sort(iter_t const lo, iter_t const hi, compare_t c)
	{
		diff_t nRemaining = (hi - lo);

		if (nRemaining < 2)
		{
			return; // nothing to do
		}

		if (nRemaining < MIN_MERGE)
		{
			diff_t const initRunLen = countRunAndMakeAscending(lo, hi, c);
			binarySort(lo, hi, lo + initRunLen, c);
			return;
		}

		TimSort ts(c);
		diff_t const minRun = minRunLength(nRemaining);
		iter_t cur = lo;

		do
		{
			diff_t runLen = countRunAndMakeAscending(cur, hi, c);

			if (runLen < minRun)
			{
				diff_t const force = std::min(nRemaining, minRun);
				binarySort(cur, cur + force, cur + runLen, c);
				runLen = force;
			}

			ts.pushRun(cur, runLen);
			ts.mergeCollapse();

			cur += runLen;
			nRemaining -= runLen;
		} while (nRemaining != 0);

		assert(cur == hi);
		ts.mergeForceCollapse();
		assert(ts.pending_.size() == 1);

	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, 0x8(%rsp)
movq %rsi, %rbp
subq %rdi, %rbp
sarq $0x3, %rbp
cmpq $0x2, %rbp
jl 0x6e0ef
movq %rsi, %rbx
movq %rdi, %r14
cmpq $0x1f, %rbp
jg 0x6e003
movq 0x8(%rsp), %r15
movb (%r15), %al
leaq 0x7(%rsp), %rdx
movb %al, (%rdx)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6e118
leaq (%r14,%rax,8), %rdx
movb (%r15), %al
leaq 0x6(%rsp), %rcx
movb %al, (%rcx)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6e19e
jmp 0x6e0ef
movq 0x8(%rsp), %rax
movb (%rax), %al
movb %al, 0x10(%rsp)
movl $0x7, 0x14(%rsp)
vxorps %xmm0, %xmm0, %xmm0
vmovups %ymm0, 0x18(%rsp)
vmovups %ymm0, 0x28(%rsp)
xorl %r12d, %r12d
movq %rbp, %rax
movq %rax, %rcx
movl %ecx, %edx
andl $0x1, %edx
orq %rdx, %r12
shrq %rax
cmpq $0x3f, %rcx
ja 0x6e02c
addq %rax, %r12
leaq 0x4(%rsp), %r15
movq 0x8(%rsp), %rax
movb (%rax), %al
movb %al, 0x4(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
vzeroupper
callq 0x6e118
movq %rax, %r13
cmpq %r12, %rax
jge 0x6e0a4
cmpq %rbp, %r12
movq %rbx, %r15
movq %rbp, %rbx
cmovlq %r12, %rbx
leaq (%r14,%rbx,8), %rsi
leaq (%r14,%r13,8), %rdx
movq 0x8(%rsp), %rax
movb (%rax), %al
movb %al, 0x5(%rsp)
movq %r14, %rdi
leaq 0x5(%rsp), %rcx
callq 0x6e19e
movq %rbx, %r13
movq %r15, %rbx
leaq 0x4(%rsp), %r15
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x6e212
leaq 0x10(%rsp), %rdi
callq 0x6e24e
leaq (%r14,%r13,8), %r14
subq %r13, %rbp
jne 0x6e048
leaq 0x10(%rsp), %rdi
callq 0x6e302
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x6e0e0
callq 0x41a0
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x6e0ef
callq 0x41a0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6e102
jmp 0x6e102
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x6e368
movq %rbx, %rdi
callq 0x42d0
nop
// File: /workspace/github_cpp_makefile_star2_O1/wichtounet[P]articles/plf_colony_alpha/plf_timsort.h
// Function: plf::TimSort<Trivial<8>**, plf::colony<Trivial<8>, std::allocator<Trivial<8>>, unsigned short>::sort_dereferencer<plf::colony<Trivial<8>, std::allocator<Trivial<8>>, unsigned short>::less>>::countRunAndMakeAscending(Trivial<8>**, Trivial<8>**, plf::Compare<Trivial<8>* const&, plf::colony<Trivial<8>, std::allocator<Trivial<8>>, unsigned short>::sort_dereferencer<plf::colony<Trivial<8>, std::allocator<Trivial<8>>, unsigned short>::less>>)
static diff_t countRunAndMakeAscending(iter_t const lo, iter_t const hi, compare_t compare)
	{
		assert(lo < hi);

		iter_t runHi = lo + 1;
		if (runHi == hi)
		{
			return 1;
		}

		if (compare.lt(*(runHi++), *lo))   // descending
		{
			while (runHi < hi && compare.lt(*runHi, *(runHi - 1)))
			{
				++runHi;
			}
			
			std::reverse(lo, runHi);
		}
		else     // ascending
		{
			while (runHi < hi && compare.ge(*runHi, *(runHi - 1)))
			{
				++runHi;
			}
		}

		return runHi - lo;
	}

// Assembly:
leaq 0x8(%rdi), %rcx
cmpq %rsi, %rcx
je 0x6e168
leaq 0x10(%rdi), %rax
movq (%rdi), %rdx
movq 0x8(%rdi), %r8
movq (%r8), %r8
cmpq (%rdx), %r8
jae 0x6e14e
cmpq %rsi, %rax
jae 0x6e16e
movq -0x8(%rax), %rdx
movq (%rax), %r8
movq (%r8), %r8
cmpq (%rdx), %r8
jae 0x6e16e
addq $0x8, %rax
jmp 0x6e134
cmpq %rsi, %rax
jae 0x6e195
movq -0x8(%rax), %rcx
movq (%rax), %rdx
movq (%rdx), %rdx
cmpq (%rcx), %rdx
jb 0x6e195
addq $0x8, %rax
jmp 0x6e14e
movl $0x1, %eax
retq
leaq -0x8(%rax), %rdx
cmpq %rdi, %rdx
jbe 0x6e195
movq -0x8(%rcx), %rsi
movq (%rdx), %r8
movq %r8, -0x8(%rcx)
movq %rsi, (%rdx)
addq $-0x8, %rdx
leaq 0x8(%rcx), %rsi
cmpq %rdx, %rcx
movq %rsi, %rcx
jb 0x6e177
subq %rdi, %rax
sarq $0x3, %rax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/wichtounet[P]articles/plf_colony_alpha/plf_timsort.h
// Function: plf::TimSort<Trivial<8>**, plf::colony<Trivial<8>, std::allocator<Trivial<8>>, unsigned short>::sort_dereferencer<plf::colony<Trivial<8>, std::allocator<Trivial<8>>, unsigned short>::less>>::binarySort(Trivial<8>**, Trivial<8>**, Trivial<8>**, plf::Compare<Trivial<8>* const&, plf::colony<Trivial<8>, std::allocator<Trivial<8>>, unsigned short>::sort_dereferencer<plf::colony<Trivial<8>, std::allocator<Trivial<8>>, unsigned short>::less>>)
static void binarySort(iter_t const lo, iter_t const hi, iter_t start, compare_t compare)
	{
		assert(lo <= start && start <= hi);
		if (start == lo)
		{
			++start;
		}
		for (; start < hi; ++start)
		{
			assert(lo <= start);
			/*const*/ value_t pivot = PLF_TIMSORT_MOVE(*start);

			iter_t const pos = std::upper_bound(lo, start, pivot, compare.less_function());
			for (iter_t p = start; p > pos; --p)
			{
				*p = PLF_TIMSORT_MOVE(*(p - 1));
			}
			*pos = PLF_TIMSORT_MOVE(pivot);
		}
	}

// Assembly:
xorl %eax, %eax
cmpq %rdi, %rdx
sete %al
leaq (%rdx,%rax,8), %rax
cmpq %rsi, %rax
jae 0x6e210
movq (%rax), %rcx
movq %rax, %r9
subq %rdi, %r9
sarq $0x3, %r9
movq %rdi, %rdx
testq %r9, %r9
jle 0x6e1ec
movq (%rcx), %r8
movq %rdi, %rdx
movq %r9, %r10
shrq %r10
movq (%rdx,%r10,8), %r11
cmpq (%r11), %r8
jb 0x6e1e4
leaq 0x8(%rdx,%r10,8), %rdx
notq %r10
addq %r9, %r10
movq %r10, %r9
testq %r10, %r10
jg 0x6e1cd
movq %rax, %r8
cmpq %rdx, %rax
jbe 0x6e207
movq -0x8(%r8), %r9
movq %r9, (%r8)
leaq -0x8(%r8), %r9
movq %r9, %r8
cmpq %rdx, %r9
ja 0x6e1f4
movq %rcx, (%rdx)
addq $0x8, %rax
jmp 0x6e1aa
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/wichtounet[P]articles/plf_colony_alpha/plf_timsort.h
// Function: plf::TimSort<Trivial<8>**, plf::colony<Trivial<8>, std::allocator<Trivial<8>>, unsigned short>::sort_dereferencer<plf::colony<Trivial<8>, std::allocator<Trivial<8>>, unsigned short>::less>>::mergeAt(long)
void mergeAt(diff_t const i)
	{
		diff_t const stackSize = pending_.size();
		assert(stackSize >= 2);
		assert(i >= 0);
		assert(i == stackSize - 2 || i == stackSize - 3);

		iter_t base1 = pending_[i].base;
		diff_t len1 = pending_[i].len;
		iter_t base2 = pending_[i + 1].base;
		diff_t len2 = pending_[i + 1].len;

		assert(len1 > 0 && len2 > 0);
		assert(base1 + len1 == base2);

		pending_[i].len = len1 + len2;

		if (i == stackSize - 3)
		{
			pending_[i + 1] = pending_[i + 2];
		}

		pending_.pop_back();

		diff_t const k = gallopRight(*base2, base1, len1, 0);
		assert(k >= 0);

		base1 += k;
		len1 -= k;

		if (len1 == 0)
		{
			return;
		}

		len2 = gallopLeft(*(base1 + (len1 - 1)), base2, len2, len2 - 1);
		assert(len2 >= 0);
		if (len2 == 0)
		{
			return;
		}

		if (len1 <= len2)
		{
			mergeLo(base1, len1, base2, len2);
		}
		else
		{
			mergeHi(base1, len1, base2, len2);
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x20(%rdi), %rax
movq 0x28(%rdi), %rdx
subq %rax, %rdx
sarq $0x4, %rdx
movq %rsi, %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %r15
movq 0x8(%rax,%rcx), %r13
movq 0x10(%rax,%rcx), %r8
movq 0x18(%rax,%rcx), %r12
leaq (%r12,%r13), %rdi
movq %rdi, 0x8(%rax,%rcx)
addq $-0x3, %rdx
cmpq %rsi, %rdx
jne 0x6e521
leaq 0x10(%rax,%rcx), %rax
vmovups 0x10(%rax), %xmm0
vmovups %xmm0, (%rax)
addq $-0x10, 0x28(%rbx)
movq %rbx, %rdi
movq %r8, %rsi
movq %r15, %rdx
movq %r13, %rcx
movq %r8, (%rsp)
xorl %r8d, %r8d
callq 0x6e5ae
movq %r13, %rbp
subq %rax, %rbp
je 0x6e590
movq %rax, %r14
leaq -0x8(%r15,%r13,8), %rsi
leaq -0x1(%r12), %r8
movq %rbx, %rdi
movq (%rsp), %rdx
movq %r12, %rcx
callq 0x6e694
testq %rax, %rax
je 0x6e590
movq (%rsp), %rcx
leaq (%r15,%r14,8), %rsi
movq %rbx, %rdi
movq %rbp, %rdx
movq %rax, %r8
addq $0x8, %rsp
cmpq %rax, %rbp
jle 0x6e59f
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6ea2a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6e77e
// File: /workspace/github_cpp_makefile_star2_O1/wichtounet[P]articles/plf_colony_alpha/plf_colony.h
// Function: plf::colony<Trivial<8>, std::allocator<Trivial<8>>, unsigned short>::group_create(unsigned short)
void group_create(const skipfield_type number_of_elements)
	{
		const group_pointer_type next_group = end_iterator.group_pointer->next_group = PLF_COLONY_ALLOCATE(group_allocator_type, group_allocator_pair, 1, end_iterator.group_pointer);

		try
		{
			#ifdef PLF_COLONY_VARIADICS_SUPPORT
				PLF_COLONY_CONSTRUCT(group_allocator_type, group_allocator_pair, next_group, number_of_elements, end_iterator.group_pointer);
			#else
				PLF_COLONY_CONSTRUCT(group_allocator_type, group_allocator_pair, next_group, group(number_of_elements, end_iterator.group_pointer));
			#endif
		}
		catch (...)
		{
			PLF_COLONY_DESTROY(group_allocator_type, group_allocator_pair, next_group);
			PLF_COLONY_DEALLOCATE(group_allocator_type, group_allocator_pair, next_group, 1);
			end_iterator.group_pointer->next_group = NULL;
			throw;
		}

		end_iterator.group_pointer = next_group;
		end_iterator.element_pointer = next_group->elements;
	}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movl $0x38, %edi
callq 0x41c0
movq %rax, %r14
movq (%rbx), %rax
movq %r14, 0x8(%rax)
movq (%rbx), %rdx
movq %r14, %rdi
movl %ebp, %esi
callq 0xcb82
movq %r14, (%rbx)
movq 0x10(%r14), %rax
movq %rax, 0x8(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rdi
callq 0x40c0
movq 0x10(%r14), %rdi
callq 0x41a0
movq %r14, %rdi
callq 0x41a0
movq (%rbx), %rax
movq $0x0, 0x8(%rax)
callq 0x4270
movq %rax, %rbx
callq 0x42c0
movq %rbx, %rdi
callq 0x42d0
movq %rax, %rdi
callq 0xab5d
nop
// File: /workspace/github_cpp_makefile_star2_O1/wichtounet[P]articles/plf_colony_alpha/plf_colony.h
// Function: plf::colony<NonTrivialStringMovable, std::allocator<NonTrivialStringMovable>, unsigned short>::group_fill(NonTrivialStringMovable const&, unsigned short)
void group_fill(const element_type &element, const skipfield_type number_of_elements)
	{
		const element_pointer_type fill_end = end_iterator.element_pointer + number_of_elements;

		do
		{
			try
			{
				PLF_COLONY_CONSTRUCT(element_allocator_type, (*this), end_iterator.element_pointer++, element);
			}
			catch (...)
			{
				end_iterator.group_pointer->last_endpoint = --end_iterator.element_pointer;
				const skipfield_type temp = static_cast<const skipfield_type>(end_iterator.element_pointer - end_iterator.group_pointer->elements);
				end_iterator.group_pointer->number_of_elements = temp;
				end_iterator.skipfield_pointer = end_iterator.group_pointer->skipfield + temp;
				throw;
			}
		} while (end_iterator.element_pointer != fill_end);

		end_iterator.group_pointer->last_endpoint = end_iterator.element_pointer;
		end_iterator.group_pointer->number_of_elements = number_of_elements;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movl %edx, %eax
leaq (%rax,%rax,4), %r12
shll $0x3, %r12d
addq 0x8(%rdi), %r12
movq 0x8(%rbx), %r15
leaq 0x28(%r15), %rax
movq %rax, 0x8(%rbx)
leaq 0x10(%r15), %rax
movq %rax, (%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xc0d6
movq 0x20(%r14), %rax
movq %rax, 0x20(%r15)
movq 0x8(%rbx), %rax
cmpq %r12, %rax
jne 0x95426
movq (%rbx), %rcx
movq %rax, (%rcx)
movw %bp, 0x30(%rcx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rdi
callq 0x40c0
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
addq $-0x28, %rcx
movq %rcx, 0x8(%rbx)
movq %rcx, (%rax)
subq 0x10(%rax), %rcx
sarq $0x3, %rcx
movabsq $-0x3333333333333333, %rdx # imm = 0xCCCCCCCCCCCCCCCD
imulq %rcx, %rdx
movw %dx, 0x30(%rax)
movzwl %dx, %ecx
addl %ecx, %ecx
addq 0x18(%rax), %rcx
movq %rcx, 0x10(%rbx)
callq 0x4270
movq %rax, %rbx
callq 0x42c0
movq %rbx, %rdi
callq 0x42d0
movq %rax, %rdi
callq 0xab5d
nop
// File: /workspace/github_cpp_makefile_star2_O1/wichtounet[P]articles/include/policies.hpp
// Function: RandomErase1<std::deque<Trivial<8>, std::allocator<Trivial<8>>>>::run(std::deque<Trivial<8>, std::allocator<Trivial<8>>>&, unsigned long)
inline static void run(Container &c, std::size_t /*size*/){
        auto it = c.begin();

        while(it != c.end()){
            if(distribution(generator) > 9900){
                it = c.erase(it);
            } else {
                ++it;
            }
        }

        std::cout << c.size() << std::endl;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rbp
movq 0x30(%rdi), %rax
cmpq %rax, %rbp
je 0x982e5
movq 0x20(%rbx), %r13
movq 0x28(%rbx), %r12
leaq 0xacfb3(%rip), %r14     # 0x145218
leaq 0xacf94(%rip), %r15     # 0x145200
movq %r15, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x32cc8
cmpq $0x26ad, %rax           # imm = 0x26AD
jb 0x982c3
movq %rbp, 0x8(%rsp)
movq (%r12), %rax
movq %rax, 0x10(%rsp)
addq $0x200, %rax            # imm = 0x200
movq %rax, 0x18(%rsp)
movq %r12, 0x20(%rsp)
leaq 0x28(%rsp), %rdi
movq %rbx, %rsi
leaq 0x8(%rsp), %rdx
callq 0x51886
movq 0x28(%rsp), %rbp
movq 0x38(%rsp), %r13
movq 0x40(%rsp), %r12
jmp 0x982dc
addq $0x8, %rbp
cmpq %r13, %rbp
jne 0x982dc
movq 0x8(%r12), %rbp
addq $0x8, %r12
leaq 0x200(%rbp), %r13
movq 0x30(%rbx), %rax
cmpq %rax, %rbp
jne 0x9826c
movq 0x20(%rbx), %rsi
movq 0x48(%rbx), %rcx
movq %rcx, %rdx
subq 0x28(%rbx), %rdx
shrq $0x3, %rdx
cmpq $0x1, %rcx
adcq $-0x1, %rdx
shlq $0x6, %rdx
subq 0x38(%rbx), %rax
sarq $0x3, %rax
subq 0x10(%rbx), %rsi
sarq $0x3, %rsi
addq %rdx, %rsi
addq %rax, %rsi
movq 0x57cb7(%rip), %rdi     # 0xeffd8
callq 0x4110
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x41b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4120
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/wichtounet[P]articles/src/graphs.cpp
// Function: compute_values[abi:cxx11](std::shared_ptr<graphs::graph>)
std::unordered_map<std::string, std::unordered_map<std::string, std::size_t>> compute_values(std::shared_ptr<graphs::graph> graph){
    std::unordered_map<std::string, std::unordered_map<std::string, std::size_t>> results;

    for(auto& result : graph->results){
        results[result.group][result.serie] = result.value;
    }

    return results;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x30(%rdi), %rax
movq %rax, (%rdi)
movq $0x1, 0x8(%rdi)
vxorps %xmm0, %xmm0, %xmm0
vmovups %xmm0, 0x10(%rdi)
movl $0x3f800000, 0x20(%rdi) # imm = 0x3F800000
vmovups %xmm0, 0x28(%rdi)
movq (%rsi), %rax
movq 0x60(%rax), %r14
movq 0x68(%rax), %r15
cmpq %r15, %r14
je 0xb2683
addq $0x20, %r14
movq 0x20(%r14), %r12
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb44f0
leaq -0x20(%r14), %rsi
movq %rax, %rdi
callq 0xb4932
movq %r12, (%rax)
leaq 0x48(%r14), %rax
addq $0x28, %r14
cmpq %r15, %r14
movq %rax, %r14
jne 0xb2655
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0xb3b98
movq %r14, %rdi
callq 0x42d0
// File: /workspace/github_cpp_makefile_star2_O1/vianna274[P]dropbox/src/Client.cpp
// Function: Dropbox::Client::askServerUpdates()
void Client::askServerUpdates() {
	
	int fd, wd;
	this->initializeInotify(&fd, &wd);
	
	while(1) {
		this->lockMutex();
		
		this->eventsInotify(&fd);
		
		inotify_rm_watch(fd, wd);
		close(fd);

		this->askUpdate();

		int fd, wd;
		this->initializeInotify(&fd, &wd);

		this->unlockMutex();
		this_thread::sleep_for(chrono::milliseconds(5000));
	}
	/* Clean up*/
	inotify_rm_watch(fd, wd);
	close(fd);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq -0x2c(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0x49cc
leaq 0x70(%rbx), %r14
movq %r14, %rdi
callq 0x3470
testl %eax, %eax
jne 0x49c5
leaq -0x2c(%rbp), %rax
movl (%rax), %r12d
movl -0x30(%rbp), %r13d
leaq -0x48(%rbp), %r15
movq %rbx, %rdi
leaq -0x2c(%rbp), %rsi
callq 0x4ad8
movl %r12d, %edi
movl %r13d, %esi
callq 0x31b0
movl %r12d, %edi
callq 0x35e0
movq %rbx, %rdi
callq 0x50f0
movq %rbx, %rdi
leaq -0x38(%rbp), %rsi
leaq -0x34(%rbp), %rdx
callq 0x49cc
movq %r14, %rdi
callq 0x3280
movq $0x5, -0x48(%rbp)
movq $0x0, -0x40(%rbp)
movq %r15, %rdi
movq %r15, %rsi
callq 0x30f0
cmpl $-0x1, %eax
jne 0x49b9
callq 0x3060
cmpl $0x4, (%rax)
je 0x499f
movq %r14, %rdi
callq 0x3470
testl %eax, %eax
je 0x4950
movl %eax, %edi
callq 0x3250
// File: /workspace/github_cpp_makefile_star2_O1/vianna274[P]dropbox/src/Client.cpp
// Function: Dropbox::Client::initializeInotify(int*, int*)
void Client::initializeInotify(int *fd, int *wd){
	/* Initialize Inotify*/
	*fd = inotify_init();
	if ( *fd < 0 ) {
		cout << "Couldn't initialize inotify" << endl;
	}
	/* add watch to starting directory */
	*wd = inotify_add_watch(*fd, syncDirPath.c_str(), IN_CLOSE_WRITE | IN_MOVED_FROM | IN_MOVED_TO); 

	if (*wd == -1){
		cout << "Couldn't add watch to " << syncDirPath.c_str() << endl;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
callq 0x35b0
movl %eax, (%r15)
testl %eax, %eax
jns 0x4a2f
movq 0x105dd(%rip), %r12     # 0x14fd0
leaq 0xb665(%rip), %rsi      # 0x1005f
movl $0x1b, %edx
movq %r12, %rdi
callq 0x33a0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3330
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3260
movl (%r15), %edi
movq 0x50(%rbx), %rsi
movl $0xc8, %edx
callq 0x3210
movl %eax, (%r14)
cmpl $-0x1, %eax
je 0x4a51
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x10578(%rip), %r14     # 0x14fd0
leaq 0xb61c(%rip), %rsi      # 0x1007b
movl $0x16, %edx
movq %r14, %rdi
callq 0x33a0
movq 0x50(%rbx), %rbx
testq %rbx, %rbx
je 0x4a91
movq %rbx, %rdi
callq 0x3170
movq 0x1054c(%rip), %rdi     # 0x14fd0
movq %rbx, %rsi
movq %rax, %rdx
callq 0x33a0
jmp 0x4aa9
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x3520
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3330
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x3260
// File: /workspace/github_cpp_makefile_star2_O1/vianna274[P]dropbox/src/Client.cpp
// Function: Dropbox::Client::createSyncDir()
void Client::createSyncDir(){
	struct stat st;
	if(stat(syncDirPath.c_str(), &st) == -1){ //Se não existe cria, se existe faz nada
		mkdir(syncDirPath.c_str(), 0777);
		cout << "Created Sync Dir on " + syncDirPath << endl;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0xb0, %rsp
movq %rdi, %rbx
movq 0x50(%rdi), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x32f0
cmpl $-0x1, %eax
jne 0x5942
addq $0x50, %rbx
movq (%rbx), %rdi
movl $0x1ff, %esi            # imm = 0x1FF
callq 0x31a0
leaq 0xa7ae(%rip), %rsi      # 0x10092
leaq -0x30(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rdx
callq 0x5fc3
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0xf6cf(%rip), %rdi      # 0x14fd0
callq 0x33a0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3330
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3260
leaq -0x20(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5942
callq 0x3320
addq $0xb0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x20(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5963
callq 0x3320
movq %rbx, %rdi
callq 0x3580
nop
// File: /workspace/github_cpp_makefile_star2_O1/vianna274[P]dropbox/src/Client.cpp
// Function: Dropbox::Client::removeFileRecord(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Client::removeFileRecord(string filename) {
	vector<FileRecord>::iterator it;
	for(it = this->fileRecords.begin(); it != this->fileRecords.end(); it++) {
		if (string(it->filename) == filename) {
			this->fileRecords.erase(it);
			return;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq 0xc0(%rdi), %r12
cmpq 0xc8(%rdi), %r12
je 0x5abd
movq %rsi, %r15
movq %rdi, %rbx
leaq 0xe8(%r12), %r14
leaq -0x50(%rbp), %rdi
movq %r12, %rsi
leaq -0x29(%rbp), %rdx
callq 0x3150
movq -0x48(%rbp), %rdx
cmpq 0x8(%r15), %rdx
jne 0x5a5c
testq %rdx, %rdx
je 0x5a61
movq (%r15), %rsi
movq -0x50(%rbp), %rdi
callq 0x3350
testl %eax, %eax
sete %r13b
jmp 0x5a64
xorl %r13d, %r13d
jmp 0x5a64
movb $0x1, %r13b
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x5a76
callq 0x3320
testb %r13b, %r13b
jne 0x5a91
movl $0xe8, %eax
addq %rax, %r12
addq %rax, %r14
cmpq 0xc8(%rbx), %r12
jne 0x5a29
jmp 0x5abd
movq 0xc8(%rbx), %rdx
cmpq %rdx, %r14
je 0x5ab2
subq %r14, %rdx
movq %r14, %rdi
addq $-0xe8, %rdi
movq %r14, %rsi
callq 0x3500
addq $-0xe8, 0xc8(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/vianna274[P]dropbox/src/Client.cpp
// Function: Dropbox::Client::updateFileRecord(Dropbox::_FileRecord)
void Client::updateFileRecord(FileRecord newFile) {
	vector<FileRecord>::iterator it;
	for(it = this->fileRecords.begin(); it != this->fileRecords.end(); it++) {
		if (string(it->filename) == string(newFile.filename)) {
			*it = newFile;
			return;
		}
	}
	this->fileRecords.push_back(newFile);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r14
leaq 0x10(%rbp), %rbx
movq 0xc0(%rdi), %r15
movq 0xc8(%rdi), %rsi
cmpq %rsi, %r15
je 0x5b93
leaq -0x60(%rbp), %r13
leaq -0x50(%rbp), %rdi
movq %r15, %rsi
leaq -0x29(%rbp), %rdx
callq 0x3150
movq %r13, -0x70(%rbp)
movq %rbx, %rdi
callq 0x3170
leaq (%rax,%rbx), %rdx
leaq -0x70(%rbp), %rdi
movq %rbx, %rsi
callq 0x62de
movq -0x48(%rbp), %rdx
cmpq -0x68(%rbp), %rdx
jne 0x5b4f
testq %rdx, %rdx
je 0x5b54
movq -0x70(%rbp), %rsi
movq -0x50(%rbp), %rdi
callq 0x3350
testl %eax, %eax
sete %r12b
jmp 0x5b57
xorl %r12d, %r12d
jmp 0x5b57
movb $0x1, %r12b
movq -0x70(%rbp), %rdi
cmpq %r13, %rdi
je 0x5b65
callq 0x3320
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x5b77
callq 0x3320
testb %r12b, %r12b
jne 0x5bb9
addq $0xe8, %r15
movq 0xc8(%r14), %rsi
cmpq %rsi, %r15
jne 0x5aff
cmpq 0xd0(%r14), %rsi
je 0x5bcb
movl $0xe8, %edx
movq %rsi, %rdi
movq %rbx, %rsi
callq 0x32b0
addq $0xe8, 0xc8(%r14)
jmp 0x5bdd
movl $0xe8, %edx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x32b0
jmp 0x5bdd
addq $0xc0, %r14
movq %r14, %rdi
movq %rbx, %rdx
callq 0x63e0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x5c01
callq 0x3320
movq %rbx, %rdi
callq 0x3580
nop
// File: /workspace/github_cpp_makefile_star2_O1/vianna274[P]dropbox/src/Client.cpp
// Function: Dropbox::Client::requestServerFileList()
void Client::requestServerFileList() {

	MessageData packet = make_packet(TYPE_LIST_SERVER, 1, 1, -1, "list_server");
	socket->send(&packet);
	vector<FileRecord> files = this->receiveFileList(this->getSocket());
	this->printFileList(files);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x1010, %rsp           # imm = 0x1010
movq %rdi, %rbx
leaq 0xa210(%rip), %r9       # 0x10124
leaq -0x1014(%rbp), %r14
movq %r14, %rdi
movl $0x6, %esi
movl $0x1, %edx
movl $0x1, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x657c
movq 0x40(%rbx), %rdi
movq %r14, %rsi
callq 0xeae4
movq 0x40(%rbx), %rdx
leaq -0x40(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x7802
leaq -0x28(%rbp), %rdi
movq %r14, %rsi
callq 0x60e0
leaq -0x28(%rbp), %rsi
movq %rbx, %rdi
callq 0x78ca
movq -0x28(%rbp), %rdi
testq %rdi, %rdi
je 0x5f7d
callq 0x3320
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x5f8b
callq 0x3320
addq $0x1010, %rsp           # imm = 0x1010
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movq -0x28(%rbp), %rdi
testq %rdi, %rdi
je 0x5fad
callq 0x3320
jmp 0x5fad
movq %rax, %rbx
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x5fbb
callq 0x3320
movq %rbx, %rdi
callq 0x3580
// File: /workspace/github_cpp_makefile_star2_O1/vianna274[P]dropbox/src/FileRecord.cpp
// Function: Dropbox::make_record(char const*, long, long, long, int)
FileRecord Dropbox::make_record(const char *filename, time_t creationTime, time_t accessTime, time_t modificationTime, int size) {
    
    FileRecord fileRecord;
    strcpy(fileRecord.filename, filename);
    fileRecord.creationTime = creationTime;
    fileRecord.accessTime = accessTime;
    fileRecord.modificationTime = modificationTime;
    fileRecord.size = size;

    return fileRecord;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %ebx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rdi, %r13
callq 0x3310
movq %r12, 0xc8(%r13)
movq %r15, 0xd0(%r13)
movq %r14, 0xd8(%r13)
movl %ebx, 0xe0(%r13)
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/vianna274[P]dropbox/src/MessageData.cpp
// Function: Dropbox::make_packet(int, int, int, int, char const*)
MessageData Dropbox::make_packet(int type, int seq, int totalSize, int len, const char *payload){
    MessageData data;
    data.type = type;
    data.seq = seq;
    data.totalSize = totalSize;
    data.len = len;
    data.socketSeq = -1;
    // File or record packets can't have \0 at the end of the payload
    if(type == TYPE_DATA || type == TYPE_SEND_FILE)
        memcpy(data.payload, payload, len);
    else
        strncpy(data.payload, payload, MESSAGE_LEN);

    return data;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl %esi, (%rdi)
movl %edx, 0x4(%rdi)
movl %ecx, 0x8(%rdi)
movl %r8d, 0xc(%rdi)
movl $0xffffffff, 0x10(%rdi) # imm = 0xFFFFFFFF
cmpl $0x3, %esi
je 0x65a1
testl %esi, %esi
jne 0x65b5
movq %rbx, %rdi
addq $0x14, %rdi
movslq %r8d, %rdx
movq %r9, %rsi
callq 0x32b0
jmp 0x65c9
movq %rbx, %rdi
addq $0x14, %rdi
movl $0xfa0, %edx            # imm = 0xFA0
movq %r9, %rsi
callq 0x31f0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/vianna274[P]dropbox/src/MessageData.cpp
// Function: Dropbox::make_packet(int, int, int, int, char const*, char const*)
MessageData Dropbox::make_packet(int type, int seq, int totalSize, int len, const char *payload, const char *username){
    MessageData data;
    data.type = type;
    data.seq = seq;
    data.totalSize = totalSize;
    data.len = len;
    data.socketSeq = -1;
    // File or record packets can't have \0 at the end of the payload
    if(type == TYPE_DATA || type == TYPE_SEND_FILE)
        memcpy(data.payload, payload, len);
    else
        strncpy(data.payload, payload, MESSAGE_LEN);
    
    strncpy(data.username, username, 30);

    return data;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rbp), %r14
movl %esi, (%rdi)
movl %edx, 0x4(%rdi)
movl %ecx, 0x8(%rdi)
movl %r8d, 0xc(%rdi)
movl $0xffffffff, 0x10(%rdi) # imm = 0xFFFFFFFF
cmpl $0x3, %esi
je 0x65fd
testl %esi, %esi
jne 0x660e
leaq 0x14(%rbx), %rdi
movslq %r8d, %rdx
movq %r9, %rsi
callq 0x32b0
jmp 0x661f
leaq 0x14(%rbx), %rdi
movl $0xfa0, %edx            # imm = 0xFA0
movq %r9, %rsi
callq 0x31f0
movq %rbx, %rdi
addq $0xfb4, %rdi            # imm = 0xFB4
movl $0x1e, %edx
movq %r14, %rsi
callq 0x31f0
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/vianna274[P]dropbox/src/Operations.cpp
// Function: Dropbox::Operations::getFileList(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
vector<FileRecord> Operations::getFileList(string dirPath) {
    vector<FileRecord> files;
    struct stat filestatus;
    DIR *dir;
    struct dirent *ent;

    if ((dir = opendir (dirPath.c_str())) != NULL) {
        while ((ent = readdir (dir)) != NULL) {
            if(ent->d_type == 0x8) {
				stat((dirPath + ent->d_name).c_str(), &filestatus);
                FileRecord fileRecord = make_record(ent->d_name, filestatus.st_ctim.tv_sec, filestatus.st_atim.tv_sec, filestatus.st_mtim.tv_sec, filestatus.st_size);
				files.push_back(fileRecord);
            }
        }
        closedir(dir);
    }
    return files;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x178, %rsp            # imm = 0x178
movq %rdx, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq (%rdx), %rdi
callq 0x3490
testq %rax, %rax
je 0x6769
movq %rax, %r15
leaq -0x1a0(%rbp), %r12
movq %r15, %rdi
callq 0x34b0
movq %rax, %r13
testq %rax, %rax
je 0x6761
cmpb $0x8, 0x12(%r13)
jne 0x6691
leaq -0x190(%rbp), %rax
movq %rax, -0x1a0(%rbp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x6244
addq $0x13, %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x35c0
movq -0x1a0(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x32f0
movq -0x1a0(%rbp), %rdi
leaq -0x190(%rbp), %rax
cmpq %rax, %rdi
je 0x6706
callq 0x3320
movq -0x50(%rbp), %rdx
movq -0x70(%rbp), %rcx
movq -0x60(%rbp), %r8
movl -0x88(%rbp), %r9d
movq %r12, %rdi
movq %r13, %rsi
callq 0x652c
movq 0x8(%rbx), %r13
cmpq 0x10(%rbx), %r13
je 0x674e
movl $0xe8, %edx
movq %r13, %rdi
movq %r12, %rsi
callq 0x32b0
addq $0xe8, %r13
movq %r13, 0x8(%rbx)
jmp 0x6691
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x63e0
jmp 0x6691
movq %r15, %rdi
callq 0x34f0
movq %rbx, %rax
addq $0x178, %rsp            # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x679f
movq %rax, %r14
movq -0x1a0(%rbp), %rdi
leaq -0x190(%rbp), %rax
cmpq %rax, %rdi
je 0x67a2
callq 0x3320
jmp 0x67a2
jmp 0x679f
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x67af
callq 0x3320
movq %r14, %rdi
callq 0x3580
nop
// File: /workspace/github_cpp_makefile_star2_O1/vianna274[P]dropbox/src/Operations.cpp
// Function: Dropbox::Operations::sendFileList(Dropbox::WrapperSocket*, std::vector<Dropbox::_FileRecord, std::allocator<Dropbox::_FileRecord>>)
void Operations::sendFileList(WrapperSocket *socket, vector<FileRecord> files){
    if(files.empty()){
        MessageData packet = make_packet(TYPE_NOTHING_TO_SEND, 1, 1, -1, "nothing_to_send");
        socket->send(&packet);
        return;
    }
    int seq = 1;
    for(FileRecord record : files) {
        MessageData packet = make_packet(TYPE_DATA, seq, files.size(), sizeof(FileRecord), (char*)&record);
        socket->send(&packet);
        seq++;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10c8, %rsp           # imm = 0x10C8
movq %rsi, %r12
movq (%rdx), %r15
movq 0x8(%rdx), %r13
cmpq %r13, %r15
je 0x6851
movq %rdx, %r14
movq %r12, -0x30(%rbp)
movl $0x1, %r12d
movl $0xe8, %edx
leaq -0x118(%rbp), %rdi
movq %r15, %rsi
callq 0x32b0
movq 0x8(%r14), %rax
subq (%r14), %rax
shrq $0x3, %rax
imull $0x4f72c235, %eax, %ecx # imm = 0x4F72C235
movq %r14, %rbx
leaq -0x10ec(%rbp), %r14
movq %r14, %rdi
xorl %esi, %esi
movl %r12d, %edx
movl $0xe8, %r8d
leaq -0x118(%rbp), %r9
callq 0x657c
movq -0x30(%rbp), %rdi
movq %r14, %rsi
movq %rbx, %r14
callq 0xeae4
incl %r12d
addq $0xe8, %r15
cmpq %r13, %r15
jne 0x67e8
jmp 0x6887
leaq 0x9a51(%rip), %r9       # 0x102a9
leaq -0x10ec(%rbp), %rbx
movq %rbx, %rdi
movl $0x7, %esi
movl $0x1, %edx
movl $0x1, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x657c
movq %r12, %rdi
movq %rbx, %rsi
callq 0xeae4
addq $0x10c8, %rsp           # imm = 0x10C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/vianna274[P]dropbox/src/Operations.cpp
// Function: Dropbox::Operations::receiveFile(Dropbox::WrapperSocket*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Operations::receiveFile(WrapperSocket *socket, string filename, string dirPath) {
    string filePath = dirPath + filename;
		
    ofstream newFile;
		newFile.open(filePath, ofstream::trunc | ofstream::binary);
		if(!newFile.is_open()) {
			return;
    }
    int seqNumber, totalPackets;
    do{
        MessageData *packet = socket->receive(TIMEOUT_OFF);
        seqNumber = packet->seq;
        totalPackets = packet->totalSize;
        newFile.write(packet->payload, packet->len);
    }while(seqNumber != totalPackets);
    
    newFile.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x220, %rsp            # imm = 0x220
movq %rsi, %rbx
leaq -0x40(%rbp), %rdi
movq %rcx, %rsi
callq 0x6174
leaq -0x240(%rbp), %rdi
callq 0x3530
leaq -0x240(%rbp), %rdi
leaq -0x40(%rbp), %rsi
movl $0x24, %edx
callq 0x31c0
leaq -0x1d0(%rbp), %rdi
callq 0x30b0
testb %al, %al
je 0x6929
leaq -0x240(%rbp), %r14
movq %rbx, %rdi
xorl %esi, %esi
callq 0xed22
movl 0x4(%rax), %r15d
movl 0x8(%rax), %r12d
movq %rax, %rsi
addq $0x14, %rsi
movslq 0xc(%rax), %rdx
movq %r14, %rdi
callq 0x33f0
cmpl %r12d, %r15d
jne 0x68f3
leaq -0x240(%rbp), %rdi
callq 0x3420
movq 0xe698(%rip), %rax      # 0x14fc8
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq -0x238(%rbp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, -0x240(%rbp,%rcx)
callq 0x32c0
leaq -0x148(%rbp), %rdi
callq 0x3110
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6971
callq 0x3320
addq $0x220, %rsp            # imm = 0x220
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x698a
jmp 0x698a
movq %rax, %rbx
jmp 0x6999
movq %rax, %rbx
leaq -0x240(%rbp), %rdi
callq 0x3480
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x69ab
callq 0x3320
movq %rbx, %rdi
callq 0x3580
nop
// File: /workspace/github_cpp_makefile_star2_O1/vianna274[P]dropbox/src/Operations.cpp
// Function: Dropbox::Operations::receiveFileList(Dropbox::WrapperSocket*)
vector<FileRecord> Operations::receiveFileList(WrapperSocket * socket) {
	MessageData *unconvertedFiles;
	FileRecord record;
	vector<FileRecord> files;
	do {
		unconvertedFiles = socket->receive(TIMEOUT_OFF);
		if(unconvertedFiles->type == TYPE_NOTHING_TO_SEND) break;
		record = *((FileRecord*)unconvertedFiles->payload);
		files.push_back(record);
	} while(unconvertedFiles->seq != unconvertedFiles->totalSize);
	return files;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rdx, -0x30(%rbp)
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq -0x118(%rbp), %r14
movq -0x30(%rbp), %rdi
xorl %esi, %esi
callq 0xed22
movq %rax, %r12
cmpl $0x7, (%rax)
je 0x789d
movq %r12, %r13
addq $0x14, %r13
movl $0xe8, %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0x32b0
movq 0x8(%rbx), %r15
cmpq 0x10(%rbx), %r15
je 0x7883
movl $0xe8, %edx
movq %r15, %rdi
movq %r13, %rsi
callq 0x3500
addq $0xe8, %r15
movq %r15, 0x8(%rbx)
jmp 0x7891
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x63e0
movl 0x4(%r12), %eax
cmpl 0x8(%r12), %eax
jne 0x7832
movq %rbx, %rax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x78c2
callq 0x3320
movq %r14, %rdi
callq 0x3580
// File: /workspace/github_cpp_makefile_star2_O1/vianna274[P]dropbox/src/Operations.cpp
// Function: Dropbox::Operations::receiveUploadAll(Dropbox::WrapperSocket*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Operations::receiveUploadAll(WrapperSocket * socket, string dirPath) {
	while(1) {
		MessageData * packet = socket->receive(TIMEOUT_OFF);
		if (packet->type == TYPE_SEND_UPLOAD_ALL_DONE ||
			packet->type == TYPE_NOTHING_TO_SEND)
			break;
		this->receiveFile(socket, string(packet->payload), dirPath);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, -0x30(%rbp)
movq %rsi, %r14
leaq -0x60(%rbp), %r15
leaq -0x70(%rbp), %rbx
movq %r14, %rdi
xorl %esi, %esi
callq 0xed22
movq %rax, %r13
movl (%rax), %eax
cmpl $0x7, %eax
je 0x7b3d
cmpl $0xa, %eax
je 0x7b3d
movq %r15, %r12
leaq 0x14(%r13), %r15
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
movq %r15, %rdi
callq 0x3170
leaq (%rax,%r13), %rdx
addq $0x14, %rdx
leaq -0x50(%rbp), %r13
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %r15
callq 0x62de
movq %r12, -0x70(%rbp)
movq -0x30(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x6244
movq %r14, %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x689a
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x7b22
callq 0x3320
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x7a9a
callq 0x3320
jmp 0x7a9a
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x7b62
callq 0x3320
jmp 0x7b62
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x7b74
callq 0x3320
movq %rbx, %rdi
callq 0x3580