// File: /workspace/github_cpp_makefile_star2_O3/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 0x121c6
leaq 0x34402(%rip), %rax     # 0x3a900
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, 0x110(%rsp)
movq %rax, 0x3a8(%r15)
movq $0x0, 0x3b0(%r15)
movb $0x0, 0x3b8(%r15)
leaq 0x418(%r15), %rdi
movupd %xmm0, 0x3e8(%r15)
movupd %xmm0, 0x3f8(%r15)
movupd %xmm0, 0x408(%r15)
movq %rdi, 0xf0(%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, 0x108(%rsp)
callq 0x44f0
leaq 0x168(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x158(%rsp), %rdi
callq 0x13ebc
leaq 0x158(%rsp), %rdi
callq 0x17a2c
movq 0x158(%rsp), %rdi
cmpq %r15, %rdi
je 0x663c
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x4300
leaq 0x148(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x138(%rsp), %rdi
callq 0x13ebc
leaq 0x138(%rsp), %rdi
callq 0x17a2c
movq 0x138(%rsp), %rdi
cmpq %r15, %rdi
je 0x6689
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x4300
movq 0x40(%rsp), %rdi
callq 0x12c2e
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 0x34dde(%rip), %rax     # 0x3b4b0
movsd 0x299d6(%rip), %xmm0    # 0x300b0
divsd (%rax), %xmm0
movsd %xmm0, 0x3a0(%rcx)
leaq 0x34dbb(%rip), %rbx     # 0x3b4a8
movslq (%rbx), %rsi
movq %r12, %rdi
callq 0x132ce
movslq (%rbx), %rsi
movq %r13, %rdi
callq 0x132ce
cmpl $0x0, (%rbx)
jle 0x67a2
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 0x21800
movq %r15, 0x370(%rsp)
movq %r12, %rdi
movq %r14, %rsi
callq 0x13f6e
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 0x21800
movq %r15, 0x370(%rsp)
movq %r13, %rdi
movq %r14, %rsi
callq 0x13f6e
incl %ebx
leaq 0x34d0e(%rip), %rax     # 0x3b4a8
cmpl (%rax), %ebx
jl 0x6716
movl $0x360, %edi            # imm = 0x360
callq 0x42f0
leaq 0x34cf5(%rip), %r14     # 0x3b4a8
movq %rax, %rbx
movq %rax, %rdi
movq 0x70(%rsp), %rsi
movq 0x68(%rsp), %rdx
callq 0x1dbac
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 0x1ccd8
movq 0x40(%rsp), %r15
movq %rbx, 0x368(%r15)
movslq (%r14), %rax
testq %rax, %rax
jle 0x692a
movq 0x330(%r15), %rcx
movq 0x208(%rcx), %r8
movq 0x220(%rcx), %rdi
movq 0x1d0(%rbx), %rsi
movq 0x1e8(%rbx), %rdx
xorl %ecx, %ecx
movq 0x338(%r15), %r9
movq (%r9,%rcx,8), %r10
movq (%r8,%rcx,8), %r11
movq %r10, 0x210(%r11)
movq (%rdi,%rcx,8), %rdi
movq (%r8,%rcx,8), %r10
movq %rdi, 0x218(%r10)
movq (%r8,%rcx,8), %rdi
movq (%r9,%rcx,8), %r8
movq %rdi, 0x1d8(%r8)
movq (%rsi,%rcx,8), %rdi
movq (%r9,%rcx,8), %r8
movq %rdi, 0x1e8(%r8)
movq 0x200(%rbx), %r8
movq %r8, 0x208(%rdi)
movq (%rdx,%rcx,8), %rdx
movq (%rsi,%rcx,8), %rsi
movq %rdx, 0x218(%rsi)
movq 0x220(%r8), %rsi
movq %rdx, (%rsi,%rcx,8)
movq 0x350(%r15), %r8
movq 0x368(%r15), %rbx
movq (%r8,%rcx,8), %rsi
movq 0x1e8(%rbx), %rdx
movq (%rdx,%rcx,8), %rdi
movq %rsi, 0x210(%rdi)
movq 0x1d0(%rbx), %rsi
movq (%rsi,%rcx,8), %rdi
movq (%rdx,%rcx,8), %r9
movq %rdi, 0x218(%r9)
movq (%rdx,%rcx,8), %rdi
movq (%r8,%rcx,8), %r9
movq %rdi, 0x1d8(%r9)
movq 0x330(%r15), %r9
movq 0x220(%r9), %rdi
movq (%rdi,%rcx,8), %r10
movq (%r8,%rcx,8), %r8
movq %r10, 0x1e8(%r8)
movq %r9, 0x210(%r10)
movq 0x208(%r9), %r8
movq (%r8,%rcx,8), %r9
movq (%rdi,%rcx,8), %r10
movq %r9, 0x218(%r10)
incq %rcx
cmpq %rcx, %rax
jne 0x6830
leaq 0x34b67(%rip), %r14     # 0x3b498
movsd 0x3a0(%r15), %xmm0
ucomisd (%r14), %xmm0
ja 0x8196
leaq 0x2990a(%rip), %rdi     # 0x30256
movl $0x1ff, %esi            # imm = 0x1FF
callq 0x4160
movl %eax, %r14d
leaq 0x298fd(%rip), %rdi     # 0x3025d
movl $0x1ff, %esi            # imm = 0x1FF
callq 0x4160
movl %eax, 0xa8(%rsp)
leaq 0x368(%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, 0xf8(%rsp)
movl 0x14(%rax), %ecx
movq %rcx, 0x100(%rsp)
movups 0x28(%rax), %xmm0
movaps %xmm0, 0x350(%rsp)
movupd 0x18(%rax), %xmm0
movapd %xmm0, 0x340(%rsp)
movq 0x345e9(%rip), %rdi     # 0x3afd0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq 0x345ce(%rip), %rdi     # 0x3afd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq %rax, %rbx
leaq 0x2984a(%rip), %rsi     # 0x30263
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 0x3457c(%rip), %rbx     # 0x3afd0
leaq 0x29849(%rip), %rsi     # 0x302a4
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 0x3454a(%rip), %rdi     # 0x3afd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x34536(%rip), %rdi     # 0x3afd0
leaq 0x29844(%rip), %rsi     # 0x302e5
movl $0x14, %edx
callq 0x4340
movq 0x100(%rsp), %rax
leal 0x76c(%rax), %esi
movq 0x34510(%rip), %rdi     # 0x3afd0
callq 0x4500
movq %rax, %rbx
leaq 0x2982b(%rip), %rsi     # 0x302fa
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 0x6b15
movq %r15, %rdi
movl $0x20, %esi
callq 0x42d0
movb $0x1, 0xe1(%r15)
movb $0x30, 0xe0(%r15)
movq 0xf8(%rsp), %rax
leal 0x1(%rax), %esi
movq %rbx, %rdi
callq 0x4500
movq %rax, %rbx
leaq 0x297c0(%rip), %rsi     # 0x302fa
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 0x6b80
movq %r15, %rdi
movl $0x20, %esi
callq 0x42d0
movb $0x1, 0xe1(%r15)
movb $0x30, 0xe0(%r15)
movq %rbx, %rdi
movl 0xa4(%rsp), %esi
callq 0x4500
movq %rax, %rbx
leaq 0x2975b(%rip), %rsi     # 0x302fc
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 0x6be7
movq %r15, %rdi
movl $0x20, %esi
callq 0x42d0
movb $0x1, 0xe1(%r15)
movb $0x30, 0xe0(%r15)
movq %rbx, %rdi
movl 0xa0(%rsp), %esi
callq 0x4500
movq %rax, %rbx
leaq 0x29c8f(%rip), %rsi     # 0x30897
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 0x6c4e
movq %r15, %rdi
movl $0x20, %esi
callq 0x42d0
movb $0x1, 0xe1(%r15)
movb $0x30, 0xe0(%r15)
movq %rbx, %rdi
movl 0x9c(%rsp), %esi
callq 0x4500
movq %rax, %rbx
leaq 0x29c28(%rip), %rsi     # 0x30897
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 0x6cb5
movq %r15, %rdi
movl $0x20, %esi
callq 0x42d0
movb $0x1, 0xe1(%r15)
movb $0x30, 0xe0(%r15)
movq %rbx, %rdi
movl 0x98(%rsp), %esi
callq 0x4500
movq %rax, %rbx
leaq 0x29667(%rip), %rsi     # 0x3033d
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 0x342bf(%rip), %rbx     # 0x3afd0
leaq 0x295f2(%rip), %rsi     # 0x3030a
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 0x3428d(%rip), %rdi     # 0x3afd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x34279(%rip), %rbx     # 0x3afd0
leaq 0x295ed(%rip), %rsi     # 0x3034b
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 0x34247(%rip), %rdi     # 0x3afd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x34233(%rip), %rbx     # 0x3afd0
leaq 0x295e8(%rip), %rsi     # 0x3038c
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 0x34201(%rip), %rdi     # 0x3afd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x341ed(%rip), %rbx     # 0x3afd0
leaq 0x295e3(%rip), %rsi     # 0x303cd
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 0x341bb(%rip), %rdi     # 0x3afd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x341a7(%rip), %rbx     # 0x3afd0
leaq 0x295de(%rip), %rsi     # 0x3040e
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 0x34175(%rip), %rdi     # 0x3afd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x34161(%rip), %rbx     # 0x3afd0
leaq 0x295d9(%rip), %rsi     # 0x3044f
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 0x3412f(%rip), %rdi     # 0x3afd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x3411b(%rip), %rbx     # 0x3afd0
leaq 0x295d4(%rip), %rsi     # 0x30490
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 0x340e9(%rip), %rdi     # 0x3afd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x340d5(%rip), %rbx     # 0x3afd0
leaq 0x295cf(%rip), %rsi     # 0x304d1
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 0x340a3(%rip), %rdi     # 0x3afd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x3408f(%rip), %rbx     # 0x3afd0
leaq 0x295ca(%rip), %rsi     # 0x30512
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 0x3405d(%rip), %rdi     # 0x3afd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x34049(%rip), %rbx     # 0x3afd0
leaq 0x295c5(%rip), %rsi     # 0x30553
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 0x34017(%rip), %rdi     # 0x3afd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x34003(%rip), %rbx     # 0x3afd0
leaq 0x2928f(%rip), %rsi     # 0x30263
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 0x33fd1(%rip), %rbx     # 0x3afd0
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 0x29548(%rip), %rsi     # 0x30594
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 0x33f59(%rip), %rdi     # 0x3afd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
testl %r14d, %r14d
je 0x709c
callq 0x4060
cmpl $0x11, (%rax)
jne 0x70ea
leaq 0x2954b(%rip), %rsi     # 0x305e5
jmp 0x70a3
leaq 0x29516(%rip), %rsi     # 0x305b9
movq 0x33f26(%rip), %rbx     # 0x3afd0
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 0x33efb(%rip), %rdi     # 0x3afd0
callq 0x4040
movb $0x1, %bpl
movq %rax, %rdi
callq 0x41f0
jmp 0x71a2
movq 0x33edf(%rip), %rbx     # 0x3afd0
leaq 0x29519(%rip), %rsi     # 0x30611
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 0x33ead(%rip), %rdi     # 0x3afd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x33e99(%rip), %rbx     # 0x3afd0
leaq 0x294f0(%rip), %rsi     # 0x3062e
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 0x33e67(%rip), %rdi     # 0x3afd0
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 0x71bf
callq 0x4060
cmpl $0x11, (%rax)
jne 0x720c
leaq 0x294dd(%rip), %rsi     # 0x3069a
jmp 0x71c6
leaq 0x294aa(%rip), %rsi     # 0x30670
movq 0x33e03(%rip), %rbx     # 0x3afd0
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 0x33dd8(%rip), %rdi     # 0x3afd0
callq 0x4040
movb $0x1, %bl
movq %rax, %rdi
callq 0x41f0
jmp 0x72c4
movq 0x33dbd(%rip), %rbx     # 0x3afd0
leaq 0x294aa(%rip), %rsi     # 0x306c4
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 0x33d8b(%rip), %rdi     # 0x3afd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x33d77(%rip), %rbx     # 0x3afd0
leaq 0x29480(%rip), %rsi     # 0x306e0
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 0x33d45(%rip), %rdi     # 0x3afd0
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 0x29440(%rip), %rax     # 0x30717
leaq 0x29440(%rip), %rcx     # 0x3071e
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 0x29407(%rip), %rax     # 0x30725
leaq 0x2959c(%rip), %rcx     # 0x308c1
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 0x29563(%rip), %rbp     # 0x308cc
leaq 0x1b0(%rsp), %r12
leaq 0x293c2(%rip), %rbx     # 0x3073a
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 0x1b0(%rsp), %rsi
movq 0x1b8(%rsp), %rdx
movq 0x60(%rsp), %rdi
callq 0x4110
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x73ef
movq 0x1c0(%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 0x74c5
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 0x817e
movq %rax, 0x3b0(%rdx)
movq 0x3a8(%rdx), %rcx
movb %r14b, (%rcx,%rax)
leaq 0x1c0(%rsp), %r13
movq %r13, 0x1b0(%rsp)
movq $0x0, 0x1b8(%rsp)
movb %r14b, 0x1c0(%rsp)
leaq 0x388(%rsp), %rdi
movq %r12, %rsi
callq 0x4400
movq 0x1b0(%rsp), %rdi
cmpq %r13, %rdi
je 0x749f
movq 0x1c0(%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 0x737b
movq 0x33b04(%rip), %rdi     # 0x3afd0
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 0x33ae0(%rip), %rdi     # 0x3afd0
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq %rax, %rbx
leaq 0x29240(%rip), %rsi     # 0x30747
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 0x33f4e(%rip), %rax     # 0x3b490
cmpb $0x1, (%rax)
jne 0x7f9b
xorl %eax, %eax
movq 0x40(%rsp), %rbx
movq %rax, 0x3e0(%rbx)
leaq 0x33f48(%rip), %rcx     # 0x3b4a8
movslq (%rcx), %rsi
leaq 0xd0(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x1b0(%rsp), %rdi
leaq 0xb0(%rsp), %rcx
callq 0x1336a
movq 0x3e8(%rbx), %rdi
movq 0x3f8(%rbx), %rsi
movapd 0x1b0(%rsp), %xmm0
movupd %xmm0, 0x3e8(%rbx)
movq 0x1c0(%rsp), %rax
movq %rax, 0x3f8(%rbx)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x1b0(%rsp)
movq $0x0, 0x1c0(%rsp)
testq %rdi, %rdi
je 0x75f4
subq %rdi, %rsi
callq 0x4300
movq 0x1b0(%rsp), %rdi
testq %rdi, %rdi
je 0x75f4
movq 0x1c0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
leaq 0x33ead(%rip), %rax     # 0x3b4a8
movslq (%rax), %rsi
leaq 0xd0(%rsp), %rdx
movq $0x0, (%rdx)
leaq 0x1b0(%rsp), %rdi
leaq 0xb0(%rsp), %rcx
callq 0x1336a
movq 0x40(%rsp), %rcx
movq 0x400(%rcx), %rdi
movq 0x410(%rcx), %rsi
movapd 0x1b0(%rsp), %xmm0
movupd %xmm0, 0x400(%rcx)
movq 0x1c0(%rsp), %rax
movq %rax, 0x410(%rcx)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x1b0(%rsp)
movq $0x0, 0x1c0(%rsp)
testq %rdi, %rdi
je 0x7698
subq %rdi, %rsi
callq 0x4300
movq 0x1b0(%rsp), %rdi
testq %rdi, %rdi
je 0x7698
movq 0x1c0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
leaq 0x1b0(%rsp), %rdi
leaq 0x388(%rsp), %rsi
callq 0x4450
movq 0x1b0(%rsp), %rsi
movq 0x1b8(%rsp), %rdx
leaq 0x78(%rsp), %rdi
callq 0x4110
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x76ec
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x4300
leaq 0x29071(%rip), %rsi     # 0x30764
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 0x338a7(%rip), %rdi     # 0x3afd0
leaq 0x29039(%rip), %rsi     # 0x30769
movl $0x4, %edx
callq 0x4340
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
movq 0x33882(%rip), %rdi     # 0x3afd0
callq 0x4340
movq %rax, %rbx
leaq 0x29011(%rip), %rsi     # 0x3076e
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 0x77cc
movq %rbx, %rdi
movl $0x20, %esi
callq 0x42d0
movb $0x1, 0xe1(%rbx)
movb $0x20, 0xe0(%rbx)
leaq 0x28fa4(%rip), %rsi     # 0x3077e
movl $0x6, %edx
movq 0x58(%rsp), %rdi
callq 0x4340
leaq 0x33cb8(%rip), %rax     # 0x3b4a8
cmpl $0x0, (%rax)
jle 0x7a1c
leaq 0xc0(%rsp), %r12
leaq 0xe0(%rsp), %rbp
xorl %r13d, %r13d
leaq 0x1b0(%rsp), %rbx
leaq 0x118(%rsp), %r15
movq %rbx, %r14
movq %rbx, %rdi
callq 0x4200
leaq 0x1c0(%rsp), %rdi
movl %r13d, %esi
callq 0x4500
movq %r15, %rdi
leaq 0x1c8(%rsp), %rsi
callq 0x4450
movl $0x5, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x2907d(%rip), %rcx     # 0x308d8
callq 0x4320
movq %r12, 0xb0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x788c
movq %rdx, 0xb0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xc0(%rsp)
jmp 0x7896
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 %rbp, 0xd0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x78ff
movq %rdx, 0xd0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xe0(%rsp)
jmp 0x7908
movupd (%rcx), %xmm0
movupd %xmm0, (%rbp)
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 0x7940
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x4300
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x7965
movq 0x128(%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 0x79ac
movq %rbx, %rdi
movl $0x20, %esi
callq 0x42d0
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 %rbp, %rdi
je 0x79ea
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x4300
movq %r14, %rdi
movq 0x335a4(%rip), %rsi     # 0x3af98
callq 0x4220
leaq 0x230(%rsp), %rdi
callq 0x4120
movq %r14, %rbx
incl %r13d
leaq 0x33a95(%rip), %rax     # 0x3b4a8
cmpl (%rax), %r13d
jl 0x781c
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 0x7a57
movq %rbx, %rdi
movl $0x20, %esi
callq 0x42d0
movb $0x1, 0xe1(%rbx)
movb $0x20, 0xe0(%rbx)
leaq 0x28d20(%rip), %rsi     # 0x30785
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 0x28cbb(%rip), %rsi     # 0x30764
leaq 0x78(%rsp), %rbx
movl $0x4, %ecx
movq %rbx, %rdi
xorl %edx, %edx
callq 0x4510
movq 0x8(%rbx), %rcx
cmpq %rax, %rcx
jb 0x817e
leaq 0x78(%rsp), %rdi
movq %rax, 0x8(%rdi)
movq (%rdi), %rcx
movb $0x0, (%rcx,%rax)
leaq 0x28cb2(%rip), %rsi     # 0x30793
callq 0x4580
movq 0x78(%rsp), %rsi
movq 0x38(%rsp), %rdi
movl $0x10, %edx
callq 0x4070
movq 0x334cf(%rip), %rdi     # 0x3afd0
leaq 0x28c61(%rip), %rsi     # 0x30769
movl $0x4, %edx
callq 0x4340
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
movq 0x334aa(%rip), %rdi     # 0x3afd0
callq 0x4340
movq %rax, %rbx
leaq 0x28c39(%rip), %rsi     # 0x3076e
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 0x28d48(%rip), %rcx     # 0x308c1
movl $0xe, %r8d
xorl %esi, %esi
callq 0x4440
leaq 0x1b0(%rsp), %rdi
leaq 0x388(%rsp), %rsi
callq 0x4450
movq 0x1b0(%rsp), %rsi
movq 0x1b8(%rsp), %rdx
leaq 0x78(%rsp), %rdi
callq 0x4110
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x7bda
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x4300
leaq 0x28bbb(%rip), %rsi     # 0x3079c
leaq 0x78(%rsp), %rdi
callq 0x4580
leaq 0x28baf(%rip), %rsi     # 0x307a1
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 0x28b9a(%rip), %rsi     # 0x307d0
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 0x28b75(%rip), %rsi     # 0x307db
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 0x28b3c(%rip), %rsi     # 0x307dd
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 0x28b26(%rip), %rsi     # 0x3080b
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 0x28af0(%rip), %rsi     # 0x30819
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 0x28ab5(%rip), %rsi     # 0x30822
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 0x28a94(%rip), %rsi     # 0x30845
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 0x28a6e(%rip), %rsi     # 0x30863
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 0x28a3b(%rip), %rsi     # 0x30874
movl $0x15, %edx
movq 0x38(%rsp), %rdi
callq 0x4340
movq 0x38(%rsp), %rdi
movq 0xa8(%rsp), %rsi
callq 0x41e0
movq %rax, %rbx
leaq 0x28a26(%rip), %rsi     # 0x3088a
movl $0xe, %edx
movq %rax, %rdi
callq 0x4340
leaq 0x33630(%rip), %rax     # 0x3b4a8
movl (%rax), %esi
addl $0x2, %esi
movq %rbx, %rdi
callq 0x4500
movq %rax, %rbx
leaq 0x28a0a(%rip), %rsi     # 0x30899
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 0x335de(%rip), %rax     # 0x3b4a8
cmpl $0x0, (%rax)
jle 0x7f9b
xorl %ebx, %ebx
leaq 0x289de(%rip), %r14     # 0x308ba
leaq 0x289a7(%rip), %r12     # 0x3088a
leaq 0x289e6(%rip), %r13     # 0x308d0
leaq 0x289ed(%rip), %rbp     # 0x308de
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 0x33515(%rip), %rax     # 0x3b4a8
cmpl (%rax), %ebx
jl 0x7ef1
movq 0x60(%rsp), %rax
movq (%rax), %rsi
movq 0xf0(%rsp), %rdi
movl $0x10, %edx
callq 0x4070
movl 0x98(%rsp), %eax
movl %eax, 0x178(%rsp)
movl 0x9c(%rsp), %eax
movl %eax, 0x17c(%rsp)
movl 0xa0(%rsp), %eax
movl %eax, 0x180(%rsp)
movl 0xa4(%rsp), %eax
movl %eax, 0x184(%rsp)
movq 0xf8(%rsp), %rax
movl %eax, 0x188(%rsp)
movq 0x100(%rsp), %rax
movl %eax, 0x18c(%rsp)
movaps 0x340(%rsp), %xmm0
movaps 0x350(%rsp), %xmm1
movups %xmm0, 0x190(%rsp)
movups %xmm1, 0x1a0(%rsp)
movq 0x1a8(%rsp), %rax
movq %rax, 0x30(%rsp)
movupd 0x178(%rsp), %xmm0
movups 0x188(%rsp), %xmm1
movups 0x198(%rsp), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movupd %xmm0, (%rsp)
movq 0x40(%rsp), %rdi
callq 0x85ee
movq 0x32f5f(%rip), %rdi     # 0x3afd0
leaq 0x286f1(%rip), %rsi     # 0x30769
movl $0x4, %edx
callq 0x4340
movq 0x40(%rsp), %rax
movq 0x3a8(%rax), %rsi
movq 0x3b0(%rax), %rdx
movq 0x32f34(%rip), %rdi     # 0x3afd0
callq 0x4340
movq %rax, %rbx
leaq 0x286c3(%rip), %rsi     # 0x3076e
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 0x2880f(%rip), %rsi     # 0x308f5
movl $0x2, %ecx
movq 0x60(%rsp), %rdi
xorl %edx, %edx
callq 0x4510
movq 0x40(%rsp), %rdi
movq 0x3b0(%rdi), %rcx
cmpq %rax, %rcx
jb 0x817e
movq %rax, 0x3b0(%rdi)
movq 0x3a8(%rdi), %rcx
movb $0x0, (%rcx,%rax)
movl $0x0, 0x3c8(%rdi)
callq 0xa9f0
movq 0x32e68(%rip), %rsi     # 0x3af98
leaq 0x370(%rsp), %rdi
callq 0x4220
leaq 0x3f0(%rsp), %rdi
callq 0x4120
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x816c
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 0x297ba(%rip), %rdi     # 0x3193f
leaq 0x297fa(%rip), %rsi     # 0x31986
movq %rax, %rdx
xorl %eax, %eax
callq 0x4410
movq 0x32e53(%rip), %rdi     # 0x3aff0
leaq 0x27e7e(%rip), %rsi     # 0x30022
movl $0x8, %edx
callq 0x4340
movq 0x32e3b(%rip), %rdi     # 0x3aff0
leaq 0x27fea(%rip), %rsi     # 0x301a6
movl $0x19, %edx
callq 0x4340
movq 0x32e23(%rip), %rdi     # 0x3aff0
leaq 0x286c3(%rip), %rsi     # 0x30897
movl $0x1, %edx
callq 0x4340
movq 0x32e0b(%rip), %rdi     # 0x3aff0
movl $0x4a, %esi
callq 0x4500
movq %rax, %rbx
leaq 0x27e48(%rip), %rsi     # 0x30041
movl $0x4, %edx
movq %rax, %rdi
callq 0x4340
leaq 0x27fb3(%rip), %rsi     # 0x301c0
movl $0x65, %edx
movq %rbx, %rdi
callq 0x4340
movq %rbx, %rdi
callq 0x4170
movq 0x32dc7(%rip), %rdi     # 0x3aff0
leaq 0x27df2(%rip), %rsi     # 0x30022
movl $0x8, %edx
callq 0x4340
movq 0x32daf(%rip), %rdi     # 0x3aff0
leaq 0x27f5e(%rip), %rsi     # 0x301a6
movl $0x19, %edx
callq 0x4340
movq 0x32d97(%rip), %rdi     # 0x3aff0
leaq 0x28637(%rip), %rsi     # 0x30897
movl $0x1, %edx
callq 0x4340
movq 0x32d7f(%rip), %rdi     # 0x3aff0
movl $0x4b, %esi
callq 0x4500
movq %rax, %rbx
leaq 0x27dbc(%rip), %rsi     # 0x30041
movl $0x4, %edx
movq %rax, %rdi
callq 0x4340
leaq 0x27f8d(%rip), %rsi     # 0x30226
movl $0x1d, %edx
movq %rbx, %rdi
callq 0x4340
movsd (%r14), %xmm0
movq %rbx, %rdi
callq 0x4460
movq %rax, %rbx
leaq 0x27f87(%rip), %rsi     # 0x30244
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 0x8470
jmp 0x84a7
jmp 0x8470
jmp 0x84a7
jmp 0x84a7
jmp 0x84a7
movq %rax, %r14
movq 0x50(%rsp), %r12
movq 0x48(%rsp), %r13
jmp 0x84d5
movq %rax, %r14
jmp 0x84d5
movq %rax, %r14
movl $0x238, %esi            # imm = 0x238
jmp 0x8338
movq %rax, %r14
movl $0x360, %esi            # imm = 0x360
movq %rbx, %rdi
jmp 0x84f2
movq %rax, %r14
movq 0x138(%rsp), %rdi
cmpq %r15, %rdi
je 0x84f7
movq 0x148(%rsp), %rsi
jmp 0x84ef
movq %rax, %r14
movq 0x158(%rsp), %rdi
cmpq %r15, %rdi
je 0x84f7
movq 0x168(%rsp), %rsi
jmp 0x84ef
movq %rax, %r14
jmp 0x8504
movq %rax, %r14
jmp 0x850e
movq %rax, %r14
jmp 0x8518
movq %rax, %r14
jmp 0x8522
movq %rax, %r14
jmp 0x852c
movq %rax, %r14
jmp 0x8539
jmp 0x84a0
jmp 0x84a7
jmp 0x83be
movq %rax, %r14
jmp 0x8427
movq %rax, %r14
jmp 0x83e8
movq %rax, %r14
movq 0xb0(%rsp), %rdi
cmpq %r12, %rdi
je 0x83e8
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x4300
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x8427
movq 0x128(%rsp), %rsi
jmp 0x841f
movq %rax, %r14
movq 0xd0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x8427
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x4300
movq 0x32b6a(%rip), %rsi     # 0x3af98
leaq 0x1b0(%rsp), %rdi
callq 0x4220
leaq 0x230(%rsp), %rdi
callq 0x4120
jmp 0x84aa
jmp 0x844c
movq %rax, %r14
movl $0x200, %esi            # imm = 0x200
movq %r15, %rdi
jmp 0x84f2
movq %rax, %r14
movq 0x1b0(%rsp), %rdi
cmpq %r13, %rdi
jne 0x8488
jmp 0x84aa
jmp 0x84a7
movq %rax, %r14
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x84aa
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x4300
jmp 0x84aa
jmp 0x84a0
jmp 0x84a0
jmp 0x84a7
movq %rax, %r14
jmp 0x84f7
jmp 0x84a7
movq %rax, %r14
movq 0x50(%rsp), %r12
movq 0x48(%rsp), %r13
movq 0x32add(%rip), %rsi     # 0x3af98
leaq 0x370(%rsp), %rdi
callq 0x4220
leaq 0x3f0(%rsp), %rdi
callq 0x4120
leaq 0x88(%rsp), %rax
movq 0x78(%rsp), %rdi
cmpq %rax, %rdi
je 0x84f7
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x4300
movq 0x108(%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 0xf0(%rsp), %rdi
callq 0x43f0
movq 0x40(%rsp), %rax
leaq 0x3e8(%rax), %rbx
movq 0x400(%rax), %rdi
testq %rdi, %rdi
je 0x8565
movq 0x40(%rsp), %rax
movq 0x410(%rax), %rsi
subq %rdi, %rsi
callq 0x4300
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x8581
movq 0x40(%rsp), %rax
movq 0x3f8(%rax), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x60(%rsp), %rax
movq (%rax), %rdi
movq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0x85a1
movq (%rax), %rsi
incq %rsi
callq 0x4300
movq (%r13), %rdi
testq %rdi, %rdi
je 0x85be
movq 0x40(%rsp), %rax
movq 0x360(%rax), %rsi
subq %rdi, %rsi
callq 0x4300
movq (%r12), %rdi
testq %rdi, %rdi
je 0x85db
movq 0x40(%rsp), %rax
movq 0x348(%rax), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x40(%rsp), %rdi
callq 0x13792
movq %r14, %rdi
callq 0x4540
nop