// File: /workspace/github_cpp_makefile_star2_O3/melop[P]admixem/config.cpp
// Function: RecombProbConfigurations::LoadFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void RecombProbConfigurations::LoadFromFile(string szConfigFile) {
	#ifdef _OPENMP
		int nTotalCPUCore =  omp_get_max_threads();//omp_get_num_threads();
		//printf("OpenMP enabled\n");
	#else
		int nTotalCPUCore = 1;
		//printf("OpenMP disabled \n");
	#endif

	FILE *pConfigFile;
	char szBuffer[12048];

	this->_nHaploidChrNum = ((SimulationConfigurations *)this->_pParentConfig)->pMarkerConfig->GetHaploidChromosomeNum(); // save a copy of the haploid chromosome number
	//Initialize arrays:
	this->_nExpectedMaleRecPerMeiosisArm1 = new double[_nHaploidChrNum];
	this->_nExpectedMaleRecPerMeiosisArm2 = new double[_nHaploidChrNum];
	this->_nExpectedFemaleRecPerMeiosisArm1 = new double[_nHaploidChrNum];
	this->_nExpectedFemaleRecPerMeiosisArm2 = new double[_nHaploidChrNum];

	this->pvBreakpointSamplePositions = new vector<double>[_nHaploidChrNum];
	this->pvMaleAccuProb = new vector<double>[_nHaploidChrNum];
	this->pvFemaleAccuProb = new vector<double>[_nHaploidChrNum];
	this->pvMaleMapDistance = new vector<double>[_nHaploidChrNum];
	this->pvFemaleMapDistance = new vector<double>[_nHaploidChrNum];
	this->pvAvgMapDistance = new vector<double>[_nHaploidChrNum];
	this->pvMaleRecArm1Gen = new vector< Poisson * >[nTotalCPUCore];
	this->pvMaleRecArm2Gen = new vector< Poisson * >[nTotalCPUCore];
	this->pvFemaleRecArm1Gen = new vector< Poisson * >[nTotalCPUCore];
	this->pvFemaleRecArm2Gen = new vector< Poisson * >[nTotalCPUCore];
	
	
	printf("Start loading marker probability file %s ...\n", szConfigFile.c_str());

	if (((SimulationConfigurations *)this->_pParentConfig)->GetConfig("UseUniformRec") == "yes") {
		printf("Instructed by configuration to use uniform distribution, will ignore candidate breakpoints in recombination file. But expected number of recombinations will still be used.\n");
		this->_bUseUniform = true;
		
	}
	else {
		this->_bUseUniform = false;
	}

	_szConfigFilename = szConfigFile; // save name of config file

	pConfigFile = fopen(szConfigFile.c_str(), "r");

	if (!pConfigFile) {
		printf("%s\n", "Cannot open marker file ...");
		throw "Cannot open marker file!";
	}



	int nCurrChr;
	char szCmd[100];
	double nVal, nPos, nMaleAccu, nFemaleAccu, nMaleMapDistance, nFemaleMapDistance, nAvgMapDistance;

	long nLastBpArm1=0; // the index of the last break point at arm 1
	long nBpIndex = -1;
	double nPrevProb = 0.0; // previous probability. 

	while(fgets(szBuffer, 12048, pConfigFile) != NULL) 
	{

		//sscanf(szBuffer, "%d %*f %f %f %f", &nNum, &nAbsPos, &nFreqPop1, &nFreqPop2);


		if (szBuffer[0] == ':') { // it's metadata line

			if (szBuffer[1] == 'c') { // it's the chr line
				//parse chromosome number:

				sscanf(szBuffer, ":chr %d", &nCurrChr);

				if (nCurrChr > this->_nHaploidChrNum || nCurrChr <=0 ) {
					throw "Chromosome number in marker probability file incorrect!";
				}

				if (nBpIndex > 0) {
					vLastBpOnArm1.push_back(nLastBpArm1==0? nBpIndex : nLastBpArm1); // this is the previous record.
				}
				nLastBpArm1=0;
				nBpIndex = -1;
				nPrevProb = 0.0; // previous probability. 
				nCurrChr--;
				continue; // go to the next line
			}
			else { // it's a command line

				sscanf(szBuffer, "%s = %lf", szCmd, &nVal);
				
				//printf("%s\n",szCmd);

				if (strcmp(szCmd, ":ExpectedMaleRecPerMeiosisArm1")==0) {
					this->_nExpectedMaleRecPerMeiosisArm1[nCurrChr] = nVal;
					for(int nCPU=0;nCPU<nTotalCPUCore;nCPU++) {
						Poisson * pPosGen = new Poisson(nVal);
						this->pvMaleRecArm1Gen[nCPU].push_back(pPosGen);
					}
				}
				if (strcmp(szCmd,":ExpectedMaleRecPerMeiosisArm2")==0) {
					this->_nExpectedMaleRecPerMeiosisArm2[nCurrChr] = nVal;
					for(int nCPU=0;nCPU<nTotalCPUCore;nCPU++) {
						Poisson * pPosGen = new Poisson(nVal);
						this->pvMaleRecArm2Gen[nCPU].push_back(pPosGen);
					}
				}

				if (strcmp(szCmd,":ExpectedFemaleRecPerMeiosisArm1")==0) {
					this->_nExpectedFemaleRecPerMeiosisArm1[nCurrChr] = nVal;
					for(int nCPU=0;nCPU<nTotalCPUCore;nCPU++) {
						Poisson * pPosGen = new Poisson(nVal);
						this->pvFemaleRecArm1Gen[nCPU].push_back(pPosGen);
					}
				}
				if (strcmp(szCmd,":ExpectedFemaleRecPerMeiosisArm2")==0) {
					this->_nExpectedFemaleRecPerMeiosisArm2[nCurrChr] = nVal;
					for(int nCPU=0;nCPU<nTotalCPUCore;nCPU++) {
						Poisson * pPosGen = new Poisson(nVal);
						this->pvFemaleRecArm2Gen[nCPU].push_back(pPosGen);
					}
				}

			}

			continue;

		}

		if (szBuffer[0] == '\t') {
			
			continue; //title line, skip
		}
		else { //parse real data

			if (sscanf(szBuffer, "%lf %*lf %lf %*lf %lf %*lf %*lf %*lf %lf %*lf %lf %*lf %lf %*lf", &nPos, &nMaleAccu, &nFemaleAccu, &nMaleMapDistance, &nFemaleMapDistance, &nAvgMapDistance)!=6) {
				continue; // couldn't parse line.	
			};

			nBpIndex++;
			if (nMaleAccu < nPrevProb ) { //switch in prob. crossing the centromere?
				if (nLastBpArm1 != 0) { // this was already set, the sequence is not monotonic.
					throw("Error: accumulative recombination rate must be monotonic within each arm.\n");
				}

				nLastBpArm1 = nBpIndex - 1;//the previous bp is the last one in arm 1.
				
			}
			this->pvBreakpointSamplePositions[nCurrChr].push_back(nPos);
			this->pvMaleAccuProb[nCurrChr].push_back(nMaleAccu);
			this->pvFemaleAccuProb[nCurrChr].push_back(nFemaleAccu);
			this->pvMaleMapDistance[nCurrChr].push_back(nMaleMapDistance);
			this->pvFemaleMapDistance[nCurrChr].push_back(nFemaleMapDistance);
			this->pvAvgMapDistance[nCurrChr].push_back(nAvgMapDistance);

			nPrevProb = nMaleAccu;
		}


	}

	//check that recombination break points on arms are complete:
	if ( pvMaleRecArm1Gen[0].size() != pvMaleRecArm2Gen[0].size() || pvMaleRecArm2Gen[0].size() != pvFemaleRecArm1Gen[0].size() || pvFemaleRecArm1Gen[0].size() != pvFemaleRecArm2Gen[0].size()) {
		throw(new Exception("The number of Recombination break point defined are not equal.\n"));
	}

	vLastBpOnArm1.push_back(nLastBpArm1==0? nBpIndex : nLastBpArm1); // this is the last chromosome.


	//calculate splines
	for(int nCurrChr=0;nCurrChr < this->_nHaploidChrNum; nCurrChr++) {
		double nChrLen = ((SimulationConfigurations*)this->_pParentConfig)->pMarkerConfig->GetChromosomeLength(nCurrChr);
		tk::spline oMaleSplineArm1, oFemaleSplineArm1,oMaleSplineArm2, oFemaleSplineArm2;
		oMaleSplineArm1.set_boundary(spline::first_deriv, 0.0, spline::first_deriv, this->pvBreakpointSamplePositions[nCurrChr].at(this->vLastBpOnArm1[nCurrChr]), false);
		oFemaleSplineArm1.set_boundary(spline::first_deriv, 0.0, spline::first_deriv, this->pvBreakpointSamplePositions[nCurrChr].at(this->vLastBpOnArm1[nCurrChr]), false);
		oMaleSplineArm2.set_boundary(spline::first_deriv, this->pvBreakpointSamplePositions[nCurrChr].at(this->vLastBpOnArm1[nCurrChr]), spline::first_deriv, nChrLen, false);
		oFemaleSplineArm2.set_boundary(spline::first_deriv, this->pvBreakpointSamplePositions[nCurrChr].at(this->vLastBpOnArm1[nCurrChr]), spline::first_deriv, nChrLen, false);
		size_t nTotalBps = this->pvBreakpointSamplePositions[nCurrChr].size();
		vector<double> vPosArm1, vPosArm2, vAccMaleArm1, vAccMaleArm2, vAccFemaleArm1, vAccFemaleArm2;
		copy(this->pvBreakpointSamplePositions[nCurrChr].begin(), this->pvBreakpointSamplePositions[nCurrChr].begin() + this->vLastBpOnArm1[nCurrChr] + 1 ,back_inserter(vPosArm1));
		copy(this->pvBreakpointSamplePositions[nCurrChr].begin() + this->vLastBpOnArm1[nCurrChr] + 1, this->pvBreakpointSamplePositions[nCurrChr].end() ,back_inserter(vPosArm2));
		copy(this->pvMaleAccuProb[nCurrChr].begin(), this->pvMaleAccuProb[nCurrChr].begin() + this->vLastBpOnArm1[nCurrChr] + 1 ,back_inserter(vAccMaleArm1));
		copy(this->pvMaleAccuProb[nCurrChr].begin() + this->vLastBpOnArm1[nCurrChr] + 1, this->pvMaleAccuProb[nCurrChr].end() ,back_inserter(vAccMaleArm2));
		copy(this->pvFemaleAccuProb[nCurrChr].begin(), this->pvFemaleAccuProb[nCurrChr].begin() + this->vLastBpOnArm1[nCurrChr] + 1 ,back_inserter(vAccFemaleArm1));
		copy(this->pvFemaleAccuProb[nCurrChr].begin() + this->vLastBpOnArm1[nCurrChr] + 1, this->pvFemaleAccuProb[nCurrChr].end() ,back_inserter(vAccFemaleArm2));

		// erase elements in case not monotonic:

		if (vPosArm1.size() > 2) { // must have more than 2 pairs of dots to predict a spline.
			this->fnEraseNonMonotonic(&vAccMaleArm1 , &vAccFemaleArm1, &vPosArm1);
			oMaleSplineArm1.set_points(vAccMaleArm1 , vPosArm1);
			oFemaleSplineArm1.set_points(vAccFemaleArm1 , vPosArm1);
		}

		if (vPosArm2.size() > 2) {
			this->fnEraseNonMonotonic(&vAccMaleArm2 , &vAccFemaleArm2, &vPosArm2);

			oMaleSplineArm2.set_points(vAccMaleArm2 , vPosArm2);
			oFemaleSplineArm2.set_points(vAccFemaleArm2 , vPosArm2);
		}


		this->vMaleAccuProbSplineArm1.push_back(oMaleSplineArm1);
		this->vMaleAccuProbSplineArm2.push_back(oMaleSplineArm2);
		this->vFemaleAccuProbSplineArm1.push_back(oFemaleSplineArm1);
		this->vFemaleAccuProbSplineArm2.push_back(oFemaleSplineArm2);
	}

	///printf("%f %f %f", this->pvBreakpointSamplePositions[0].at(0), this->pvMaleAccuProb[0].at(0), this->pvFemaleAccuProb[0].at(0));

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x33e8, %rsp           # imm = 0x33E8
movq %rdi, %rbx
movq (%rdi), %rax
movq (%rax), %rax
movl 0x8(%rax), %ecx
movslq %ecx, %r15
movl $0x18, %edx
movq %r15, %rax
mulq %rdx
movq %rax, %r13
movq %rsi, %r14
seto %al
movq %r13, %r12
addq $0x8, %r12
movq $-0x1, %rdx
cmovbq %rdx, %r12
movl %ecx, 0x8(%rdi)
testb %al, %al
cmovneq %rdx, %r12
leaq (,%r15,8), %rbp
testl %r15d, %r15d
cmovsq %rdx, %rbp
movq %rbp, %rdi
callq 0x7030
movq %rax, 0x30(%rbx)
movq %rbp, %rdi
callq 0x7030
movq %rax, 0x38(%rbx)
movq %rbp, %rdi
callq 0x7030
movq %rax, 0x40(%rbx)
movq %rbp, %rdi
callq 0x7030
movq %rax, 0x48(%rbx)
movq %r12, %rdi
callq 0x7030
leaq 0x8(%rax), %rbp
movq %r15, (%rax)
testl %r15d, %r15d
je 0x10e97
addq $-0x18, %r13
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
movq %r13, %rax
mulq %rcx
shrq $0x4, %rdx
leaq (%rdx,%rdx,2), %rax
leaq 0x18(,%rax,8), %r13
movq %rbp, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x71e0
leaq 0x78(%rbx), %rax
movq %rax, 0x88(%rsp)
movq %rbp, 0x78(%rbx)
movq %r12, %rdi
callq 0x7030
movq %rax, %rbp
movq %r15, (%rax)
addq $0x8, %rbp
movq %rbp, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x71e0
leaq 0x80(%rbx), %rax
movq %rax, 0x48(%rsp)
movq %rbp, 0x80(%rbx)
movq %r12, %rdi
callq 0x7030
movq %rax, %rbp
movq %r15, (%rax)
addq $0x8, %rbp
movq %rbp, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x71e0
leaq 0x88(%rbx), %rax
movq %rax, 0x10(%rsp)
movq %rbp, 0x88(%rbx)
movq %r12, %rdi
callq 0x7030
movq %rax, %rbp
movq %r15, (%rax)
addq $0x8, %rbp
movq %rbp, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x71e0
leaq 0x108(%rbx), %rax
movq %rax, 0x40(%rsp)
movq %rbp, 0x108(%rbx)
movq %r12, %rdi
callq 0x7030
movq %rax, %rbp
movq %r15, (%rax)
addq $0x8, %rbp
movq %rbp, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x71e0
leaq 0x110(%rbx), %rax
movq %rax, 0x38(%rsp)
movq %rbp, 0x110(%rbx)
movq %r12, %rdi
callq 0x7030
movq %rax, %r12
movq %r15, (%rax)
addq $0x8, %r12
movq %r12, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x71e0
jmp 0x10f41
leaq 0x78(%rbx), %rax
movq %rax, 0x88(%rsp)
movq %rbp, 0x78(%rbx)
movq %r12, %rdi
callq 0x7030
movq %r15, (%rax)
addq $0x8, %rax
leaq 0x80(%rbx), %rcx
movq %rcx, 0x48(%rsp)
movq %rax, 0x80(%rbx)
movq %r12, %rdi
callq 0x7030
movq %r15, (%rax)
addq $0x8, %rax
leaq 0x88(%rbx), %rcx
movq %rcx, 0x10(%rsp)
movq %rax, 0x88(%rbx)
movq %r12, %rdi
callq 0x7030
movq %r15, (%rax)
addq $0x8, %rax
leaq 0x108(%rbx), %rcx
movq %rcx, 0x40(%rsp)
movq %rax, 0x108(%rbx)
movq %r12, %rdi
callq 0x7030
movq %r15, (%rax)
addq $0x8, %rax
leaq 0x110(%rbx), %rcx
movq %rcx, 0x38(%rsp)
movq %rax, 0x110(%rbx)
movq %r12, %rdi
callq 0x7030
movq %rax, %r12
movq %r15, (%rax)
addq $0x8, %r12
movq %r12, 0x118(%rbx)
movl $0x20, %edi
callq 0x7030
movl $0x1, %r15d
movq %r15, (%rax)
leaq 0x8(%rax), %rcx
pxor %xmm0, %xmm0
movdqu %xmm0, 0x8(%rax)
xorl %r12d, %r12d
movq %r12, 0x18(%rax)
movq %rcx, 0x50(%rbx)
movl $0x20, %edi
callq 0x7030
movq %r15, (%rax)
leaq 0x8(%rax), %rcx
pxor %xmm0, %xmm0
movdqu %xmm0, 0x8(%rax)
movq %r12, 0x18(%rax)
movq %rcx, 0x58(%rbx)
movl $0x20, %edi
callq 0x7030
movq %r15, (%rax)
leaq 0x8(%rax), %rcx
pxor %xmm0, %xmm0
movdqu %xmm0, 0x8(%rax)
movq %r12, 0x18(%rax)
movq %rcx, 0x60(%rbx)
movl $0x20, %edi
callq 0x7030
movq %r15, (%rax)
leaq 0x8(%rax), %rcx
pxor %xmm0, %xmm0
movdqu %xmm0, 0x8(%rax)
movq %r12, 0x18(%rax)
movq %rcx, 0x68(%rbx)
movq (%r14), %rsi
leaq 0x23c75(%rip), %rdi     # 0x34c58
xorl %eax, %eax
callq 0x7060
movq (%rbx), %r15
leaq 0x240(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x23c85(%rip), %rsi     # 0x34c86
leaq 0x23c8b(%rip), %rdx     # 0x34c93
leaq 0x230(%rsp), %rdi
callq 0xa91c
leaq 0x180(%rsp), %rdi
leaq 0x230(%rsp), %rdx
movq %r15, %rsi
callq 0x1023e
movq 0x10(%rsp), %r13
leaq 0x2561d(%rip), %rsi     # 0x36656
leaq 0x180(%rsp), %r15
movq %r15, %rdi
callq 0x7100
movl %eax, %ebp
movq (%r15), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
je 0x1106b
movq 0x190(%rsp), %rsi
incq %rsi
callq 0x7390
movq 0x230(%rsp), %rdi
cmpq %r12, %rdi
je 0x11088
movq 0x240(%rsp), %rsi
incq %rsi
callq 0x7390
testl %ebp, %ebp
je 0x11090
xorl %eax, %eax
jmp 0x1109e
leaq 0x24bc4(%rip), %rdi     # 0x35c5b
callq 0x7560
movb $0x1, %al
movb %al, 0x70(%rbx)
leaq 0x10(%rbx), %rdi
movq %r14, %rsi
callq 0x71d0
movq (%r14), %rdi
leaq 0x25c13(%rip), %rsi     # 0x36cca
callq 0x7440
testq %rax, %rax
je 0x11ff5
movq %rax, %r14
movq $0x0, 0x28(%rsp)
movq $-0x1, 0x20(%rsp)
leaq 0x4d0(%rsp), %rdi
movl $0x2f10, %esi           # imm = 0x2F10
movq %rax, %rdx
callq 0x7590
testq %rax, %rax
je 0x116bb
movabsq $0x636552656c614d64, %rax # imm = 0x636552656C614D64
movabsq $0x657463657078453a, %rcx # imm = 0x657463657078453A
leaq 0xf0(%rbx), %rdx
movq %rdx, 0x80(%rsp)
pxor %xmm0, %xmm0
movq %xmm0, 0x30(%rsp)
leaq 0x4d0(%rsp), %r12
leaq 0x460(%rsp), %rbp
movq %rcx, %xmm1
movq %rax, %xmm0
punpcklqdq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0]
movdqa %xmm1, 0x90(%rsp)
leaq 0x178(%rsp), %r15
movzbl 0x4d0(%rsp), %eax
cmpl $0x9, %eax
je 0x11494
cmpl $0x3a, %eax
jne 0x1122b
cmpb $0x63, 0x4d1(%rsp)
je 0x114b2
movq %r12, %rdi
leaq 0x23b4e(%rip), %rsi     # 0x34cd4
movq %rbp, %rdx
leaq 0x58(%rsp), %rcx
xorl %eax, %eax
callq 0x7360
movdqu 0x46f(%rsp), %xmm0
pcmpeqb 0x2386a(%rip), %xmm0    # 0x34a10
movdqa 0x460(%rsp), %xmm1
movdqa 0x90(%rsp), %xmm2
pcmpeqb %xmm2, %xmm1
pand %xmm0, %xmm1
pmovmskb %xmm1, %eax
cmpl $0xffff, %eax           # imm = 0xFFFF
jne 0x11302
movsd 0x58(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
movq 0x30(%rbx), %rax
movslq 0xc(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl $0x10, %edi
callq 0x7380
movq %rax, %r13
movq %rax, %rdi
movq 0x18(%rsp), %xmm0
callq 0xd11e
movq %r13, 0x180(%rsp)
movq 0x50(%rbx), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x112e7
movq %r13, (%rsi)
addq $0x8, 0x8(%rdi)
jmp 0x112f4
movq %r12, %rdi
leaq 0x23b28(%rip), %rsi     # 0x34d5d
leaq 0x158(%rsp), %rdx
leaq 0x50(%rsp), %rcx
leaq 0x150(%rsp), %r8
movq %r15, %r9
xorl %eax, %eax
leaq 0x140(%rsp), %r10
pushq %r10
leaq 0x150(%rsp), %r10
pushq %r10
callq 0x7360
addq $0x10, %rsp
cmpl $0x6, %eax
jne 0x11494
movq 0x20(%rsp), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x20(%rsp)
movsd 0x30(%rsp), %xmm0
ucomisd 0x50(%rsp), %xmm0
movq 0x48(%rsp), %r8
jbe 0x112a7
cmpq $0x0, 0x28(%rsp)
jne 0x12039
movq %rax, 0x28(%rsp)
movq 0x88(%rsp), %rax
movq (%rax), %rcx
movslq 0xc(%rsp), %rax
leaq (%rax,%rax,2), %rdx
leaq (%rcx,%rdx,8), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x1151e
movsd 0x158(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x11535
leaq 0x180(%rsp), %rdx
callq 0x1cecc
movq 0x10(%rsp), %r13
movdqa 0x90(%rsp), %xmm2
movdqu 0x46f(%rsp), %xmm0
pcmpeqb 0x2370d(%rip), %xmm0    # 0x34a20
movdqa 0x460(%rsp), %xmm1
pcmpeqb %xmm2, %xmm1
pand %xmm0, %xmm1
pmovmskb %xmm1, %eax
cmpl $0xffff, %eax           # imm = 0xFFFF
jne 0x11396
movsd 0x58(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
movq 0x38(%rbx), %rax
movslq 0xc(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl $0x10, %edi
callq 0x7380
movq %rax, %r13
movq %rax, %rdi
movq 0x18(%rsp), %xmm0
callq 0xd11e
movq %r13, 0x180(%rsp)
movq 0x58(%rbx), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x11384
movq %r13, (%rsi)
addq $0x8, 0x8(%rdi)
jmp 0x11391
leaq 0x180(%rsp), %rdx
callq 0x1cecc
movq 0x10(%rsp), %r13
movl $0x21, %edx
movq %rbp, %rdi
leaq 0x23976(%rip), %rsi     # 0x34d1b
callq 0x73b0
testl %eax, %eax
jne 0x11415
movsd 0x58(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
movq 0x40(%rbx), %rax
movslq 0xc(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl $0x10, %edi
callq 0x7380
movq %rax, %r13
movq %rax, %rdi
movq 0x18(%rsp), %xmm0
callq 0xd11e
movq %r13, 0x180(%rsp)
movq 0x60(%rbx), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x11403
movq %r13, (%rsi)
addq $0x8, 0x8(%rdi)
jmp 0x11410
leaq 0x180(%rsp), %rdx
callq 0x1cecc
movq 0x10(%rsp), %r13
movl $0x21, %edx
movq %rbp, %rdi
leaq 0x23918(%rip), %rsi     # 0x34d3c
callq 0x73b0
testl %eax, %eax
jne 0x11494
movsd 0x58(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
movq 0x48(%rbx), %rax
movslq 0xc(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl $0x10, %edi
callq 0x7380
movq %rax, %r13
movq %rax, %rdi
movq 0x18(%rsp), %xmm0
callq 0xd11e
movq %r13, 0x180(%rsp)
movq 0x68(%rbx), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x11482
movq %r13, (%rsi)
addq $0x8, 0x8(%rdi)
jmp 0x1148f
leaq 0x180(%rsp), %rdx
callq 0x1cecc
movq 0x10(%rsp), %r13
movq %r12, %rdi
movl $0x2f10, %esi           # imm = 0x2F10
movq %r14, %rdx
callq 0x7590
testq %rax, %rax
jne 0x11154
jmp 0x116bb
movq %r12, %rdi
leaq 0x237d8(%rip), %rsi     # 0x34c94
leaq 0xc(%rsp), %rdx
xorl %eax, %eax
callq 0x7360
movl 0xc(%rsp), %eax
testl %eax, %eax
jle 0x12026
cmpl 0x8(%rbx), %eax
jg 0x12026
movq 0x20(%rsp), %rcx
testq %rcx, %rcx
jle 0x11694
movq 0x28(%rsp), %rdx
movq 0xf8(%rbx), %rsi
cmpq 0x100(%rbx), %rsi
je 0x11672
testq %rdx, %rdx
cmovneq %rdx, %rcx
movq %rcx, (%rsi)
addq $0x8, %rsi
movq %rsi, 0xf8(%rbx)
jmp 0x11694
leaq 0x158(%rsp), %rdx
callq 0x1d008
movq 0x48(%rsp), %r8
movslq 0xc(%rsp), %rax
movq (%r8), %rcx
leaq (%rax,%rax,2), %rdx
leaq (%rcx,%rdx,8), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x1155e
movsd 0x50(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x1156d
leaq 0x50(%rsp), %rdx
callq 0x1d008
movslq 0xc(%rsp), %rax
movq (%r13), %rcx
leaq (%rax,%rax,2), %rdx
leaq (%rcx,%rdx,8), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x1159a
movsd 0x150(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x115ac
leaq 0x150(%rsp), %rdx
callq 0x1d008
movslq 0xc(%rsp), %rax
movq 0x40(%rsp), %rcx
movq (%rcx), %rcx
leaq (%rax,%rax,2), %rdx
leaq (%rcx,%rdx,8), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x115dd
movsd 0x178(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x115ea
movq %r15, %rdx
callq 0x1d008
movslq 0xc(%rsp), %rax
movq 0x38(%rsp), %rcx
movq (%rcx), %rcx
leaq (%rax,%rax,2), %rdx
leaq (%rcx,%rdx,8), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x1161b
movsd 0x148(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x1162d
leaq 0x148(%rsp), %rdx
callq 0x1d008
movslq 0xc(%rsp), %rax
movq 0x118(%rbx), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x1165d
movsd 0x140(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x1166a
leaq 0x140(%rsp), %rdx
callq 0x1d008
movq 0x50(%rsp), %xmm0
jmp 0x116b0
testq %rdx, %rdx
leaq 0x28(%rsp), %rdx
leaq 0x20(%rsp), %rax
cmoveq %rax, %rdx
movq 0x80(%rsp), %rdi
callq 0x1cd90
movl 0xc(%rsp), %eax
movq $0x0, 0x28(%rsp)
movq $-0x1, 0x20(%rsp)
decl %eax
movl %eax, 0xc(%rsp)
pxor %xmm0, %xmm0
movq %xmm0, 0x30(%rsp)
jmp 0x11494
movq 0x50(%rbx), %rcx
movq 0x58(%rbx), %rdx
movq 0x8(%rcx), %rax
subq (%rcx), %rax
movq 0x8(%rdx), %rcx
subq (%rdx), %rcx
cmpq %rcx, %rax
jne 0x11fbd
movq 0x60(%rbx), %rcx
movq 0x8(%rcx), %rdx
subq (%rcx), %rdx
cmpq %rdx, %rax
jne 0x11fbd
movq 0x68(%rbx), %rcx
movq 0x8(%rcx), %rdx
subq (%rcx), %rdx
cmpq %rdx, %rax
jne 0x11fbd
leaq 0x28(%rsp), %rax
cmpq $0x0, (%rax)
leaq 0x20(%rsp), %rdx
cmovneq %rax, %rdx
leaq 0xf0(%rbx), %rdi
movq 0xf8(%rbx), %rsi
cmpq 0x100(%rbx), %rsi
movq %rdi, 0x90(%rsp)
je 0x11746
movq (%rdx), %rax
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0xf8(%rbx)
jmp 0x1174b
callq 0x1cd90
cmpl $0x0, 0x8(%rbx)
jle 0x11f9d
movl $0x90, %ecx
leaq 0x180(%rsp), %rax
addq %rcx, %rax
movq %rax, 0x18(%rsp)
leaq 0x3b0(%rsp), %rax
addq %rcx, %rax
movq %rax, 0x30(%rsp)
leaq 0x300(%rsp), %rax
addq %rcx, %rax
movq %rax, 0x40(%rsp)
leaq 0x250(%rsp), %rax
addq %rcx, %rax
movq %rax, 0x38(%rsp)
addq %rbx, %rcx
movq %rcx, 0x80(%rsp)
leaq 0xc0(%rbx), %rax
movq %rax, 0x170(%rsp)
leaq 0xa8(%rbx), %rax
movq %rax, 0x168(%rsp)
leaq 0xd8(%rbx), %rax
movq %rax, 0x160(%rsp)
xorl %r14d, %r14d
leaq 0x120(%rsp), %r13
xorl %ebp, %ebp
xorl %r12d, %r12d
movq (%rbx), %rax
movq (%rax), %rax
movq 0x30(%rax), %rax
movq (%rax,%r12,8), %xmm0
movq %r14, 0x1f0(%rsp)
pxor %xmm2, %xmm2
movdqa %xmm2, 0x1e0(%rsp)
movdqa %xmm2, 0x1d0(%rsp)
movdqa %xmm2, 0x1c0(%rsp)
movdqa %xmm2, 0x1b0(%rsp)
movdqa %xmm2, 0x1a0(%rsp)
movdqa %xmm2, 0x190(%rsp)
movdqa %xmm2, 0x180(%rsp)
movabsq $0x200000002, %rcx      # imm = 0x200000002
movq %rcx, 0x208(%rsp)
movq 0x18(%rsp), %rax
movb %r14b, 0x10(%rax)
movdqu %xmm2, (%rax)
movq %r14, 0x420(%rsp)
movdqa %xmm2, 0x410(%rsp)
movdqa %xmm2, 0x400(%rsp)
movdqa %xmm2, 0x3f0(%rsp)
movdqa %xmm2, 0x3e0(%rsp)
movdqa %xmm2, 0x3d0(%rsp)
movdqa %xmm2, 0x3c0(%rsp)
movdqa %xmm2, 0x3b0(%rsp)
movq %rcx, 0x438(%rsp)
movq 0x30(%rsp), %rax
movb %r14b, 0x10(%rax)
movdqu %xmm2, (%rax)
movq %r14, 0x370(%rsp)
movdqa %xmm2, 0x360(%rsp)
movdqa %xmm2, 0x350(%rsp)
movdqa %xmm2, 0x340(%rsp)
movdqa %xmm2, 0x330(%rsp)
movdqa %xmm2, 0x320(%rsp)
movdqa %xmm2, 0x310(%rsp)
movdqa %xmm2, 0x300(%rsp)
movq %rcx, 0x388(%rsp)
movq 0x40(%rsp), %rax
movb %r14b, 0x10(%rax)
movdqu %xmm2, (%rax)
movq %r14, 0x2c0(%rsp)
movdqa %xmm2, 0x2b0(%rsp)
movdqa %xmm2, 0x2a0(%rsp)
movdqa %xmm2, 0x290(%rsp)
movdqa %xmm2, 0x280(%rsp)
movdqa %xmm2, 0x270(%rsp)
movdqa %xmm2, 0x260(%rsp)
movdqa %xmm2, 0x250(%rsp)
movq %rcx, 0x2d8(%rsp)
movq 0x38(%rsp), %rax
movb %r14b, 0x10(%rax)
movdqu %xmm2, (%rax)
movq 0x78(%rbx), %rax
movq 0xf0(%rbx), %rcx
movq (%rcx,%r12,8), %rsi
movq (%rax,%rbp), %rdi
movq 0x8(%rax,%rbp), %rdx
subq %rdi, %rdx
sarq $0x3, %rdx
cmpq %rsi, %rdx
jbe 0x11faf
movq %rbx, %r15
movsd (%rdi,%rsi,8), %xmm1
movabsq $0x100000001, %rdx      # imm = 0x100000001
movq %rdx, 0x208(%rsp)
movq %r14, 0x210(%rsp)
movsd %xmm1, 0x218(%rsp)
movb %r14b, 0x220(%rsp)
movsd (%rdi,%rsi,8), %xmm1
movq %rdx, 0x438(%rsp)
movq %r14, 0x440(%rsp)
movsd %xmm1, 0x448(%rsp)
movb %r14b, 0x450(%rsp)
movsd (%rdi,%rsi,8), %xmm1
movq %rdx, 0x388(%rsp)
movsd %xmm1, 0x390(%rsp)
movq %xmm0, 0x398(%rsp)
movb %r14b, 0x3a0(%rsp)
movq (%rdi,%rsi,8), %xmm1
movq %rdx, 0x2d8(%rsp)
movq %xmm1, 0x2e0(%rsp)
movq %xmm0, 0x2e8(%rsp)
movb %r14b, 0x2f0(%rsp)
movq %r14, 0x130(%rsp)
movdqa %xmm2, 0x120(%rsp)
movq %r14, 0x70(%rsp)
movdqa %xmm2, 0x60(%rsp)
movq %r14, 0x110(%rsp)
movdqa %xmm2, 0x100(%rsp)
movq %r14, 0xf0(%rsp)
movdqa %xmm2, 0xe0(%rsp)
movq %r14, 0xd0(%rsp)
movdqa %xmm2, 0xc0(%rsp)
movq %r14, 0xb0(%rsp)
movdqa %xmm2, 0xa0(%rsp)
movq (%rax,%rbp), %rdi
movq (%rcx,%r12,8), %rax
leaq 0x8(%rdi,%rax,8), %rsi
movq %r13, %rdx
callq 0x1d0e8
movq %r13, %rbx
movq 0x88(%rsp), %rax
movq (%rax), %rax
movq 0x90(%rsp), %r14
movq (%r14), %rcx
movq (%rcx,%r12,8), %rcx
movq (%rax,%rbp), %rdx
movq 0x8(%rax,%rbp), %rsi
leaq 0x8(%rdx,%rcx,8), %rdi
leaq 0x60(%rsp), %rdx
callq 0x1d0e8
movq 0x48(%rsp), %r13
movq (%r13), %rax
movq (%rax,%rbp), %rdi
movq (%r14), %rax
movq (%rax,%r12,8), %rax
leaq 0x8(%rdi,%rax,8), %rsi
leaq 0x100(%rsp), %rdx
callq 0x1d0e8
movq (%r13), %rax
movq (%r14), %rcx
movq (%rcx,%r12,8), %rcx
movq (%rax,%rbp), %rdx
movq 0x8(%rax,%rbp), %rsi
leaq 0x8(%rdx,%rcx,8), %rdi
leaq 0xe0(%rsp), %rdx
callq 0x1d0e8
movq 0x10(%rsp), %r13
movq (%r13), %rax
movq (%rax,%rbp), %rdi
movq (%r14), %rax
movq (%rax,%r12,8), %rax
leaq 0x8(%rdi,%rax,8), %rsi
leaq 0xc0(%rsp), %rdx
callq 0x1d0e8
movq (%r13), %rax
movq (%r14), %rcx
movq (%rcx,%r12,8), %rcx
movq (%rax,%rbp), %rdx
movq 0x8(%rax,%rbp), %rsi
leaq 0x8(%rdx,%rcx,8), %rdi
leaq 0xa0(%rsp), %rdx
callq 0x1d0e8
movq 0x128(%rsp), %rax
subq 0x120(%rsp), %rax
cmpq $0x11, %rax
movq %rbx, %r13
movl $0x0, %r14d
jb 0x11be8
leaq 0x100(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
movq %r13, %rcx
callq 0x10a90
leaq 0x180(%rsp), %rdi
leaq 0x100(%rsp), %rsi
movq %r13, %rdx
callq 0x121bc
leaq 0x3b0(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
movq %r13, %rdx
callq 0x121bc
movq 0x68(%rsp), %rax
subq 0x60(%rsp), %rax
cmpq $0x11, %rax
jb 0x11c46
leaq 0xe0(%rsp), %rsi
leaq 0xa0(%rsp), %rdx
leaq 0x60(%rsp), %rcx
callq 0x10a90
leaq 0x300(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
leaq 0x60(%rsp), %rdx
callq 0x121bc
leaq 0x250(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
leaq 0x60(%rsp), %rdx
callq 0x121bc
movq 0x80(%rsp), %rdi
leaq 0x180(%rsp), %rsi
callq 0x13162
movq 0x170(%rsp), %rdi
leaq 0x300(%rsp), %rsi
callq 0x13162
movq 0x168(%rsp), %rdi
leaq 0x3b0(%rsp), %rsi
callq 0x13162
movq 0x160(%rsp), %rdi
leaq 0x250(%rsp), %rsi
callq 0x13162
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x11cb7
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
movq %r15, %rbx
je 0x11cd7
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0x11cf4
movq 0xf0(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0x11d11
movq 0x110(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x11d28
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x120(%rsp), %rdi
testq %rdi, %rdi
je 0x11d45
movq 0x130(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x2b0(%rsp), %rdi
testq %rdi, %rdi
je 0x11d62
movq 0x2c0(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x298(%rsp), %rdi
testq %rdi, %rdi
je 0x11d7f
movq 0x2a8(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x280(%rsp), %rdi
testq %rdi, %rdi
je 0x11d9c
movq 0x290(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x268(%rsp), %rdi
testq %rdi, %rdi
je 0x11db9
movq 0x278(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x250(%rsp), %rdi
testq %rdi, %rdi
je 0x11dd6
movq 0x260(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x360(%rsp), %rdi
testq %rdi, %rdi
je 0x11df3
movq 0x370(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x348(%rsp), %rdi
testq %rdi, %rdi
je 0x11e10
movq 0x358(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x330(%rsp), %rdi
testq %rdi, %rdi
je 0x11e2d
movq 0x340(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x318(%rsp), %rdi
testq %rdi, %rdi
je 0x11e4a
movq 0x328(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x300(%rsp), %rdi
testq %rdi, %rdi
je 0x11e67
movq 0x310(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x410(%rsp), %rdi
testq %rdi, %rdi
je 0x11e84
movq 0x420(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x3f8(%rsp), %rdi
testq %rdi, %rdi
je 0x11ea1
movq 0x408(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x3e0(%rsp), %rdi
testq %rdi, %rdi
je 0x11ebe
movq 0x3f0(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x3c8(%rsp), %rdi
testq %rdi, %rdi
je 0x11edb
movq 0x3d8(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x3b0(%rsp), %rdi
testq %rdi, %rdi
je 0x11ef8
movq 0x3c0(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x1e0(%rsp), %rdi
testq %rdi, %rdi
je 0x11f15
movq 0x1f0(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x1c8(%rsp), %rdi
testq %rdi, %rdi
je 0x11f32
movq 0x1d8(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x1b0(%rsp), %rdi
testq %rdi, %rdi
je 0x11f4f
movq 0x1c0(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x198(%rsp), %rdi
testq %rdi, %rdi
je 0x11f6c
movq 0x1a8(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x180(%rsp), %rdi
testq %rdi, %rdi
je 0x11f89
movq 0x190(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
incq %r12
movslq 0x8(%rbx), %rax
addq $0x18, %rbp
cmpq %rax, %r12
jl 0x117e2
addq $0x33e8, %rsp           # imm = 0x33E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x23c10(%rip), %rdi     # 0x35bc6
xorl %eax, %eax
callq 0x7530
movl $0x8, %edi
callq 0x7180
movq %rax, %r14
movl $0x1, %edi
callq 0x7380
movq %rax, %r15
leaq 0x22e0a(%rip), %rsi     # 0x34de8
movq %rax, %rdi
callq 0xb5c8
movq %r15, (%r14)
leaq 0x35cc8(%rip), %rsi     # 0x47cb8
movq %r14, %rdi
jmp 0x1201f
leaq 0x22a66(%rip), %rdi     # 0x34a62
callq 0x7560
movl $0x8, %edi
callq 0x7180
leaq 0x22a6c(%rip), %rcx     # 0x34a7e
movq %rcx, (%rax)
movq 0x35f1c(%rip), %rsi     # 0x47f38
movq %rax, %rdi
xorl %edx, %edx
callq 0x7660
movl $0x8, %edi
callq 0x7180
leaq 0x22c65(%rip), %rcx     # 0x34c9c
jmp 0x12012
movl $0x8, %edi
callq 0x7180
leaq 0x22d53(%rip), %rcx     # 0x34d9d
jmp 0x12012
movq %rax, %rbx
movl $0x1, %esi
movq %r15, %rdi
callq 0x7390
jmp 0x1208a
movq %rax, %rbx
movq 0x230(%rsp), %rdi
cmpq %r12, %rdi
je 0x121a5
movq 0x240(%rsp), %rsi
incq %rsi
jmp 0x120a8
movq %rax, %rbx
jmp 0x121a5
movq %rax, %rbx
movq %r14, %rdi
callq 0x72a0
jmp 0x121a5
jmp 0x1209d
jmp 0x1209d
jmp 0x1209d
movq %rax, %rbx
movl $0x10, %esi
movq %r13, %rdi
callq 0x7390
jmp 0x121a5
movq %rax, %rbx
jmp 0x12171
jmp 0x120c6
jmp 0x120c6
jmp 0x120c6
jmp 0x120c6
jmp 0x120c6
jmp 0x120c6
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x120e6
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x12103
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0x12120
movq 0xf0(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0x1213d
movq 0x110(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x12154
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
movq 0x120(%rsp), %rdi
testq %rdi, %rdi
je 0x12171
movq 0x130(%rsp), %rsi
subq %rdi, %rsi
callq 0x7390
leaq 0x250(%rsp), %rdi
callq 0x132c6
leaq 0x300(%rsp), %rdi
callq 0x132c6
leaq 0x3b0(%rsp), %rdi
callq 0x132c6
leaq 0x180(%rsp), %rdi
callq 0x132c6
movq %rbx, %rdi
callq 0x76a0
nop