LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: kylegranger[P]ImageScaling/filter16.cpp
// Function: DownfilterY(color_t*, color_t*, color_t*, color_t*, color_t*)
void DownfilterY(color_t *src1, color_t *src2, color_t *src3, color_t *src4, color_t *dst)
{
	// we mix four source pixels into one destination pixel
	// All within same column.
	dst->r = ((src1->r + 3 * (src2->r + src3->r) + src4->r + 4) >> 3);
	dst->g = ((src1->g + 3 * (src2->g + src3->g) + src4->g + 4) >> 3);
	dst->b = ((src1->b + 3 * (src2->b + src3->b) + src4->b + 4) >> 3);
	dst->a = ((src1->a + 3 * (src2->a + src3->a) + src4->a + 4) >> 3);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rax
movzwl 0x4(%rax), %eax
movq -0x10(%rbp), %rcx
movzwl 0x4(%rcx), %ecx
movq -0x18(%rbp), %rdx
movzwl 0x4(%rdx), %edx
addl %edx, %ecx
imull $0x3, %ecx, %ecx
addl %ecx, %eax
movq -0x20(%rbp), %rcx
movzwl 0x4(%rcx), %ecx
addl %ecx, %eax
addl $0x4, %eax
sarl $0x3, %eax
movw %ax, %cx
movq -0x28(%rbp), %rax
movw %cx, 0x4(%rax)
movq -0x8(%rbp), %rax
movzwl 0x2(%rax), %eax
movq -0x10(%rbp), %rcx
movzwl 0x2(%rcx), %ecx
movq -0x18(%rbp), %rdx
movzwl 0x2(%rdx), %edx
addl %edx, %ecx
imull $0x3, %ecx, %ecx
addl %ecx, %eax
movq -0x20(%rbp), %rcx
movzwl 0x2(%rcx), %ecx
addl %ecx, %eax
addl $0x4, %eax
sarl $0x3, %eax
movw %ax, %cx
movq -0x28(%rbp), %rax
movw %cx, 0x2(%rax)
movq -0x8(%rbp), %rax
movzwl (%rax), %eax
movq -0x10(%rbp), %rcx
movzwl (%rcx), %ecx
movq -0x18(%rbp), %rdx
movzwl (%rdx), %edx
addl %edx, %ecx
imull $0x3, %ecx, %ecx
addl %ecx, %eax
movq -0x20(%rbp), %rcx
movzwl (%rcx), %ecx
addl %ecx, %eax
addl $0x4, %eax
sarl $0x3, %eax
movw %ax, %cx
movq -0x28(%rbp), %rax
movw %cx, (%rax)
movq -0x8(%rbp), %rax
movzwl 0x6(%rax), %eax
movq -0x10(%rbp), %rcx
movzwl 0x6(%rcx), %ecx
movq -0x18(%rbp), %rdx
movzwl 0x6(%rdx), %edx
addl %edx, %ecx
imull $0x3, %ecx, %ecx
addl %ecx, %eax
movq -0x20(%rbp), %rcx
movzwl 0x6(%rcx), %ecx
addl %ecx, %eax
addl $0x4, %eax
sarl $0x3, %eax
movw %ax, %cx
movq -0x28(%rbp), %rax
movw %cx, 0x6(%rax)
popq %rbp
retq
nopl (%rax)
// File: kylegranger[P]ImageScaling/filter16.cpp
// Function: DownfilterY(color_t*, color_t*, color_t*, color_t*)
void DownfilterY(color_t *src2, color_t *src3, color_t *src4, color_t *dst)
{
	// we mix four source pixels into one destination pixel
	// All within same column.
	dst->r = ((3 * (src2->r + src3->r) + src4->r + 3) / 7);
	dst->g = ((3 * (src2->g + src3->g) + src4->g + 3) / 7);
	dst->b = ((3 * (src2->b + src3->b) + src4->b + 3) / 7);
	dst->a = ((3 * (src2->a + src3->a) + src4->a + 3) / 7);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rax
movzwl 0x4(%rax), %eax
movq -0x10(%rbp), %rcx
movzwl 0x4(%rcx), %ecx
addl %ecx, %eax
imull $0x3, %eax, %eax
movq -0x18(%rbp), %rcx
movzwl 0x4(%rcx), %ecx
addl %ecx, %eax
addl $0x3, %eax
movl $0x7, %ecx
cltd
idivl %ecx
movw %ax, %cx
movq -0x20(%rbp), %rax
movw %cx, 0x4(%rax)
movq -0x8(%rbp), %rax
movzwl 0x2(%rax), %eax
movq -0x10(%rbp), %rcx
movzwl 0x2(%rcx), %ecx
addl %ecx, %eax
imull $0x3, %eax, %eax
movq -0x18(%rbp), %rcx
movzwl 0x2(%rcx), %ecx
addl %ecx, %eax
addl $0x3, %eax
movl $0x7, %ecx
cltd
idivl %ecx
movw %ax, %cx
movq -0x20(%rbp), %rax
movw %cx, 0x2(%rax)
movq -0x8(%rbp), %rax
movzwl (%rax), %eax
movq -0x10(%rbp), %rcx
movzwl (%rcx), %ecx
addl %ecx, %eax
imull $0x3, %eax, %eax
movq -0x18(%rbp), %rcx
movzwl (%rcx), %ecx
addl %ecx, %eax
addl $0x3, %eax
movl $0x7, %ecx
cltd
idivl %ecx
movw %ax, %cx
movq -0x20(%rbp), %rax
movw %cx, (%rax)
movq -0x8(%rbp), %rax
movzwl 0x6(%rax), %eax
movq -0x10(%rbp), %rcx
movzwl 0x6(%rcx), %ecx
addl %ecx, %eax
imull $0x3, %eax, %eax
movq -0x18(%rbp), %rcx
movzwl 0x6(%rcx), %ecx
addl %ecx, %eax
addl $0x3, %eax
movl $0x7, %ecx
cltd
idivl %ecx
movw %ax, %cx
movq -0x20(%rbp), %rax
movw %cx, 0x6(%rax)
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: kylegranger[P]ImageScaling/filter16.cpp
// Function: UpfilterX(color_t*, color_t*)
void UpfilterX(color_t *src, color_t *dst)
{
	// we mix three source pixels (A,B.C) into two destination pixels (1,2)
	// AB -> 1;  BC -> 2
	// All on same scanline.
	dst[0].r = ((src[0].r + 3 * src[1].r + 2) >> 2);
	dst[1].r = ((src[1].r * 3 + src[2].r + 2) >> 2);
	dst[0].g = ((src[0].g + 3 * src[1].g + 2) >> 2);
	dst[1].g = ((src[1].g * 3 + src[2].g + 2) >> 2);
	dst[0].b = ((src[0].b + 3 * src[1].b + 2) >> 2);
	dst[1].b = ((src[1].b * 3 + src[2].b + 2) >> 2);
	dst[0].a = ((src[0].a + 3 * src[1].a + 2) >> 2);
	dst[1].a = ((src[1].a * 3 + src[2].a + 2) >> 2);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movzwl 0x4(%rax), %eax
movq -0x8(%rbp), %rcx
movzwl 0xc(%rcx), %ecx
imull $0x3, %ecx, %ecx
addl %ecx, %eax
addl $0x2, %eax
sarl $0x2, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0x4(%rax)
movq -0x8(%rbp), %rax
movzwl 0xc(%rax), %eax
imull $0x3, %eax, %eax
movq -0x8(%rbp), %rcx
movzwl 0x14(%rcx), %ecx
addl %ecx, %eax
addl $0x2, %eax
sarl $0x2, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0xc(%rax)
movq -0x8(%rbp), %rax
movzwl 0x2(%rax), %eax
movq -0x8(%rbp), %rcx
movzwl 0xa(%rcx), %ecx
imull $0x3, %ecx, %ecx
addl %ecx, %eax
addl $0x2, %eax
sarl $0x2, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0x2(%rax)
movq -0x8(%rbp), %rax
movzwl 0xa(%rax), %eax
imull $0x3, %eax, %eax
movq -0x8(%rbp), %rcx
movzwl 0x12(%rcx), %ecx
addl %ecx, %eax
addl $0x2, %eax
sarl $0x2, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0xa(%rax)
movq -0x8(%rbp), %rax
movzwl (%rax), %eax
movq -0x8(%rbp), %rcx
movzwl 0x8(%rcx), %ecx
imull $0x3, %ecx, %ecx
addl %ecx, %eax
addl $0x2, %eax
sarl $0x2, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, (%rax)
movq -0x8(%rbp), %rax
movzwl 0x8(%rax), %eax
imull $0x3, %eax, %eax
movq -0x8(%rbp), %rcx
movzwl 0x10(%rcx), %ecx
addl %ecx, %eax
addl $0x2, %eax
sarl $0x2, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0x8(%rax)
movq -0x8(%rbp), %rax
movzwl 0x6(%rax), %eax
movq -0x8(%rbp), %rcx
movzwl 0xe(%rcx), %ecx
imull $0x3, %ecx, %ecx
addl %ecx, %eax
addl $0x2, %eax
sarl $0x2, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0x6(%rax)
movq -0x8(%rbp), %rax
movzwl 0xe(%rax), %eax
imull $0x3, %eax, %eax
movq -0x8(%rbp), %rcx
movzwl 0x16(%rcx), %ecx
addl %ecx, %eax
addl $0x2, %eax
sarl $0x2, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0xe(%rax)
popq %rbp
retq
nopl (%rax)
// File: kylegranger[P]ImageScaling/filter16.cpp
// Function: UpfilterXLeft(color_t*, color_t*)
void UpfilterXLeft(color_t *src, color_t *dst)
{
	dst[0].r = src[1].r;
	dst[1].r = ((src[1].r * 3 + src[2].r + 2) >> 2);
	dst[0].g = src[1].g;
	dst[1].g = ((src[1].g * 3 + src[2].g + 2) >> 2);
	dst[0].b = src[1].b;
	dst[1].b = ((src[1].b * 3 + src[2].b + 2) >> 2);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movw 0xc(%rax), %cx
movq -0x10(%rbp), %rax
movw %cx, 0x4(%rax)
movq -0x8(%rbp), %rax
movzwl 0xc(%rax), %eax
imull $0x3, %eax, %eax
movq -0x8(%rbp), %rcx
movzwl 0x14(%rcx), %ecx
addl %ecx, %eax
addl $0x2, %eax
sarl $0x2, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0xc(%rax)
movq -0x8(%rbp), %rax
movw 0xa(%rax), %cx
movq -0x10(%rbp), %rax
movw %cx, 0x2(%rax)
movq -0x8(%rbp), %rax
movzwl 0xa(%rax), %eax
imull $0x3, %eax, %eax
movq -0x8(%rbp), %rcx
movzwl 0x12(%rcx), %ecx
addl %ecx, %eax
addl $0x2, %eax
sarl $0x2, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0xa(%rax)
movq -0x8(%rbp), %rax
movw 0x8(%rax), %cx
movq -0x10(%rbp), %rax
movw %cx, (%rax)
movq -0x8(%rbp), %rax
movzwl 0x8(%rax), %eax
imull $0x3, %eax, %eax
movq -0x8(%rbp), %rcx
movzwl 0x10(%rcx), %ecx
addl %ecx, %eax
addl $0x2, %eax
sarl $0x2, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0x8(%rax)
popq %rbp
retq
nop
// File: kylegranger[P]ImageScaling/filter16.cpp
// Function: UpfilterXRight(color_t*, color_t*)
void UpfilterXRight(color_t *src, color_t *dst)
{
	dst[0].r = ((src[0].r + 3 * src[1].r + 2) >> 2);
	dst[1].r = src[1].r;
	dst[0].g = ((src[0].g + 3 * src[1].g + 2) >> 2);
	dst[1].g = src[1].g;
	dst[0].b = ((src[0].b + 3 * src[1].b + 2) >> 2);
	dst[1].b = src[1].b;
	dst[0].a = ((src[0].a + 3 * src[1].a + 2) >> 2);
	dst[1].a = src[1].a;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movzwl 0x4(%rax), %eax
movq -0x8(%rbp), %rcx
movzwl 0xc(%rcx), %ecx
imull $0x3, %ecx, %ecx
addl %ecx, %eax
addl $0x2, %eax
sarl $0x2, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0x4(%rax)
movq -0x8(%rbp), %rax
movw 0xc(%rax), %cx
movq -0x10(%rbp), %rax
movw %cx, 0xc(%rax)
movq -0x8(%rbp), %rax
movzwl 0x2(%rax), %eax
movq -0x8(%rbp), %rcx
movzwl 0xa(%rcx), %ecx
imull $0x3, %ecx, %ecx
addl %ecx, %eax
addl $0x2, %eax
sarl $0x2, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0x2(%rax)
movq -0x8(%rbp), %rax
movw 0xa(%rax), %cx
movq -0x10(%rbp), %rax
movw %cx, 0xa(%rax)
movq -0x8(%rbp), %rax
movzwl (%rax), %eax
movq -0x8(%rbp), %rcx
movzwl 0x8(%rcx), %ecx
imull $0x3, %ecx, %ecx
addl %ecx, %eax
addl $0x2, %eax
sarl $0x2, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, (%rax)
movq -0x8(%rbp), %rax
movw 0x8(%rax), %cx
movq -0x10(%rbp), %rax
movw %cx, 0x8(%rax)
movq -0x8(%rbp), %rax
movzwl 0x6(%rax), %eax
movq -0x8(%rbp), %rcx
movzwl 0xe(%rcx), %ecx
imull $0x3, %ecx, %ecx
addl %ecx, %eax
addl $0x2, %eax
sarl $0x2, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0x6(%rax)
movq -0x8(%rbp), %rax
movw 0xe(%rax), %cx
movq -0x10(%rbp), %rax
movw %cx, 0xe(%rax)
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: kylegranger[P]ImageScaling/filter16.cpp
// Function: UpfilterY(color_t*, color_t*, color_t*, color_t*, color_t*)
void UpfilterY(color_t *src1, color_t *src2, color_t *src3, color_t *dst1, color_t *dst2)
{
	dst1->r = ((src1->r + 3 * src2->r + 2) >> 2);
	dst2->r = ((src2->r * 3 + src3->r + 2) >> 2);
	dst1->g = ((src1->g + 3 * src2->g + 2) >> 2);
	dst2->g = ((src2->g * 3 + src3->g + 2) >> 2);
	dst1->b = ((src1->b + 3 * src2->b + 2) >> 2);
	dst2->b = ((src2->b * 3 + src3->b + 2) >> 2);
	dst1->a = ((src1->a + 3 * src2->a + 2) >> 2);
	dst2->a = ((src2->a * 3 + src3->a + 2) >> 2);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rax
movzwl 0x4(%rax), %eax
movq -0x10(%rbp), %rcx
movzwl 0x4(%rcx), %ecx
imull $0x3, %ecx, %ecx
addl %ecx, %eax
addl $0x2, %eax
sarl $0x2, %eax
movw %ax, %cx
movq -0x20(%rbp), %rax
movw %cx, 0x4(%rax)
movq -0x10(%rbp), %rax
movzwl 0x4(%rax), %eax
imull $0x3, %eax, %eax
movq -0x18(%rbp), %rcx
movzwl 0x4(%rcx), %ecx
addl %ecx, %eax
addl $0x2, %eax
sarl $0x2, %eax
movw %ax, %cx
movq -0x28(%rbp), %rax
movw %cx, 0x4(%rax)
movq -0x8(%rbp), %rax
movzwl 0x2(%rax), %eax
movq -0x10(%rbp), %rcx
movzwl 0x2(%rcx), %ecx
imull $0x3, %ecx, %ecx
addl %ecx, %eax
addl $0x2, %eax
sarl $0x2, %eax
movw %ax, %cx
movq -0x20(%rbp), %rax
movw %cx, 0x2(%rax)
movq -0x10(%rbp), %rax
movzwl 0x2(%rax), %eax
imull $0x3, %eax, %eax
movq -0x18(%rbp), %rcx
movzwl 0x2(%rcx), %ecx
addl %ecx, %eax
addl $0x2, %eax
sarl $0x2, %eax
movw %ax, %cx
movq -0x28(%rbp), %rax
movw %cx, 0x2(%rax)
movq -0x8(%rbp), %rax
movzwl (%rax), %eax
movq -0x10(%rbp), %rcx
movzwl (%rcx), %ecx
imull $0x3, %ecx, %ecx
addl %ecx, %eax
addl $0x2, %eax
sarl $0x2, %eax
movw %ax, %cx
movq -0x20(%rbp), %rax
movw %cx, (%rax)
movq -0x10(%rbp), %rax
movzwl (%rax), %eax
imull $0x3, %eax, %eax
movq -0x18(%rbp), %rcx
movzwl (%rcx), %ecx
addl %ecx, %eax
addl $0x2, %eax
sarl $0x2, %eax
movw %ax, %cx
movq -0x28(%rbp), %rax
movw %cx, (%rax)
movq -0x8(%rbp), %rax
movzwl 0x6(%rax), %eax
movq -0x10(%rbp), %rcx
movzwl 0x6(%rcx), %ecx
imull $0x3, %ecx, %ecx
addl %ecx, %eax
addl $0x2, %eax
sarl $0x2, %eax
movw %ax, %cx
movq -0x20(%rbp), %rax
movw %cx, 0x6(%rax)
movq -0x10(%rbp), %rax
movzwl 0x6(%rax), %eax
imull $0x3, %eax, %eax
movq -0x18(%rbp), %rcx
movzwl 0x6(%rcx), %ecx
addl %ecx, %eax
addl $0x2, %eax
sarl $0x2, %eax
movw %ax, %cx
movq -0x28(%rbp), %rax
movw %cx, 0x6(%rax)
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: kylegranger[P]ImageScaling/linear16.cpp
// Function: CLinear16::CLinear16()
CLinear16::CLinear16()
{
	mWidth = 0;
	mHeight = 0;
	mDataSize = 0;
	mData = NULL;
	mChannel = -1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl $0x0, (%rax)
movl $0x0, 0x4(%rax)
movq $0x0, 0x8(%rax)
movq $0x0, 0x18(%rax)
movl $0xffffffff, 0x10(%rax) # imm = 0xFFFFFFFF
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: kylegranger[P]ImageScaling/linear16.cpp
// Function: CLinear16::CLinear16(int, int)
CLinear16::CLinear16(int width, int height)
{
	mWidth = width;
	mHeight = height;
	mDataSize = mWidth * mHeight * (int) sizeof(color_t);
	mData = new color_t[ mWidth * mHeight ];
	memset(mData,128,mDataSize);
	assert(mData);
	mChannel = -1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq -0x8(%rbp), %rcx
movq %rcx, -0x18(%rbp)
movl -0xc(%rbp), %eax
movl %eax, (%rcx)
movl -0x10(%rbp), %eax
movl %eax, 0x4(%rcx)
movl (%rcx), %eax
imull 0x4(%rcx), %eax
shll $0x3, %eax
cltq
movq %rax, 0x8(%rcx)
movl (%rcx), %eax
imull 0x4(%rcx), %eax
cltq
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0xcb90
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x18(%rax)
movq 0x18(%rax), %rdi
movq 0x8(%rax), %rdx
movl $0x80, %esi
callq 0x4070
movq -0x18(%rbp), %rax
cmpq $0x0, 0x18(%rax)
je 0x82b7
jmp 0x82d6
leaq 0x18f46(%rip), %rdi     # 0x21204
leaq 0x18f45(%rip), %rsi     # 0x2120a
movl $0x22, %edx
leaq 0x18f46(%rip), %rcx     # 0x21217
callq 0x40f0
movq -0x18(%rbp), %rax
movl $0xffffffff, 0x10(%rax) # imm = 0xFFFFFFFF
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: kylegranger[P]ImageScaling/linear16.cpp
// Function: CLinear16::Invert()
void CLinear16::Invert()
{
	color_t *c = mData;
	int numpixels = mWidth * mHeight;
	for (int i = 0; i < numpixels; i++)
	{
		c->r = 65535 - c->r;
		c->g = 65535 - c->g;
		c->b = 65535 - c->b;
		c++;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rcx
movq 0x18(%rcx), %rax
movq %rax, -0x10(%rbp)
movl (%rcx), %eax
imull 0x4(%rcx), %eax
movl %eax, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x8a3f
movq -0x10(%rbp), %rax
movzwl 0x4(%rax), %ecx
movl $0xffff, %eax           # imm = 0xFFFF
subl %ecx, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0x4(%rax)
movq -0x10(%rbp), %rax
movzwl 0x2(%rax), %ecx
movl $0xffff, %eax           # imm = 0xFFFF
subl %ecx, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0x2(%rax)
movq -0x10(%rbp), %rax
movzwl (%rax), %ecx
movl $0xffff, %eax           # imm = 0xFFFF
subl %ecx, %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, (%rax)
movq -0x10(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x10(%rbp)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x89d4
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: kylegranger[P]ImageScaling/linear16.cpp
// Function: CLinear16::Init(int, int)
bool CLinear16::Init(int width, int height)
{
	mWidth = width;
	mHeight = height;
	mDataSize = mWidth * mHeight * (int)sizeof(color_t);
	mData = new color_t[ mWidth * mHeight ];
	if (!mData) return false;
	return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq -0x10(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movl -0x14(%rbp), %eax
movl %eax, (%rcx)
movl -0x18(%rbp), %eax
movl %eax, 0x4(%rcx)
movl (%rcx), %eax
imull 0x4(%rcx), %eax
shll $0x3, %eax
cltq
movq %rax, 0x8(%rcx)
movl (%rcx), %eax
imull 0x4(%rcx), %eax
cltq
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0xcb90
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x18(%rax)
cmpq $0x0, 0x18(%rax)
jne 0x8ac5
movb $0x0, -0x1(%rbp)
jmp 0x8ac9
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: kylegranger[P]ImageScaling/linear16.cpp
// Function: CLinear16::GetPixel(int, int, color_t&)
void CLinear16::GetPixel(int x, int y, color_t &color)
{
	if (x < 0)        x = 0;
	if (x >= mWidth)  x = mWidth - 1;
	if (y < 0)        y = 0;
	if (y >= mHeight) y = mHeight - 1;

	color_t *c = mData + y * mWidth + x;
	color = *c;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq %rcx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
cmpl $0x0, -0xc(%rbp)
jge 0x8b07
movl $0x0, -0xc(%rbp)
movq -0x28(%rbp), %rcx
movl -0xc(%rbp), %eax
cmpl (%rcx), %eax
jl 0x8b1e
movq -0x28(%rbp), %rax
movl (%rax), %eax
subl $0x1, %eax
movl %eax, -0xc(%rbp)
cmpl $0x0, -0x10(%rbp)
jge 0x8b2b
movl $0x0, -0x10(%rbp)
movq -0x28(%rbp), %rcx
movl -0x10(%rbp), %eax
cmpl 0x4(%rcx), %eax
jl 0x8b44
movq -0x28(%rbp), %rax
movl 0x4(%rax), %eax
subl $0x1, %eax
movl %eax, -0x10(%rbp)
movq -0x28(%rbp), %rdx
movq 0x18(%rdx), %rax
movl -0x10(%rbp), %ecx
imull (%rdx), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq -0xc(%rbp), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rcx
movq -0x18(%rbp), %rax
movq (%rcx), %rcx
movq %rcx, (%rax)
popq %rbp
retq
nopl (%rax,%rax)
// File: kylegranger[P]ImageScaling/linear16.cpp
// Function: CLinear16::UpsampleX(CLinear16*)
void CLinear16::UpsampleX(CLinear16 *bmp)
{
	color_t *src = mData - 1;
	color_t *dst = bmp->mData;
	for (int y = 0; y < mHeight; y++)
	{
		UpfilterXLeft(src++, dst);
		dst += 2;
		for (int x = 1; x < mWidth-1; x++)
		{
			UpfilterX(src++, dst);
			dst += 2;
		}
		UpfilterXRight(src++, dst);
		dst += 2;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq 0x18(%rax), %rax
addq $-0x8, %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movq -0x30(%rbp), %rcx
movl -0x24(%rbp), %eax
cmpl 0x4(%rcx), %eax
jge 0x9403
movq -0x18(%rbp), %rdi
movq %rdi, %rax
addq $0x8, %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rsi
callq 0x7430
movq -0x20(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x20(%rbp)
movl $0x1, -0x28(%rbp)
movq -0x30(%rbp), %rcx
movl -0x28(%rbp), %eax
movl (%rcx), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x93d1
movq -0x18(%rbp), %rdi
movq %rdi, %rax
addq $0x8, %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rsi
callq 0x72f0
movq -0x20(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x20(%rbp)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x9392
movq -0x18(%rbp), %rdi
movq %rdi, %rax
addq $0x8, %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rsi
callq 0x74e0
movq -0x20(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x20(%rbp)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x9357
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
// File: kylegranger[P]ImageScaling/linear16.cpp
// Function: CLinear16::DownsampleX(CLinear16*)
void CLinear16::DownsampleX(CLinear16 *bmp)
{
	assert((mWidth  & 0xfffe) == bmp->mWidth*2);
	assert(mHeight == bmp->mHeight);
	color_t *src = mData - 1;
	color_t *dst = bmp->mData;
	for (int y = 0; y < bmp->mHeight; y++)
	{
		DownfilterXLeft(src, dst++);
		src += 2;
		for (int x = 1; x < bmp->mWidth-1; x++)
		{
			DownfilterX(src, dst++);
			src += 2;
		}
		DownfilterXRight(src, dst++);
		src += 2 + (mWidth&1);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movl (%rax), %eax
andl $0xfffe, %eax           # imm = 0xFFFE
movq -0x10(%rbp), %rcx
movl (%rcx), %ecx
shll %ecx
cmpl %ecx, %eax
jne 0x9d9d
jmp 0x9dbc
leaq 0x17509(%rip), %rdi     # 0x212ad
leaq 0x1745f(%rip), %rsi     # 0x2120a
movl $0x1f6, %edx            # imm = 0x1F6
leaq 0x17566(%rip), %rcx     # 0x2131d
callq 0x40f0
movq -0x30(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x10(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jne 0x9dce
jmp 0x9ded
leaq 0x17571(%rip), %rdi     # 0x21346
leaq 0x1742e(%rip), %rsi     # 0x2120a
movl $0x1f7, %edx            # imm = 0x1F7
leaq 0x17535(%rip), %rcx     # 0x2131d
callq 0x40f0
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rax
addq $-0x8, %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jge 0x9ece
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq %rsi, %rax
addq $0x8, %rax
movq %rax, -0x20(%rbp)
callq 0x5eb0
movq -0x18(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x18(%rbp)
movl $0x1, -0x28(%rbp)
movl -0x28(%rbp), %eax
movq -0x10(%rbp), %rcx
movl (%rcx), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x9e8a
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq %rsi, %rax
addq $0x8, %rax
movq %rax, -0x20(%rbp)
callq 0x5db0
movq -0x18(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x18(%rbp)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x9e4b
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq %rsi, %rax
addq $0x8, %rax
movq %rax, -0x20(%rbp)
callq 0x5fa0
movq -0x30(%rbp), %rax
movl (%rax), %ecx
andl $0x1, %ecx
addl $0x2, %ecx
movq -0x18(%rbp), %rax
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x9e10
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: kylegranger[P]ImageScaling/linear16.cpp
// Function: CLinear16::ConvertToMonochrome()
void CLinear16::ConvertToMonochrome()
{
	color_t *c = mData;
	for (int y = 0; y < mHeight; y++)
	{
		for (int x = 0; x < mWidth; x++)
		{
			// scale by 10000
			int luma = c->r * 2126 + c->g * 7152 + c->b * 722 + 5000;
			luma /= 10000;
			c->r = luma;
			c->g = luma;
			c->b = luma;
			c++;
		}
	}

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq 0x18(%rax), %rax
movq %rax, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movq -0x28(%rbp), %rcx
movl -0x14(%rbp), %eax
cmpl 0x4(%rcx), %eax
jge 0xaddb
movl $0x0, -0x18(%rbp)
movq -0x28(%rbp), %rcx
movl -0x18(%rbp), %eax
cmpl (%rcx), %eax
jge 0xadcb
movq -0x10(%rbp), %rax
movzwl 0x4(%rax), %eax
imull $0x84e, %eax, %eax      # imm = 0x84E
movq -0x10(%rbp), %rcx
movzwl 0x2(%rcx), %ecx
imull $0x1bf0, %ecx, %ecx     # imm = 0x1BF0
addl %ecx, %eax
movq -0x10(%rbp), %rcx
movzwl (%rcx), %ecx
imull $0x2d2, %ecx, %ecx      # imm = 0x2D2
addl %ecx, %eax
addl $0x1388, %eax           # imm = 0x1388
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movl $0x2710, %ecx           # imm = 0x2710
cltd
idivl %ecx
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0x4(%rax)
movl -0x1c(%rbp), %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0x2(%rax)
movl -0x1c(%rbp), %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, (%rax)
movq -0x10(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x10(%rbp)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0xad36
jmp 0xadcd
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xad1f
popq %rbp
retq
nopl (%rax)
// File: kylegranger[P]ImageScaling/linear16.cpp
// Function: CLinear16::CompositePremultiplied(CLinear16*)
void CLinear16::CompositePremultiplied(CLinear16 *overlay)
{
	color_t *src = overlay->mData;
	color_t *dst = mData;
	for (int y = 0; y < mHeight; y++)
	{
		for (int x = 0; x < mWidth; x++)
		{
			if (src->a == 0xffff)
			{
				// destination gets 100% of source
				*dst = *src;
			}
			else if (src->a > 0)
			{
				// destination gets 100% of source
				int b = 0xffff - src->a;
				dst->b = dst->b * b / 65535 + src->b;
				dst->g = dst->g * b / 65535 + src->g;
				dst->r = dst->r * b / 65535 + src->r;
			}
			src++;
			dst++;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq %rcx, -0x18(%rbp)
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movq -0x38(%rbp), %rcx
movl -0x24(%rbp), %eax
cmpl 0x4(%rcx), %eax
jge 0xaf2a
movl $0x0, -0x28(%rbp)
movq -0x38(%rbp), %rcx
movl -0x28(%rbp), %eax
cmpl (%rcx), %eax
jge 0xaf1a
movq -0x18(%rbp), %rax
movzwl 0x6(%rax), %eax
cmpl $0xffff, %eax           # imm = 0xFFFF
jne 0xae57
movq -0x18(%rbp), %rcx
movq -0x20(%rbp), %rax
movq (%rcx), %rcx
movq %rcx, (%rax)
jmp 0xaef4
movq -0x18(%rbp), %rax
movzwl 0x6(%rax), %eax
cmpl $0x0, %eax
jle 0xaef2
movq -0x18(%rbp), %rax
movzwl 0x6(%rax), %ecx
movl $0xffff, %eax           # imm = 0xFFFF
subl %ecx, %eax
movl %eax, -0x2c(%rbp)
movq -0x20(%rbp), %rax
movzwl (%rax), %eax
imull -0x2c(%rbp), %eax
movl $0xffff, %ecx           # imm = 0xFFFF
cltd
idivl %ecx
movq -0x18(%rbp), %rcx
movzwl (%rcx), %ecx
addl %ecx, %eax
movw %ax, %cx
movq -0x20(%rbp), %rax
movw %cx, (%rax)
movq -0x20(%rbp), %rax
movzwl 0x2(%rax), %eax
imull -0x2c(%rbp), %eax
movl $0xffff, %ecx           # imm = 0xFFFF
cltd
idivl %ecx
movq -0x18(%rbp), %rcx
movzwl 0x2(%rcx), %ecx
addl %ecx, %eax
movw %ax, %cx
movq -0x20(%rbp), %rax
movw %cx, 0x2(%rax)
movq -0x20(%rbp), %rax
movzwl 0x4(%rax), %eax
imull -0x2c(%rbp), %eax
movl $0xffff, %ecx           # imm = 0xFFFF
cltd
idivl %ecx
movq -0x18(%rbp), %rcx
movzwl 0x4(%rcx), %ecx
addl %ecx, %eax
movw %ax, %cx
movq -0x20(%rbp), %rax
movw %cx, 0x4(%rax)
jmp 0xaef4
movq -0x18(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x20(%rbp)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0xae26
jmp 0xaf1c
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xae0f
popq %rbp
retq
nopl (%rax)
// File: kylegranger[P]ImageScaling/linear16.cpp
// Function: CLinear16::CompositeStraight(CLinear16*)
void CLinear16::CompositeStraight(CLinear16 *overlay)
{
	color_t *src = overlay->mData;
	color_t *dst = mData;
	for (int y = 0; y < mHeight; y++)
	{
		for (int x = 0; x < mWidth; x++)
		{
			if (src->a == 0xffff)
			{
				// destination gets 100% of source
				*dst = *src;
			}
			else if (src->a > 0)
			{
				// destination gets 100% of source
				int b = 0xffff - src->a;
				dst->b = (dst->b * b + src->b * src->a) / 65535;
				dst->g = (dst->g * b + src->g * src->a) / 65535;
				dst->r = (dst->r * b + src->r * src->a) / 65535;
			}
			src++;
			dst++;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq %rcx, -0x18(%rbp)
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movq -0x38(%rbp), %rcx
movl -0x24(%rbp), %eax
cmpl 0x4(%rcx), %eax
jge 0xb09b
movl $0x0, -0x28(%rbp)
movq -0x38(%rbp), %rcx
movl -0x28(%rbp), %eax
cmpl (%rcx), %eax
jge 0xb08b
movq -0x18(%rbp), %rax
movzwl 0x6(%rax), %eax
cmpl $0xffff, %eax           # imm = 0xFFFF
jne 0xafa7
movq -0x18(%rbp), %rcx
movq -0x20(%rbp), %rax
movq (%rcx), %rcx
movq %rcx, (%rax)
jmp 0xb065
movq -0x18(%rbp), %rax
movzwl 0x6(%rax), %eax
cmpl $0x0, %eax
jle 0xb063
movq -0x18(%rbp), %rax
movzwl 0x6(%rax), %ecx
movl $0xffff, %eax           # imm = 0xFFFF
subl %ecx, %eax
movl %eax, -0x2c(%rbp)
movq -0x20(%rbp), %rax
movzwl (%rax), %eax
imull -0x2c(%rbp), %eax
movq -0x18(%rbp), %rcx
movzwl (%rcx), %ecx
movq -0x18(%rbp), %rdx
movzwl 0x6(%rdx), %edx
imull %edx, %ecx
addl %ecx, %eax
movl $0xffff, %ecx           # imm = 0xFFFF
cltd
idivl %ecx
movw %ax, %cx
movq -0x20(%rbp), %rax
movw %cx, (%rax)
movq -0x20(%rbp), %rax
movzwl 0x2(%rax), %eax
imull -0x2c(%rbp), %eax
movq -0x18(%rbp), %rcx
movzwl 0x2(%rcx), %ecx
movq -0x18(%rbp), %rdx
movzwl 0x6(%rdx), %edx
imull %edx, %ecx
addl %ecx, %eax
movl $0xffff, %ecx           # imm = 0xFFFF
cltd
idivl %ecx
movw %ax, %cx
movq -0x20(%rbp), %rax
movw %cx, 0x2(%rax)
movq -0x20(%rbp), %rax
movzwl 0x4(%rax), %eax
imull -0x2c(%rbp), %eax
movq -0x18(%rbp), %rcx
movzwl 0x4(%rcx), %ecx
movq -0x18(%rbp), %rdx
movzwl 0x6(%rdx), %edx
imull %edx, %ecx
addl %ecx, %eax
movl $0xffff, %ecx           # imm = 0xFFFF
cltd
idivl %ecx
movw %ax, %cx
movq -0x20(%rbp), %rax
movw %cx, 0x4(%rax)
jmp 0xb065
movq -0x18(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x20(%rbp)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0xaf76
jmp 0xb08d
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xaf5f
popq %rbp
retq
nopl (%rax)
// File: kylegranger[P]ImageScaling/linear16.cpp
// Function: CLinear16::WriteLumaToAlpha(bool)
void CLinear16::WriteLumaToAlpha(bool invertLuma)
{
	color_t *c = mData;
	for (int y = 0; y < mHeight; y++)
	{
		for (int x = 0; x < mWidth; x++)
		{
			int luma = c->r * 2126 + c->g * 7152 +c->b * 722 + 5000;
			luma /= 10000;
			c->a = invertLuma ? 65535 - luma : luma;
			c++;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movb %sil, %al
movq %rdi, -0x8(%rbp)
andb $0x1, %al
movb %al, -0x9(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq 0x18(%rax), %rax
movq %rax, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movq -0x30(%rbp), %rcx
movl -0x1c(%rbp), %eax
cmpl 0x4(%rcx), %eax
jge 0xb181
movl $0x0, -0x20(%rbp)
movq -0x30(%rbp), %rcx
movl -0x20(%rbp), %eax
cmpl (%rcx), %eax
jge 0xb171
movq -0x18(%rbp), %rax
movzwl 0x4(%rax), %eax
imull $0x84e, %eax, %eax      # imm = 0x84E
movq -0x18(%rbp), %rcx
movzwl 0x2(%rcx), %ecx
imull $0x1bf0, %ecx, %ecx     # imm = 0x1BF0
addl %ecx, %eax
movq -0x18(%rbp), %rcx
movzwl (%rcx), %ecx
imull $0x2d2, %ecx, %ecx      # imm = 0x2D2
addl %ecx, %eax
addl $0x1388, %eax           # imm = 0x1388
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
movl $0x2710, %ecx           # imm = 0x2710
cltd
idivl %ecx
movl %eax, -0x24(%rbp)
testb $0x1, -0x9(%rbp)
je 0xb143
movl $0xffff, %eax           # imm = 0xFFFF
subl -0x24(%rbp), %eax
movl %eax, -0x34(%rbp)
jmp 0xb149
movl -0x24(%rbp), %eax
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
movw %ax, %cx
movq -0x18(%rbp), %rax
movw %cx, 0x6(%rax)
movq -0x18(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x18(%rbp)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0xb0de
jmp 0xb173
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0xb0c7
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: kylegranger[P]ImageScaling/linear16.cpp
// Function: CLinear16::BlitImage(CLinear16*, int, int)
void CLinear16::BlitImage(CLinear16 *image, int dstX, int dstY)
{
	if (dstX + image->mWidth > mWidth)
	{
		assert(0);
		return;
	}
	if (dstY + image->mHeight > mHeight)
	{
		assert(0);
		return;
	}
	color_t *src = image->mData;
	color_t *dst = mData + dstY*mWidth + dstX;
	for (int y = 0; y < image->mHeight; y++)
	{
		for (int x = 0; x < image->mWidth; x++)
		{
			*dst++ = *src++;
		}
		dst += mWidth - image->mWidth;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movq -0x8(%rbp), %rcx
movq %rcx, -0x38(%rbp)
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rdx
addl (%rdx), %eax
cmpl (%rcx), %eax
jle 0xb1da
leaq 0x161f5(%rip), %rdi     # 0x213b7
leaq 0x16041(%rip), %rsi     # 0x2120a
movl $0x385, %edx            # imm = 0x385
leaq 0x16297(%rip), %rcx     # 0x2146c
callq 0x40f0
movq -0x38(%rbp), %rcx
movl -0x18(%rbp), %eax
movq -0x10(%rbp), %rdx
addl 0x4(%rdx), %eax
cmpl 0x4(%rcx), %eax
jle 0xb20c
leaq 0x161c3(%rip), %rdi     # 0x213b7
leaq 0x1600f(%rip), %rsi     # 0x2120a
movl $0x38a, %edx            # imm = 0x38A
leaq 0x16265(%rip), %rcx     # 0x2146c
callq 0x40f0
movq -0x38(%rbp), %rdx
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
movq 0x18(%rdx), %rax
movl -0x18(%rbp), %ecx
imull (%rdx), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq -0x14(%rbp), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jge 0xb2bc
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl (%rcx), %eax
jge 0xb293
movq -0x20(%rbp), %rcx
movq %rcx, %rax
addq $0x8, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, -0x28(%rbp)
movq (%rcx), %rcx
movq %rcx, (%rax)
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0xb259
movq -0x38(%rbp), %rax
movl (%rax), %ecx
movq -0x10(%rbp), %rax
subl (%rax), %ecx
movq -0x28(%rbp), %rax
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0xb246
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: kylegranger[P]ImageScaling/linear16.cpp
// Function: CLinear16::Rotate90()
void CLinear16::Rotate90()
{
	CLinear16 *temp = new CLinear16(mWidth, mHeight);

	color_t *src = mData;

	for (int y = 0; y < mHeight; y++)
	{
		color_t *dst = temp->mData + mWidth - 1 - y;
		for (int x = 0; x < mWidth; x++)
		{
			*dst = *src++;
			dst += mWidth;
		}
	}

	BlitImage(temp, 0, 0);

	delete temp;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x50(%rbp)
movl $0x20, %edi
callq 0xcb50
movq %rax, %rdi
movq -0x50(%rbp), %rax
movq %rdi, %rcx
movq %rcx, -0x48(%rbp)
movl (%rax), %esi
movl 0x4(%rax), %edx
callq 0x8230
jmp 0xba88
movq -0x50(%rbp), %rax
movq -0x48(%rbp), %rcx
movq %rcx, -0x10(%rbp)
movq 0x18(%rax), %rax
movq %rax, -0x28(%rbp)
movl $0x0, -0x2c(%rbp)
movq -0x50(%rbp), %rcx
movl -0x2c(%rbp), %eax
cmpl 0x4(%rcx), %eax
jge 0xbb5b
movq -0x50(%rbp), %rcx
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movslq (%rcx), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
addq $-0x8, %rax
movslq -0x2c(%rbp), %rdx
xorl %ecx, %ecx
subq %rdx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movl $0x0, -0x3c(%rbp)
movq -0x50(%rbp), %rcx
movl -0x3c(%rbp), %eax
cmpl (%rcx), %eax
jge 0xbb4b
movq -0x50(%rbp), %rax
movq -0x28(%rbp), %rdx
movq %rdx, %rcx
addq $0x8, %rcx
movq %rcx, -0x28(%rbp)
movq -0x38(%rbp), %rcx
movq (%rdx), %rdx
movq %rdx, (%rcx)
movl (%rax), %ecx
movq -0x38(%rbp), %rax
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0xbae8
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
movl $0x20, %esi
callq 0xbca0
jmp 0xbb97
jmp 0xbb4d
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0xbaa3
movq -0x50(%rbp), %rdi
movq -0x10(%rbp), %rsi
xorl %ecx, %ecx
movl %ecx, %edx
callq 0xb190
movq -0x10(%rbp), %rax
movq %rax, -0x58(%rbp)
cmpq $0x0, %rax
je 0xbb91
movq -0x58(%rbp), %rdi
callq 0x82f0
movq -0x58(%rbp), %rdi
movl $0x20, %esi
callq 0xbca0
addq $0x60, %rsp
popq %rbp
retq
movq -0x18(%rbp), %rdi
callq 0x4300
// File: kylegranger[P]ImageScaling/linear16.cpp
// Function: CLinear16::Rotate(int)
void CLinear16::Rotate(int angle)
{
	assert(mWidth == mHeight);
	angle = angle % 360;
	switch (angle)
	{
	case 0:
		break;
	case 90:
		Rotate90();
		break;
	case 180:
		Flip(true, true);
		break;
	case 270:
		Flip(true, true);
		Rotate90();
		break;
	default:
		assert(0);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rcx
movq %rcx, -0x18(%rbp)
movl (%rcx), %eax
cmpl 0x4(%rcx), %eax
jne 0xbbc0
jmp 0xbbdf
leaq 0x15979(%rip), %rdi     # 0x21540
leaq 0x1563c(%rip), %rsi     # 0x2120a
movl $0x428, %edx            # imm = 0x428
leaq 0x15978(%rip), %rcx     # 0x21552
callq 0x40f0
movslq -0xc(%rbp), %rcx
movl %ecx, %eax
imulq $-0x49f49f49, %rcx, %rcx # imm = 0xB60B60B7
shrq $0x20, %rcx
addl %eax, %ecx
movl %ecx, %edx
shrl $0x1f, %edx
sarl $0x8, %ecx
addl %edx, %ecx
imull $0x168, %ecx, %ecx      # imm = 0x168
subl %ecx, %eax
movl %eax, -0xc(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x1c(%rbp)
testl %eax, %eax
je 0xbc35
jmp 0xbc13
movl -0x1c(%rbp), %eax
subl $0x5a, %eax
je 0xbc37
jmp 0xbc1d
movl -0x1c(%rbp), %eax
subl $0xb4, %eax
je 0xbc42
jmp 0xbc29
movl -0x1c(%rbp), %eax
subl $0x10e, %eax            # imm = 0x10E
je 0xbc54
jmp 0xbc6f
jmp 0xbc8e
movq -0x18(%rbp), %rdi
callq 0xba50
jmp 0xbc8e
movq -0x18(%rbp), %rdi
movl $0x1, %edx
movl %edx, %esi
callq 0xb800
jmp 0xbc8e
movq -0x18(%rbp), %rdi
movl $0x1, %edx
movl %edx, %esi
callq 0xb800
movq -0x18(%rbp), %rdi
callq 0xba50
jmp 0xbc8e
leaq 0x15741(%rip), %rdi     # 0x213b7
leaq 0x1558d(%rip), %rsi     # 0x2120a
movl $0x439, %edx            # imm = 0x439
leaq 0x158c9(%rip), %rcx     # 0x21552
callq 0x40f0
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
// File: mrGoncharuk[P]foldermonitor/src/main.cpp
// Function: countThreadAmount()
static unsigned int		countThreadAmount()
{
	unsigned int threads = std::thread::hardware_concurrency();
	syslog(LOG_NOTICE, "There are %d threads available in system.", threads);
	if (threads <= 3)
		return (1);
	else
		return (threads - 2);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
callq 0x32b0
movl %eax, -0x8(%rbp)
movl -0x8(%rbp), %edx
movl $0x5, %edi
leaq 0x461b(%rip), %rsi      # 0x818a
movb $0x0, %al
callq 0x3060
cmpl $0x3, -0x8(%rbp)
ja 0x3b85
movl $0x1, -0x4(%rbp)
jmp 0x3b8e
movl -0x8(%rbp), %eax
subl $0x2, %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: mrGoncharuk[P]foldermonitor/src/DbWriter.cpp
// Function: DBWriter::initDB()
bool 	DBWriter::initDB()
{
	int status;

	status = sqlite3_open(dbName.c_str(), reinterpret_cast<sqlite3 **>(&db));
	if (status != SQLITE_OK)
	{
		syslog(LOG_ERR, "DW> Error occured while opening database.");
		syslog(LOG_NOTICE, "DW> Daemon stops.");
		return false;
	}
	syslog(LOG_NOTICE, "DW> Database writer initialized successfully.");
	return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x20(%rbp)
addq $0x10, %rdi
callq 0x30f0
movq -0x20(%rbp), %rsi
movq %rax, %rdi
addq $0x8, %rsi
callq 0x3350
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x53c2
movl $0x3, %edi
leaq 0x2fff(%rip), %rsi      # 0x83a1
movb $0x0, %al
callq 0x3060
movl $0x5, %edi
leaq 0x3016(%rip), %rsi      # 0x83cb
movb $0x0, %al
callq 0x3060
movb $0x0, -0x1(%rbp)
jmp 0x53d9
movl $0x5, %edi
leaq 0x300f(%rip), %rsi      # 0x83dd
movb $0x0, %al
callq 0x3060
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: mrGoncharuk[P]foldermonitor/src/DbWriter.cpp
// Function: DBWriter::executeQuery(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void 	DBWriter::executeQuery(const std::string &query)
{
	int ret;
	char *errmsg;

	std::lock_guard<std::mutex> lock(dbMutex);
	ret = sqlite3_exec(db, query.c_str(), nullptr, nullptr, &errmsg);
	if (ret == SQLITE_OK)
		syslog(LOG_NOTICE, "DW> Query executed successfully.");
	else
	{
		syslog(LOG_ERR, "DW> Error while migrating data from. Query: [%s]. Error message: %s.", query.c_str(), errmsg);
		sqlite3_free(errmsg);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rsi
movq %rsi, -0x48(%rbp)
addq $0x30, %rsi
leaq -0x28(%rbp), %rdi
callq 0x55c0
movq -0x48(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
callq 0x30f0
movq -0x40(%rbp), %rdi
movq %rax, %rsi
xorl %eax, %eax
movl %eax, %ecx
leaq -0x20(%rbp), %r8
movq %rcx, %rdx
callq 0x3290
movl %eax, -0x38(%rbp)
jmp 0x5446
movl -0x38(%rbp), %eax
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
jne 0x5480
leaq 0x2fb2(%rip), %rsi      # 0x840b
xorl %eax, %eax
movl $0x5, %edi
callq 0x3060
jmp 0x5467
jmp 0x54b2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x55f0
jmp 0x54c1
movq -0x10(%rbp), %rdi
callq 0x30f0
movq %rax, %rdx
movq -0x20(%rbp), %rcx
leaq 0x2f95(%rip), %rsi      # 0x842c
xorl %eax, %eax
movl $0x3, %edi
callq 0x3060
jmp 0x54a5
movq -0x20(%rbp), %rdi
callq 0x3270
jmp 0x54b0
jmp 0x54b2
leaq -0x28(%rbp), %rdi
callq 0x55f0
addq $0x50, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x3360
nopw (%rax,%rax)
// File: mrGoncharuk[P]foldermonitor/src/DirectoryMonitor.cpp
// Function: DirectoryMonitor::~DirectoryMonitor()
DirectoryMonitor::~DirectoryMonitor()
{
	syslog(LOG_NOTICE, "DM> File watcher destroyed.");
	if (fileDescriptor > 0 && watchDescriptor > 0)
		inotify_rm_watch(fileDescriptor, watchDescriptor);
	if (fileDescriptor > 0)
		close(fileDescriptor);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
leaq 0x2e1d(%rip), %rsi      # 0x84a8
xorl %eax, %eax
movl $0x5, %edi
callq 0x3060
jmp 0x5699
movq -0x10(%rbp), %rax
cmpl $0x0, (%rax)
jle 0x56ba
movq -0x10(%rbp), %rax
cmpl $0x0, 0x4(%rax)
jle 0x56ba
movq -0x10(%rbp), %rax
movl (%rax), %edi
movl 0x4(%rax), %esi
callq 0x3120
movq -0x10(%rbp), %rax
cmpl $0x0, (%rax)
jle 0x56d2
movq -0x10(%rbp), %rax
movl (%rax), %edi
callq 0x33f0
jmp 0x56d0
jmp 0x56d2
movq -0x10(%rbp), %rdi
addq $0x8, %rdi
callq 0x3170
addq $0x10, %rsp
popq %rbp
retq
movq %rax, %rdi
callq 0x4250
nopl (%rax)
// File: mrGoncharuk[P]foldermonitor/src/DirectoryMonitor.cpp
// Function: DirectoryMonitor::initWatcher()
bool DirectoryMonitor::initWatcher()
{
	fileDescriptor = inotify_init();
	if (fileDescriptor < 0)
	{
		syslog (LOG_ERR, "DM> Error while inotify initialization.");
		syslog (LOG_NOTICE, "DM> Daemon stops.");
		return false;
	}
	watchDescriptor = inotify_add_watch(fileDescriptor, fname.c_str(), IN_CREATE);
	if (watchDescriptor < 0)
	{
		syslog (LOG_ERR, "DM> Error while starting watching folder.");
		syslog (LOG_NOTICE, "DM> Daemon stops.");
		return false;
	}
	syslog(LOG_NOTICE, "DM> File watcher initialized successfully.");
	return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
callq 0x3390
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
cmpl $0x0, (%rax)
jge 0x57b2
movl $0x3, %edi
leaq 0x2d4c(%rip), %rsi      # 0x84de
movb $0x0, %al
callq 0x3060
movl $0x5, %edi
leaq 0x2d61(%rip), %rsi      # 0x8506
movb $0x0, %al
callq 0x3060
movb $0x0, -0x1(%rbp)
jmp 0x5826
movq -0x18(%rbp), %rdi
movl (%rdi), %eax
movl %eax, -0x1c(%rbp)
addq $0x8, %rdi
callq 0x30f0
movl -0x1c(%rbp), %edi
movq %rax, %rsi
movl $0x100, %edx            # imm = 0x100
callq 0x3140
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x4(%rax)
cmpl $0x0, 0x4(%rax)
jge 0x580f
movl $0x3, %edi
leaq 0x2d29(%rip), %rsi      # 0x8518
movb $0x0, %al
callq 0x3060
movl $0x5, %edi
leaq 0x2d04(%rip), %rsi      # 0x8506
movb $0x0, %al
callq 0x3060
movb $0x0, -0x1(%rbp)
jmp 0x5826
movl $0x5, %edi
leaq 0x2d27(%rip), %rsi      # 0x8542
movb $0x0, %al
callq 0x3060
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: mrGoncharuk[P]foldermonitor/src/MigrationManager.cpp
// Function: MigrationManager::migrateSolo(std::mutex&, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&, std::atomic<bool>&)
void 	MigrationManager::migrateSolo(std::mutex &list_mutex, std::list<std::string> &filenames, std::atomic<bool> &isRunning)
{
	std::string currFileName;

	while (isRunning)
	{
		list_mutex.lock();
		if (filenames.empty())
			list_mutex.unlock();
		else
		{
			currFileName = filenames.front();
			filenames.pop_front();
			list_mutex.unlock();
			std::string query = FileReader::extractData(currFileName);
			dbwriter->executeQuery(query);
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x78(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x32c0
movq -0x20(%rbp), %rdi
callq 0x5ae0
testb $0x1, %al
jne 0x642e
jmp 0x64e0
movq -0x10(%rbp), %rdi
callq 0x5620
jmp 0x6439
movq -0x18(%rbp), %rdi
callq 0x76f0
testb $0x1, %al
jne 0x6448
jmp 0x6469
movq -0x10(%rbp), %rdi
callq 0x5650
jmp 0x6453
jmp 0x64db
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x64f2
movq -0x18(%rbp), %rdi
callq 0x7710
movq %rax, %rsi
leaq -0x40(%rbp), %rdi
callq 0x3030
jmp 0x6480
movq -0x18(%rbp), %rdi
callq 0x7740
movq -0x10(%rbp), %rdi
callq 0x5650
jmp 0x6494
leaq -0x70(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x5f90
jmp 0x64a3
movq -0x78(%rbp), %rax
movq (%rax), %rdi
movq (%rdi), %rax
movq 0x8(%rax), %rax
leaq -0x70(%rbp), %rsi
callq *%rax
jmp 0x64b9
leaq -0x70(%rbp), %rdi
callq 0x3170
jmp 0x64db
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x3170
jmp 0x64f2
jmp 0x641c
leaq -0x40(%rbp), %rdi
callq 0x3170
addq $0x80, %rsp
popq %rbp
retq
leaq -0x40(%rbp), %rdi
callq 0x3170
movq -0x48(%rbp), %rdi
callq 0x3360
nopw %cs:(%rax,%rax)
// File: mrGoncharuk[P]foldermonitor/src/MigrationManager.cpp
// Function: MigrationManager::migrateData(std::mutex&, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&, std::atomic<bool>&)
void	MigrationManager::migrateData(std::mutex &list_mutex, std::list<std::string> &filenames, std::atomic<bool> &isRunning)
{
	if (threadAmount == 1)
	{
		syslog(LOG_NOTICE, "MM> Data migration will be executed in solo thread mode.");
		migrateSolo(list_mutex, filenames, isRunning);
	}
	else
	{
		syslog(LOG_NOTICE, "MM> Data migration will be executed in <%d> threads.", threadAmount);
		migrateThreaded(list_mutex, filenames, isRunning);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
cmpl $0x1, 0x8(%rax)
jne 0x6c80
movl $0x5, %edi
leaq 0x1a48(%rip), %rsi      # 0x86aa
movb $0x0, %al
callq 0x3060
movq -0x28(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0x63f0
jmp 0x6caf
movq -0x28(%rbp), %rax
movl 0x8(%rax), %edx
movl $0x5, %edi
leaq 0x1a50(%rip), %rsi      # 0x86e3
movb $0x0, %al
callq 0x3060
movq -0x28(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0x6510
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)