// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/main.cpp
// Function: processArgs(int, char**)
void processArgs(int argc, char **argv)
{
	if (argc < 2)
		die("Enter -h flag to display help.");
	
	for (int argIdx = 1; argIdx < argc; argIdx++)
	{
		string prevArg(argv[argIdx - 1]);
		string argStr(argv[argIdx]);
		
		if (argStr[0] == '-')// && isalpha(argStr[1]))	//Flag
		{
			if (argStr.length() < 2)
				die("Flag is too short");
			if (argStr[1] != '-')	//A short flag
			{
				for (int charIdx = 1; charIdx < argStr.length(); charIdx++)
				{
					switch (argStr[charIdx])
					{
						case 'h':
							cout << "-" << argStr[charIdx] << " flag detected" << endl;
							displayHelp();
							exit(0);	//displayHelp() should exit the program
							break;
						case 'v':
							gVerbose = true;
							cout << "-" << argStr[charIdx] << " flag detected" << endl;
							break;
						case 'i':
							gGenerateIntermediateImages = true;
							cout << "-" << argStr[charIdx] << " flag detected" << endl;
							break;
						case 'N':	//Add noise to a pgm image
							cout << "-" << argStr[charIdx] << " flag detected" << endl;
							if (sProgramBehavior != PB_NONE)
								die("Please specify only one program behavior flag");
							sProgramBehavior = PB_NOISIFY;
							break;
						case 'n':	//Denoise a set of images
							cout << "-" << argStr[charIdx] << " flag detected" << endl;
							if (sProgramBehavior != PB_NONE && sProgramBehavior != PB_DENOISE)
								die("Please specify only one program behavior flag");
							sProgramBehavior = PB_DENOISE;
							break;
						case 'b':
							cout << "-" << argStr[charIdx] << " flag detected" << endl;
							if (sProgramBehavior != PB_NOISIFY)
								die("-b only works with -N");
							sBayerize = true;
							break;
						case 's':
							cout << "-" << argStr[charIdx] << " flag detected" << endl;
							if (sProgramBehavior != PB_DENOISE)
								die("-s only works with -n");
							break;
						default:
							die(string("Unknown flag: " + argStr).c_str());
					}	//switch argStr[charIdx]
				}	//Loop over flag chars
			}
			else	//argStr[1] == '-'
			{
				assert(argStr.length() >= 2);
				assert(argStr[0] == '-' && argStr[1] == '-');
				if (argStr.length() < 3)
					die("Flag is too short");
				
				if (argStr == "--testFT")
				{
					cout << argStr << " flag detected" << endl;
					if (sProgramBehavior != PB_NONE)
						die("Please specify only one program behavior flag");
					sProgramBehavior = PB_TEST_FOURIER;
				}
				else if (argStr == "--testFTconv")
				{
					cout << argStr << " flag detected" << endl;
					if (sProgramBehavior != PB_NONE)
						die("Please specify only one program behavior flag");
					sProgramBehavior = PB_TEST_FOURIER_CONVOLUTION;
				}
				else if (argStr == "--testColor")
				{
					cout << argStr << " flag detected" << endl;
					if (sProgramBehavior != PB_NONE)
						die("Please specify only one program behavior flag");
					sProgramBehavior = PB_TEST_RGB_XYZ_LAB;
				}
				else if (argStr == "--grayStat")
				{
					cout << argStr << " flag detected" << endl;
					if (sProgramBehavior != PB_NONE)
						die("Please specify only one program behavior flag");
					sProgramBehavior = PB_GRAY_IMG_PAIR_STATS;
				}
				else if (argStr == "--rgbStat")
				{
					cout << argStr << " flag detected" << endl;
					if (sProgramBehavior != PB_NONE)
						die("Please specify only one program behavior flag");
					sProgramBehavior = PB_RGB_IMG_PAIR_STATS;
				}
				else die(string("Unknown flag: " + argStr).c_str());
			}
		}
		else	//Nonflag
		{
			if (prevArg == "-N")
			{
				//Noise params file
				sNoiseParamsFilename = argStr;
				cout << "Noise params filename arg read: " << sNoiseParamsFilename << endl;
			}
			else if (prevArg == "-s")
			{
				//Denoise threshold
				
				string color = argStr.substr(0, 1);
				if (color[0] < '0' || color[0] > '3')
					die("Invalid shrinkage color argument");
				int colorIdx = color[0] - '1';
				
				string levelStr = argStr.substr(1, 2);
				
				char levelType = levelStr[0];
				if (levelType != 'A' && levelType != 'H' && levelType != 'B')
					die("Invalid shrinkage level type ('A' or 'H' or 'B')");
				
				int level = 0;
				if (levelType == 'B')
					level = levelStr[1] - '0';
				if (levelType == 'B' && (level < 0 || level > 9))
					die("Invalid shrinkage level (only levels 0-9 can be used with level type 'B')");
				
				sManualShrinkageThresholdStr += "-";
				sManualShrinkageThresholdStr += argStr;
				
				int thresholdStartPos = 2;
				if (levelType == 'B')
					thresholdStartPos = 3;
				stringstream ss(argStr.substr(thresholdStartPos, argStr.length() - thresholdStartPos));
				Float_t threshold;
				ss >> threshold;
				
				if (levelType == 'A')	//All levels
				{
					if (colorIdx > -1)
					{
						if (gManualShrinkageThresholds[colorIdx].size() < 11)
							gManualShrinkageThresholds[colorIdx].resize(11);
						for (int i = 0; i <= 9; i++)
							gManualShrinkageThresholds[colorIdx][i] = threshold;
					}
					else
					{
						for (int i = 0; i < 3; i++)
						{
							if (gManualShrinkageThresholds[i].size() < 11)
								gManualShrinkageThresholds[i].resize(11);
							for (int j = 0; j <= 9; j++)
								gManualShrinkageThresholds[i][j] = threshold;
						}
					}
					string colorName = "RGB";
					if (colorIdx == 0)
						colorName = "red";
					else if (colorIdx == 1)
						colorName = "green";
					else if (colorIdx == 2)
						colorName = "blue";
					cout << "All levels threshold argument read for color " << colorName
						<< ": " << threshold << endl;
				}
				else if (levelType == 'H')
				{
					if (colorIdx > -1)
					{
						if (gManualShrinkageThresholds[colorIdx].size() < 1)
							gManualShrinkageThresholds[colorIdx].resize(1);
						gManualShrinkageThresholds[colorIdx][0] = threshold;
					}
					else
					{
						for (int i = 0; i < 3; i++)
						{
							if (gManualShrinkageThresholds[i].size() < 1)
								gManualShrinkageThresholds[i].resize(1);
							gManualShrinkageThresholds[i][0] = threshold;
						}
					}
					string colorName = "RGB";
					if (colorIdx == 0)
						colorName = "red";
					else if (colorIdx == 1)
						colorName = "green";
					else if (colorIdx == 2)
						colorName = "blue";
					cout << "H threshold argument read for color " << colorName
						<< ": " << threshold << endl;
				}
				else
				{
					assert(levelType == 'B');
					
					if (colorIdx > -1)
					{
						if (gManualShrinkageThresholds[colorIdx].size() < level + 2)
							gManualShrinkageThresholds[colorIdx].resize(level + 2);
						gManualShrinkageThresholds[colorIdx][level + 1] = threshold;
					}
					else
					{
						for (int i = 0; i < 3; i++)
						{
							if (gManualShrinkageThresholds[i].size() < level + 2)
								gManualShrinkageThresholds[i].resize(level + 2);
							gManualShrinkageThresholds[i][level + 1] = threshold;
						}
					}
					string colorName = "RGB";
					if (colorIdx == 0)
						colorName = "red";
					else if (colorIdx == 1)
						colorName = "green";
					else if (colorIdx == 2)
						colorName = "blue";
					cout << "B threshold argument read for color " << colorName
						<< ", level " << level << ": " << threshold << endl;
				}
			}
			else
			{
				string filename(argv[argIdx]);
				sInputFilenames.push_back(filename);
				cout << "Input filename arg read: " << filename << endl;
			}
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movq %rsi, 0x70(%rsp)
cmpl $0x2, %edi
jl 0x5bbf
movl %edi, %eax
movq %rax, 0xb8(%rsp)
movl $0x1, %r14d
leaq 0xe0(%rsp), %r13
leaq 0x269ec(%rip), %rax     # 0x2b53b
movq %rax, 0x50(%rsp)
movq 0x32475(%rip), %r15     # 0x36fd0
leaq 0x26a3e(%rip), %rax     # 0x2b5a0
movq %rax, 0x60(%rsp)
movq 0x70(%rsp), %rbx
movq -0x8(%rbx,%r14,8), %rsi
leaq 0xc0(%rsp), %rdi
movq %r13, %rdx
callq 0x9f34
movq (%rbx,%r14,8), %rsi
leaq 0x30(%rsp), %rdi
movq %r13, %rdx
callq 0x9f34
movq 0x30(%rsp), %rax
cmpb $0x2d, (%rax)
jne 0x4cc2
cmpq $0x1, 0x38(%rsp)
jbe 0x5b4c
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %rax
cmpb $0x2d, 0x1(%rcx)
jne 0x4d99
cmpq $0x1, %rax
jbe 0x5b02
cmpb $0x2d, (%rcx)
leaq 0x30(%rsp), %rbx
jne 0x5b21
cmpq $0x2, %rax
je 0x5b4c
movq %rbx, %rdi
leaq 0x266e2(%rip), %rsi     # 0x2b2ce
callq 0x30c0
testl %eax, %eax
je 0x531c
movq %rbx, %rdi
leaq 0x266fc(%rip), %rsi     # 0x2b2ff
callq 0x30c0
testl %eax, %eax
je 0x5389
movq %rbx, %rdi
leaq 0x2670b(%rip), %rsi     # 0x2b325
callq 0x30c0
testl %eax, %eax
je 0x54a3
movq %rbx, %rdi
leaq 0x2683e(%rip), %rsi     # 0x2b46f
callq 0x30c0
testl %eax, %eax
je 0x5510
movq %rbx, %rdi
leaq 0x26881(%rip), %rsi     # 0x2b4c9
callq 0x30c0
testl %eax, %eax
jne 0x5b99
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq %r15, %rdi
callq 0x3360
movq %rax, %r12
movl $0xe, %edx
movq %rax, %rdi
leaq 0x268d4(%rip), %rsi     # 0x2b54d
callq 0x3360
movq (%r12), %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
cmpl $0x0, 0x329cb(%rip)     # 0x37678
jne 0x5b40
movl $0x7, 0x329bb(%rip)     # 0x37678
jmp 0x59f5
leaq 0xc0(%rsp), %rbx
movq %rbx, %rdi
leaq 0x268c9(%rip), %rsi     # 0x2b59d
callq 0x30c0
testl %eax, %eax
je 0x511e
movq %rbx, %rdi
leaq 0x26954(%rip), %rsi     # 0x2b63f
callq 0x30c0
testl %eax, %eax
je 0x5188
movq 0x70(%rsp), %rax
movq (%rax,%r14,8), %rsi
movq %r13, %rdi
leaq 0x78(%rsp), %rdx
callq 0x9f34
leaq 0x32823(%rip), %rdi     # 0x37538
movq %r13, %rsi
callq 0xa0b6
movl $0x19, %edx
movq %r15, %rdi
leaq 0x26a53(%rip), %rsi     # 0x2b77f
callq 0x3360
movq 0xe0(%rsp), %rsi
movq 0xe8(%rsp), %rdx
movq %r15, %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 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0x59f5
movq 0xf0(%rsp), %rsi
jmp 0x59ed
cmpq $0x2, %rax
jb 0x59f5
movl $0x1, %ebx
movq 0x30(%rsp), %rax
movzbl (%rax,%rbx), %eax
cmpl $0x6d, %eax
jg 0x4e60
cmpl $0x67, %eax
jg 0x4ee3
cmpl $0x4e, %eax
je 0x5082
cmpl $0x62, %eax
jne 0x5adc
movl $0x1, %edx
movq %r15, %rdi
leaq 0x26bac(%rip), %rsi     # 0x2b990
callq 0x3360
movq 0x30(%rsp), %rax
movb (%rax,%rbx), %al
movb %al, 0xe0(%rsp)
movl $0x1, %edx
movq %r15, %rdi
movq %r13, %rsi
callq 0x3360
movq %rax, %r12
movl $0xe, %edx
movq %rax, %rdi
leaq 0x26733(%rip), %rsi     # 0x2b54d
callq 0x3360
movq (%r12), %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
cmpl $0x4, 0x3282a(%rip)     # 0x37678
jne 0x5ac6
movb $0x1, 0x32821(%rip)     # 0x3767c
jmp 0x510b
cmpl $0x6e, %eax
je 0x4fee
cmpl $0x73, %eax
je 0x4f6a
cmpl $0x76, %eax
jne 0x5adc
movb $0x1, 0x3266e(%rip)     # 0x374f0
movl $0x1, %edx
movq %r15, %rdi
leaq 0x26aff(%rip), %rsi     # 0x2b990
callq 0x3360
movq 0x30(%rsp), %rax
movb (%rax,%rbx), %al
movb %al, 0xe0(%rsp)
movl $0x1, %edx
movq %r15, %rdi
movq %r13, %rsi
callq 0x3360
movq %rax, %rbp
movl $0xe, %edx
movq %rax, %rdi
leaq 0x26686(%rip), %rsi     # 0x2b54d
callq 0x3360
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x32e0
jmp 0x4f52
cmpl $0x69, %eax
jne 0x5a62
movb $0x1, 0x325fe(%rip)     # 0x374f1
movl $0x1, %edx
movq %r15, %rdi
leaq 0x26a8e(%rip), %rsi     # 0x2b990
callq 0x3360
movq 0x30(%rsp), %rax
movb (%rax,%rbx), %al
movb %al, 0xe0(%rsp)
movl $0x1, %edx
movq %r15, %rdi
movq %r13, %rsi
callq 0x3360
movq %rax, %rbp
movl $0xe, %edx
movq %rax, %rdi
leaq 0x26615(%rip), %rsi     # 0x2b54d
callq 0x3360
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %rbp, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
jmp 0x510b
movl $0x1, %edx
movq %r15, %rdi
leaq 0x26a17(%rip), %rsi     # 0x2b990
callq 0x3360
movq 0x30(%rsp), %rax
movb (%rax,%rbx), %al
movb %al, 0xe0(%rsp)
movl $0x1, %edx
movq %r15, %rdi
movq %r13, %rsi
callq 0x3360
movq %rax, %r12
movl $0xe, %edx
movq %rax, %rdi
leaq 0x2659e(%rip), %rsi     # 0x2b54d
callq 0x3360
movq (%r12), %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
cmpl $0x5, 0x32695(%rip)     # 0x37678
je 0x510b
jmp 0x5ad2
movl $0x1, %edx
movq %r15, %rdi
leaq 0x26993(%rip), %rsi     # 0x2b990
callq 0x3360
movq 0x30(%rsp), %rax
movb (%rax,%rbx), %al
movb %al, 0xe0(%rsp)
movl $0x1, %edx
movq %r15, %rdi
movq %r13, %rsi
callq 0x3360
movq %rax, %r12
movl $0xe, %edx
movq %rax, %rdi
leaq 0x2651a(%rip), %rsi     # 0x2b54d
callq 0x3360
movq (%r12), %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
movl 0x32612(%rip), %eax     # 0x37678
cmpl $0x5, %eax
je 0x5073
testl %eax, %eax
jne 0x5a59
movl $0x5, 0x325fb(%rip)     # 0x37678
jmp 0x510b
movl $0x1, %edx
movq %r15, %rdi
leaq 0x268ff(%rip), %rsi     # 0x2b990
callq 0x3360
movq 0x30(%rsp), %rax
movb (%rax,%rbx), %al
movb %al, 0xe0(%rsp)
movl $0x1, %edx
movq %r15, %rdi
movq %r13, %rsi
callq 0x3360
movq %rax, %r12
movl $0xe, %edx
movq %rax, %rdi
leaq 0x26486(%rip), %rsi     # 0x2b54d
callq 0x3360
movq (%r12), %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
cmpl $0x0, 0x3257d(%rip)     # 0x37678
jne 0x5a59
movl $0x4, 0x3256d(%rip)     # 0x37678
incq %rbx
cmpq %rbx, 0x38(%rsp)
ja 0x4da8
jmp 0x59f5
leaq 0x323f3(%rip), %rdi     # 0x37518
leaq 0x30(%rsp), %rsi
callq 0x3170
movl $0x20, %edx
movq %r15, %rdi
leaq 0x264e0(%rip), %rsi     # 0x2b61e
callq 0x3360
movq 0x323ce(%rip), %rsi     # 0x37518
movq 0x323cf(%rip), %rdx     # 0x37520
movq %r15, %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
jmp 0x59f5
movl $0x1, %ecx
leaq 0x78(%rsp), %rdi
leaq 0x30(%rsp), %rbx
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3330
movq 0x78(%rsp), %rax
movb (%rax), %al
addb $-0x34, %al
cmpb $-0x5, %al
jbe 0x5b62
movq 0x78(%rsp), %rax
movsbl (%rax), %r12d
movl $0x1, %edx
movl $0x2, %ecx
leaq 0x98(%rsp), %rdi
movq %rbx, %rsi
callq 0x3330
movq 0x98(%rsp), %rax
movzbl (%rax), %ebx
leal -0x41(%rbx), %eax
cmpl $0x2, %eax
jb 0x51f1
cmpl $0x48, %ebx
jne 0x5b6e
movq $0x0, 0x58(%rsp)
cmpl $0x42, %ebx
jne 0x5213
movq 0x98(%rsp), %rax
movsbl 0x1(%rax), %eax
addl $-0x30, %eax
movq %rax, 0x58(%rsp)
cmpl $0x42, %ebx
leaq 0x3237b(%rip), %rdi     # 0x37598
jne 0x522a
cmpl $0xa, 0x58(%rsp)
jae 0x5b56
leaq 0x2675f(%rip), %rsi     # 0x2b990
movq %rdi, %rbp
callq 0x3540
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq %rbp, %rdi
callq 0x30d0
xorl %edx, %edx
cmpl $0x42, %ebx
sete %dl
orq $0x2, %rdx
movq 0x38(%rsp), %rcx
subq %rdx, %rcx
leaq 0x8(%rsp), %rbp
movq %rbp, %rdi
leaq 0x30(%rsp), %rsi
callq 0x3330
movq %r13, %rdi
movq %rbp, %rsi
movl $0x18, %edx
callq 0x3460
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x529d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3310
movq %r13, %rdi
leaq 0x28(%rsp), %rsi
callq 0x31d0
movzbl %r12b, %ebp
movl %r12d, %eax
addl $-0x31, %eax
cmpl $0x48, %ebx
je 0x53f6
cmpl $0x41, %ebx
jne 0x543c
cmpb $0x30, %r12b
jle 0x557d
movl %eax, %eax
leaq (%rax,%rax,2), %rax
leaq 0x32273(%rip), %rcx     # 0x37550
leaq (%rcx,%rax,8), %r12
movq 0x8(%r12), %rax
subq (%r12), %rax
cmpq $0x57, %rax
ja 0x52fd
movl $0xb, %esi
movq %r12, %rdi
callq 0xa084
movq (%r12), %rax
xorl %ecx, %ecx
movsd 0x28(%rsp), %xmm0
movsd %xmm0, (%rax,%rcx,8)
incq %rcx
cmpq $0xa, %rcx
jne 0x5303
jmp 0x55cd
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq %r15, %rdi
callq 0x3360
movq %rax, %r12
movl $0xe, %edx
movq %rax, %rdi
leaq 0x2620d(%rip), %rsi     # 0x2b54d
callq 0x3360
movq (%r12), %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
cmpl $0x0, 0x32304(%rip)     # 0x37678
jne 0x5b40
movl $0x1, 0x322f4(%rip)     # 0x37678
jmp 0x59f5
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq %r15, %rdi
callq 0x3360
movq %rax, %r12
movl $0xe, %edx
movq %rax, %rdi
leaq 0x261a0(%rip), %rsi     # 0x2b54d
callq 0x3360
movq (%r12), %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
cmpl $0x0, 0x32297(%rip)     # 0x37678
jne 0x5b40
movl $0x2, 0x32287(%rip)     # 0x37678
jmp 0x59f5
cmpb $0x30, %r12b
jle 0x561c
movl %eax, %eax
leaq (%rax,%rax,2), %rax
leaq 0x32143(%rip), %rcx     # 0x37550
leaq (%rcx,%rax,8), %r12
movq 0x8(%r12), %rax
cmpq (%r12), %rax
jne 0x5429
movl $0x1, %esi
movq %r12, %rdi
callq 0xa084
movsd 0x28(%rsp), %xmm0
movq (%r12), %rax
movsd %xmm0, (%rax)
jmp 0x565d
cmpl $0x42, %ebx
jne 0x5b7a
cmpb $0x30, %bpl
movl %ebp, 0x6c(%rsp)
jle 0x56ac
movl %eax, %eax
leaq (%rax,%rax,2), %rax
leaq 0x320f0(%rip), %rcx     # 0x37550
leaq (%rcx,%rax,8), %r12
movq 0x8(%r12), %rax
subq (%r12), %rax
sarq $0x3, %rax
movq 0x58(%rsp), %rcx
addl $0x2, %ecx
movslq %ecx, %rsi
cmpq %rsi, %rax
jae 0x5489
movq %r12, %rdi
callq 0xa084
movsd 0x28(%rsp), %xmm0
movq (%r12), %rax
movslq 0x58(%rsp), %rcx
movsd %xmm0, 0x8(%rax,%rcx,8)
jmp 0x56ff
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq %r15, %rdi
callq 0x3360
movq %rax, %r12
movl $0xe, %edx
movq %rax, %rdi
leaq 0x26086(%rip), %rsi     # 0x2b54d
callq 0x3360
movq (%r12), %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
cmpl $0x0, 0x3217d(%rip)     # 0x37678
jne 0x5b40
movl $0x3, 0x3216d(%rip)     # 0x37678
jmp 0x59f5
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq %r15, %rdi
callq 0x3360
movq %rax, %r12
movl $0xe, %edx
movq %rax, %rdi
leaq 0x26019(%rip), %rsi     # 0x2b54d
callq 0x3360
movq (%r12), %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
cmpl $0x0, 0x32110(%rip)     # 0x37678
jne 0x5b40
movl $0x6, 0x32100(%rip)     # 0x37678
jmp 0x59f5
xorl %ebx, %ebx
leaq (%rbx,%rbx,2), %rax
leaq 0x31fc6(%rip), %rcx     # 0x37550
leaq (%rcx,%rax,8), %r12
movq 0x8(%r12), %rax
subq (%r12), %rax
cmpq $0x57, %rax
ja 0x55aa
movl $0xb, %esi
movq %r12, %rdi
callq 0xa084
movq (%r12), %rax
xorl %ecx, %ecx
movsd 0x28(%rsp), %xmm0
movsd %xmm0, (%rax,%rcx,8)
incq %rcx
cmpq $0xa, %rcx
jne 0x55b0
incq %rbx
cmpq $0x3, %rbx
jne 0x557f
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %rdi
leaq 0x260fb(%rip), %rsi     # 0x2b6de
leaq 0x260f7(%rip), %rdx     # 0x2b6e1
callq 0xaa0e
cmpl $0x31, %ebp
je 0x5810
cmpl $0x32, %ebp
je 0x5801
cmpl $0x33, %ebp
jne 0x582e
movl $0x4, %r8d
leaq 0x260d1(%rip), %rcx     # 0x2b6e8
jmp 0x581d
xorl %ebx, %ebx
leaq 0x31f2b(%rip), %rcx     # 0x37550
movq 0x8(%rbx,%rcx), %rax
cmpq (%rbx,%rcx), %rax
jne 0x5645
leaq (%rcx,%rbx), %rdi
movl $0x1, %esi
callq 0xa084
leaq 0x31f0b(%rip), %rcx     # 0x37550
movsd 0x28(%rsp), %xmm0
movq (%rbx,%rcx), %rax
movsd %xmm0, (%rax)
addq $0x18, %rbx
cmpq $0x48, %rbx
jne 0x5625
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %rdi
leaq 0x2606b(%rip), %rsi     # 0x2b6de
leaq 0x26067(%rip), %rdx     # 0x2b6e1
callq 0xaa0e
cmpl $0x31, %ebp
je 0x5769
cmpl $0x32, %ebp
je 0x575a
cmpl $0x33, %ebp
jne 0x5787
movl $0x4, %r8d
leaq 0x26041(%rip), %rcx     # 0x2b6e8
jmp 0x5776
movq 0x58(%rsp), %rcx
leal 0x2(%rcx), %eax
movslq %eax, %r12
movslq %ecx, %rbx
xorl %ebp, %ebp
leaq 0x31e8d(%rip), %r13     # 0x37550
movq 0x8(%rbp,%r13), %rax
subq (%rbp,%r13), %rax
sarq $0x3, %rax
cmpq %r12, %rax
jae 0x56e4
movq %r13, %rdi
addq %rbp, %rdi
movq %r12, %rsi
callq 0xa084
movsd 0x28(%rsp), %xmm0
movq (%rbp,%r13), %rax
movsd %xmm0, 0x8(%rax,%rbx,8)
addq $0x18, %rbp
cmpq $0x48, %rbp
jne 0x56c3
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %rdi
leaq 0x25fc9(%rip), %rsi     # 0x2b6de
leaq 0x25fc5(%rip), %rdx     # 0x2b6e1
callq 0xaa0e
movl 0x6c(%rsp), %eax
cmpl $0x31, %eax
je 0x58b7
cmpl $0x32, %eax
je 0x58a8
cmpl $0x33, %eax
leaq 0xe0(%rsp), %r13
jne 0x58dd
movl $0x4, %r8d
leaq 0x25f93(%rip), %rcx     # 0x2b6e8
jmp 0x58cc
movl $0x5, %r8d
leaq 0x25f7b(%rip), %rcx     # 0x2b6e2
jmp 0x5776
movl $0x3, %r8d
leaq 0x269da(%rip), %rcx     # 0x2c150
movq 0x10(%rsp), %rdx
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
callq 0x3430
movl $0x24, %edx
movq %r15, %rdi
leaq 0x25f85(%rip), %rsi     # 0x2b71b
callq 0x3360
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r15, %rdi
callq 0x3360
movq %rax, %r12
movl $0x2, %edx
movq %rax, %rdi
leaq 0x26916(%rip), %rsi     # 0x2c0d5
callq 0x3360
movsd 0x28(%rsp), %xmm0
movq %r12, %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
jmp 0x5976
movl $0x5, %r8d
leaq 0x25ed4(%rip), %rcx     # 0x2b6e2
jmp 0x581d
movl $0x3, %r8d
leaq 0x26933(%rip), %rcx     # 0x2c150
movq 0x10(%rsp), %rdx
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
callq 0x3430
movl $0x2d, %edx
movq %r15, %rdi
leaq 0x25eb0(%rip), %rsi     # 0x2b6ed
callq 0x3360
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r15, %rdi
callq 0x3360
movq %rax, %r12
movl $0x2, %edx
movq %rax, %rdi
leaq 0x2686f(%rip), %rsi     # 0x2c0d5
callq 0x3360
movsd 0x28(%rsp), %xmm0
movq %r12, %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
jmp 0x5976
movl $0x5, %r8d
leaq 0x25e2d(%rip), %rcx     # 0x2b6e2
jmp 0x58c4
movl $0x3, %r8d
leaq 0x2688c(%rip), %rcx     # 0x2c150
leaq 0xe0(%rsp), %r13
movq 0x10(%rsp), %rdx
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
callq 0x3430
movl $0x24, %edx
movq %r15, %rdi
leaq 0x25e65(%rip), %rsi     # 0x2b751
callq 0x3360
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r15, %rdi
callq 0x3360
movq %rax, %r12
movl $0x8, %edx
movq %rax, %rdi
leaq 0x25e61(%rip), %rsi     # 0x2b776
callq 0x3360
movq %r12, %rdi
movq 0x58(%rsp), %rsi
callq 0x34e0
movq %rax, %r12
movl $0x2, %edx
movq %rax, %rdi
leaq 0x2679c(%rip), %rsi     # 0x2c0d5
callq 0x3360
movsd 0x28(%rsp), %xmm0
movq %r12, %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
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x5992
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3310
movq %r13, %rdi
movq 0x3160c(%rip), %rsi     # 0x36fa8
callq 0x3220
leaq 0x160(%rsp), %rdi
callq 0x30e0
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x59d3
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x3310
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x59f5
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3310
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x5a11
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3310
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x5a36
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x3310
incq %r14
cmpq 0xb8(%rsp), %r14
jne 0x4b67
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x25afc(%rip), %rax     # 0x2b55c
jmp 0x5acd
cmpl $0x68, %eax
jne 0x5adc
movq 0x31562(%rip), %rdi     # 0x36fd0
leaq 0x25f1b(%rip), %rsi     # 0x2b990
movl $0x1, %edx
callq 0x3360
movq 0x30(%rsp), %rax
movb (%rax,%rbx), %al
leaq 0xe0(%rsp), %rsi
movb %al, (%rsi)
movq 0x31538(%rip), %rdi     # 0x36fd0
movl $0x1, %edx
callq 0x3360
movq %rax, %rbx
leaq 0x25aa1(%rip), %rsi     # 0x2b54d
movl $0xe, %edx
movq %rax, %rdi
callq 0x3360
movq %rbx, %rdi
callq 0x3140
callq 0x42c6
leaq 0x25abd(%rip), %rax     # 0x2b58a
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rdi
callq 0x403c
leaq 0x25ad3(%rip), %rsi     # 0x2b5b6
leaq 0xe0(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x9ffb
movq 0xe0(%rsp), %rdi
callq 0x403c
leaq 0x25abc(%rip), %rdi     # 0x2b5c5
leaq 0x2574d(%rip), %rsi     # 0x2b25d
leaq 0x25ac3(%rip), %rcx     # 0x2b5da
movl $0x13d, %edx            # imm = 0x13D
callq 0x31c0
leaq 0x25ad1(%rip), %rdi     # 0x2b5f9
leaq 0x2572e(%rip), %rsi     # 0x2b25d
leaq 0x25aa4(%rip), %rcx     # 0x2b5da
movl $0x13e, %edx            # imm = 0x13E
callq 0x31c0
leaq 0x25a15(%rip), %rax     # 0x2b55c
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rdi
callq 0x403c
leaq 0x25b37(%rip), %rdi     # 0x2b694
callq 0x403c
leaq 0x25ad9(%rip), %rdi     # 0x2b642
callq 0x403c
leaq 0x25aee(%rip), %rdi     # 0x2b663
callq 0x403c
leaq 0x25bbf(%rip), %rdi     # 0x2b740
leaq 0x256d5(%rip), %rsi     # 0x2b25d
leaq 0x25a4b(%rip), %rcx     # 0x2b5da
movl $0x1c9, %edx            # imm = 0x1C9
callq 0x31c0
leaq 0x25a16(%rip), %rsi     # 0x2b5b6
leaq 0xe0(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x9ffb
movq 0xe0(%rsp), %rdi
callq 0x403c
leaq 0x25956(%rip), %rdi     # 0x2b51c
callq 0x403c
jmp 0x5cc0
jmp 0x5cee
jmp 0x5c29
jmp 0x5c29
jmp 0x5c29
jmp 0x5c1c
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x5c78
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3310
jmp 0x5c78
jmp 0x5c1c
jmp 0x5c0b
jmp 0x5cee
movq %rax, %rbx
jmp 0x5c9d
jmp 0x5c1c
jmp 0x5c29
jmp 0x5cee
movq %rax, %rbx
jmp 0x5c78
jmp 0x5c29
jmp 0x5c38
jmp 0x5c38
jmp 0x5c29
movq %rax, %rbx
jmp 0x5c57
jmp 0x5cc0
jmp 0x5cee
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x5c57
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3310
movq 0x3134a(%rip), %rsi     # 0x36fa8
leaq 0xe0(%rsp), %rdi
callq 0x3220
leaq 0x160(%rsp), %rdi
callq 0x30e0
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x5c9d
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x3310
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x5cf1
movq 0x88(%rsp), %rsi
jmp 0x5ce0
movq %rax, %rbx
jmp 0x5d0d
jmp 0x5cee
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0x5cf1
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x3310
jmp 0x5cf1
jmp 0x5cee
jmp 0x5cee
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x5d0d
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3310
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x5d32
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x3310
movq %rbx, %rdi
callq 0x3500