// File: /workspace/github_cpp_makefile_star2_O3/kebwi[P]Trifid/src/main.cpp
// Function: programBehaviorRGBImagePairStats()
void programBehaviorRGBImagePairStats()
{
	//Keep track of the first image, it is the baseline for stat calculations
	Image3ChnlReal rgbImg1;
	rgbImg1.readFile(sInputFilenames[0]);
	int width = rgbImg1.width(), height = rgbImg1.height();
	int totalPixels = width * height;
	
	//RGB to Lab the first image
	Image3ChnlReal labImg1(width, height);
	rgbImgToLabImg(1, rgbImg1, labImg1);
	
	//Normalize Lab, this is for Lab PSNR.
	//Instead of normalizing and getting Lab PSNR,
	//it would be better to get Lab MSE instead.
	Image3ChnlReal labImg1Norm = labImg1;
	Float_t minVal = (*labImg1Norm[0])[0];
	for (int c = 0; c < 3; c++)
		for (int i = 0; i < totalPixels; i++)
			if ((*labImg1Norm[c])[i] < minVal)
				minVal = (*labImg1Norm[c])[i];
	if (minVal < 0)
		for (int c = 0; c < 3; c++)
			for (int i = 0; i < totalPixels; i++)
				(*labImg1Norm[c])[i] -= minVal;
	labImg1Norm.normalize(1.0, true, false);
	
	//Calculate the stats for each image
	Image3ChnlReal labImg2Norm(width, height);
	vector<ImageStats> imageStats(sInputFilenames.size() - 1);
	Float_t mse;
	for (int imageIdx = 1; imageIdx < sInputFilenames.size(); imageIdx++)
	{
		imageStats[imageIdx - 1].rgbImg.readFile(sInputFilenames[imageIdx]);
		
		calcRGB_MSE_PSNR(rgbImg1, imageStats[imageIdx - 1].rgbImg, mse, imageStats[imageIdx - 1].rgbPsnr);
		cout << "Image Index " << imageIdx
			<< "    mse: " << mse
			<< "    psnr: " << imageStats[imageIdx - 1].rgbPsnr;
		
		calc1ChnlMSE_PSNR(*rgbImg1[0], *imageStats[imageIdx - 1].rgbImg[0], mse, imageStats[imageIdx - 1].rPsnr);
		
		calc1ChnlMSE_PSNR(*rgbImg1[1], *imageStats[imageIdx - 1].rgbImg[1], mse, imageStats[imageIdx - 1].gPsnr);
		
		calc1ChnlMSE_PSNR(*rgbImg1[2], *imageStats[imageIdx - 1].rgbImg[2], mse, imageStats[imageIdx - 1].bPsnr);
		
		rgbImgToLabImg(1, imageStats[imageIdx - 1].rgbImg, imageStats[imageIdx - 1].labImg);
		labImg2Norm = imageStats[imageIdx - 1].labImg;
		minVal = (*labImg2Norm[0])[0];
		for (int c = 0; c < 3; c++)
			for (int i = 0; i < totalPixels; i++)
				if ((*labImg2Norm[c])[i] < minVal)
					minVal = (*labImg2Norm[c])[i];
		if (minVal < 0)
			for (int c = 0; c < 3; c++)
				for (int i = 0; i < totalPixels; i++)
					(*labImg2Norm[c])[i] -= minVal;
		labImg2Norm.normalize(1.0, true, false);
		
		//LAB PSNR isn't a justified stat in the literature.  I just made it up for my own curiosity.
		//calcRGB_MSE_PSNR(labImg1Norm, labImg2Norm, mse, imageStats[imageIdx - 1].labPsnr);
		//cout << "    labPsnr: " << imageStats[imageIdx - 1].labPsnr;
		
		imageStats[imageIdx - 1].labDeltaE = calcImgLabDeltaE(labImg1, imageStats[imageIdx - 1].labImg);
		cout << "    labDeltaE: " << imageStats[imageIdx - 1].labDeltaE;
		cout << endl;
	}
	
	//Mark the min and max stats
	Float_t minV, maxV;
	int minIdx, maxIdx;
	
	minV = maxV = imageStats[0].rPsnr;
	for (int i = 0; i < imageStats.size(); i++)
	{
		if (imageStats[i].rPsnr < minV)
			minV = imageStats[i].rPsnr;
		if (imageStats[i].rPsnr > maxV)
			maxV = imageStats[i].rPsnr;
	}
	for (int i = 0; i < imageStats.size(); i++)
	{
		if (imageStats[i].rPsnr == minV)
			imageStats[i].minRPsnr = true;
		if (imageStats[i].rPsnr == maxV)
			imageStats[i].maxRPsnr = true;
	}
	
	minV = maxV = imageStats[0].gPsnr;
	for (int i = 0; i < imageStats.size(); i++)
	{
		if (imageStats[i].gPsnr < minV)
			minV = imageStats[i].gPsnr;
		if (imageStats[i].gPsnr > maxV)
			maxV = imageStats[i].gPsnr;
	}
	for (int i = 0; i < imageStats.size(); i++)
	{
		if (imageStats[i].gPsnr == minV)
			imageStats[i].minGPsnr = true;
		if (imageStats[i].gPsnr == maxV)
			imageStats[i].maxGPsnr = true;
	}
	
	minV = maxV = imageStats[0].bPsnr;
	for (int i = 0; i < imageStats.size(); i++)
	{
		if (imageStats[i].bPsnr < minV)
			minV = imageStats[i].bPsnr;
		if (imageStats[i].bPsnr > maxV)
			maxV = imageStats[i].bPsnr;
	}
	for (int i = 0; i < imageStats.size(); i++)
	{
		if (imageStats[i].bPsnr == minV)
			imageStats[i].minBPsnr = true;
		if (imageStats[i].bPsnr == maxV)
			imageStats[i].maxBPsnr = true;
	}
	
	minV = maxV = imageStats[0].rgbPsnr;
	for (int i = 0; i < imageStats.size(); i++)
	{
		if (imageStats[i].rgbPsnr < minV)
			minV = imageStats[i].rgbPsnr;
		if (imageStats[i].rgbPsnr > maxV)
			maxV = imageStats[i].rgbPsnr;
	}
	for (int i = 0; i < imageStats.size(); i++)
	{
		if (imageStats[i].rgbPsnr == minV)
			imageStats[i].minRGBPsnr = true;
		if (imageStats[i].rgbPsnr == maxV)
			imageStats[i].maxRGBPsnr = true;
	}
	
	minV = maxV = imageStats[0].labPsnr;
	for (int i = 0; i < imageStats.size(); i++)
	{
		if (imageStats[i].labPsnr < minV)
			minV = imageStats[i].labPsnr;
		if (imageStats[i].labPsnr > maxV)
			maxV = imageStats[i].labPsnr;
	}
	for (int i = 0; i < imageStats.size(); i++)
	{
		if (imageStats[i].labPsnr == minV)
			imageStats[i].minLabPsnr = true;
		if (imageStats[i].labPsnr == maxV)
			imageStats[i].maxLabPsnr = true;
	}
	
	minV = maxV = imageStats[0].labDeltaE;
	for (int i = 0; i < imageStats.size(); i++)
	{
		if (imageStats[i].labDeltaE < minV)
			minV = imageStats[i].labDeltaE;
		if (imageStats[i].labDeltaE > maxV)
			maxV = imageStats[i].labDeltaE;
	}
	for (int i = 0; i < imageStats.size(); i++)
	{
		if (imageStats[i].labDeltaE == minV)
			imageStats[i].minLabDeltaE = true;
		if (imageStats[i].labDeltaE == maxV)
			imageStats[i].maxLabDeltaE = true;
	}
	
	//Write the file names
	cout << endl << "Filename order:" << endl;
	for (int imageIdx = 1; imageIdx < sInputFilenames.size(); imageIdx++)
		cout << (char)('A' + (imageIdx - 1)) << ": " << sInputFilenames[imageIdx] << endl;
	
	//Write the results
	cout << endl << "Results:" << endl;
	cout << "                      ";
	for (int imageIdx = 1; imageIdx < sInputFilenames.size(); imageIdx++)
		cout << setw(12) << (char)('A' + (imageIdx - 1));
	cout << endl;
	
	for (int i = 0; i < 6; i++)
	{
		//LAB PSNR isn't a justified stat in the literature.  I just made it up for my own curiosity.
		if (i == 4)
			continue;
		
		switch (i)
		{
			case 0: cout << "Red PSNR (dB):        "; break;
			case 1: cout << "Green PSNR (dB):      "; break;
			case 2: cout << "Blue PSNR (dB):       "; break;
			case 3: cout << "RGB PSNR (dB):        "; break;
			case 4: cout << "Lab PSNR (dB):        "; break;
			case 5: cout << "Lab Delta E:          "; break;
		}
		
		//Write the stats
		for (int j = 0; j < imageStats.size(); j++)
		{
			switch (i)
			{
				case 0:
					cout << setw(12) << imageStats[j].rPsnr;
					break;
				case 1:
					cout << setw(12) << imageStats[j].gPsnr;
					break;
				case 2:
					cout << setw(12) << imageStats[j].bPsnr;
					break;
				case 3:
					cout << setw(12) << imageStats[j].rgbPsnr;
					break;
				case 4:
					cout << setw(12) << imageStats[j].labPsnr;
					break;
				case 5:
					cout << setw(12) << imageStats[j].labDeltaE;
					break;
			}
		}
		cout << endl;
		
		//Mark the best and worst
		cout << "                      ";
		for (int j = 0; j < imageStats.size(); j++)
		{
			bool markWorst = false, markBest = false;
			switch (i)
			{
				case 0:
					if (imageStats[j].minRPsnr)
						markWorst = true;
					if (imageStats[j].maxRPsnr)
						markBest = true;
					break;
				case 1:
					if (imageStats[j].minGPsnr)
						markWorst = true;
					if (imageStats[j].maxGPsnr)
						markBest = true;
					break;
				case 2:
					if (imageStats[j].minBPsnr)
						markWorst = true;
					if (imageStats[j].maxBPsnr)
						markBest = true;
					break;
				case 3:
					if (imageStats[j].minRGBPsnr)
						markWorst = true;
					if (imageStats[j].maxRGBPsnr)
						markBest = true;
					break;
				case 4:
					if (imageStats[j].minLabPsnr)
						markWorst = true;
					if (imageStats[j].maxLabPsnr)
						markBest = true;
					break;
				case 5:
					if (imageStats[j].maxLabDeltaE)
						markWorst = true;
					if (imageStats[j].minLabDeltaE)
						markBest = true;
					break;
			}
			if (markWorst && markBest)
				markWorst = false;
			
			if (markWorst)
				cout << setw(12) << "-- WORST --";
			else if (markBest)
				cout << setw(12) << "=== BEST ===";
			else cout << setw(12) << "";
		}
		cout << endl;
	}
	
	//Write the results sorted
	cout << endl << "Name sorted:" << endl;
	cout << setw(15) << "RGB PSNR" << setw(15) << "Lab Delta E" << endl;
	for (int i = 0; i < imageStats.size(); i++)
		cout << setw(15) << imageStats[i].rgbPsnr << setw(15) << imageStats[i].labDeltaE << "    " << imageStats[i].rgbImg.filename() << endl;
	
	cout << endl << "Name sorted, tab delimited (for easy copy/paste to spread sheet):" << endl;
	cout << "RGB PSNR" << '\t' << "Lab Delta E" << endl;
	for (int i = 0; i < imageStats.size(); i++)
		cout << imageStats[i].rgbPsnr << '\t' << imageStats[i].labDeltaE << endl;
	
	cout << endl << "RGB Psnr sorted:" << endl;
	cout << setw(15) << "RGB PSNR" << setw(15) << "Lab Delta E" << endl;
	sort(imageStats.begin(), imageStats.end(), ImageStats::RGBPsnrSorter());
	for (int i = 0; i < imageStats.size(); i++)
		cout << setw(15) << imageStats[i].rgbPsnr << setw(15) << imageStats[i].labDeltaE << "    " << imageStats[i].rgbImg.filename() << endl;
	
	cout << endl << "RGB Psnr sorted, tab delimited (for easy copy/paste to spread sheet):" << endl;
	cout << "RGB PSNR" << '\t' << "Lab Delta E" << endl;
	for (int i = 0; i < imageStats.size(); i++)
		cout << imageStats[i].rgbPsnr << '\t' << imageStats[i].labDeltaE << endl;
	
	cout << endl << "Lab Delta E sorted:" << endl;
	cout << setw(15) << "RGB PSNR" << setw(15) << "Lab Delta E" << endl;
	sort(imageStats.begin(), imageStats.end(), ImageStats::LabDeltaESorter());
	for (int i = 0; i < imageStats.size(); i++)
		cout << setw(15) << imageStats[i].rgbPsnr << setw(15) << imageStats[i].labDeltaE << "    " << imageStats[i].rgbImg.filename() << endl;
	
	cout << endl << "Lab Delta E sorted, tab delimited (for easy copy/paste to spread sheet):" << endl;
	cout << "RGB PSNR" << '\t' << "Lab Delta E" << endl;
	for (int i = 0; i < imageStats.size(); i++)
		cout << imageStats[i].rgbPsnr << '\t' << imageStats[i].labDeltaE << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1c8, %rsp            # imm = 0x1C8
leaq 0x88(%rsp), %rdi
callq 0xdf68
movq 0x3026d(%rip), %rax     # 0x37538
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0xa92c
leaq 0x88(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0xe5f4
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x7311
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x3310
movl 0xb0(%rsp), %ebx
movl 0xb4(%rsp), %ebp
leaq 0x128(%rsp), %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0xe1b0
movsd 0x22d20(%rip), %xmm0    # 0x2a058
leaq 0x88(%rsp), %rdi
leaq 0x128(%rsp), %rsi
callq 0x1350d
leaq 0x178(%rsp), %rdi
leaq 0x128(%rsp), %rsi
callq 0xe04c
movl %ebp, %r14d
imull %ebx, %r14d
movq 0x1b0(%rsp), %rax
movq (%rax), %rcx
movq 0x38(%rcx), %rcx
movsd (%rcx), %xmm0
movl %r14d, %r15d
xorl %ecx, %ecx
testl %r14d, %r14d
jle 0x73a9
movq (%rax,%rcx,8), %rdx
movq 0x38(%rdx), %rdx
xorl %esi, %esi
movapd %xmm0, %xmm1
movsd (%rdx,%rsi,8), %xmm0
minsd %xmm1, %xmm0
incq %rsi
movapd %xmm0, %xmm1
cmpq %rsi, %r15
jne 0x7394
incq %rcx
cmpq $0x3, %rcx
jne 0x7381
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jbe 0x73ec
xorl %ecx, %ecx
testl %r14d, %r14d
jle 0x73e3
movq (%rax,%rcx,8), %rdx
movq 0x38(%rdx), %rdx
xorl %esi, %esi
movsd (%rdx,%rsi,8), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, (%rdx,%rsi,8)
incq %rsi
cmpq %rsi, %r15
jne 0x73cd
incq %rcx
cmpq $0x3, %rcx
jne 0x73be
leaq 0x178(%rsp), %rdi
movsd 0x22c5c(%rip), %xmm0    # 0x2a058
movl $0x1, %esi
xorl %edx, %edx
callq 0xe51e
leaq 0xd8(%rsp), %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0xe1b0
movq 0x30120(%rip), %rsi     # 0x37540
subq 0x30111(%rip), %rsi     # 0x37538
sarq $0x5, %rsi
decq %rsi
leaq 0x8(%rsp), %rdi
leaq 0x20(%rsp), %rdx
callq 0xa5c0
movq 0x300fc(%rip), %rcx     # 0x37540
movq 0x300ed(%rip), %rax     # 0x37538
subq %rax, %rcx
cmpq $0x21, %rcx
jb 0x7755
movl $0x1, %ebx
movq 0x2fb6c(%rip), %r13     # 0x36fd0
movq 0x8(%rsp), %rbp
movq %rbx, %rcx
shlq $0x5, %rcx
leaq 0x58(%rsp), %rdx
movq %rdx, 0x48(%rsp)
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0xa92c
leaq -0x1(%rbx), %rax
imulq $0xe0, %rax, %r12
addq %r12, %rbp
movq %rbp, %rdi
leaq 0x48(%rsp), %rsi
callq 0xe5f4
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x74c7
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3310
movq 0x8(%rsp), %rsi
leaq (%rsi,%r12), %rcx
addq $0xb8, %rcx
addq %r12, %rsi
leaq 0x88(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq 0x22e3d
movl $0xc, %edx
movq %r13, %rdi
leaq 0x23394(%rip), %rsi     # 0x2a88f
callq 0x3360
movq %r13, %rdi
movl %ebx, %esi
callq 0x34e0
movq %rax, %rbp
movl $0x9, %edx
movq %rax, %rdi
leaq 0x23380(%rip), %rsi     # 0x2a89c
callq 0x3360
movsd 0x40(%rsp), %xmm0
movq %rbp, %rdi
callq 0x3480
movq %rax, %rbp
movl $0xa, %edx
movq %rax, %rdi
leaq 0x23365(%rip), %rsi     # 0x2a8a6
callq 0x3360
movq 0x8(%rsp), %rax
movsd 0xb8(%rax,%r12), %xmm0
movq %rbp, %rdi
callq 0x3480
movq 0xc0(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rsp), %rax
leaq (%rax,%r12), %rcx
addq $0xa0, %rcx
movq -0x68(%rcx), %rax
movq (%rax), %rsi
leaq 0x40(%rsp), %rdx
callq 0x22d74
movq 0xc0(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x8(%rsp), %rax
leaq (%rax,%r12), %rcx
addq $0xa8, %rcx
movq -0x70(%rcx), %rax
movq 0x8(%rax), %rsi
leaq 0x40(%rsp), %rdx
callq 0x22d74
movq 0xc0(%rsp), %rax
movq 0x10(%rax), %rdi
movq 0x8(%rsp), %rax
leaq (%rax,%r12), %rcx
addq $0xb0, %rcx
movq -0x78(%rcx), %rax
movq 0x10(%rax), %rsi
leaq 0x40(%rsp), %rdx
callq 0x22d74
movq 0x8(%rsp), %rdi
leaq (%rdi,%r12), %rsi
addq $0x50, %rsi
addq %r12, %rdi
movsd 0x22a5b(%rip), %xmm0    # 0x2a058
callq 0x1350d
movq 0x8(%rsp), %rax
leaq (%rax,%r12), %rsi
addq $0x50, %rsi
leaq 0xd8(%rsp), %rdi
callq 0xe140
movq 0x110(%rsp), %rax
movq (%rax), %rcx
movq 0x38(%rcx), %rcx
movsd (%rcx), %xmm0
xorl %ecx, %ecx
testl %r14d, %r14d
jle 0x7659
movq (%rax,%rcx,8), %rdx
movq 0x38(%rdx), %rdx
xorl %esi, %esi
movapd %xmm0, %xmm1
movsd (%rdx,%rsi,8), %xmm0
minsd %xmm1, %xmm0
incq %rsi
movapd %xmm0, %xmm1
cmpq %rsi, %r15
jne 0x7644
incq %rcx
cmpq $0x3, %rcx
jne 0x7631
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jbe 0x769c
xorl %ecx, %ecx
testl %r14d, %r14d
jle 0x7693
movq (%rax,%rcx,8), %rdx
movq 0x38(%rdx), %rdx
xorl %esi, %esi
movsd (%rdx,%rsi,8), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, (%rdx,%rsi,8)
incq %rsi
cmpq %rsi, %r15
jne 0x767d
incq %rcx
cmpq $0x3, %rcx
jne 0x766e
leaq 0xd8(%rsp), %rdi
movsd 0x229ac(%rip), %xmm0    # 0x2a058
movl $0x1, %esi
xorl %edx, %edx
callq 0xe51e
movq 0x8(%rsp), %rax
leaq (%rax,%r12), %rsi
addq $0x50, %rsi
leaq 0x128(%rsp), %rdi
callq 0x22764
movq 0x8(%rsp), %rax
movsd %xmm0, 0xc8(%rax,%r12)
movl $0xf, %edx
movq %r13, %rdi
leaq 0x231c1(%rip), %rsi     # 0x2a8b1
callq 0x3360
movq 0x8(%rsp), %rax
movsd 0xc8(%rax,%r12), %xmm0
movq %r13, %rdi
callq 0x3480
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %r13, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
incq %rbx
movq 0x2fe02(%rip), %rcx     # 0x37540
movq 0x2fdf3(%rip), %rax     # 0x37538
subq %rax, %rcx
sarq $0x5, %rcx
cmpq %rbx, %rcx
ja 0x7464
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rdx
movq %rdx, %rcx
subq %rax, %rcx
je 0x7a6b
sarq $0x5, %rcx
movabsq $0x6db6db6db6db6db7, %rsi # imm = 0x6DB6DB6DB6DB6DB7
imulq %rsi, %rcx
leaq 0xa0(%rax), %rdi
movsd 0xa0(%rax), %xmm0
cmpq $0x1, %rcx
movq %rcx, %rsi
adcq $0x0, %rsi
movq %rsi, %r8
movapd %xmm0, %xmm1
movapd %xmm1, %xmm2
movapd %xmm0, %xmm3
movsd (%rdi), %xmm1
movapd %xmm1, %xmm0
minsd %xmm3, %xmm0
maxsd %xmm2, %xmm1
addq $0xe0, %rdi
decq %r8
jne 0x779e
cmpq %rax, %rdx
je 0x7a6b
leaq 0xd6(%rax), %rdi
movq %rsi, %r8
movsd -0x36(%rdi), %xmm2
ucomisd %xmm0, %xmm2
jne 0x77e6
jp 0x77e6
movb $0x1, -0x6(%rdi)
ucomisd %xmm1, %xmm2
jne 0x77f1
jp 0x77f1
movb $0x1, (%rdi)
addq $0xe0, %rdi
decq %r8
jne 0x77d5
cmpq %rax, %rdx
je 0x7a6b
leaq 0xa8(%rax), %rdi
movsd 0xa8(%rax), %xmm0
movq %rsi, %r8
movapd %xmm0, %xmm1
movapd %xmm1, %xmm2
movapd %xmm0, %xmm3
movsd (%rdi), %xmm1
movapd %xmm1, %xmm0
minsd %xmm3, %xmm0
maxsd %xmm2, %xmm1
addq $0xe0, %rdi
decq %r8
jne 0x781c
cmpq %rax, %rdx
je 0x7a6b
leaq 0xd7(%rax), %rdi
movq %rsi, %r8
movsd -0x2f(%rdi), %xmm2
ucomisd %xmm0, %xmm2
jne 0x7864
jp 0x7864
movb $0x1, -0x6(%rdi)
ucomisd %xmm1, %xmm2
jne 0x786f
jp 0x786f
movb $0x1, (%rdi)
addq $0xe0, %rdi
decq %r8
jne 0x7853
cmpq %rax, %rdx
je 0x7a6b
leaq 0xb0(%rax), %rdi
movsd 0xb0(%rax), %xmm0
movq %rsi, %r8
movapd %xmm0, %xmm1
movapd %xmm1, %xmm2
movapd %xmm0, %xmm3
movsd (%rdi), %xmm1
movapd %xmm1, %xmm0
minsd %xmm3, %xmm0
maxsd %xmm2, %xmm1
addq $0xe0, %rdi
decq %r8
jne 0x789a
cmpq %rax, %rdx
je 0x7a6b
leaq 0xd8(%rax), %rdi
movq %rsi, %r8
movsd -0x28(%rdi), %xmm2
ucomisd %xmm0, %xmm2
jne 0x78e2
jp 0x78e2
movb $0x1, -0x6(%rdi)
ucomisd %xmm1, %xmm2
jne 0x78ed
jp 0x78ed
movb $0x1, (%rdi)
addq $0xe0, %rdi
decq %r8
jne 0x78d1
cmpq %rax, %rdx
je 0x7a6b
leaq 0xb8(%rax), %rdi
movsd 0xb8(%rax), %xmm0
movq %rsi, %r8
movapd %xmm0, %xmm1
movapd %xmm1, %xmm2
movapd %xmm0, %xmm3
movsd (%rdi), %xmm1
movapd %xmm1, %xmm0
minsd %xmm3, %xmm0
maxsd %xmm2, %xmm1
addq $0xe0, %rdi
decq %r8
jne 0x7918
cmpq %rax, %rdx
je 0x7a6b
leaq 0xd9(%rax), %rdi
movq %rsi, %r8
movsd -0x21(%rdi), %xmm2
ucomisd %xmm0, %xmm2
jne 0x7960
jp 0x7960
movb $0x1, -0x6(%rdi)
ucomisd %xmm1, %xmm2
jne 0x796b
jp 0x796b
movb $0x1, (%rdi)
addq $0xe0, %rdi
decq %r8
jne 0x794f
cmpq %rax, %rdx
je 0x7a6b
leaq 0xc0(%rax), %rdi
movsd 0xc0(%rax), %xmm0
movq %rsi, %r8
movapd %xmm0, %xmm1
movapd %xmm1, %xmm2
movapd %xmm0, %xmm3
movsd (%rdi), %xmm1
movapd %xmm1, %xmm0
minsd %xmm3, %xmm0
maxsd %xmm2, %xmm1
addq $0xe0, %rdi
decq %r8
jne 0x7996
cmpq %rax, %rdx
je 0x7a6b
leaq 0xda(%rax), %rdi
movq %rsi, %r8
movsd -0x1a(%rdi), %xmm2
ucomisd %xmm0, %xmm2
jne 0x79de
jp 0x79de
movb $0x1, -0x6(%rdi)
ucomisd %xmm1, %xmm2
jne 0x79e9
jp 0x79e9
movb $0x1, (%rdi)
addq $0xe0, %rdi
decq %r8
jne 0x79cd
cmpq %rax, %rdx
je 0x7a6b
leaq 0xc8(%rax), %rdi
movsd 0xc8(%rax), %xmm0
movapd %xmm0, %xmm1
movapd %xmm1, %xmm2
movapd %xmm0, %xmm3
movsd (%rdi), %xmm1
movapd %xmm1, %xmm0
minsd %xmm3, %xmm0
maxsd %xmm2, %xmm1
addq $0xe0, %rdi
decq %rsi
jne 0x7a0d
cmpq %rax, %rdx
je 0x7a6b
cmpq $0x1, %rcx
adcq $0x0, %rcx
addq $0xdb, %rax
movsd -0x13(%rax), %xmm2
ucomisd %xmm0, %xmm2
jne 0x7a55
jp 0x7a55
movb $0x1, -0x6(%rax)
ucomisd %xmm1, %xmm2
jne 0x7a60
jp 0x7a60
movb $0x1, (%rax)
addq $0xe0, %rax
decq %rcx
jne 0x7a44
movq 0x2f55e(%rip), %rdi     # 0x36fd0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq 0x2f543(%rip), %rdi     # 0x36fd0
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq %rax, %r14
leaq 0x22e1d(%rip), %rsi     # 0x2a8c1
movl $0xf, %edx
movq %rax, %rdi
callq 0x3360
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq 0x2fa61(%rip), %rax     # 0x37540
subq 0x2fa52(%rip), %rax     # 0x37538
cmpq $0x21, %rax
jb 0x7b9b
movl $0x1, %ebp
movl $0x28, %ebx
movq 0x2f4cf(%rip), %r14     # 0x36fd0
leaq 0x20(%rsp), %r15
leaq 0x235a0(%rip), %r12     # 0x2b0ad
leal 0x40(%rbp), %eax
movb %al, 0x20(%rsp)
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x3360
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x3360
movq 0x2f9fa(%rip), %rax     # 0x37538
movq -0x8(%rax,%rbx), %rsi
movq (%rax,%rbx), %rdx
movq %r13, %rdi
callq 0x3360
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %r13, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq 0x2f9c0(%rip), %rax     # 0x37540
subq 0x2f9b1(%rip), %rax     # 0x37538
incq %rbp
sarq $0x5, %rax
addq $0x20, %rbx
cmpq %rbp, %rax
ja 0x7b0d
movq 0x2f42e(%rip), %rdi     # 0x36fd0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq 0x2f413(%rip), %rdi     # 0x36fd0
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq %rax, %rbx
leaq 0x22cfd(%rip), %rsi     # 0x2a8d1
movl $0x8, %edx
movq %rax, %rdi
callq 0x3360
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq 0x2f3c1(%rip), %rbx     # 0x36fd0
leaq 0x22cc4(%rip), %rsi     # 0x2a8da
movl $0x16, %edx
movq %rbx, %rdi
callq 0x3360
movq 0x2f916(%rip), %rax     # 0x37540
subq 0x2f907(%rip), %rax     # 0x37538
cmpq $0x21, %rax
jb 0x7c84
movl $0x1, %r15d
leaq 0x20(%rsp), %r14
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq $0xc, 0x10(%rbx,%rax)
leal 0x40(%r15), %eax
movb %al, 0x20(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3360
incq %r15
movq 0x2f8cc(%rip), %rax     # 0x37540
subq 0x2f8bd(%rip), %rax     # 0x37538
sarq $0x5, %rax
cmpq %r15, %rax
ja 0x7c42
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq 0x2f32e(%rip), %rdi     # 0x36fd0
callq 0x3040
movq %rax, %rdi
callq 0x31f0
xorl %r15d, %r15d
leaq 0x22c4f(%rip), %rsi     # 0x2a908
movl %r15d, %eax
leaq 0x22409(%rip), %rcx     # 0x2a0cc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rax, %rbx
jmp 0x8cb4
jmp 0x7cd6
movq %rax, %rbx
jmp 0x8cc1
jmp 0x7ce0
movq %rax, %rbx
jmp 0x8cce
jmp 0x7d0d
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x8cdb
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x3310
jmp 0x8cdb
movq %rax, %rbx
jmp 0x8cdb
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x8caa
movq 0x58(%rsp), %rsi
jmp 0x7d41
jmp 0x8ca7
jmp 0x8ca7
jmp 0x8ca7
incq %rsi
callq 0x3310
jmp 0x8caa
jmp 0x8ca7
movq 0x2f276(%rip), %rdi     # 0x36fd0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq 0x2f25b(%rip), %rbx     # 0x36fd0
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq %rax, %r14
leaq 0x22bee(%rip), %rsi     # 0x2a97d
movl $0xc, %edx
movq %rax, %rdi
callq 0x3360
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq $0xf, 0x10(%rbx,%rax)
leaq 0x22bb0(%rip), %rsi     # 0x2a98a
movl $0x8, %edx
movq %rbx, %rdi
callq 0x3360
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq $0xf, 0x10(%rbx,%rax)
leaq 0x22b95(%rip), %rsi     # 0x2a993
movl $0xb, %edx
movq %rbx, %rdi
callq 0x3360
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq 0x2f1a7(%rip), %rbx     # 0x36fd0
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq 0x8(%rsp), %rax
cmpq %rax, 0x10(%rsp)
je 0x7f5a
leaq 0x30(%rsp), %r13
xorl %ebp, %ebp
leaq 0x20(%rsp), %r15
xorl %r14d, %r14d
movq (%rbx), %rcx
movq -0x18(%rcx), %rcx
movq $0xf, 0x10(%rbx,%rcx)
movsd 0xb8(%rax,%rbp), %xmm0
movq %rbx, %rdi
callq 0x3480
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0xf, 0x10(%rax,%rcx)
movq 0x8(%rsp), %rcx
movsd 0xc8(%rcx,%rbp), %xmm0
movq %rax, %rdi
callq 0x3480
movq %rax, %r12
movl $0x4, %edx
movq %rax, %rdi
leaq 0x22a3b(%rip), %rsi     # 0x2a8ec
callq 0x3360
movq 0x8(%rsp), %rax
movq %r13, 0x20(%rsp)
movq 0x8(%rax,%rbp), %rsi
movq 0x10(%rax,%rbp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xa92c
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %r12, %rdi
callq 0x3360
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x7f28
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3310
incq %r14
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
movabsq $0x6db6db6db6db6db7, %rdx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rdx, %rcx
addq $0xe0, %rbp
cmpq %r14, %rcx
ja 0x7e58
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq 0x2f058(%rip), %rdi     # 0x36fd0
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq %rax, %rbx
leaq 0x22a10(%rip), %rsi     # 0x2a99f
movl $0x41, %edx
movq %rax, %rdi
callq 0x3360
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq 0x2f006(%rip), %rdi     # 0x36fd0
leaq 0x229b9(%rip), %rsi     # 0x2a98a
movl $0x8, %edx
callq 0x3360
leaq 0x20(%rsp), %rsi
movb $0x9, (%rsi)
movq 0x2efe6(%rip), %rbx     # 0x36fd0
movl $0x1, %edx
movq %rbx, %rdi
callq 0x3360
movq %rax, %r14
leaq 0x22992(%rip), %rsi     # 0x2a993
movl $0xb, %edx
movq %rax, %rdi
callq 0x3360
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq 0x8(%rsp), %rax
cmpq %rax, 0x10(%rsp)
je 0x80f0
xorl %r13d, %r13d
movq 0x2ef81(%rip), %r14     # 0x36fd0
leaq 0x20(%rsp), %r15
xorl %ebp, %ebp
movsd 0xb8(%rax,%r13), %xmm0
movq %r14, %rdi
callq 0x3480
movb $0x9, 0x20(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x3360
movq 0x8(%rsp), %rcx
movsd 0xc8(%rcx,%r13), %xmm0
movq %rax, %rdi
callq 0x3480
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
incq %rbp
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
movabsq $0x6db6db6db6db6db7, %rdx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rdx, %rcx
addq $0xe0, %r13
cmpq %rbp, %rcx
ja 0x8056
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq 0x2eec2(%rip), %rbx     # 0x36fd0
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq %rax, %r14
leaq 0x228b9(%rip), %rsi     # 0x2a9e1
movl $0x10, %edx
movq %rax, %rdi
callq 0x3360
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq $0xf, 0x10(%rbx,%rax)
leaq 0x22817(%rip), %rsi     # 0x2a98a
movl $0x8, %edx
movq %rbx, %rdi
callq 0x3360
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq $0xf, 0x10(%rbx,%rax)
leaq 0x227fc(%rip), %rsi     # 0x2a993
movl $0xb, %edx
movq %rbx, %rdi
callq 0x3360
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq 0x2ee0e(%rip), %rbx     # 0x36fd0
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq 0x8(%rsp), %r14
movq 0x10(%rsp), %r15
cmpq %r15, %r14
je 0x8341
movq %r15, %rax
subq %r14, %rax
sarq $0x5, %rax
movabsq $0x6db6db6db6db6db7, %rcx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rcx, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0xb116
movq %r14, %rdi
movq %r15, %rsi
callq 0xb282
movq 0x8(%rsp), %rax
cmpq %rax, 0x10(%rsp)
je 0x8341
leaq 0x30(%rsp), %r13
xorl %ebp, %ebp
leaq 0x20(%rsp), %r15
xorl %r14d, %r14d
movq (%rbx), %rcx
movq -0x18(%rcx), %rcx
movq $0xf, 0x10(%rbx,%rcx)
movsd 0xb8(%rax,%rbp), %xmm0
movq %rbx, %rdi
callq 0x3480
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0xf, 0x10(%rax,%rcx)
movq 0x8(%rsp), %rcx
movsd 0xc8(%rcx,%rbp), %xmm0
movq %rax, %rdi
callq 0x3480
movq %rax, %r12
movl $0x4, %edx
movq %rax, %rdi
leaq 0x22654(%rip), %rsi     # 0x2a8ec
callq 0x3360
movq 0x8(%rsp), %rax
movq %r13, 0x20(%rsp)
movq 0x8(%rax,%rbp), %rsi
movq 0x10(%rax,%rbp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xa92c
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %r12, %rdi
callq 0x3360
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x830f
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3310
incq %r14
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
movabsq $0x6db6db6db6db6db7, %rdx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rdx, %rcx
addq $0xe0, %rbp
cmpq %r14, %rcx
ja 0x823f
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq 0x2ec71(%rip), %rdi     # 0x36fd0
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq %rax, %rbx
leaq 0x2267c(%rip), %rsi     # 0x2a9f2
movl $0x45, %edx
movq %rax, %rdi
callq 0x3360
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq 0x2ec1f(%rip), %rdi     # 0x36fd0
leaq 0x225d2(%rip), %rsi     # 0x2a98a
movl $0x8, %edx
callq 0x3360
leaq 0x20(%rsp), %rsi
movb $0x9, (%rsi)
movq 0x2ebff(%rip), %rbx     # 0x36fd0
movl $0x1, %edx
movq %rbx, %rdi
callq 0x3360
movq %rax, %r14
leaq 0x225ab(%rip), %rsi     # 0x2a993
movl $0xb, %edx
movq %rax, %rdi
callq 0x3360
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq 0x8(%rsp), %rax
cmpq %rax, 0x10(%rsp)
je 0x84d7
xorl %r13d, %r13d
movq 0x2eb9a(%rip), %r14     # 0x36fd0
leaq 0x20(%rsp), %r15
xorl %ebp, %ebp
movsd 0xb8(%rax,%r13), %xmm0
movq %r14, %rdi
callq 0x3480
movb $0x9, 0x20(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x3360
movq 0x8(%rsp), %rcx
movsd 0xc8(%rcx,%r13), %xmm0
movq %rax, %rdi
callq 0x3480
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
incq %rbp
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
movabsq $0x6db6db6db6db6db7, %rdx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rdx, %rcx
addq $0xe0, %r13
cmpq %rbp, %rcx
ja 0x843d
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq 0x2eadb(%rip), %rbx     # 0x36fd0
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq %rax, %r14
leaq 0x22529(%rip), %rsi     # 0x2aa38
movl $0x13, %edx
movq %rax, %rdi
callq 0x3360
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq $0xf, 0x10(%rbx,%rax)
leaq 0x22430(%rip), %rsi     # 0x2a98a
movl $0x8, %edx
movq %rbx, %rdi
callq 0x3360
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq $0xf, 0x10(%rbx,%rax)
leaq 0x22415(%rip), %rsi     # 0x2a993
movl $0xb, %edx
movq %rbx, %rdi
callq 0x3360
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq 0x2ea27(%rip), %rbx     # 0x36fd0
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq 0x8(%rsp), %r14
movq 0x10(%rsp), %r15
cmpq %r15, %r14
je 0x8728
movq %r15, %rax
subq %r14, %rax
sarq $0x5, %rax
movabsq $0x6db6db6db6db6db7, %rcx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rcx, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0xbee5
movq %r14, %rdi
movq %r15, %rsi
callq 0xc052
movq 0x8(%rsp), %rax
cmpq %rax, 0x10(%rsp)
je 0x8728
leaq 0x30(%rsp), %r13
xorl %ebp, %ebp
leaq 0x20(%rsp), %r15
xorl %r14d, %r14d
movq (%rbx), %rcx
movq -0x18(%rcx), %rcx
movq $0xf, 0x10(%rbx,%rcx)
movsd 0xb8(%rax,%rbp), %xmm0
movq %rbx, %rdi
callq 0x3480
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0xf, 0x10(%rax,%rcx)
movq 0x8(%rsp), %rcx
movsd 0xc8(%rcx,%rbp), %xmm0
movq %rax, %rdi
callq 0x3480
movq %rax, %r12
movl $0x4, %edx
movq %rax, %rdi
leaq 0x2226d(%rip), %rsi     # 0x2a8ec
callq 0x3360
movq 0x8(%rsp), %rax
movq %r13, 0x20(%rsp)
movq 0x8(%rax,%rbp), %rsi
movq 0x10(%rax,%rbp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xa92c
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %r12, %rdi
callq 0x3360
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x86f6
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3310
incq %r14
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
movabsq $0x6db6db6db6db6db7, %rdx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rdx, %rcx
addq $0xe0, %rbp
cmpq %r14, %rcx
ja 0x8626
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq 0x2e88a(%rip), %rdi     # 0x36fd0
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq %rax, %rbx
leaq 0x222ef(%rip), %rsi     # 0x2aa4c
movl $0x48, %edx
movq %rax, %rdi
callq 0x3360
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq 0x2e838(%rip), %rdi     # 0x36fd0
leaq 0x221eb(%rip), %rsi     # 0x2a98a
movl $0x8, %edx
callq 0x3360
leaq 0x20(%rsp), %rsi
movb $0x9, (%rsi)
movq 0x2e818(%rip), %rdi     # 0x36fd0
movl $0x1, %edx
callq 0x3360
movq %rax, %rbx
leaq 0x221c7(%rip), %rsi     # 0x2a993
movl $0xb, %edx
movq %rax, %rdi
callq 0x3360
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq 0x8(%rsp), %rax
cmpq %rax, 0x10(%rsp)
je 0x88bc
xorl %r12d, %r12d
movq 0x2e7b6(%rip), %rbx     # 0x36fd0
leaq 0x20(%rsp), %r14
xorl %r13d, %r13d
movsd 0xb8(%rax,%r12), %xmm0
movq %rbx, %rdi
callq 0x3480
movb $0x9, 0x20(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x3360
movq 0x8(%rsp), %rcx
movsd 0xc8(%rcx,%r12), %xmm0
movq %rax, %rdi
callq 0x3480
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
incq %r13
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
movabsq $0x6db6db6db6db6db7, %rdx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rdx, %rcx
addq $0xe0, %r12
cmpq %r13, %rcx
ja 0x8822
leaq 0x8(%rsp), %rdi
callq 0xa654
leaq 0xd8(%rsp), %rdi
callq 0xe2a6
leaq 0x178(%rsp), %rdi
callq 0xe2a6
leaq 0x128(%rsp), %rdi
callq 0xe2a6
leaq 0x88(%rsp), %rdi
callq 0xe2a6
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8ca7
jmp 0x8ca7
jmp 0x8ca7
jmp 0x8ca7
jmp 0x8ca7
jmp 0x892e
jmp 0x892e
jmp 0x8ca7
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x8caa
movq 0x30(%rsp), %rsi
jmp 0x7d41
jmp 0x8ca7
jmp 0x8ca7
jmp 0x8ca7
leaq 0x21f92(%rip), %rsi     # 0x2a8f1
jmp 0x897f
jmp 0x8ca7
leaq 0x21fb2(%rip), %rsi     # 0x2a91f
jmp 0x897f
leaq 0x21fc0(%rip), %rsi     # 0x2a936
jmp 0x897f
leaq 0x21fce(%rip), %rsi     # 0x2a94d
movq 0x2e64a(%rip), %r14     # 0x36fd0
movl $0x16, %edx
movq %r14, %rdi
callq 0x3360
movq 0x8(%rsp), %rax
movl %r15d, %ebx
cmpq %rax, 0x10(%rsp)
je 0x8acb
movl $0xa0, %r12d
xorl %r13d, %r13d
leaq 0x2172e(%rip), %rbp     # 0x2a0e4
cmpl $0x5, %r15d
ja 0x8a99
movslq (%rbp,%rbx,4), %rcx
addq %rbp, %rcx
jmpq *%rcx
movq (%r14), %rcx
movq -0x18(%rcx), %rcx
movq $0xc, 0x10(%r14,%rcx)
addq %r12, %rax
jmp 0x8a8d
movq (%r14), %rcx
movq -0x18(%rcx), %rcx
movq $0xc, 0x10(%r14,%rcx)
imulq $0xe0, %r13, %rcx
addq %rcx, %rax
addq $0xc0, %rax
jmp 0x8a8d
movq (%r14), %rcx
movq -0x18(%rcx), %rcx
movq $0xc, 0x10(%r14,%rcx)
imulq $0xe0, %r13, %rcx
addq %rcx, %rax
addq $0xb0, %rax
jmp 0x8a8d
movq (%r14), %rcx
movq -0x18(%rcx), %rcx
movq $0xc, 0x10(%r14,%rcx)
imulq $0xe0, %r13, %rcx
addq %rcx, %rax
addq $0xb8, %rax
jmp 0x8a8d
movq (%r14), %rcx
movq -0x18(%rcx), %rcx
movq $0xc, 0x10(%r14,%rcx)
imulq $0xe0, %r13, %rcx
addq %rcx, %rax
addq $0xa8, %rax
jmp 0x8a8d
movq (%r14), %rcx
movq -0x18(%rcx), %rcx
movq $0xc, 0x10(%r14,%rcx)
imulq $0xe0, %r13, %rcx
addq %rcx, %rax
addq $0xc8, %rax
movsd (%rax), %xmm0
movq %r14, %rdi
callq 0x3480
incq %r13
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
movabsq $0x6db6db6db6db6db7, %rdx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rdx, %rcx
addq $0xe0, %r12
cmpq %r13, %rcx
ja 0x89b6
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq 0x2e4e7(%rip), %rdi     # 0x36fd0
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq 0x2e4d3(%rip), %r14     # 0x36fd0
leaq 0x21dd6(%rip), %rsi     # 0x2a8da
movl $0x16, %edx
movq %r14, %rdi
callq 0x3360
movq 0x8(%rsp), %rcx
cmpq %rcx, 0x10(%rsp)
je 0x8c53
movl $0xdb, %r12d
xorl %r13d, %r13d
leaq 0x215cb(%rip), %rbp     # 0x2a0fc
cmpl $0x5, %r15d
ja 0x8bbd
movslq (%rbp,%rbx,4), %rax
addq %rbp, %rax
jmpq *%rax
movb -0xb(%rcx,%r12), %al
cmpb $0x0, -0x5(%rcx,%r12)
jne 0x8b61
jmp 0x8b82
movb -0x7(%rcx,%r12), %al
cmpb $0x0, -0x1(%rcx,%r12)
je 0x8b82
movb $0x1, %cl
movl $0xc, %edx
leaq 0x21e01(%rip), %rsi     # 0x2a970
testb %al, %al
je 0x8b88
jmp 0x8bc6
movb -0x9(%rcx,%r12), %al
cmpb $0x0, -0x3(%rcx,%r12)
jne 0x8b61
testb %al, %al
je 0x8bad
xorl %ecx, %ecx
testb %al, %al
leaq 0x21ddf(%rip), %rsi     # 0x2a970
leaq 0x21dcc(%rip), %rdx     # 0x2a964
cmovneq %rdx, %rsi
movzbl %al, %edi
movl $0xc, %edx
subq %rdi, %rdx
testb %cl, %cl
je 0x8bb9
jmp 0x8bc6
movl $0xb, %edx
leaq 0x21dab(%rip), %rsi     # 0x2a964
testb %al, %al
jne 0x8bc6
leaq 0x21c94(%rip), %rsi     # 0x2a858
xorl %edx, %edx
movq (%r14), %rax
movq -0x18(%rax), %rax
movq $0xc, 0x10(%r14,%rax)
movq %r14, %rdi
callq 0x3360
incq %r13
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %rax
subq %rcx, %rax
sarq $0x5, %rax
movabsq $0x6db6db6db6db6db7, %rdx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rdx, %rax
addq $0xe0, %r12
cmpq %r13, %rax
ja 0x8b31
jmp 0x8c53
movb -0x8(%rcx,%r12), %al
cmpb $0x0, -0x2(%rcx,%r12)
jne 0x8b61
jmp 0x8b82
movb -0xa(%rcx,%r12), %al
cmpb $0x0, -0x4(%rcx,%r12)
jne 0x8b61
jmp 0x8b82
movb (%rcx,%r12), %al
cmpb $0x1, -0x6(%rcx,%r12)
je 0x8b61
jmp 0x8b82
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq 0x2e35f(%rip), %rdi     # 0x36fd0
callq 0x3040
movq %rax, %rdi
callq 0x31f0
incl %r15d
cmpl $0x6, %r15d
je 0x7d53
movl %r15d, %eax
leaq 0x21437(%rip), %rcx     # 0x2a0cc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
leaq 0x21c65(%rip), %rsi     # 0x2a908
jmpq *%rax
jmp 0x8ca7
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0xa654
leaq 0xd8(%rsp), %rdi
callq 0xe2a6
leaq 0x178(%rsp), %rdi
callq 0xe2a6
leaq 0x128(%rsp), %rdi
callq 0xe2a6
leaq 0x88(%rsp), %rdi
callq 0xe2a6
movq %rbx, %rdi
callq 0x3500