LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/FourierTransform.cpp
// Function: embedImageInPow2Bounds(Image3ChnlReal const&, int, int, Image3ChnlReal&, int&, int&)
bool embedImageInPow2Bounds(const Image3ChnlReal &img, int newWidth, int newHeight, Image3ChnlReal &imgOut, int &offsetX, int &offsetY)
{
	if (!assertValidDims(newWidth, newHeight))
		return false;
	
	imgOut.resize(newWidth, newHeight);
	int width = img.width(), height = img.height();
	offsetX = (newWidth - width) / 2;
	offsetY = (newHeight - height) / 2;
	
	//By default, an embedded odd-length signal will be positioned such that the center pixel
	//resides at lower right, but I prefer that it be at upper left, so shift it by one.
	if (width % 2 == 1)
		offsetX++;
	if (height % 2 == 1)
		offsetY++;
	
	for (int c = 0; c < 3; c++)
		for (int y = 0; y < height; y++)
			for (int x = 0; x < width; x++)
				(*imgOut[c])(x + offsetX, y + offsetY) = (*img[c])(x, y);
	
	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, 0x10(%rsp)
movq %r8, %r14
movq %rcx, %r15
movl %edx, %r13d
movl %esi, %ebp
movq %rdi, %r12
movl %esi, %edi
movl %edx, %esi
callq 0x13ae0
movb %al, 0xf(%rsp)
testb %al, %al
je 0x145c4
movq (%r15), %rax
movq %r15, %rdi
movl %ebp, %esi
movl %r13d, %edx
callq *0x28(%rax)
movl 0x28(%r12), %ecx
movl 0x2c(%r12), %esi
subl %ecx, %ebp
pushq $0x2
popq %rdi
movl %ebp, %eax
cltd
idivl %edi
movl %eax, (%r14)
subl %esi, %r13d
movl %r13d, %eax
cltd
idivl %edi
movq 0x10(%rsp), %rdx
movl %eax, (%rdx)
movl %ecx, %eax
andl $0x80000001, %eax       # imm = 0x80000001
cmpl $0x1, %eax
jne 0x14535
incl (%r14)
movl %esi, %eax
andl $0x80000001, %eax       # imm = 0x80000001
cmpl $0x1, %eax
jne 0x14548
movq 0x10(%rsp), %rax
incl (%rax)
xorl %eax, %eax
testl %ecx, %ecx
cmovlel %eax, %ecx
testl %esi, %esi
cmovlel %eax, %esi
cmpq $0x3, %rax
je 0x145c4
xorl %edx, %edx
cmpl %esi, %edx
je 0x145bf
movq 0x38(%r12), %rdi
movq 0x38(%r15), %r8
movl (%r14), %r9d
movq 0x10(%rsp), %r10
movl (%r10), %r10d
addl %edx, %r10d
xorl %r11d, %r11d
cmpl %r11d, %ecx
je 0x145bb
movq (%rdi,%rax,8), %r13
movq 0x38(%r13), %rbp
movl 0x28(%r13), %r13d
imull %edx, %r13d
addl %r11d, %r13d
movsd (%rbp,%r13,8), %xmm0
movq (%r8,%rax,8), %r13
movq 0x38(%r13), %rbp
movl 0x28(%r13), %r13d
imull %r10d, %r13d
addl %r9d, %r13d
addl %r11d, %r13d
movsd %xmm0, (%rbp,%r13,8)
incl %r11d
jmp 0x1457a
incl %edx
jmp 0x1455c
incq %rax
jmp 0x14554
movb 0xf(%rsp), %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/FourierTransform.cpp
// Function: cropImage(ImageReal const&, int, int, int, int, ImageReal&)
void cropImage(const ImageReal &img, int newWidth, int newHeight, int offsetX, int offsetY, ImageReal &imgOut)
{
	int width = img.width(), height = img.height();
	assert(offsetX + newWidth <= width && offsetY + newHeight <= height);
	
	imgOut.resize(newWidth, newHeight);
	
	for (int y = 0; y < newHeight; y++)
		for (int x = 0; x < newWidth; x++)
			imgOut(x, y) = img(x + offsetX, y + offsetY);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %r15d
movl %esi, %r13d
leal (%r15,%r13), %eax
cmpl 0x28(%rdi), %eax
jg 0x1467d
movl %r8d, %r14d
movl %edx, %r12d
movq %rdi, %rbp
leal (%r14,%r12), %eax
cmpl 0x2c(%rdi), %eax
jg 0x1467d
movq %r9, %rbx
movq (%r9), %rax
movq %r9, %rdi
movl %r13d, %esi
movl %r12d, %edx
callq *0x28(%rax)
xorl %eax, %eax
testl %r13d, %r13d
cmovlel %eax, %r13d
testl %r12d, %r12d
cmovlel %eax, %r12d
cmpl %r12d, %eax
je 0x1466e
movq 0x38(%rbp), %rcx
movq 0x38(%rbx), %rdx
movl 0x28(%rbx), %esi
imull %eax, %esi
movl 0x28(%rbp), %edi
imull %r14d, %edi
addl %r15d, %edi
movq %r13, %r8
subq $0x1, %r8
jb 0x14667
movl %edi, %r9d
movsd (%rcx,%r9,8), %xmm0
movl %esi, %r9d
movsd %xmm0, (%rdx,%r9,8)
incl %edi
incl %esi
jmp 0x14649
incl %eax
incl %r14d
jmp 0x14629
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10644(%rip), %rdi     # 0x24cc8
leaq 0x10530(%rip), %rsi     # 0x24bbb
leaq 0x10673(%rip), %rcx     # 0x24d05
movl $0x134, %edx            # imm = 0x134
callq 0x31a0
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/FourierTransform.cpp
// Function: cropImage(Image3ChnlReal const&, int, int, int, int, Image3ChnlReal&)
void cropImage(const Image3ChnlReal &img, int newWidth, int newHeight, int offsetX, int offsetY, Image3ChnlReal &imgOut)
{
	int width = img.width(), height = img.height();
	assert(offsetX + newWidth <= width && offsetY + newHeight <= height);
	
	imgOut.resize(newWidth, newHeight);
	
	for (int c = 0; c < 3; c++)
		for (int y = 0; y < newHeight; y++)
			for (int x = 0; x < newWidth; x++)
				(*imgOut[c])(x, y) = (*img[c])(x + offsetX, y + offsetY);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %r15d
movl %esi, %r13d
leal (%r15,%r13), %eax
cmpl 0x28(%rdi), %eax
jg 0x14766
movl %r8d, %r14d
movl %edx, %r12d
movq %rdi, %rbp
leal (%r14,%r12), %eax
cmpl 0x2c(%rdi), %eax
jg 0x14766
movq %r9, %rbx
movq (%r9), %rax
movq %r9, %rdi
movl %r13d, %esi
movl %r12d, %edx
callq *0x28(%rax)
xorl %eax, %eax
testl %r13d, %r13d
cmovlel %eax, %r13d
testl %r12d, %r12d
cmovlel %eax, %r12d
cmpq $0x3, %rax
je 0x14757
xorl %ecx, %ecx
movl %r14d, %edx
cmpl %r12d, %ecx
je 0x14752
movq 0x38(%rbp), %rsi
movq 0x38(%rbx), %rdi
xorl %r8d, %r8d
cmpl %r8d, %r13d
je 0x1474c
movq (%rsi,%rax,8), %r9
movq 0x38(%r9), %r10
movl 0x28(%r9), %r9d
imull %edx, %r9d
addl %r15d, %r9d
addl %r8d, %r9d
movsd (%r10,%r9,8), %xmm0
movq (%rdi,%rax,8), %r9
movq 0x38(%r9), %r10
movl 0x28(%r9), %r9d
imull %ecx, %r9d
addl %r8d, %r9d
movsd %xmm0, (%r10,%r9,8)
incl %r8d
jmp 0x1470d
incl %ecx
incl %edx
jmp 0x146fd
incq %rax
jmp 0x146f2
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1055b(%rip), %rdi     # 0x24cc8
leaq 0x10447(%rip), %rsi     # 0x24bbb
leaq 0x105cd(%rip), %rcx     # 0x24d48
movl $0x140, %edx            # imm = 0x140
callq 0x31a0
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/FourierTransform.cpp
// Function: shiftImage(ImageReal const&, int, int, ImageReal&)
void shiftImage(const ImageReal &img, int shiftX, int shiftY, ImageReal &imgOut)
{
	assert(&img != &imgOut);
	
	if (shiftX < 0)
		shiftX += img.width();
	shiftX %= img.width();
	if (shiftY < 0)
		shiftY += img.height();
	shiftY %= img.height();
	
	imgOut.resize(img.width(), img.height());
	int width = img.width(), height = img.height();
	
	int xx, yy;
	for (int y = 0; y < height; y++)
	{
		yy = (y + shiftY) % height;
		for (int x = 0; x < width; x++)
		{
			xx = (x + shiftX) % width;
			imgOut(x, y) = img(xx, yy);
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
cmpq %rcx, %rdi
je 0x1486f
movl %edx, %ecx
movq %rdi, %r12
movl %esi, %eax
sarl $0x1f, %eax
movl 0x28(%rdi), %r8d
movl 0x2c(%rdi), %r9d
andl %r8d, %eax
addl %esi, %eax
cltd
idivl %r8d
movl %edx, 0xc(%rsp)
movl %ecx, %eax
sarl $0x1f, %eax
andl %r9d, %eax
addl %ecx, %eax
cltd
idivl %r9d
movq %rdx, 0x10(%rsp)
movq (%rbx), %rax
movq %rbx, %rdi
movl %r8d, %esi
movl %r9d, %edx
callq *0x28(%rax)
movl 0x28(%r12), %edi
movl 0x2c(%r12), %r8d
xorl %r9d, %r9d
testl %edi, %edi
movl $0x0, %r14d
cmovgl %edi, %r14d
testl %r8d, %r8d
movl $0x0, %r11d
cmovgl %r8d, %r11d
cmpl %r11d, %r9d
je 0x14860
movq 0x10(%rsp), %rax
addl %r9d, %eax
cltd
idivl %r8d
movl %edx, %ecx
movq %r12, %r15
movq 0x38(%r12), %r12
imull %edi, %ecx
movq 0x38(%rbx), %r13
movl 0x28(%rbx), %ebp
imull %r9d, %ebp
movq %r14, %r10
movl 0xc(%rsp), %esi
subq $0x1, %r10
jb 0x14858
movl %esi, %eax
cltd
idivl %edi
addl %ecx, %edx
movsd (%r12,%rdx,8), %xmm0
movl %ebp, %eax
movsd %xmm0, (%r13,%rax,8)
incl %esi
incl %ebp
jmp 0x14836
incl %r9d
movq %r15, %r12
jmp 0x14806
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1051f(%rip), %rdi     # 0x24d95
leaq 0x1033e(%rip), %rsi     # 0x24bbb
leaq 0x10521(%rip), %rcx     # 0x24da5
movl $0x14c, %edx            # imm = 0x14C
callq 0x31a0
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/FourierTransform.cpp
// Function: shiftImage(Image3ChnlReal const&, int, int, Image3ChnlReal&)
void shiftImage(const Image3ChnlReal &img, int shiftX, int shiftY, Image3ChnlReal &imgOut)
{
	assert(&img != &imgOut);
	
	if (shiftX < 0)
		shiftX += img.width();
	shiftX %= img.width();
	if (shiftY < 0)
		shiftY += img.height();
	shiftY %= img.height();
	
	imgOut.resize(img.width(), img.height());
	int width = img.width(), height = img.height();
	
	int xx, yy;
	for (int c = 0; c < 3; c++)
		for (int y = 0; y < height; y++)
		{
			yy = (y + shiftY) % height;
			for (int x = 0; x < width; x++)
			{
				xx = (x + shiftX) % width;
				(*imgOut[c])(x, y) = (*img[c])(xx, yy);
			}
		}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
cmpq %rcx, %rdi
je 0x14999
movl %edx, %ecx
movq %rdi, %r14
movl %esi, %eax
sarl $0x1f, %eax
movl 0x28(%rdi), %r8d
movl 0x2c(%rdi), %r9d
andl %r8d, %eax
addl %esi, %eax
cltd
idivl %r8d
movl %edx, %r15d
movl %ecx, %eax
sarl $0x1f, %eax
andl %r9d, %eax
addl %ecx, %eax
cltd
idivl %r9d
movq %rdx, 0x10(%rsp)
movq (%rbx), %rax
movq %rbx, %rdi
movl %r8d, %esi
movl %r9d, %edx
callq *0x28(%rax)
movl 0x28(%r14), %esi
movl 0x2c(%r14), %eax
xorl %r8d, %r8d
testl %esi, %esi
movl $0x0, %r9d
cmovgl %esi, %r9d
testl %eax, %eax
movl $0x0, %r10d
movl %eax, 0xc(%rsp)
cmovgl %eax, %r10d
cmpq $0x3, %r8
je 0x1498a
xorl %r11d, %r11d
cmpl %r10d, %r11d
je 0x14985
movq 0x10(%rsp), %rax
addl %r11d, %eax
cltd
idivl 0xc(%rsp)
movl %edx, %ecx
movq %r14, %rdi
movq 0x38(%r14), %r13
movq %rbx, %r12
movq 0x38(%rbx), %rbp
xorl %ebx, %ebx
cmpl %ebx, %r9d
je 0x1497a
leal (%r15,%rbx), %eax
cltd
idivl %esi
movq (%r13,%r8,8), %rax
movq 0x38(%rax), %r14
movl 0x28(%rax), %eax
imull %ecx, %eax
addl %edx, %eax
movsd (%r14,%rax,8), %xmm0
movq (%rbp,%r8,8), %rax
movq 0x38(%rax), %rdx
movl 0x28(%rax), %eax
imull %r11d, %eax
addl %ebx, %eax
movsd %xmm0, (%rdx,%rax,8)
incl %ebx
jmp 0x1493c
incl %r11d
movq %r12, %rbx
movq %rdi, %r14
jmp 0x14918
incq %r8
jmp 0x1490f
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x103f5(%rip), %rdi     # 0x24d95
leaq 0x10214(%rip), %rsi     # 0x24bbb
leaq 0x10431(%rip), %rcx     # 0x24ddf
movl $0x166, %edx            # imm = 0x166
callq 0x31a0
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/SteerablePyramid.cpp
// Function: SteerablePyramid::CreateScratch()
void SteerablePyramid::CreateScratch()
{
	//Note that scratch_2D_A_ will be memory leaked when the last instance of SteerablePyramid is deleted!!!
	//Reasonably simple to fix, but this is just a dinky little experimental program.  Tsk tsk.
	if (scratchSize_ < width_ * height_)
	{
		if (scratch_2D_A_)
			delete [] scratch_2D_A_;
		if (scratch_2D_B_)
			delete [] scratch_2D_B_;
		
		scratchSize_ = width_ * height_;
		
		scratch_2D_A_ = new Float_t[scratchSize_];
		assert(scratch_2D_A_);
		scratch_2D_B_ = new Float_t[scratchSize_];
		assert(scratch_2D_B_);
	}
}

// Assembly:
movl 0x34(%rdi), %eax
imull 0x30(%rdi), %eax
cmpl %eax, 0x1d6c1(%rip)     # 0x32ae0
jge 0x15488
pushq %rbx
movq %rdi, %rbx
movq 0x1d6a4(%rip), %rdi     # 0x32ad0
testq %rdi, %rdi
je 0x15436
callq 0x3380
movq 0x1d69b(%rip), %rdi     # 0x32ad8
testq %rdi, %rdi
je 0x15447
callq 0x3380
movslq 0x30(%rbx), %rax
movslq 0x34(%rbx), %rcx
imulq %rax, %rcx
movl %ecx, 0x1d687(%rip)     # 0x32ae0
movq %rcx, %rax
shlq $0x3, %rax
testl %ecx, %ecx
pushq $-0x1
popq %rbx
cmovnsq %rax, %rbx
movq %rbx, %rdi
callq 0x3030
movq %rax, 0x1d658(%rip)     # 0x32ad0
movq %rbx, %rdi
callq 0x3030
movq %rax, 0x1d651(%rip)     # 0x32ad8
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/SteerablePyramid.cpp
// Function: SteerablePyramid::operator=(SteerablePyramid const&)
const SteerablePyramid& SteerablePyramid::operator=(const SteerablePyramid& sp)
{
	if (&sp == this)
		return *this;
	
	Init(sp.width_, sp.height_);
	
	useFTconvolution_ = sp.useFTconvolution_;
	
	int totalPixels = width_ * height_;
	memcpy(h0Coeffs_, sp.h0Coeffs_, totalPixels * sizeof(Float_t));
	
	for (int i = 0; i < numLevels_; i++)
	{
		int totalPixels = (width_ * height_) / (int)(pow(4, i));
		memcpy(b1Coeffs_[i], sp.b1Coeffs_[i], totalPixels * sizeof(Float_t));
		memcpy(b2Coeffs_[i], sp.b2Coeffs_[i], totalPixels * sizeof(Float_t));
		memcpy(b3Coeffs_[i], sp.b3Coeffs_[i], totalPixels * sizeof(Float_t));
		memcpy(b4Coeffs_[i], sp.b4Coeffs_[i], totalPixels * sizeof(Float_t));
		memcpy(l1Coeffs_[i], sp.l1Coeffs_[i], (totalPixels / 4) * sizeof(Float_t));
	}
	
	return *this;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq %rdi, %rsi
je 0x155ea
movq %rsi, %r14
movl 0x30(%rsi), %esi
movl 0x34(%r14), %edx
movq %rbx, %rdi
callq 0x15752
movb 0x48(%r14), %al
movb %al, 0x48(%rbx)
movslq 0x30(%rbx), %rax
movslq 0x34(%rbx), %rdx
imulq %rax, %rdx
movq (%rbx), %rdi
movq (%r14), %rsi
shlq $0x3, %rdx
callq 0x3240
xorl %ecx, %ecx
xorl %r13d, %r13d
movslq 0x38(%rbx), %rax
cmpq %rax, %r13
jge 0x155ea
movl 0x34(%rbx), %ebp
imull 0x30(%rbx), %ebp
movl %ecx, %eax
cvtsi2sd %rax, %xmm0
movq %rcx, (%rsp)
callq 0x3280
cvttsd2si %xmm0, %ecx
movl %ebp, %eax
cltd
idivl %ecx
movq 0x8(%rbx), %rcx
movq (%rcx,%r13,8), %rdi
movq 0x8(%r14), %rcx
movq (%rcx,%r13,8), %rsi
movslq %eax, %r15
leaq (,%r15,8), %r12
movq %r12, %rdx
callq 0x3240
movq 0x10(%rbx), %rax
movq (%rax,%r13,8), %rdi
movq 0x10(%r14), %rax
movq (%rax,%r13,8), %rsi
movq %r12, %rdx
callq 0x3240
movq 0x18(%rbx), %rax
movq (%rax,%r13,8), %rdi
movq 0x18(%r14), %rax
movq (%rax,%r13,8), %rsi
movq %r12, %rdx
callq 0x3240
movq 0x20(%rbx), %rax
movq (%rax,%r13,8), %rdi
movq 0x20(%r14), %rax
movq (%rax,%r13,8), %rsi
movq %r12, %rdx
callq 0x3240
movq 0x28(%rbx), %rax
movq (%rax,%r13,8), %rdi
movq 0x28(%r14), %rax
movq (%rax,%r13,8), %rsi
movl %r15d, %eax
cltd
pushq $0x4
popq %rcx
idivl %ecx
movslq %eax, %rdx
shlq $0x3, %rdx
callq 0x3240
movq (%rsp), %rcx
incq %r13
addl $0x2, %ecx
jmp 0x1551e
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/SteerablePyramid.cpp
// Function: SteerablePyramid::Destroy()
void SteerablePyramid::Destroy()
{
	if (yLookup_)
		delete [] yLookup_;
	yLookup_ = NULL;
	
	if (h0Coeffs_)
		delete [] h0Coeffs_;
	h0Coeffs_ = NULL;
	
	if (b1Coeffs_)
	{
		for (int i = 0; i < numLevels_; i++)
			delete [] b1Coeffs_[i];
		delete [] b1Coeffs_;
	}
	b1Coeffs_ = NULL;
	
	if (b2Coeffs_)
	{
		for (int i = 0; i < numLevels_; i++)
			delete [] b2Coeffs_[i];
		delete [] b2Coeffs_;
	}
	b2Coeffs_ = NULL;
	
	if (b3Coeffs_)
	{
		for (int i = 0; i < numLevels_; i++)
			delete [] b3Coeffs_[i];
		delete [] b3Coeffs_;
	}
	b3Coeffs_ = NULL;
	
	if (b4Coeffs_)
	{
		for (int i = 0; i < numLevels_; i++)
			delete [] b4Coeffs_[i];
		delete [] b4Coeffs_;
	}
	b4Coeffs_ = NULL;
	
	if (l1Coeffs_)
	{
		for (int i = 0; i < numLevels_; i++)
			delete [] l1Coeffs_[i];
		delete [] l1Coeffs_;
	}
	l1Coeffs_ = NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x40(%rdi), %rdi
testq %rdi, %rdi
je 0x15617
callq 0x3380
andq $0x0, 0x40(%rbx)
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x15629
callq 0x3380
andq $0x0, (%rbx)
cmpq $0x0, 0x8(%rbx)
je 0x15661
xorl %r14d, %r14d
movslq 0x38(%rbx), %rax
movq 0x8(%rbx), %rdi
cmpq %rax, %r14
jge 0x15657
movq (%rdi,%r14,8), %rdi
testq %rdi, %rdi
je 0x15652
callq 0x3380
incq %r14
jmp 0x15637
testq %rdi, %rdi
je 0x15661
callq 0x3380
andq $0x0, 0x8(%rbx)
cmpq $0x0, 0x10(%rbx)
je 0x1569a
xorl %r14d, %r14d
movslq 0x38(%rbx), %rax
movq 0x10(%rbx), %rdi
cmpq %rax, %r14
jge 0x15690
movq (%rdi,%r14,8), %rdi
testq %rdi, %rdi
je 0x1568b
callq 0x3380
incq %r14
jmp 0x15670
testq %rdi, %rdi
je 0x1569a
callq 0x3380
andq $0x0, 0x10(%rbx)
cmpq $0x0, 0x18(%rbx)
je 0x156d3
xorl %r14d, %r14d
movslq 0x38(%rbx), %rax
movq 0x18(%rbx), %rdi
cmpq %rax, %r14
jge 0x156c9
movq (%rdi,%r14,8), %rdi
testq %rdi, %rdi
je 0x156c4
callq 0x3380
incq %r14
jmp 0x156a9
testq %rdi, %rdi
je 0x156d3
callq 0x3380
andq $0x0, 0x18(%rbx)
cmpq $0x0, 0x20(%rbx)
je 0x1570c
xorl %r14d, %r14d
movslq 0x38(%rbx), %rax
movq 0x20(%rbx), %rdi
cmpq %rax, %r14
jge 0x15702
movq (%rdi,%r14,8), %rdi
testq %rdi, %rdi
je 0x156fd
callq 0x3380
incq %r14
jmp 0x156e2
testq %rdi, %rdi
je 0x1570c
callq 0x3380
andq $0x0, 0x20(%rbx)
cmpq $0x0, 0x28(%rbx)
je 0x15745
xorl %r14d, %r14d
movslq 0x38(%rbx), %rax
movq 0x28(%rbx), %rdi
cmpq %rax, %r14
jge 0x1573b
movq (%rdi,%r14,8), %rdi
testq %rdi, %rdi
je 0x15736
callq 0x3380
incq %r14
jmp 0x1571b
testq %rdi, %rdi
je 0x15745
callq 0x3380
andq $0x0, 0x28(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/SteerablePyramid.cpp
// Function: SteerablePyramid::GetFilters(std::vector<std::vector<double, std::allocator<double>>, std::allocator<std::vector<double, std::allocator<double>>>>&)
void SteerablePyramid::GetFilters(vector<vector<Float_t> > &filters)
{
	InitFilters();
	
	filters.clear();
	filters.resize(7);
	
	for (int i = 0; i < 7; i++)
	{
		filters[i].resize(skFilterDims[i] * skFilterDims[i]);
		for (int j = 0; j < skFilterDims[i] * skFilterDims[i]; j++)
			filters[i][j] = skFilters[i][j];
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
callq 0x152c2
movq %rbx, %rdi
callq 0x1a91a
pushq $0x7
popq %rsi
movq %rbx, %rdi
callq 0x1a922
xorl %r14d, %r14d
leaq 0x1c414(%rip), %r15     # 0x32af0
leaq 0x1c42d(%rip), %r12     # 0x32b10
cmpq $0x7, %r14
je 0x1672c
imulq $0x18, %r14, %r13
movq (%rbx), %rdi
addq %r13, %rdi
movl (%r15,%r14,4), %esi
imull %esi, %esi
callq 0x80fc
movl (%r15,%r14,4), %eax
imull %eax, %eax
addq (%rbx), %r13
xorl %ecx, %ecx
cmpq %rax, %rcx
jae 0x16727
movq (%r12,%r14,8), %rdx
movsd (%rdx,%rcx,8), %xmm0
movq (%r13), %rdx
movsd %xmm0, (%rdx,%rcx,8)
incq %rcx
jmp 0x1670b
incq %r14
jmp 0x166e3
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/SteerablePyramid.cpp
// Function: SteerablePyramid::DetermineNumLevels()
void SteerablePyramid::DetermineNumLevels()
{
	numLevels_ = 0;
	int shorterDim = min(width_, height_);
	while (shorterDim > skFilterDims[2])	//Limit is determined by the dimensions of the L1 filter (probably 17x17)
	{
		numLevels_++;
		shorterDim /= 2;
	}
}

// Assembly:
andl $0x0, 0x38(%rdi)
movl 0x30(%rdi), %eax
movl 0x34(%rdi), %ecx
cmpl %eax, %ecx
cmovll %ecx, %eax
pushq $0x1
popq %rcx
movl 0x1c3aa(%rip), %esi     # 0x32af8
pushq $0x2
popq %r8
cmpl %esi, %eax
jle 0x16761
movl %ecx, 0x38(%rdi)
cltd
idivl %r8d
incl %ecx
jmp 0x16752
retq
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/SteerablePyramid.cpp
// Function: SteerablePyramid::SetAllZero()
void SteerablePyramid::SetAllZero()
{
	for (int i = 0; i < numLevels_; i++)
	{
		int horDim = width_ / pow(2, i);
		int verDim = height_ / pow(2, i);
		int totalPixels = horDim * verDim;
		int totalBytes = totalPixels * sizeof(Float_t);
		
		if (i == 0)
			memset(h0Coeffs_, 0, totalBytes);
		memset(b1Coeffs_[i], 0, totalBytes);
		memset(b2Coeffs_[i], 0, totalBytes);
		memset(b3Coeffs_[i], 0, totalBytes);
		memset(b4Coeffs_[i], 0, totalBytes);
		memset(l1Coeffs_[i], 0, totalBytes / 4);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
xorl %r15d, %r15d
movslq 0x38(%rbx), %rax
cmpq %rax, %r15
jge 0x16857
cvtsi2sdl 0x30(%rbx), %xmm0
movsd %xmm0, 0x8(%rsp)
cvtsi2sd %r15d, %xmm0
movsd %xmm0, 0x10(%rsp)
callq 0x3280
movsd 0x8(%rsp), %xmm1
divsd %xmm0, %xmm1
cvttsd2si %xmm1, %r14d
cvtsi2sdl 0x34(%rbx), %xmm0
movsd %xmm0, 0x8(%rsp)
movsd 0x10(%rsp), %xmm0
callq 0x3280
movsd 0x8(%rsp), %xmm1
divsd %xmm0, %xmm1
cvttsd2si %xmm1, %ebp
imull %r14d, %ebp
shll $0x3, %ebp
testq %r15, %r15
je 0x167e2
movslq %ebp, %r14
jmp 0x167f2
movq (%rbx), %rdi
movslq %ebp, %r14
xorl %esi, %esi
movq %r14, %rdx
callq 0x3170
movq 0x8(%rbx), %rax
movq (%rax,%r15,8), %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x3170
movq 0x10(%rbx), %rax
movq (%rax,%r15,8), %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x3170
movq 0x18(%rbx), %rax
movq (%rax,%r15,8), %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x3170
movq 0x20(%rbx), %rax
movq (%rax,%r15,8), %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x3170
movq 0x28(%rbx), %rax
movq (%rax,%r15,8), %rdi
sarl $0x2, %ebp
movslq %ebp, %rdx
xorl %esi, %esi
callq 0x3170
incq %r15
jmp 0x16776
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/SteerablePyramid.cpp
// Function: SteerablePyramid::GeneratePGMimage(double*, int, int, double, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void SteerablePyramid::GeneratePGMimage(Float_t *coeffs, int horDim, int verDim, Float_t scalar, Float_t shift, string filename)
{
	ofstream ofs;
	ofs.open(filename.c_str());
	assert(ofs);
	
	//Write pgm header
	ofs << "P5" << endl
		<< "#." << endl
		<< horDim << " " << verDim << endl
		<< 255 << endl;
	
	int totalPixels = horDim * verDim;
	Float_t pixelF;
	int pixelInt;
	unsigned char pixel;
	for (int i = 0; i < totalPixels; i++)
	{
		pixelF = *coeffs++ * scalar + shift;
		if ((int)(pixelF * 10.0) % 10 >= 5)
			pixelF++;
		pixelInt = pixelF;
		if (pixelInt < 0 || pixelInt > 255)
		{
			/*
			cout << "Out of bounds pixel: "
				<< horDim << "    " << verDim << "    "
				<< i % horDim << "    " << i / verDim << "    "
				<< *coeffs << "    " << pixelInt << endl;
			*/
			if (pixelInt < 0)
				pixelInt = 0;
			else pixelInt = 255;
		}
		pixel = pixelInt;
		ofs.put(pixel);
	}
	
	ofs.close();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movq %r8, %r15
movsd %xmm1, 0x10(%rsp)
movsd %xmm0, 0x8(%rsp)
movl %ecx, %ebx
movl %edx, %ebp
movq %rsi, (%rsp)
leaq 0x18(%rsp), %r12
movq %r12, %rdi
callq 0x34a0
movq (%r15), %rsi
pushq $0x10
popq %rdx
movq %r12, %rdi
callq 0x3050
movq 0x18(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x38(%rsp,%rax)
jne 0x19e8a
leaq 0x93a2(%rip), %rsi      # 0x2311c
leaq 0x18(%rsp), %rdi
callq 0x32c0
movq %rax, %rdi
callq 0x3120
leaq 0x9461(%rip), %rsi      # 0x231f4
movq %rax, %rdi
callq 0x32c0
movq %rax, %rdi
callq 0x3120
movq %rax, %rdi
movl %ebp, %esi
callq 0x34b0
leaq 0x8b27(%rip), %rsi      # 0x228db
movq %rax, %rdi
callq 0x32c0
movq %rax, %rdi
movl %ebx, %esi
callq 0x34b0
movq %rax, %rdi
callq 0x3120
movq %rax, %rdi
movl $0xff, %esi
callq 0x34b0
movq %rax, %rdi
callq 0x3120
imull %ebp, %ebx
xorl %r12d, %r12d
testl %ebx, %ebx
cmovlel %r12d, %ebx
pushq $0xa
popq %rbp
movl $0xff, %r13d
leaq 0x18(%rsp), %r15
xorl %r14d, %r14d
cmpl %r14d, %ebx
je 0x19e64
movq (%rsp), %rax
movsd (%rax,%r14,8), %xmm0
mulsd 0x8(%rsp), %xmm0
addsd 0x10(%rsp), %xmm0
movapd %xmm0, %xmm1
mulsd 0x9e21(%rip), %xmm1     # 0x23c48
cvttsd2si %xmm1, %eax
cltd
idivl %ebp
movapd %xmm0, %xmm1
addsd 0x821e(%rip), %xmm1     # 0x22058
cmpl $0x5, %edx
jge 0x19e43
movapd %xmm0, %xmm1
cvttsd2si %xmm1, %eax
testl %eax, %eax
cmovlel %r12d, %eax
cmpl %r13d, %eax
cmovgel %r13d, %eax
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
incq %r14
jmp 0x19e00
leaq 0x18(%rsp), %rdi
callq 0x33c0
leaq 0x18(%rsp), %rdi
callq 0x33e0
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x9341(%rip), %rdi      # 0x231d2
leaq 0xb42a(%rip), %rsi      # 0x252c2
leaq 0xc4b3(%rip), %rcx      # 0x26352
movl $0x79d, %edx            # imm = 0x79D
callq 0x31a0
jmp 0x19ead
jmp 0x19ead
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x33e0
movq %rbx, %rdi
callq 0x34d0
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/SteerablePyramid.cpp
// Function: SteerablePyramid::AccumulateHistograms(double*, int, int, std::vector<int, std::allocator<int>>&, double)
void SteerablePyramid::AccumulateHistograms(Float_t *coeffs, int horDim, int verDim, vector<int> &histogram, Float_t binSpan)
{
	int numBins = histogram.size();
	
	int totalPixels = horDim * verDim;
	int bin;
	for (int i = 0; i < totalPixels; i++)
	{
		bin = fabs(coeffs[i]) / binSpan;
		if (bin >= numBins)
		{
			cout << "Out of bounds histogram: "
					<< fabs(coeffs[i]) << "   "
					<< binSpan << "   "
					<< fabs(coeffs[i]) / binSpan
					<< "   "
					<< bin << "   "
					<< numBins << endl;
			bin = numBins - 1;
		}
		histogram[bin]++;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %r14d
movq %rsi, %r15
movq (%r8), %rax
movq %r8, 0x10(%rsp)
movq 0x8(%r8), %r12
subq %rax, %r12
shrq $0x2, %r12
imull %ecx, %r14d
leal -0x1(%r12), %ecx
movl %ecx, 0xc(%rsp)
xorl %ebx, %ebx
testl %r14d, %r14d
cmovlel %ebx, %r14d
movapd 0x7925(%rip), %xmm2     # 0x22010
leaq 0x81e7(%rip), %r13      # 0x228d9
movsd %xmm0, (%rsp)
cmpq %rbx, %r14
je 0x1a7e0
movsd (%r15,%rbx,8), %xmm1
andpd %xmm2, %xmm1
divsd %xmm0, %xmm1
cvttsd2si %xmm1, %ebp
cmpl %r12d, %ebp
jl 0x1a7d2
movq 0x158ae(%rip), %rdi     # 0x2ffd0
leaq 0xbcc8(%rip), %rsi      # 0x263f1
callq 0x32c0
movsd (%r15,%rbx,8), %xmm0
movapd 0x78d4(%rip), %xmm1     # 0x22010
andpd %xmm1, %xmm0
movq %rax, %rdi
callq 0x3460
movq %rax, %rdi
movq %r13, %rsi
callq 0x32c0
movq %rax, %rdi
movsd (%rsp), %xmm0
callq 0x3460
movq %rax, %rdi
movq %r13, %rsi
callq 0x32c0
movsd (%r15,%rbx,8), %xmm0
andpd 0x7897(%rip), %xmm0     # 0x22010
divsd (%rsp), %xmm0
movq %rax, %rdi
callq 0x3460
movq %rax, %rdi
movq %r13, %rsi
callq 0x32c0
movq %rax, %rdi
movl %ebp, %esi
callq 0x34b0
movq %rax, %rdi
movq %r13, %rsi
callq 0x32c0
movq %rax, %rdi
movl %r12d, %esi
callq 0x34b0
movq %rax, %rdi
callq 0x3120
movapd 0x784f(%rip), %xmm2     # 0x22010
movsd (%rsp), %xmm0
movq 0x10(%rsp), %rax
movq (%rax), %rax
movl 0xc(%rsp), %ebp
movslq %ebp, %rcx
incl (%rax,%rcx,4)
incq %rbx
jmp 0x1a6f7
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/SteerablePyramid.cpp
// Function: FilterFT::~FilterFT()
~FilterFT()
	
	{
		for (int i = 0; i < 7; i++)
			for (int j = 0; j < filtersFTs[i].size(); j++)
			{
				assert(filtersFTs[i][j]);
				delete [] filtersFTs[i][j];
				delete [] filtersInvFTs[i][j];
			}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x8(%rdi), %rax
movq %rax, (%rsp)
leaq 0xb0(%rdi), %r15
xorl %r12d, %r12d
cmpq $0x7, %r12
je 0x1a8b8
imulq $0x18, %r12, %r13
movq (%rsp), %rax
leaq (%rax,%r13), %rbp
addq %r15, %r13
xorl %r14d, %r14d
movq (%rbp), %rax
movq 0x8(%rbp), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r14, %rcx
jbe 0x1a8b3
movq (%rax,%r14,8), %rdi
testq %rdi, %rdi
je 0x1a8fc
callq 0x3380
movq (%r13), %rax
movq (%rax,%r14,8), %rdi
testq %rdi, %rdi
je 0x1a8ae
callq 0x3380
incq %r14
jmp 0x1a87a
incq %r12
jmp 0x1a862
movl $0x140, %r14d           # imm = 0x140
leaq (%rbx,%r14), %rdi
callq 0x1ae0c
addq $-0x18, %r14
cmpq $0x98, %r14
jne 0x1a8be
movl $0x98, %r14d
leaq (%rbx,%r14), %rdi
callq 0x1ae0c
addq $-0x18, %r14
cmpq $-0x10, %r14
jne 0x1a8da
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xbb38(%rip), %rdi      # 0x2643b
leaq 0xa9b8(%rip), %rsi      # 0x252c2
leaq 0xbb3b(%rip), %rcx      # 0x2644c
pushq $0x37
popq %rdx
callq 0x31a0
nop
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/SteerablePyramid.cpp
// Function: FilterFT::operator=(FilterFT const&)
const FilterFT& operator=(const FilterFT &fft)
	{
		if (&fft == this)
			return *this;
		
		width_ = fft.width_;
		height_ = fft.height_;
		
		for (int i = 0; i < 7; i++)
		{
			filtersFTs[i].resize(fft.filtersFTs[i].size());
			filtersInvFTs[i].resize(fft.filtersInvFTs[i].size());
			for (int j = 0; j < filtersFTs[i].size(); j++)
			{
				int totalPixels = (width_ * height_) / pow(4, j);
				filtersFTs[i][j] = new Float_t[totalPixels];
				filtersInvFTs[i][j] = new Float_t[totalPixels];
				memcpy(filtersFTs[i][j], fft.filtersFTs[i][j], totalPixels * sizeof(Float_t));
				memcpy(filtersInvFTs[i][j], fft.filtersInvFTs[i][j], totalPixels * sizeof(Float_t));
			}
		}
		
		return *this;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, (%rsp)
cmpq %rdi, %rsi
je 0x1b1aa
movq (%rsi), %rax
movq (%rsp), %rcx
movq %rax, (%rcx)
leaq 0x8(%rcx), %rax
movq %rax, 0x20(%rsp)
leaq 0x8(%rsi), %rax
movq %rax, 0x18(%rsp)
movl $0xb0, %eax
addq %rax, %rcx
movq %rcx, 0x8(%rsp)
addq %rsi, %rax
movq %rax, 0x10(%rsp)
xorl %eax, %eax
cmpq $0x7, %rax
je 0x1b1aa
movq %rax, 0x28(%rsp)
imulq $0x18, %rax, %rbx
movq 0x20(%rsp), %rax
leaq (%rax,%rbx), %r14
movq 0x18(%rsp), %rax
leaq (%rax,%rbx), %rcx
movq %rcx, 0x38(%rsp)
movq 0x8(%rax,%rbx), %rsi
subq (%rax,%rbx), %rsi
sarq $0x3, %rsi
movq %r14, %rdi
callq 0x1ac0a
movq 0x8(%rsp), %rax
leaq (%rax,%rbx), %r15
movq 0x10(%rsp), %rax
leaq (%rax,%rbx), %rcx
movq %rcx, 0x30(%rsp)
movq 0x8(%rax,%rbx), %rsi
subq (%rax,%rbx), %rsi
sarq $0x3, %rsi
movq %r15, %rdi
callq 0x1ac0a
xorl %ebp, %ebp
xorl %ebx, %ebx
movq 0x8(%r14), %rax
subq (%r14), %rax
sarq $0x3, %rax
cmpq %rbx, %rax
jbe 0x1b19d
movq (%rsp), %rcx
movl 0x4(%rcx), %eax
imull (%rcx), %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x40(%rsp)
movl %ebp, %eax
cvtsi2sd %rax, %xmm0
callq 0x3280
movsd 0x40(%rsp), %xmm1
divsd %xmm0, %xmm1
cvttsd2si %xmm1, %eax
cltq
leaq (,%rax,8), %r12
pushq $-0x1
popq %r13
testl %eax, %eax
js 0x1b13e
movq %r12, %r13
movq %r13, %rdi
callq 0x3030
movq (%r14), %rcx
movq %rax, (%rcx,%rbx,8)
movq %r13, %rdi
callq 0x3030
movq (%r15), %rcx
movq %rax, (%rcx,%rbx,8)
movq (%r14), %rax
movq (%rax,%rbx,8), %rdi
movq 0x38(%rsp), %rax
movq (%rax), %rax
movq (%rax,%rbx,8), %rsi
movq %r12, %rdx
callq 0x3240
movq (%r15), %rax
movq (%rax,%rbx,8), %rdi
movq 0x30(%rsp), %rax
movq (%rax), %rax
movq (%rax,%rbx,8), %rsi
movq %r12, %rdx
callq 0x3240
incq %rbx
addl $0x2, %ebp
jmp 0x1b0e7
movq 0x28(%rsp), %rax
incq %rax
jmp 0x1b078
movq (%rsp), %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/ImagePairStats.cpp
// Function: calc1ChnlME(ImageReal const&, ImageReal const&)
Float_t calc1ChnlME(const ImageReal &img1, const ImageReal &img2)
{
	assert(img1.width() > 0 && img1.height() > 0);
	assert(img1.width() == img2.width() && img1.height() == img2.height());
	
	Float_t mse = 0;
	
	int width = img1.width(), height = img1.height();
	int numNonborderPixels = 0;
	for (int y = skEdgeSkip; y < height - skEdgeSkip; y++)
		for (int x = skEdgeSkip; x < width - skEdgeSkip; x++)
		{
			mse += fabs(img2(x, y) - img1(x, y));
			numNonborderPixels++;
		}
	
	assert(mse >= 0);
	
	mse /= (Float_t)numNonborderPixels;
	
	return mse;
}

// Assembly:
pushq %rax
movl 0x28(%rdi), %eax
testl %eax, %eax
jle 0x1bb05
movl 0x2c(%rdi), %ecx
testl %ecx, %ecx
jle 0x1bb05
cmpl 0x28(%rsi), %eax
jne 0x1bb1e
cmpl 0x2c(%rsi), %ecx
jne 0x1bb1e
movq 0x38(%rsi), %rdx
movq 0x38(%rdi), %rsi
xorpd %xmm0, %xmm0
xorl %edi, %edi
movapd 0x6559(%rip), %xmm1     # 0x22010
xorl %r8d, %r8d
cmpl %ecx, %r8d
je 0x1baee
movl %edi, %r9d
movq %rax, %r10
subq $0x1, %r10
jb 0x1bae7
movl %r9d, %r11d
movsd (%rdx,%r11,8), %xmm2
subsd (%rsi,%r11,8), %xmm2
andpd %xmm1, %xmm2
addsd %xmm2, %xmm0
incl %r9d
jmp 0x1bac5
incl %r8d
addl %eax, %edi
jmp 0x1baba
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x1bb37
imull %eax, %ecx
cvtsi2sd %ecx, %xmm1
divsd %xmm1, %xmm0
popq %rax
retq
leaq 0xa956(%rip), %rdi      # 0x26462
leaq 0xa975(%rip), %rsi      # 0x26488
leaq 0xa9ca(%rip), %rcx      # 0x264e4
pushq $0x37
jmp 0x1bb4e
leaq 0x8f82(%rip), %rdi      # 0x24aa7
leaq 0xa95c(%rip), %rsi      # 0x26488
leaq 0xa9b1(%rip), %rcx      # 0x264e4
pushq $0x38
jmp 0x1bb4e
leaq 0xa9e0(%rip), %rdi      # 0x2651e
leaq 0xa943(%rip), %rsi      # 0x26488
leaq 0xa998(%rip), %rcx      # 0x264e4
pushq $0x45
popq %rdx
callq 0x31a0
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/ImagePairStats.cpp
// Function: calc1ChnlMSE(ImageReal const&, ImageReal const&)
Float_t calc1ChnlMSE(const ImageReal &img1, const ImageReal &img2)
{
	assert(img1.width() > 0 && img1.height() > 0);
	assert(img1.width() == img2.width() && img1.height() == img2.height());
	
	Float_t mse = 0;
	
	int width = img1.width(), height = img1.height();
	int numNonborderPixels = 0;
	for (int y = skEdgeSkip; y < height - skEdgeSkip; y++)
		for (int x = skEdgeSkip; x < width - skEdgeSkip; x++)
		{
			mse += SQR(img2(x, y) - img1(x, y));
			numNonborderPixels++;
		}
	
	assert(mse >= 0);
	
	mse /= (Float_t)numNonborderPixels;
	
	return mse;
}

// Assembly:
pushq %rax
movl 0x28(%rdi), %eax
testl %eax, %eax
jle 0x1bbc9
movl 0x2c(%rdi), %ecx
testl %ecx, %ecx
jle 0x1bbc9
cmpl 0x28(%rsi), %eax
jne 0x1bbe2
cmpl 0x2c(%rsi), %ecx
jne 0x1bbe2
movq 0x38(%rsi), %rdx
movq 0x38(%rdi), %rsi
xorpd %xmm0, %xmm0
xorl %edi, %edi
xorl %r8d, %r8d
cmpl %ecx, %r8d
je 0x1bbb2
movl %edi, %r9d
movq %rax, %r10
subq $0x1, %r10
jb 0x1bbab
movl %r9d, %r11d
movsd (%rdx,%r11,8), %xmm1
subsd (%rsi,%r11,8), %xmm1
mulsd %xmm1, %xmm1
addsd %xmm1, %xmm0
incl %r9d
jmp 0x1bb89
incl %r8d
addl %eax, %edi
jmp 0x1bb7e
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x1bbfb
imull %eax, %ecx
cvtsi2sd %ecx, %xmm1
divsd %xmm1, %xmm0
popq %rax
retq
leaq 0xa892(%rip), %rdi      # 0x26462
leaq 0xa8b1(%rip), %rsi      # 0x26488
leaq 0xa949(%rip), %rcx      # 0x26527
pushq $0x4e
jmp 0x1bc12
leaq 0x8ebe(%rip), %rdi      # 0x24aa7
leaq 0xa898(%rip), %rsi      # 0x26488
leaq 0xa930(%rip), %rcx      # 0x26527
pushq $0x4f
jmp 0x1bc12
leaq 0xa91c(%rip), %rdi      # 0x2651e
leaq 0xa87f(%rip), %rsi      # 0x26488
leaq 0xa917(%rip), %rcx      # 0x26527
pushq $0x5c
popq %rdx
callq 0x31a0
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/ImagePairStats.cpp
// Function: calculateLabScore(Image3ChnlReal const&, Image3ChnlReal const&)
Float_t calculateLabScore(const Image3ChnlReal &imgOri, const Image3ChnlReal &img)
{
	assert(imgOri.width() == img.width() && imgOri.height() == img.height());
	
	//We must invert the sign of the lab delta error so that higher lab delta errors are better.
	//This way, psnr and lab delta error can be compared in a similar fashion, i.e.,
	//that higher scores will be considered better scores.
	
	return -calcImgLabDeltaE(imgOri, img);
}

// Assembly:
pushq %rax
movl 0x28(%rdi), %eax
cmpl 0x28(%rsi), %eax
jne 0x1c0c7
movl 0x2c(%rdi), %eax
cmpl 0x2c(%rsi), %eax
jne 0x1c0c7
callq 0x1b89d
xorps 0x73ab(%rip), %xmm0     # 0x23470
popq %rax
retq
leaq 0xa5df(%rip), %rdi      # 0x266ad
leaq 0xa3b3(%rip), %rsi      # 0x26488
leaq 0xa6a6(%rip), %rcx      # 0x26782
movl $0xc5, %edx
callq 0x31a0
nop
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/Random.cpp
// Function: RandStdNorm()
Float_t RandStdNorm()
{
	//Standard normal distribution
	
	//Box-Muller
	//http://en.wikipedia.org/wiki/Normal_distribution
	
	//Float_t a = RandZeroFloat(1.0);
	//Float_t b = RandZeroFloat(1.0);
	//Float_t c = sqrt(-2 * log(a)) * cos(2 * Pi * b);
	//return c;
	
	//return sqrt(-2.0 * log(RandZeroFloat(1.0))) * cos(PiTimes2 * RandZeroFloat(1.0));
	
	//================================================================================
	
	//Polar form of Box-Muller
	//http://www.taygeta.com/random/gaussian.html
	
	Float_t x1, x2, w, y1;
	static Float_t y2;
	static bool use_last = false;

	if (use_last)	//Use value from previous call
	{
		y1 = y2;
		use_last = false;
	}
	else
	{
		do
		{
			x1 = 2.0 * RandZeroFloat(1.0) - 1.0;
			x2 = 2.0 * RandZeroFloat(1.0) - 1.0;
			w = x1 * x1 + x2 * x2;
		} while ( w >= 1.0 );
		
		w = sqrt( (-2.0 * log( w ) ) / w );
		y1 = x1 * w;
		y2 = x2 * w;
		use_last = true;
	}

	return y1;//(y1 * stddev + mean);
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
movb 0x16a3a(%rip), %bl      # 0x32bd0
testb %bl, %bl
je 0x1c1a7
movsd 0x16a26(%rip), %xmm1    # 0x32bc8
jmp 0x1c25b
movsd 0x5ea9(%rip), %xmm0     # 0x22058
callq 0x1c13b
movapd %xmm0, %xmm1
addsd %xmm0, %xmm1
movsd 0x5eac(%rip), %xmm0     # 0x22070
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movsd 0x5e82(%rip), %xmm0     # 0x22058
callq 0x1c13b
movsd 0x8(%rsp), %xmm3
addsd %xmm0, %xmm0
addsd 0x5e83(%rip), %xmm0     # 0x22070
movapd %xmm0, %xmm2
mulsd %xmm0, %xmm2
mulsd %xmm3, %xmm3
addsd %xmm2, %xmm3
ucomisd 0x5e53(%rip), %xmm3     # 0x22058
jae 0x1c1a7
movsd %xmm0, 0x18(%rsp)
movapd %xmm3, %xmm0
movsd %xmm3, 0x10(%rsp)
callq 0x3230
mulsd 0xa5b4(%rip), %xmm0     # 0x267d8
divsd 0x10(%rsp), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x1c23a
sqrtsd %xmm0, %xmm0
jmp 0x1c23f
callq 0x3220
movsd 0x8(%rsp), %xmm1
mulsd %xmm0, %xmm1
movsd 0x18(%rsp), %xmm2
mulsd %xmm0, %xmm2
movsd %xmm2, 0x1696d(%rip)    # 0x32bc8
xorb $0x1, %bl
movb %bl, 0x1696c(%rip)      # 0x32bd0
movapd %xmm1, %xmm0
addq $0x20, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/Bayer.cpp
// Function: determineBayerColor(int, int)
Color determineBayerColor(int x, int y)
{
	if (x < 0)	//A flag for nonBayer images
		return R;
	
	int x2 = x % 2, y2 = y % 2;
	
	Color color = gBayerPattern[y2 * 2 + x2];
	
	return color;
}

// Assembly:
testl %edi, %edi
js 0x1c2b4
andl $0x1, %edi
pushq $0x2
popq %rcx
movl %esi, %eax
cltd
idivl %ecx
movq 0x14066(%rip), %rax     # 0x30310
leal (%rdi,%rdx,2), %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/Bayer.cpp
// Function: determineBlockCorner(int, int)
BlockCorner determineBlockCorner(int x, int y)
{
	int x2 = x % 2, y2 = y % 2;
	
	if (x2 == 0 && y2 == 0)
		return UL;
	if (x2 == 1 && y2 == 0)
		return UR;
	if (x2 == 0 && y2 == 1)
		return LL;
	//if (x2 == 1 && y2 == 1)
		return LR;
}

// Assembly:
movl %edi, %eax
pushq $0x2
popq %rdi
cltd
idivl %edi
movl %edx, %ecx
movl %esi, %eax
cltd
idivl %edi
movl %edx, %eax
orl %ecx, %eax
je 0x1c2d9
movl %ecx, %eax
xorl $0x1, %eax
orl %edx, %eax
jne 0x1c2dc
pushq $0x1
popq %rax
retq
xorl %eax, %eax
retq
xorl $0x1, %edx
xorl %eax, %eax
orl %edx, %ecx
sete %al
xorl $0x3, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/Bayer.cpp
// Function: determineBlockColorOrder(int&, int&, int&, int&, int&, int&, int&, int&, int&, int&)
void determineBlockColorOrder(int &rx, int &ry, int &g1x, int &g1y, int &bx, int &by,
							int &redArrayPos, int &greenArrayPos, int &blueArrayPos,
							int &secondGreenUnusedPos)
{
	determineBlockCoord(R, rx, ry);
	determineBlockCoord(B, bx, by);
	assert(rx != bx && ry != by);
	
	g1x = 0;
	g1y = 0;
	if ((rx == 0 && ry == 0) || (bx == 0 && by == 0))
		g1x = 1;
	
	if (rx == 0 && ry == 0)
	{
		redArrayPos = 0;
		greenArrayPos = 1;
		blueArrayPos = 3;
		secondGreenUnusedPos = 2;
	}
	else if (rx == 1 && ry == 0)
	{
		redArrayPos = 1;
		greenArrayPos = 0;
		blueArrayPos = 2;
		secondGreenUnusedPos = 3;
	}
	else if (bx == 0 && by == 0)
	{
		redArrayPos = 3;
		greenArrayPos = 1;
		blueArrayPos = 0;
		secondGreenUnusedPos = 2;
	}
	else if (bx == 1 && by == 0)
	{
		redArrayPos = 2;
		greenArrayPos = 0;
		blueArrayPos = 1;
		secondGreenUnusedPos = 3;
	}
	else assert(false);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r14
movq %r8, %r15
movq %rcx, %rbx
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, %rbp
xorl %edi, %edi
movq %rbp, %rsi
movq %r12, %rdx
callq 0x1c2ea
pushq $0x2
popq %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1c2ea
movl (%rbp), %eax
cmpl (%r15), %eax
je 0x1c469
movl (%r12), %eax
cmpl (%r14), %eax
je 0x1c469
andl $0x0, (%r13)
andl $0x0, (%rbx)
movl (%rbp), %eax
movl (%r12), %ecx
movl %eax, %edx
orl %ecx, %edx
je 0x1c3d6
movl (%r14), %edx
orl (%r15), %edx
jne 0x1c3e5
movl $0x1, (%r13)
movl (%rbp), %eax
movl (%r12), %ecx
movl %eax, %edx
orl %ecx, %edx
jne 0x1c3f9
pushq $0x3
popq %rax
pushq $0x1
popq %rcx
xorl %edx, %edx
pushq $0x2
popq %r10
jmp 0x1c43b
xorl $0x1, %eax
orl %ecx, %eax
jne 0x1c40d
pushq $0x3
popq %r10
pushq $0x2
popq %rax
xorl %ecx, %ecx
pushq $0x1
jmp 0x1c43a
movl (%r15), %ecx
movl (%r14), %eax
movl %ecx, %edx
orl %eax, %edx
jne 0x1c426
pushq $0x2
popq %r10
xorl %eax, %eax
pushq $0x1
popq %rcx
pushq $0x3
jmp 0x1c43a
cmpl $0x1, %ecx
jne 0x1c486
testl %eax, %eax
jne 0x1c486
xorl %ecx, %ecx
pushq $0x3
popq %r10
pushq $0x1
popq %rax
pushq $0x2
popq %rdx
movq 0x58(%rsp), %rsi
movq 0x50(%rsp), %rdi
movq 0x48(%rsp), %r8
movq 0x40(%rsp), %r9
movl %edx, (%r9)
movl %ecx, (%r8)
movl %eax, (%rdi)
movl %r10d, (%rsi)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa3b3(%rip), %rdi      # 0x26823
leaq 0xa374(%rip), %rsi      # 0x267eb
leaq 0xa3ba(%rip), %rcx      # 0x26838
pushq $0x55
popq %rdx
callq 0x31a0
leaq 0x90b1(%rip), %rdi      # 0x2553e
leaq 0xa357(%rip), %rsi      # 0x267eb
leaq 0xa39d(%rip), %rcx      # 0x26838
pushq $0x78
jmp 0x1c480
nop
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/FFT/fft2d.cpp
// Function: fft2dInit(long, long)
int fft2dInit(long M2, long M){
	// init for fft2d, ifft2d, rfft2d, and rifft2d
	// malloc storage for 4 columns of 2d ffts then call fftinit for both row and column ffts sizes
/* INPUTS */
/* M = log2 of number of columns */
/* M2 = log2 of number of rows */
/*       of 2d matrix to be fourier transformed */
/* OUTPUTS */
/* private storage for columns of 2d ffts	*/
/* calls fftInit for cosine and bit reversed tables	*/
int theError = 1;
if ((M2 >= 0) && (M2 < 8*sizeof(long))){
	theError = 0;
	if (Array2d[M2] == 0){
		Array2d[M2] = (Float_t *) malloc( 4*2*POW2(M2)*sizeof(Float_t) );
		if (Array2d[M2] == 0)
			theError = 2;
		else{
			theError = fftInit(M2);
		}
	}
	if (theError == 0)
		theError = fftInit(M);
}
return theError;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
cmpq $0x3f, %rdi
ja 0x1c4cc
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x16728(%rip), %r15     # 0x32be0
cmpq $0x0, (%r15,%rdi,8)
je 0x1c4d5
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1d638
pushq $0x1
popq %rax
popq %rbx
popq %r14
popq %r15
retq
pushq $0x40
popq %rdi
movl %r14d, %ecx
shlq %cl, %rdi
callq 0x33a0
movq %rax, (%r15,%r14,8)
testq %rax, %rax
je 0x1c4fa
movq %r14, %rdi
callq 0x1d638
testl %eax, %eax
jne 0x1c4cf
jmp 0x1c4bf
pushq $0x2
jmp 0x1c4ce
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/FFT/fft2d.cpp
// Function: fft2dFree()
void fft2dFree(){
// free storage for columns of 2d ffts and call fftFree to free all BRLow and Utbl storage
long i1;
for (i1=8*sizeof(long)-1; i1>=0; i1--){
	if (Array2d[i1] != 0){
		free(Array2d[i1]);
		Array2d[i1] = 0;
	};
};
fftFree();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
pushq $0x3f
popq %rbx
leaq 0x166d3(%rip), %r14     # 0x32be0
testq %rbx, %rbx
js 0x1c532
movq (%r14,%rbx,8), %rdi
testq %rdi, %rdi
je 0x1c52d
leaq (,%rbx,8), %r15
callq 0x3330
andq $0x0, (%r15,%r14)
decq %rbx
jmp 0x1c50d
popq %rbx
popq %r14
popq %r15
jmp 0x1d720
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/FFT/fft2d.cpp
// Function: fft2d(double*, long, long)
void fft2d(Float_t *data, long M2, long M){
/* Compute 2D complex fft and return results in-place	*/
/* INPUTS */
/* *data = input data array	*/
/* M2 = log2 of fft size number of rows */
/* M = log2 of fft size number of columns */
/* OUTPUTS */
/* *data = output data array	*/
long i1;
if((M2>0)&&(M>0)){
	ffts(data, M, POW2(M2));
	if (M>2)
		for (i1=0; i1<POW2(M); i1+=4){
			cxpose(data + i1*2, POW2(M), Array2d[M2], POW2(M2), POW2(M2), 4);
			ffts(Array2d[M2], M2, 4);
			cxpose(Array2d[M2], POW2(M2), data + i1*2, POW2(M), 4, POW2(M2));
		}
	else{
		cxpose(data, POW2(M), Array2d[M2], POW2(M2), POW2(M2), POW2(M));
		ffts(Array2d[M2], M2, POW2(M));
		cxpose(Array2d[M2], POW2(M2), data, POW2(M), POW2(M), POW2(M2));
	}
}
else
	ffts(data, M2+M, 1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %rbx
testq %rsi, %rsi
setle %al
testq %rdx, %rdx
setle %cl
orb %al, %cl
jne 0x1c61c
pushq $0x1
popq %r15
movq %r15, %r12
movl %r14d, %ecx
shlq %cl, %r12
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x1d789
movl %r13d, %ecx
shlq %cl, %r15
cmpq $0x3, %r13
jb 0x1c63b
movq %r12, (%rsp)
movq %r14, 0x8(%rsp)
xorl %eax, %eax
movq 0x8(%rsp), %r12
movq (%rsp), %rbp
cmpq %r15, %rax
jae 0x1c692
movq %rax, 0x10(%rsp)
leaq 0x16625(%rip), %r13     # 0x32be0
movq (%r13,%r12,8), %rdx
movq %rbx, %rdi
movq %r15, %rsi
movq %rbp, %rcx
movq %rbp, %r8
movq %rbx, %r14
movq %r15, %rbx
pushq $0x4
popq %r15
movq %r15, %r9
callq 0x21836
movq (%r13,%r12,8), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x1d789
movq (%r13,%r12,8), %rdi
movq %rbp, %rsi
movq %r14, %rdx
movq %rbx, %rcx
movq %r15, %r8
movq %rbx, %r15
movq %r14, %rbx
movq %rbp, %r9
callq 0x21836
movq 0x10(%rsp), %rax
addq $0x4, %rax
addq $0x40, %rbx
jmp 0x1c5a6
addq %r14, %r13
pushq $0x1
popq %rdx
movq %rbx, %rdi
movq %r13, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1d789
leaq 0x1659e(%rip), %r13     # 0x32be0
movq (%r13,%r14,8), %rdx
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rcx
movq %r12, %r8
movq %r15, %r9
callq 0x21836
movq (%r13,%r14,8), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x1d789
movq (%r13,%r14,8), %rdi
movq %r12, %rsi
movq %rbx, %rdx
movq %r15, %rcx
movq %r15, %r8
movq %r12, %r9
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x21836
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/FFT/fft2d.cpp
// Function: ifft2d(double*, long, long)
void ifft2d(Float_t *data, long M2, long M){
/* Compute 2D complex ifft and return results in-place	*/
/* INPUTS */
/* *data = input data array	*/
/* M2 = log2 of fft size number of rows */
/* M = log2 of fft size number of columns */
/* OUTPUTS */
/* *data = output data array	*/
long i1;
if((M2>0)&&(M>0)){
	iffts(data, M, POW2(M2));
	if (M>2)
		for (i1=0; i1<POW2(M); i1+=4){
			cxpose(data + i1*2, POW2(M), Array2d[M2], POW2(M2), POW2(M2), 4);
			iffts(Array2d[M2], M2, 4);
			cxpose(Array2d[M2], POW2(M2), data + i1*2, POW2(M), 4, POW2(M2));
		}
	else{
		cxpose(data, POW2(M), Array2d[M2], POW2(M2), POW2(M2), POW2(M));
		iffts(Array2d[M2], M2, POW2(M));
		cxpose(Array2d[M2], POW2(M2), data, POW2(M), POW2(M), POW2(M2));
	}
}
else
	iffts(data, M2+M, 1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %rbx
testq %rsi, %rsi
setle %al
testq %rdx, %rdx
setle %cl
orb %al, %cl
jne 0x1c781
pushq $0x1
popq %r15
movq %r15, %r12
movl %r14d, %ecx
shlq %cl, %r12
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x1d7b6
movl %r13d, %ecx
shlq %cl, %r15
cmpq $0x3, %r13
jb 0x1c7a0
movq %r12, (%rsp)
movq %r14, 0x8(%rsp)
xorl %eax, %eax
movq 0x8(%rsp), %r12
movq (%rsp), %rbp
cmpq %r15, %rax
jae 0x1c7f7
movq %rax, 0x10(%rsp)
leaq 0x164c0(%rip), %r13     # 0x32be0
movq (%r13,%r12,8), %rdx
movq %rbx, %rdi
movq %r15, %rsi
movq %rbp, %rcx
movq %rbp, %r8
movq %rbx, %r14
movq %r15, %rbx
pushq $0x4
popq %r15
movq %r15, %r9
callq 0x21836
movq (%r13,%r12,8), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x1d7b6
movq (%r13,%r12,8), %rdi
movq %rbp, %rsi
movq %r14, %rdx
movq %rbx, %rcx
movq %r15, %r8
movq %rbx, %r15
movq %r14, %rbx
movq %rbp, %r9
callq 0x21836
movq 0x10(%rsp), %rax
addq $0x4, %rax
addq $0x40, %rbx
jmp 0x1c70b
addq %r14, %r13
pushq $0x1
popq %rdx
movq %rbx, %rdi
movq %r13, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1d7b6
leaq 0x16439(%rip), %r13     # 0x32be0
movq (%r13,%r14,8), %rdx
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rcx
movq %r12, %r8
movq %r15, %r9
callq 0x21836
movq (%r13,%r14,8), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x1d7b6
movq (%r13,%r14,8), %rdi
movq %r12, %rsi
movq %rbx, %rdx
movq %r15, %rcx
movq %r15, %r8
movq %r12, %r9
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x21836
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq