// File: /workspace/github_cpp_makefile_star2_O1/estwings57[P]CasHMC/sources/CasHMCWrapper.cpp
// Function: CasHMC::CasHMCWrapper::CasHMCWrapper(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
CasHMCWrapper::CasHMCWrapper(string simCfg, string dramCfg)
{
	//Loading configure parameters
	ReadIniFile(simCfg);
	ReadIniFile(dramCfg);
	PushStatisPerLink();
	
	//
	//Class variable initialization
	//
	currentClockCycle = 0;
	dramTuner = 1;
	downLinkTuner = 1;
	downLinkClock = 1;
	upLinkTuner = 1;
	upLinkClock = 1;
	linkPeriod = (1/LINK_SPEED);
	
	//Make class objects
	downstreamLinks.reserve(NUM_LINKS);
	upstreamLinks.reserve(NUM_LINKS);
	for(int l=0; l<NUM_LINKS; l++) {
		downstreamLinks.push_back(new Link(debugOut, stateOut, l, true, this));
		upstreamLinks.push_back(new Link(debugOut, stateOut, l, false, this));
	}
	hmcCont = new HMCController(debugOut, stateOut);
	hmc = new HMC(debugOut, stateOut);
	
	//Link master, Link, and Link slave are linked each other by respective lanes
	for(int l=0; l<NUM_LINKS; l++) {
		//Downstream
		hmcCont->downLinkMasters[l]->linkP = downstreamLinks[l];
		hmcCont->downLinkMasters[l]->localLinkSlave = hmcCont->upLinkSlaves[l];
		downstreamLinks[l]->linkMasterP = hmcCont->downLinkMasters[l];
		downstreamLinks[l]->linkSlaveP = hmc->downLinkSlaves[l];
		hmc->downLinkSlaves[l]->downBufferDest = hmc->crossbarSwitch;
		hmc->downLinkSlaves[l]->localLinkMaster = hmc->upLinkMasters[l];
		//Upstream
		hmc->crossbarSwitch->upBufferDest[l] = hmc->upLinkMasters[l];
		hmc->upLinkMasters[l]->linkP = upstreamLinks[l];
		hmc->upLinkMasters[l]->localLinkSlave = hmc->downLinkSlaves[l];
		upstreamLinks[l]->linkMasterP = hmc->upLinkMasters[l];
		upstreamLinks[l]->linkSlaveP = hmcCont->upLinkSlaves[l];
		hmcCont->upLinkSlaves[l]->upBufferDest = hmcCont;
		hmcCont->upLinkSlaves[l]->localLinkMaster = hmcCont->downLinkMasters[l];
	}

	//Check CPU clock cycle and link speed
	if(CPU_CLK_PERIOD < linkPeriod) {	//Check CPU clock cycle and link speed
		ERROR(" == Error - WRONG CPU clock cycle or link speed (CPU_CLK_PERIOD should be bigger than (1/LINK_SPEED))");
		ERROR(" == Error - CPU_CLK_PERIOD : "<<CPU_CLK_PERIOD<<"  1/LINK_SPEED : "<<linkPeriod);
		exit(0);
	}
	
	//
	// Log files generation
	//
	int status_rst = 1;
	int status_grp = 1;
	status_rst = mkdir("result", S_IRWXU | S_IRWXG | S_IROTH | S_IWOTH | S_IXOTH);
	status_grp = mkdir("graph", S_IRWXU | S_IRWXG | S_IROTH | S_IWOTH | S_IXOTH);
	
	time_t now;
    struct tm t;
    time(&now);
    t = *localtime(&now);
	
	cout<<endl<<"****************************************************************"<<endl;
	cout<<"*                      CasHMC version 1.3                      *"<<endl;
	cout<<"*            Date : "<<t.tm_year + 1900<<"/"<<setw(2)<<setfill('0')<<t.tm_mon+1<<"/"<<setw(2)<<setfill('0')<<t.tm_mday
			<<"      Time : "<<setw(2)<<setfill('0')<<t.tm_hour<<":"<<setw(2)<<setfill('0')<<t.tm_min<<":"<<setw(2)<<setfill('0')<<t.tm_sec
			<<"            *"<<endl;
#ifndef DEBUG_LOG		
	cout<<"*                                                              *"<<endl;
	cout<<"*  Module abbreviation info.                                   *"<<endl;
	cout<<"*  [HC]   : HMC Controller                                     *"<<endl;
	cout<<"*  [LM_U/Di] : ith Up/Downstream Link Master                   *"<<endl;
	cout<<"*  [LK_U/Di] : ith Up/Downstream Link                          *"<<endl;
	cout<<"*  [LS_U/Di] : ith Up/Downstream Link Slave                    *"<<endl;
	cout<<"*  [CS]   : Crossbar Switch                                    *"<<endl;
	cout<<"*  [VC_j] : jth Vault Controller                               *"<<endl;
	cout<<"*  [CQ_k] : k-bank Command Queue                               *"<<endl;
	cout<<"*  [DR_j] : jth DRAM                                           *"<<endl;
#endif		
	cout<<"****************************************************************"<<endl<<endl;
	cout.setf(ios::left); 
	cout<<" = Log folder generating information"<<endl;
	if(status_rst == 0) {
		cout<<"   Making result folder success (./result/)"<<endl;
	}
	else {
		if(errno == EEXIST) {
			cout<<"   Result folder already exists (./result/)"<<endl;
			status_rst = 0;
		}
		else {
			cout<<"   Making result folder fail"<<endl;
			cout<<"   Debug and result files will be generated in CasHMC folder (./)"<<endl<<endl;
		}
	}
	if(status_grp == 0) {
		cout<<"   Making graph folder success (./graph/)"<<endl;
	}
	else {
		if(errno == EEXIST) {
			cout<<"   Graph folder already exists (./graph/)"<<endl;
			status_grp = 0;
		}
		else {
			cout<<"   Making graph folder fail"<<endl;
			cout<<"   graph files will be generated in CasHMC folder (./)"<<endl<<endl;
		}
	}
	
	if(status_rst == 0)
		logName = "result/CasHMC";
	else
		logName = "CasHMC";
	
	string plotName;
	if(status_grp == 0)
		plotName = "graph/CasHMC_plot_no";
	else
		plotName = "CasHMC_plot_no";

	unsigned int ver_num = 0;
	stringstream temp_vn;
	while(1) { 
		logName += "_no";
		temp_vn << ver_num;
		logName += temp_vn.str();
		logName += "_setting.log";
		
		if(access(logName.c_str(), 0) == -1)	break;
		else {
			logName.erase(logName.find("_no"));
			temp_vn.str( string() );
			temp_vn.clear();
			ver_num++;
		}
	}
	cout.setf(ios::left);
	cout<<endl<<"   === Simulation start === "<<endl;
	
	if(BANDWIDTH_PLOT) {
		hmcTransmitSizeTemp = 0;
		downLinkDataSizeTemp = vector<uint64_t>(NUM_LINKS, 0);
		upLinkDataSizeTemp = vector<uint64_t>(NUM_LINKS, 0);
		
		//Plot data file initialization
		plotName += temp_vn.str();
		plotName += ".dat";
		plotDataOut.open(plotName.c_str());
		plotDataOut.setf(ios::left);
		cout<<"  [ "<<plotName<<" ] is generated"<<endl;
		
		plotDataOut<<setw(8)<<setfill(' ')<<"#Epoch";
		for(int i=0; i<NUM_LINKS; i++) {
			stringstream linkNum;
			linkNum << i;
			string plotLink = "Link[" + linkNum.str() + ']';
			plotDataOut<<setw(10)<<setfill(' ')<<plotLink;
		}
		plotDataOut<<setw(10)<<setfill(' ')<<"HMC bandwidth"<<endl;
		
		//Plot script file initialization
		plotName.erase(plotName.find(".dat"));
		plotName += ".gnuplot";
		plotScriptOut.open(plotName.c_str());
		cout<<"  [ "<<plotName<<" ] is generated"<<endl;
		
		plotName = "CasHMC_plot_no";
		plotName += temp_vn.str();
		plotName += ".png";
		
		plotScriptOut<<"set term png size 800, 500 font \"Times-Roman,\""<<endl;
		plotScriptOut<<"set output '"<<plotName<<"'"<<endl;
		plotScriptOut<<"set title \"CasHMC bandwidth graph\" font \",18\""<<endl;
		plotScriptOut<<"set autoscale"<<endl;
		plotScriptOut<<"set grid"<<endl;
		plotScriptOut<<"set xlabel \"Simulation plot epoch\""<<endl;
		plotScriptOut<<"set ylabel \"Bandwidth [GB/s]\""<<endl;
		plotScriptOut<<"set key left box"<<endl;
		plotScriptOut<<"plot  \"CasHMC_plot_no"<<ver_num<<".dat\" using 1:"<<NUM_LINKS+2<<" title 'HMC' with lines lw 2 , \\"<<endl;
		for(int i=0; i<NUM_LINKS; i++) {
			plotScriptOut<<"      \"CasHMC_plot_no"<<ver_num<<".dat\" using 1:"<<i+2<<" title 'Link["<<i<<"]' with lines lw 1 , \\"<<endl;
		}
	}
	
	settingOut.open(logName.c_str());
	PrintSetting(t);
	cout<<"  [ "<<logName<<" ] is generated"<<endl;
	
	logName.erase(logName.find("_s"));
	logNum = 0;
	PrintEpochHeader();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4f8, %rsp            # imm = 0x4F8
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x12408
leaq 0x353e2(%rip), %rax     # 0x3b900
movq %rax, (%r15)
leaq 0x338(%r15), %r12
leaq 0x350(%r15), %r13
leaq 0x3a8(%r15), %rax
movq %rax, 0x60(%rsp)
leaq 0x3b8(%r15), %rax
xorpd %xmm0, %xmm0
movupd %xmm0, 0x338(%r15)
movupd %xmm0, 0x348(%r15)
movupd %xmm0, 0x358(%r15)
movq %rax, 0x120(%rsp)
movq %rax, 0x3a8(%r15)
movq $0x0, 0x3b0(%r15)
movb $0x0, 0x3b8(%r15)
leaq 0x3e8(%r15), %rax
movq %rax, 0xf8(%rsp)
leaq 0x400(%r15), %rax
movq %rax, 0xf0(%rsp)
leaq 0x418(%r15), %rdi
movupd %xmm0, 0x3e8(%r15)
movupd %xmm0, 0x3f8(%r15)
movupd %xmm0, 0x408(%r15)
movq %rdi, 0x100(%rsp)
movq %r15, 0x40(%rsp)
callq 0x44f0
leaq 0x618(%r15), %rdi
movq %rdi, 0x70(%rsp)
callq 0x44f0
leaq 0x818(%r15), %rdi
movq %rdi, 0x68(%rsp)
callq 0x44f0
leaq 0xa18(%r15), %rdi
movq %rdi, 0x58(%rsp)
callq 0x44f0
leaq 0xc18(%r15), %rdi
movq %rdi, 0x38(%rsp)
callq 0x44f0
leaq 0xe18(%r15), %rdi
movq %rdi, 0x118(%rsp)
callq 0x44f0
leaq 0x178(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x168(%rsp), %rdi
callq 0x1430e
leaq 0x168(%rsp), %rdi
callq 0x18208
movq 0x168(%rsp), %rdi
cmpq %r15, %rdi
je 0x667a
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x4300
leaq 0x158(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x148(%rsp), %rdi
callq 0x1430e
leaq 0x148(%rsp), %rdi
callq 0x18208
movq 0x148(%rsp), %rdi
cmpq %r15, %rdi
je 0x66c7
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x4300
movq 0x40(%rsp), %rdi
callq 0x1318c
movq 0x40(%rsp), %rcx
movq $0x0, 0x370(%rcx)
movl $0x1, %eax
movq %rax, 0x378(%rcx)
movq %rax, 0x380(%rcx)
movq %rax, 0x388(%rcx)
movq %rax, 0x390(%rcx)
movq %rax, 0x398(%rcx)
leaq 0x35da0(%rip), %rax     # 0x3c4b0
movsd 0x2a998(%rip), %xmm0    # 0x310b0
divsd (%rax), %xmm0
movsd %xmm0, 0x3a0(%rcx)
leaq 0x35d7d(%rip), %rbx     # 0x3c4a8
movslq (%rbx), %rsi
movq %r12, %rdi
callq 0x1382c
movslq (%rbx), %rsi
movq %r13, %rdi
callq 0x1382c
cmpl $0x0, (%rbx)
jle 0x67e0
xorl %ebx, %ebx
leaq 0x370(%rsp), %r14
movl $0x200, %edi            # imm = 0x200
callq 0x42f0
movq %rax, %r15
movq %rax, %rdi
movq 0x70(%rsp), %rsi
movq 0x68(%rsp), %rdx
movl %ebx, %ecx
movl $0x1, %r8d
movq 0x40(%rsp), %r9
callq 0x21ee8
movq %r15, 0x370(%rsp)
movq %r12, %rdi
movq %r14, %rsi
callq 0x143fa
movl $0x200, %edi            # imm = 0x200
callq 0x42f0
movq %rax, %r15
movq %rax, %rdi
movq 0x70(%rsp), %rsi
movq 0x68(%rsp), %rdx
movl %ebx, %ecx
xorl %r8d, %r8d
movq 0x40(%rsp), %r9
callq 0x21ee8
movq %r15, 0x370(%rsp)
movq %r13, %rdi
movq %r14, %rsi
callq 0x143fa
incl %ebx
leaq 0x35cd0(%rip), %rax     # 0x3c4a8
cmpl (%rax), %ebx
jl 0x6754
movl $0x360, %edi            # imm = 0x360
callq 0x42f0
leaq 0x35cb7(%rip), %r14     # 0x3c4a8
movq %rax, %rbx
movq %rax, %rdi
movq 0x70(%rsp), %rsi
movq 0x68(%rsp), %rdx
callq 0x1e304
movq 0x40(%rsp), %rax
movq %rbx, 0x330(%rax)
movl $0x238, %edi            # imm = 0x238
callq 0x42f0
movq %rax, %rbx
movq %rax, %rdi
movq 0x70(%rsp), %rsi
movq 0x68(%rsp), %rdx
callq 0x1d468
movq 0x40(%rsp), %r10
movq %rbx, 0x368(%r10)
movslq (%r14), %rax
testq %rax, %rax
jle 0x697b
xorl %ecx, %ecx
movq 0x330(%r10), %rdx
movq 0x338(%r10), %rsi
movq (%rsi,%rcx,8), %rdi
movq 0x208(%rdx), %r8
movq (%r8,%rcx,8), %r9
movq %rdi, 0x210(%r9)
movq 0x220(%rdx), %rdx
movq (%rdx,%rcx,8), %rdx
movq (%r8,%rcx,8), %rdi
movq %rdx, 0x218(%rdi)
movq (%r8,%rcx,8), %rdx
movq (%rsi,%rcx,8), %rdi
movq %rdx, 0x1d8(%rdi)
movq 0x368(%r10), %rdx
movq 0x1d0(%rdx), %rdi
movq (%rdi,%rcx,8), %r8
movq (%rsi,%rcx,8), %rsi
movq %r8, 0x1e8(%rsi)
movq 0x200(%rdx), %rsi
movq (%rdi,%rcx,8), %r8
movq %rsi, 0x208(%r8)
movq 0x1e8(%rdx), %rdx
movq (%rdx,%rcx,8), %r8
movq (%rdi,%rcx,8), %rdi
movq %r8, 0x218(%rdi)
movq (%rdx,%rcx,8), %rdx
movq 0x220(%rsi), %rsi
movq %rdx, (%rsi,%rcx,8)
movq 0x350(%r10), %rdx
movq 0x368(%r10), %rsi
movq (%rdx,%rcx,8), %rdi
movq 0x1e8(%rsi), %r8
movq (%r8,%rcx,8), %r9
movq %rdi, 0x210(%r9)
movq 0x1d0(%rsi), %rsi
movq (%rsi,%rcx,8), %rsi
movq (%r8,%rcx,8), %rdi
movq %rsi, 0x218(%rdi)
movq (%r8,%rcx,8), %rsi
movq (%rdx,%rcx,8), %rdi
movq %rsi, 0x1d8(%rdi)
movq 0x330(%r10), %rsi
movq 0x220(%rsi), %rdi
movq (%rdi,%rcx,8), %r8
movq (%rdx,%rcx,8), %rdx
movq %r8, 0x1e8(%rdx)
movq (%rdi,%rcx,8), %rdx
movq %rsi, 0x210(%rdx)
movq 0x208(%rsi), %rdx
movq (%rdx,%rcx,8), %rdx
movq (%rdi,%rcx,8), %rsi
movq %rdx, 0x218(%rsi)
incq %rcx
cmpq %rcx, %rax
jne 0x684b
leaq 0x35b16(%rip), %r14     # 0x3c498
movsd 0x3a0(%r10), %xmm0
ucomisd (%r14), %xmm0
ja 0x8192
leaq 0x2a859(%rip), %rdi     # 0x311f6
movl $0x1ff, %esi            # imm = 0x1FF
callq 0x4160
movl %eax, %r14d
leaq 0x2a84c(%rip), %rdi     # 0x311fd
movl $0x1ff, %esi            # imm = 0x1FF
callq 0x4160
movl %eax, 0xa8(%rsp)
leaq 0x1e0(%rsp), %rbx
movq %rbx, %rdi
callq 0x42a0
movq %rbx, %rdi
callq 0x4230
movl (%rax), %ecx
movl %ecx, 0x98(%rsp)
movl 0x4(%rax), %ecx
movl %ecx, 0x9c(%rsp)
movl 0x8(%rax), %ecx
movl %ecx, 0xa0(%rsp)
movl 0xc(%rax), %ecx
movl %ecx, 0xa4(%rsp)
movl 0x10(%rax), %ecx
movq %rcx, 0x108(%rsp)
movl 0x14(%rax), %ecx
movq %rcx, 0x110(%rsp)
movups 0x28(%rax), %xmm0
movaps %xmm0, 0x1d0(%rsp)
movupd 0x18(%rax), %xmm0
movapd %xmm0, 0x1c0(%rsp)
movq 0x35598(%rip), %rdi     # 0x3bfd0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x3557d(%rip), %rdi     # 0x3bfd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq %rax, %rbx
leaq 0x2a799(%rip), %rsi     # 0x31203
movl $0x40, %edx
movq %rax, %rdi
callq 0x4340
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x3552b(%rip), %rbx     # 0x3bfd0
leaq 0x2a798(%rip), %rsi     # 0x31244
movl $0x40, %edx
movq %rbx, %rdi
callq 0x4340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x354f9(%rip), %rdi     # 0x3bfd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x354e5(%rip), %rdi     # 0x3bfd0
leaq 0x2a793(%rip), %rsi     # 0x31285
movl $0x14, %edx
callq 0x4340
movq 0x110(%rsp), %rax
leal 0x76c(%rax), %esi
movq 0x354bf(%rip), %rdi     # 0x3bfd0
callq 0x4500
movq %rax, %rbx
leaq 0x2a77a(%rip), %rsi     # 0x3129a
movl $0x1, %edx
movq %rax, %rdi
callq 0x4340
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movq $0x2, 0x10(%rbx,%rcx)
movq -0x18(%rax), %rax
movq %rbx, %r15
addq %rax, %r15
cmpb $0x0, 0xe1(%rbx,%rax)
jne 0x6b6d
movq %r15, %rdi
movl $0x20, %esi
callq 0x42d0
movb %al, 0xe0(%r15)
movb $0x1, 0xe1(%r15)
movb $0x30, 0xe0(%r15)
movq 0x108(%rsp), %rax
leal 0x1(%rax), %esi
movq %rbx, %rdi
callq 0x4500
movq %rax, %rbx
leaq 0x2a708(%rip), %rsi     # 0x3129a
movl $0x1, %edx
movq %rax, %rdi
callq 0x4340
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movq $0x2, 0x10(%rbx,%rcx)
movq -0x18(%rax), %rax
movq %rbx, %r15
addq %rax, %r15
cmpb $0x0, 0xe1(%rbx,%rax)
jne 0x6bdf
movq %r15, %rdi
movl $0x20, %esi
callq 0x42d0
movb %al, 0xe0(%r15)
movb $0x1, 0xe1(%r15)
movb $0x30, 0xe0(%r15)
movq %rbx, %rdi
movl 0xa4(%rsp), %esi
callq 0x4500
movq %rax, %rbx
leaq 0x2a69c(%rip), %rsi     # 0x3129c
movl $0xd, %edx
movq %rax, %rdi
callq 0x4340
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movq $0x2, 0x10(%rbx,%rcx)
movq -0x18(%rax), %rax
movq %rbx, %r15
addq %rax, %r15
cmpb $0x0, 0xe1(%rbx,%rax)
jne 0x6c4d
movq %r15, %rdi
movl $0x20, %esi
callq 0x42d0
movb %al, 0xe0(%r15)
movb $0x1, 0xe1(%r15)
movb $0x30, 0xe0(%r15)
movq %rbx, %rdi
movl 0xa0(%rsp), %esi
callq 0x4500
movq %rax, %rbx
leaq 0x2abc9(%rip), %rsi     # 0x31837
movl $0x1, %edx
movq %rax, %rdi
callq 0x4340
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movq $0x2, 0x10(%rbx,%rcx)
movq -0x18(%rax), %rax
movq %rbx, %r15
addq %rax, %r15
cmpb $0x0, 0xe1(%rbx,%rax)
jne 0x6cbb
movq %r15, %rdi
movl $0x20, %esi
callq 0x42d0
movb %al, 0xe0(%r15)
movb $0x1, 0xe1(%r15)
movb $0x30, 0xe0(%r15)
movq %rbx, %rdi
movl 0x9c(%rsp), %esi
callq 0x4500
movq %rax, %rbx
leaq 0x2ab5b(%rip), %rsi     # 0x31837
movl $0x1, %edx
movq %rax, %rdi
callq 0x4340
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movq $0x2, 0x10(%rbx,%rcx)
movq -0x18(%rax), %rax
movq %rbx, %r15
addq %rax, %r15
cmpb $0x0, 0xe1(%rbx,%rax)
jne 0x6d29
movq %r15, %rdi
movl $0x20, %esi
callq 0x42d0
movb %al, 0xe0(%r15)
movb $0x1, 0xe1(%r15)
movb $0x30, 0xe0(%r15)
movq %rbx, %rdi
movl 0x98(%rsp), %esi
callq 0x4500
movq %rax, %rbx
leaq 0x2a593(%rip), %rsi     # 0x312dd
movl $0xd, %edx
movq %rax, %rdi
callq 0x4340
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x3524b(%rip), %rbx     # 0x3bfd0
leaq 0x2a51e(%rip), %rsi     # 0x312aa
movl $0x40, %edx
movq %rbx, %rdi
callq 0x4340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x35219(%rip), %rdi     # 0x3bfd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x35205(%rip), %rbx     # 0x3bfd0
leaq 0x2a519(%rip), %rsi     # 0x312eb
movl $0x40, %edx
movq %rbx, %rdi
callq 0x4340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x351d3(%rip), %rdi     # 0x3bfd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x351bf(%rip), %rbx     # 0x3bfd0
leaq 0x2a514(%rip), %rsi     # 0x3132c
movl $0x40, %edx
movq %rbx, %rdi
callq 0x4340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x3518d(%rip), %rdi     # 0x3bfd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x35179(%rip), %rbx     # 0x3bfd0
leaq 0x2a50f(%rip), %rsi     # 0x3136d
movl $0x40, %edx
movq %rbx, %rdi
callq 0x4340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x35147(%rip), %rdi     # 0x3bfd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x35133(%rip), %rbx     # 0x3bfd0
leaq 0x2a50a(%rip), %rsi     # 0x313ae
movl $0x40, %edx
movq %rbx, %rdi
callq 0x4340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x35101(%rip), %rdi     # 0x3bfd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x350ed(%rip), %rbx     # 0x3bfd0
leaq 0x2a505(%rip), %rsi     # 0x313ef
movl $0x40, %edx
movq %rbx, %rdi
callq 0x4340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x350bb(%rip), %rdi     # 0x3bfd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x350a7(%rip), %rbx     # 0x3bfd0
leaq 0x2a500(%rip), %rsi     # 0x31430
movl $0x40, %edx
movq %rbx, %rdi
callq 0x4340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x35075(%rip), %rdi     # 0x3bfd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x35061(%rip), %rbx     # 0x3bfd0
leaq 0x2a4fb(%rip), %rsi     # 0x31471
movl $0x40, %edx
movq %rbx, %rdi
callq 0x4340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x3502f(%rip), %rdi     # 0x3bfd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x3501b(%rip), %rbx     # 0x3bfd0
leaq 0x2a4f6(%rip), %rsi     # 0x314b2
movl $0x40, %edx
movq %rbx, %rdi
callq 0x4340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x34fe9(%rip), %rdi     # 0x3bfd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x34fd5(%rip), %rbx     # 0x3bfd0
leaq 0x2a4f1(%rip), %rsi     # 0x314f3
movl $0x40, %edx
movq %rbx, %rdi
callq 0x4340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x34fa3(%rip), %rdi     # 0x3bfd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x34f8f(%rip), %rbx     # 0x3bfd0
leaq 0x2a1bb(%rip), %rsi     # 0x31203
movl $0x40, %edx
movq %rbx, %rdi
callq 0x4340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x34f5d(%rip), %rbx     # 0x3bfd0
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq %r15, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq (%rbx), %rax
movq -0x18(%rax), %rax
orl $0x20, 0x18(%rbx,%rax)
leaq 0x2a474(%rip), %rsi     # 0x31534
movl $0x24, %edx
movq %rbx, %rdi
callq 0x4340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x34ee5(%rip), %rdi     # 0x3bfd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
testl %r14d, %r14d
je 0x7110
callq 0x4060
cmpl $0x11, (%rax)
jne 0x715e
leaq 0x2a477(%rip), %rsi     # 0x31585
jmp 0x7117
leaq 0x2a442(%rip), %rsi     # 0x31559
movq 0x34eb2(%rip), %rbx     # 0x3bfd0
movl $0x2b, %edx
movq %rbx, %rdi
callq 0x4340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x34e87(%rip), %rdi     # 0x3bfd0
callq 0x4040
movb $0x1, %bpl
movq %rax, %rdi
callq 0x41f0
jmp 0x7216
movq 0x34e6b(%rip), %rbx     # 0x3bfd0
leaq 0x2a445(%rip), %rsi     # 0x315b1
movl $0x1c, %edx
movq %rbx, %rdi
callq 0x4340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x34e39(%rip), %rdi     # 0x3bfd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x34e25(%rip), %rbx     # 0x3bfd0
leaq 0x2a41c(%rip), %rsi     # 0x315ce
movl $0x41, %edx
movq %rbx, %rdi
callq 0x4340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x34df3(%rip), %rdi     # 0x3bfd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
xorl %ebp, %ebp
cmpl $0x0, 0xa8(%rsp)
je 0x7233
callq 0x4060
cmpl $0x11, (%rax)
jne 0x7280
leaq 0x2a409(%rip), %rsi     # 0x3163a
jmp 0x723a
leaq 0x2a3d6(%rip), %rsi     # 0x31610
movq 0x34d8f(%rip), %rbx     # 0x3bfd0
movl $0x29, %edx
movq %rbx, %rdi
callq 0x4340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x34d64(%rip), %rdi     # 0x3bfd0
callq 0x4040
movb $0x1, %bl
movq %rax, %rdi
callq 0x41f0
jmp 0x7338
movq 0x34d49(%rip), %rbx     # 0x3bfd0
leaq 0x2a3d6(%rip), %rsi     # 0x31664
movl $0x1b, %edx
movq %rbx, %rdi
callq 0x4340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x34d17(%rip), %rdi     # 0x3bfd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x34d03(%rip), %rbx     # 0x3bfd0
leaq 0x2a3ac(%rip), %rsi     # 0x31680
movl $0x36, %edx
movq %rbx, %rdi
callq 0x4340
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x34cd1(%rip), %rdi     # 0x3bfd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
xorl %ebx, %ebx
movq 0x40(%rsp), %rax
movq 0x3b0(%rax), %rdx
leaq 0x2a36c(%rip), %rax     # 0x316b7
leaq 0x2a36c(%rip), %rcx     # 0x316be
testb %bpl, %bpl
cmovneq %rax, %rcx
movl $0xd, %eax
movl $0x6, %r8d
cmovneq %rax, %r8
movq 0x60(%rsp), %rdi
xorl %esi, %esi
callq 0x4440
leaq 0x88(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x2a333(%rip), %rax     # 0x316c5
leaq 0x2a4c8(%rip), %rcx     # 0x31861
testb %bl, %bl
cmovneq %rax, %rcx
movl $0x14, %eax
movl $0xe, %r8d
cmovneq %rax, %r8
leaq 0x78(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4440
movq %r13, 0x48(%rsp)
movq %r12, 0x50(%rsp)
leaq 0x370(%rsp), %rdi
callq 0x4200
xorl %r14d, %r14d
leaq 0x2a48f(%rip), %rbp     # 0x3186c
leaq 0x1e8(%rsp), %r12
leaq 0x2a2ee(%rip), %rbx     # 0x316da
xorl %r15d, %r15d
movq 0x60(%rsp), %rdi
movq %rbp, %rsi
callq 0x4580
movl %r15d, %esi
leaq 0x380(%rsp), %rdi
movq %rsi, 0xa8(%rsp)
callq 0x41e0
movq %r12, %rdi
leaq 0x388(%rsp), %rsi
callq 0x4450
movq 0x1e8(%rsp), %rsi
movq 0x1f0(%rsp), %rdx
movq 0x60(%rsp), %rdi
callq 0x4110
movq 0x1e8(%rsp), %rdi
leaq 0x1f8(%rsp), %rax
cmpq %rax, %rdi
je 0x7463
movq 0x1f8(%rsp), %rsi
incq %rsi
callq 0x4300
movq 0x60(%rsp), %rdi
movq %rbx, %rsi
callq 0x4580
movq 0x60(%rsp), %r13
movq (%r13), %rdi
xorl %esi, %esi
callq 0x44b0
cmpl $-0x1, %eax
je 0x7539
movl $0x3, %ecx
movq %r13, %rdi
movq %rbp, %rsi
xorl %edx, %edx
callq 0x4510
movq 0x40(%rsp), %rdx
movq 0x3b0(%rdx), %rcx
cmpq %rax, %rcx
jb 0x817a
movq %rax, 0x3b0(%rdx)
movq 0x3a8(%rdx), %rcx
movb %r14b, (%rcx,%rax)
leaq 0x1f8(%rsp), %r13
movq %r13, 0x1e8(%rsp)
movq $0x0, 0x1f0(%rsp)
movb %r14b, 0x1f8(%rsp)
leaq 0x388(%rsp), %rdi
movq %r12, %rsi
callq 0x4400
movq 0x1e8(%rsp), %rdi
cmpq %r13, %rdi
je 0x7513
movq 0x1f8(%rsp), %rsi
incq %rsi
callq 0x4300
movq 0x370(%rsp), %rax
movq -0x18(%rax), %rdi
leaq 0x370(%rsp), %rax
addq %rax, %rdi
xorl %esi, %esi
callq 0x44e0
incl %r15d
jmp 0x73ef
movq 0x34a90(%rip), %rdi     # 0x3bfd0
movq (%rdi), %rax
movq -0x18(%rax), %rcx
orl $0x20, 0x18(%rdi,%rcx)
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x34a6c(%rip), %rdi     # 0x3bfd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq %rax, %rbx
leaq 0x2a16c(%rip), %rsi     # 0x316e7
movl $0x1c, %edx
movq %rax, %rdi
callq 0x4340
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
leaq 0x34eda(%rip), %rax     # 0x3c490
cmpb $0x1, (%rax)
jne 0x7f97
xorl %eax, %eax
movq 0x40(%rsp), %rcx
movq %rax, 0x3e0(%rcx)
leaq 0x34ed4(%rip), %rcx     # 0x3c4a8
movslq (%rcx), %rsi
leaq 0xd0(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x1e8(%rsp), %rdi
leaq 0xb0(%rsp), %rcx
callq 0x138c2
leaq 0x1e8(%rsp), %rbx
movq 0xf8(%rsp), %rdi
movq %rbx, %rsi
callq 0x1439e
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x7627
movq 0x1f8(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
leaq 0x34e7a(%rip), %rax     # 0x3c4a8
movslq (%rax), %rsi
leaq 0xd0(%rsp), %rdx
movq $0x0, (%rdx)
leaq 0x1e8(%rsp), %rdi
leaq 0xb0(%rsp), %rcx
callq 0x138c2
leaq 0x1e8(%rsp), %rbx
movq 0xf0(%rsp), %rdi
movq %rbx, %rsi
callq 0x1439e
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x7685
movq 0x1f8(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
leaq 0x1e8(%rsp), %rdi
leaq 0x388(%rsp), %rsi
callq 0x4450
movq 0x1e8(%rsp), %rsi
movq 0x1f0(%rsp), %rdx
leaq 0x78(%rsp), %rdi
callq 0x4110
movq 0x1e8(%rsp), %rdi
leaq 0x1f8(%rsp), %rax
cmpq %rax, %rdi
je 0x76d9
movq 0x1f8(%rsp), %rsi
incq %rsi
callq 0x4300
leaq 0x2a024(%rip), %rsi     # 0x31704
leaq 0x78(%rsp), %rdi
callq 0x4580
movq 0x78(%rsp), %rsi
movq 0x58(%rsp), %rdi
movl $0x10, %edx
callq 0x4070
movq 0x58(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rax
orl $0x20, 0x18(%rcx,%rax)
movq 0x348ba(%rip), %rdi     # 0x3bfd0
leaq 0x29fec(%rip), %rsi     # 0x31709
movl $0x4, %edx
callq 0x4340
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
movq 0x34895(%rip), %rdi     # 0x3bfd0
callq 0x4340
movq %rax, %rbx
leaq 0x29fc4(%rip), %rsi     # 0x3170e
movl $0xf, %edx
movq %rax, %rdi
callq 0x4340
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x58(%rsp), %rdx
movq (%rdx), %rax
movq -0x18(%rax), %rcx
movq $0x8, 0x10(%rdx,%rcx)
movq -0x18(%rax), %rax
leaq (%rdx,%rax), %rbx
cmpb $0x0, 0xe1(%rdx,%rax)
jne 0x77bf
movq %rbx, %rdi
movl $0x20, %esi
callq 0x42d0
movb %al, 0xe0(%rbx)
movb $0x1, 0xe1(%rbx)
movb $0x20, 0xe0(%rbx)
leaq 0x29f51(%rip), %rsi     # 0x3171e
movl $0x6, %edx
movq 0x58(%rsp), %rdi
callq 0x4340
leaq 0x34cc5(%rip), %rax     # 0x3c4a8
cmpl $0x0, (%rax)
jle 0x7a12
leaq 0xc0(%rsp), %r12
leaq 0xe0(%rsp), %r13
xorl %ebp, %ebp
leaq 0x1e8(%rsp), %rbx
leaq 0x128(%rsp), %r15
movq %rbx, %r14
movq %rbx, %rdi
callq 0x4200
leaq 0x1f8(%rsp), %rdi
movl %ebp, %esi
callq 0x4500
movq %r15, %rdi
leaq 0x200(%rsp), %rsi
callq 0x4450
movl $0x5, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x2a02c(%rip), %rcx     # 0x31878
callq 0x4320
movq %r12, 0xb0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x787d
movq %rdx, 0xb0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xc0(%rsp)
jmp 0x7887
movupd (%rcx), %xmm0
movupd %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0xb8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0xb8(%rsp), %rsi
movl $0x1, %ecx
leaq 0xb0(%rsp), %rdi
xorl %edx, %edx
movl $0x5d, %r8d
callq 0x4570
movq %r13, 0xd0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x78f0
movq %rdx, 0xd0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xe0(%rsp)
jmp 0x78fa
movupd (%rcx), %xmm0
movupd %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0xd8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0xb0(%rsp), %rdi
cmpq %r12, %rdi
je 0x7932
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x4300
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0x7957
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x4300
movq 0x40(%rsp), %rdx
movq 0xa18(%rdx), %rax
movq -0x18(%rax), %rcx
movq $0xa, 0xa28(%rdx,%rcx)
movq -0x18(%rax), %rax
movq 0x58(%rsp), %rcx
leaq (%rcx,%rax), %rbx
cmpb $0x0, 0xaf9(%rdx,%rax)
jne 0x79a4
movq %rbx, %rdi
movl $0x20, %esi
callq 0x42d0
movb %al, 0xe0(%rbx)
movb $0x1, 0xe1(%rbx)
movb $0x20, 0xe0(%rbx)
movq 0xd0(%rsp), %rsi
movq 0xd8(%rsp), %rdx
movq 0x58(%rsp), %rdi
callq 0x4340
movq 0xd0(%rsp), %rdi
cmpq %r13, %rdi
je 0x79e2
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x4300
movq %r14, %rdi
movq 0x345ac(%rip), %rsi     # 0x3bf98
callq 0x4220
leaq 0x268(%rsp), %rdi
callq 0x4120
movq %r14, %rbx
incl %ebp
leaq 0x34a9e(%rip), %rax     # 0x3c4a8
cmpl (%rax), %ebp
jl 0x780e
movq 0x58(%rsp), %rdx
movq (%rdx), %rax
movq -0x18(%rax), %rcx
movq $0xa, 0x10(%rdx,%rcx)
movq -0x18(%rax), %rax
leaq (%rdx,%rax), %rbx
cmpb $0x0, 0xe1(%rdx,%rax)
jne 0x7a53
movq %rbx, %rdi
movl $0x20, %esi
callq 0x42d0
movb %al, 0xe0(%rbx)
movb $0x1, 0xe1(%rbx)
movb $0x20, 0xe0(%rbx)
leaq 0x29cc4(%rip), %rsi     # 0x31725
movl $0xd, %edx
movq 0x58(%rsp), %rdi
callq 0x4340
movq 0x58(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x58(%rsp), %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
leaq 0x29c5f(%rip), %rsi     # 0x31704
leaq 0x78(%rsp), %rbx
movl $0x4, %ecx
movq %rbx, %rdi
xorl %edx, %edx
callq 0x4510
movq 0x8(%rbx), %rcx
cmpq %rax, %rcx
jb 0x817a
leaq 0x78(%rsp), %rdi
movq %rax, 0x8(%rdi)
movq (%rdi), %rcx
movb $0x0, (%rcx,%rax)
leaq 0x29c56(%rip), %rsi     # 0x31733
callq 0x4580
movq 0x78(%rsp), %rsi
movq 0x38(%rsp), %rdi
movl $0x10, %edx
callq 0x4070
movq 0x344d3(%rip), %rdi     # 0x3bfd0
leaq 0x29c05(%rip), %rsi     # 0x31709
movl $0x4, %edx
callq 0x4340
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
movq 0x344ae(%rip), %rdi     # 0x3bfd0
callq 0x4340
movq %rax, %rbx
leaq 0x29bdd(%rip), %rsi     # 0x3170e
movl $0xf, %edx
movq %rax, %rdi
callq 0x4340
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
leaq 0x78(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x29cec(%rip), %rcx     # 0x31861
movl $0xe, %r8d
xorl %esi, %esi
callq 0x4440
leaq 0x1e8(%rsp), %rdi
leaq 0x388(%rsp), %rsi
callq 0x4450
movq 0x1e8(%rsp), %rsi
movq 0x1f0(%rsp), %rdx
leaq 0x78(%rsp), %rdi
callq 0x4110
movq 0x1e8(%rsp), %rdi
leaq 0x1f8(%rsp), %rax
cmpq %rax, %rdi
je 0x7bd6
movq 0x1f8(%rsp), %rsi
incq %rsi
callq 0x4300
leaq 0x29b5f(%rip), %rsi     # 0x3173c
leaq 0x78(%rsp), %rdi
callq 0x4580
leaq 0x29b53(%rip), %rsi     # 0x31741
movl $0x2e, %edx
movq 0x38(%rsp), %rdi
callq 0x4340
movq 0x38(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x38(%rsp), %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
leaq 0x29b3e(%rip), %rsi     # 0x31770
movl $0xc, %edx
movq 0x38(%rsp), %rdi
callq 0x4340
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
movq 0x38(%rsp), %rdi
callq 0x4340
movq %rax, %rbx
leaq 0x29b19(%rip), %rsi     # 0x3177b
movl $0x1, %edx
movq %rax, %rdi
callq 0x4340
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
leaq 0x29ae0(%rip), %rsi     # 0x3177d
movl $0x2d, %edx
movq 0x38(%rsp), %rdi
callq 0x4340
movq 0x38(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x38(%rsp), %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
leaq 0x29aca(%rip), %rsi     # 0x317ab
movl $0xd, %edx
movq 0x38(%rsp), %rdi
callq 0x4340
movq 0x38(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x38(%rsp), %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
leaq 0x29a94(%rip), %rsi     # 0x317b9
movl $0x8, %edx
movq 0x38(%rsp), %rdi
callq 0x4340
movq 0x38(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x38(%rsp), %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
leaq 0x29a59(%rip), %rsi     # 0x317c2
movl $0x22, %edx
movq 0x38(%rsp), %rdi
callq 0x4340
movq 0x38(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x38(%rsp), %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
leaq 0x29a38(%rip), %rsi     # 0x317e5
movl $0x1d, %edx
movq 0x38(%rsp), %rdi
callq 0x4340
movq 0x38(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x38(%rsp), %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
leaq 0x29a12(%rip), %rsi     # 0x31803
movl $0x10, %edx
movq 0x38(%rsp), %rdi
callq 0x4340
movq 0x38(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x38(%rsp), %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
leaq 0x299df(%rip), %rsi     # 0x31814
movl $0x15, %edx
movq 0x38(%rsp), %rdi
callq 0x4340
movq 0x38(%rsp), %rdi
movq 0xa8(%rsp), %rsi
callq 0x41e0
movq %rax, %rbx
leaq 0x299ca(%rip), %rsi     # 0x3182a
movl $0xe, %edx
movq %rax, %rdi
callq 0x4340
leaq 0x34634(%rip), %rax     # 0x3c4a8
movl (%rax), %esi
addl $0x2, %esi
movq %rbx, %rdi
callq 0x4500
movq %rax, %rbx
leaq 0x299ae(%rip), %rsi     # 0x31839
movl $0x20, %edx
movq %rax, %rdi
callq 0x4340
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
leaq 0x345e2(%rip), %rax     # 0x3c4a8
cmpl $0x0, (%rax)
jle 0x7f97
xorl %ebx, %ebx
leaq 0x29982(%rip), %r14     # 0x3185a
leaq 0x2994b(%rip), %r12     # 0x3182a
leaq 0x2998a(%rip), %r13     # 0x31870
leaq 0x29991(%rip), %rbp     # 0x3187e
movl $0x15, %edx
movq 0x38(%rsp), %rdi
movq %r14, %rsi
callq 0x4340
movq 0x38(%rsp), %rdi
movq 0xa8(%rsp), %rsi
callq 0x41e0
movq %rax, %r15
movl $0xe, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x4340
leal 0x2(%rbx), %esi
movq %r15, %rdi
callq 0x4500
movq %rax, %r15
movl $0xd, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x4340
movq %r15, %rdi
movl %ebx, %esi
callq 0x4500
movq %rax, %r15
movl $0x16, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x4340
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq %r15, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
incl %ebx
leaq 0x34519(%rip), %rax     # 0x3c4a8
cmpl (%rax), %ebx
jl 0x7eed
movq 0x60(%rsp), %rax
movq (%rax), %rsi
movq 0x100(%rsp), %rdi
movl $0x10, %edx
callq 0x4070
movl 0x98(%rsp), %eax
movl %eax, 0x188(%rsp)
movl 0x9c(%rsp), %eax
movl %eax, 0x18c(%rsp)
movl 0xa0(%rsp), %eax
movl %eax, 0x190(%rsp)
movl 0xa4(%rsp), %eax
movl %eax, 0x194(%rsp)
movq 0x108(%rsp), %rax
movl %eax, 0x198(%rsp)
movq 0x110(%rsp), %rax
movl %eax, 0x19c(%rsp)
movaps 0x1c0(%rsp), %xmm0
movaps 0x1d0(%rsp), %xmm1
movups %xmm0, 0x1a0(%rsp)
movups %xmm1, 0x1b0(%rsp)
movq 0x1b8(%rsp), %rax
movq %rax, 0x30(%rsp)
movupd 0x188(%rsp), %xmm0
movups 0x198(%rsp), %xmm1
movups 0x1a8(%rsp), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movupd %xmm0, (%rsp)
movq 0x40(%rsp), %rdi
callq 0x85ea
movq 0x33f63(%rip), %rdi     # 0x3bfd0
leaq 0x29695(%rip), %rsi     # 0x31709
movl $0x4, %edx
callq 0x4340
movq 0x40(%rsp), %rax
movq 0x3a8(%rax), %rsi
movq 0x3b0(%rax), %rdx
movq 0x33f38(%rip), %rdi     # 0x3bfd0
callq 0x4340
movq %rax, %rbx
leaq 0x29667(%rip), %rsi     # 0x3170e
movl $0xf, %edx
movq %rax, %rdi
callq 0x4340
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
leaq 0x297b3(%rip), %rsi     # 0x31895
movl $0x2, %ecx
movq 0x60(%rsp), %rdi
xorl %edx, %edx
callq 0x4510
movq 0x40(%rsp), %rdi
movq 0x3b0(%rdi), %rcx
cmpq %rax, %rcx
jb 0x817a
movq %rax, 0x3b0(%rdi)
movq 0x3a8(%rdi), %rcx
movb $0x0, (%rcx,%rax)
movl $0x0, 0x3c8(%rdi)
callq 0xab4a
movq 0x33e6c(%rip), %rsi     # 0x3bf98
leaq 0x370(%rsp), %rdi
callq 0x4220
leaq 0x3f0(%rsp), %rdi
callq 0x4120
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x8168
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x4300
addq $0x4f8, %rsp            # imm = 0x4F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2a75e(%rip), %rdi     # 0x328df
leaq 0x2a79e(%rip), %rsi     # 0x32926
movq %rax, %rdx
xorl %eax, %eax
callq 0x4410
movq 0x33e57(%rip), %rdi     # 0x3bff0
leaq 0x28e82(%rip), %rsi     # 0x31022
movl $0x8, %edx
callq 0x4340
movq 0x33e3f(%rip), %rdi     # 0x3bff0
leaq 0x28f8e(%rip), %rsi     # 0x31146
movl $0x19, %edx
callq 0x4340
movq 0x33e27(%rip), %rdi     # 0x3bff0
leaq 0x29667(%rip), %rsi     # 0x31837
movl $0x1, %edx
callq 0x4340
movq 0x33e0f(%rip), %rdi     # 0x3bff0
movl $0x4a, %esi
callq 0x4500
movq %rax, %rbx
leaq 0x28e4c(%rip), %rsi     # 0x31041
movl $0x4, %edx
movq %rax, %rdi
callq 0x4340
leaq 0x28f57(%rip), %rsi     # 0x31160
movl $0x65, %edx
movq %rbx, %rdi
callq 0x4340
movq %rbx, %rdi
callq 0x4170
movq 0x33dcb(%rip), %rdi     # 0x3bff0
leaq 0x28df6(%rip), %rsi     # 0x31022
movl $0x8, %edx
callq 0x4340
movq 0x33db3(%rip), %rdi     # 0x3bff0
leaq 0x28f02(%rip), %rsi     # 0x31146
movl $0x19, %edx
callq 0x4340
movq 0x33d9b(%rip), %rdi     # 0x3bff0
leaq 0x295db(%rip), %rsi     # 0x31837
movl $0x1, %edx
callq 0x4340
movq 0x33d83(%rip), %rdi     # 0x3bff0
movl $0x4b, %esi
callq 0x4500
movq %rax, %rbx
leaq 0x28dc0(%rip), %rsi     # 0x31041
movl $0x4, %edx
movq %rax, %rdi
callq 0x4340
leaq 0x28f31(%rip), %rsi     # 0x311c6
movl $0x1d, %edx
movq %rbx, %rdi
callq 0x4340
movsd (%r14), %xmm0
movq %rbx, %rdi
callq 0x4460
movq %rax, %rbx
leaq 0x28f2b(%rip), %rsi     # 0x311e4
movl $0x11, %edx
movq %rax, %rdi
callq 0x4340
movq 0x40(%rsp), %rax
movsd 0x3a0(%rax), %xmm0
movq %rbx, %rdi
callq 0x4460
movq %rax, %rdi
callq 0x4170
xorl %edi, %edi
callq 0x4360
jmp 0x846c
jmp 0x84a3
jmp 0x846c
jmp 0x84a3
jmp 0x84a3
jmp 0x84a3
movq %rax, %r14
movq 0x50(%rsp), %r12
movq 0x48(%rsp), %r13
jmp 0x84d1
movq %rax, %r14
jmp 0x84d1
movq %rax, %r14
movl $0x238, %esi            # imm = 0x238
jmp 0x8334
movq %rax, %r14
movl $0x360, %esi            # imm = 0x360
movq %rbx, %rdi
jmp 0x84ee
movq %rax, %r14
movq 0x148(%rsp), %rdi
cmpq %r15, %rdi
je 0x84f3
movq 0x158(%rsp), %rsi
jmp 0x84eb
movq %rax, %r14
movq 0x168(%rsp), %rdi
cmpq %r15, %rdi
je 0x84f3
movq 0x178(%rsp), %rsi
jmp 0x84eb
movq %rax, %r14
jmp 0x8500
movq %rax, %r14
jmp 0x850a
movq %rax, %r14
jmp 0x8514
movq %rax, %r14
jmp 0x851e
movq %rax, %r14
jmp 0x8528
movq %rax, %r14
jmp 0x8535
jmp 0x849c
jmp 0x84a3
jmp 0x83ba
movq %rax, %r14
jmp 0x8423
movq %rax, %r14
jmp 0x83e4
movq %rax, %r14
movq 0xb0(%rsp), %rdi
cmpq %r12, %rdi
je 0x83e4
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x4300
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0x8423
movq 0x138(%rsp), %rsi
jmp 0x841b
movq %rax, %r14
movq 0xd0(%rsp), %rdi
cmpq %r13, %rdi
je 0x8423
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x4300
movq 0x33b6e(%rip), %rsi     # 0x3bf98
leaq 0x1e8(%rsp), %rdi
callq 0x4220
leaq 0x268(%rsp), %rdi
callq 0x4120
jmp 0x84a6
jmp 0x8448
movq %rax, %r14
movl $0x200, %esi            # imm = 0x200
movq %r15, %rdi
jmp 0x84ee
movq %rax, %r14
movq 0x1e8(%rsp), %rdi
cmpq %r13, %rdi
jne 0x8484
jmp 0x84a6
jmp 0x84a3
movq %rax, %r14
movq 0x1e8(%rsp), %rdi
leaq 0x1f8(%rsp), %rax
cmpq %rax, %rdi
je 0x84a6
movq 0x1f8(%rsp), %rsi
incq %rsi
callq 0x4300
jmp 0x84a6
jmp 0x849c
jmp 0x849c
jmp 0x84a3
movq %rax, %r14
jmp 0x84f3
jmp 0x84a3
movq %rax, %r14
movq 0x50(%rsp), %r12
movq 0x48(%rsp), %r13
movq 0x33ae1(%rip), %rsi     # 0x3bf98
leaq 0x370(%rsp), %rdi
callq 0x4220
leaq 0x3f0(%rsp), %rdi
callq 0x4120
leaq 0x88(%rsp), %rax
movq 0x78(%rsp), %rdi
cmpq %rax, %rdi
je 0x84f3
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x4300
movq 0x118(%rsp), %rdi
callq 0x43f0
movq 0x38(%rsp), %rdi
callq 0x43f0
movq 0x58(%rsp), %rdi
callq 0x43f0
movq 0x68(%rsp), %rdi
callq 0x43f0
movq 0x70(%rsp), %rdi
callq 0x43f0
movq 0x100(%rsp), %rdi
callq 0x43f0
movq 0xf0(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x8559
movq 0x40(%rsp), %rax
movq 0x410(%rax), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0xf8(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x857d
movq 0x40(%rsp), %rax
movq 0x3f8(%rax), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x60(%rsp), %rax
movq (%rax), %rdi
movq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0x859d
movq (%rax), %rsi
incq %rsi
callq 0x4300
movq (%r13), %rdi
testq %rdi, %rdi
je 0x85ba
movq 0x40(%rsp), %rax
movq 0x360(%rax), %rsi
subq %rdi, %rsi
callq 0x4300
movq (%r12), %rdi
testq %rdi, %rdi
je 0x85d7
movq 0x40(%rsp), %rax
movq 0x348(%rax), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x40(%rsp), %rdi
callq 0x13bac
movq %r14, %rdi
callq 0x4540
nop