// File: /workspace/github_cpp_makefile_star2_O3/ADAPTLab[P]MuDBSCAN/MuC_RTree.cpp
// Function: GpickSeeds(GhdrNd*, GlstNd**, GlstNd**)
void GpickSeeds(GHdrNd ptrChildLst, GLstNd *lstNdChildOne, GLstNd *lstNdChildTwo)
{    
	if(ptrChildLst == NULL)
		return;
	GTreeNode* tnInfoMin = (GTreeNode *)calloc(DIMENSION, sizeof(GTreeNode));
	// assert(tnInfoMin != NULL);

	GTreeNode* tnInfoMax = (GTreeNode *)calloc(DIMENSION, sizeof(GTreeNode));
	// assert(tnInfoMax != NULL);

	GLstNd lstNdTemp = NULL;
    int iCnt = 0;
	Boolean bIsFirst = TRUE;

	Region rgnRectTemp;
	Region rgnRectOut;

	double dNormSep = 0;
	double dMaxNormSep = 0;
	dimension dimMaxNormSep = 0;
	GTreeNode temp;

	switch(ptrChildLst->ptrFirstNd->tnInfo->ndType)
    {	
    	case INTNODE:   
			lstNdTemp = ptrChildLst->ptrFirstNd;
	        rgnRectTemp = GinitRgnRect(NULL, NULL);

	        rgnRectOut = GinitRgnRect(NULL, NULL);
	        while(lstNdTemp != NULL)
	        {     
	        	for(iCnt = 0; iCnt < DIMENSION; iCnt++)
	            {     
	              	if(bIsFirst)
	                {     
						rgnRectTemp->iBottomLeft[iCnt] = lstNdTemp->tnInfo->tdInfo->rgnRect->iBottomLeft[iCnt];
						rgnRectTemp->iTopRight[iCnt] = lstNdTemp->tnInfo->tdInfo->rgnRect->iTopRight[iCnt];
						rgnRectOut->iBottomLeft[iCnt] = lstNdTemp->tnInfo->tdInfo->rgnRect->iBottomLeft[iCnt];
						rgnRectOut->iTopRight[iCnt] = lstNdTemp->tnInfo->tdInfo->rgnRect->iTopRight[iCnt];
						tnInfoMin[iCnt] = lstNdTemp->tnInfo;
						tnInfoMax[iCnt] = lstNdTemp->tnInfo;
						continue;
	                }
	                if(lstNdTemp->tnInfo->tdInfo->rgnRect->iBottomLeft[iCnt] > rgnRectTemp->iBottomLeft[iCnt])
	                {     
	                    rgnRectTemp->iBottomLeft[iCnt] = lstNdTemp->tnInfo->tdInfo->rgnRect->iBottomLeft[iCnt];
	                    tnInfoMin[iCnt] = lstNdTemp->tnInfo;
	                }
	                if(lstNdTemp->tnInfo->tdInfo->rgnRect->iTopRight[iCnt] < rgnRectTemp->iTopRight[iCnt])
	                {     
	                    rgnRectTemp->iTopRight[iCnt] = lstNdTemp->tnInfo->tdInfo->rgnRect->iTopRight[iCnt];
	                    tnInfoMax[iCnt] = lstNdTemp->tnInfo;
	                }

	                if(lstNdTemp->tnInfo->tdInfo->rgnRect->iBottomLeft[iCnt] < rgnRectOut->iBottomLeft[iCnt])
	                    rgnRectOut->iBottomLeft[iCnt] = lstNdTemp->tnInfo->tdInfo->rgnRect->iBottomLeft[iCnt];

	                if(lstNdTemp->tnInfo->tdInfo->rgnRect->iTopRight[iCnt] > rgnRectOut->iTopRight[iCnt])
                        rgnRectOut->iTopRight[iCnt] = lstNdTemp->tnInfo->tdInfo->rgnRect->iTopRight[iCnt];
	            }
               
                lstNdTemp = lstNdTemp->ptrNextNd;
                if(bIsFirst)
                	bIsFirst = FALSE;
	        }

	        dNormSep = 0;
	        dMaxNormSep = 0;
	        dimMaxNormSep = 0;

	        for(iCnt = 0; iCnt < DIMENSION; iCnt++)
	        {     
	            dNormSep = fabs(rgnRectTemp->iBottomLeft[iCnt] - rgnRectTemp->iTopRight[iCnt]) / fabs(rgnRectOut->iTopRight[iCnt] - rgnRectOut->iBottomLeft[iCnt]);
	            if(dNormSep > dMaxNormSep)
	            {   
	            	dMaxNormSep = dNormSep;
	                dimMaxNormSep = iCnt;
	            }
	        }
	         
			if(tnInfoMin[(int)dimMaxNormSep] == tnInfoMax[(int)dimMaxNormSep])
			{
				lstNdTemp = ptrChildLst->ptrFirstNd;
				temp=tnInfoMax[(int)dimMaxNormSep];
				if(temp != lstNdTemp->tnInfo)
				{
					rgnRectTemp->iTopRight[(int)dimMaxNormSep] = lstNdTemp->tnInfo->tdInfo->rgnRect->iTopRight[(int)dimMaxNormSep];
					tnInfoMax[(int)dimMaxNormSep] = lstNdTemp->tnInfo;
					lstNdTemp = lstNdTemp->ptrNextNd;
				}
				else
				{
					rgnRectTemp->iTopRight[(int)dimMaxNormSep] = lstNdTemp->ptrNextNd->tnInfo->tdInfo->rgnRect->iTopRight[(int)dimMaxNormSep];
					tnInfoMax[(int)dimMaxNormSep] = lstNdTemp->ptrNextNd->tnInfo;
					lstNdTemp = lstNdTemp->ptrNextNd->ptrNextNd;
				}
				while(lstNdTemp != NULL)
				{
					if(lstNdTemp->tnInfo->tdInfo->rgnRect->iTopRight[(int)dimMaxNormSep] < rgnRectTemp->iTopRight[(int)dimMaxNormSep] && temp != lstNdTemp->tnInfo)
					{
						rgnRectTemp->iTopRight[(int)dimMaxNormSep] = lstNdTemp->tnInfo->tdInfo->rgnRect->iTopRight[(int)dimMaxNormSep];
			            tnInfoMax[(int)dimMaxNormSep] = lstNdTemp->tnInfo;
					}
					lstNdTemp = lstNdTemp->ptrNextNd;
				} 
			}
	         
			// if(tnInfoMin[(int)dimMaxNormSep]==tnInfoMax[(int)dimMaxNormSep])
			// {
			// 	fprintf(stderr, "error in the code\n");
			// 	exit(-1);
			// }

			*lstNdChildOne = GdeleteLstElem(ptrChildLst, tnInfoMin[(int)dimMaxNormSep]);

			*lstNdChildTwo = GdeleteLstElem(ptrChildLst, tnInfoMax[(int)dimMaxNormSep]);

			free(rgnRectTemp->iBottomLeft);
			free(rgnRectTemp->iTopRight);
			free(rgnRectTemp);
			free(rgnRectOut->iBottomLeft);
			free(rgnRectOut->iTopRight);
			free(rgnRectOut);
	    break;


		case EXTNODE:        
			lstNdTemp = ptrChildLst->ptrFirstNd;
			rgnRectTemp = GinitRgnRect(NULL, NULL);
			rgnRectOut = GinitRgnRect(NULL, NULL);

			while(lstNdTemp != NULL)
			{     
				for(iCnt = 0; iCnt < DIMENSION; iCnt++)
			    {     
				  	if(bIsFirst)
				    {     
							rgnRectTemp->iBottomLeft[iCnt] = groupList->groupItems[lstNdTemp->tnInfo->tdInfo->groupElem]->bcell->minOriginalBoundary[iCnt];
							rgnRectTemp->iTopRight[iCnt] = groupList->groupItems[lstNdTemp->tnInfo->tdInfo->groupElem]->bcell->maxOriginalBoundary[iCnt];
							rgnRectOut->iBottomLeft[iCnt] = groupList->groupItems[lstNdTemp->tnInfo->tdInfo->groupElem]->bcell->minOriginalBoundary[iCnt];
							rgnRectOut->iTopRight[iCnt] = groupList->groupItems[lstNdTemp->tnInfo->tdInfo->groupElem]->bcell->maxOriginalBoundary[iCnt];
							tnInfoMin[iCnt] = lstNdTemp->tnInfo;
							tnInfoMax[iCnt] = lstNdTemp->tnInfo;
							continue;
				    }
			        if(groupList->groupItems[lstNdTemp->tnInfo->tdInfo->groupElem]->bcell->minOriginalBoundary[iCnt] > rgnRectTemp->iBottomLeft[iCnt])
			        {   
			            rgnRectTemp->iBottomLeft[iCnt] = groupList->groupItems[lstNdTemp->tnInfo->tdInfo->groupElem]->bcell->minOriginalBoundary[iCnt];
			            tnInfoMin[iCnt] = lstNdTemp->tnInfo;
			        }
			        if(groupList->groupItems[lstNdTemp->tnInfo->tdInfo->groupElem]->bcell->maxOriginalBoundary[iCnt] < rgnRectTemp->iTopRight[iCnt])
			        {     
			            rgnRectTemp->iTopRight[iCnt] = groupList->groupItems[lstNdTemp->tnInfo->tdInfo->groupElem]->bcell->maxOriginalBoundary[iCnt];
			            tnInfoMax[iCnt] = lstNdTemp->tnInfo;
			        }
			        if(groupList->groupItems[lstNdTemp->tnInfo->tdInfo->groupElem]->bcell->minOriginalBoundary[iCnt] < rgnRectOut->iBottomLeft[iCnt])
			            rgnRectOut->iBottomLeft[iCnt] = groupList->groupItems[lstNdTemp->tnInfo->tdInfo->groupElem]->bcell->minOriginalBoundary[iCnt];
			        if(groupList->groupItems[lstNdTemp->tnInfo->tdInfo->groupElem]->bcell->maxOriginalBoundary[iCnt] > rgnRectOut->iTopRight[iCnt])
			            rgnRectOut->iTopRight[iCnt] = groupList->groupItems[lstNdTemp->tnInfo->tdInfo->groupElem]->bcell->maxOriginalBoundary[iCnt];
				}

				lstNdTemp = lstNdTemp->ptrNextNd;
				if(bIsFirst)
			    	bIsFirst = FALSE;
			}	//while

			dNormSep = 0;
			dMaxNormSep = 0;
			dimMaxNormSep = 0;
			for(iCnt = 0; iCnt < DIMENSION; iCnt++)
			{     
			   dNormSep = fabs(rgnRectTemp->iBottomLeft[iCnt] - rgnRectTemp->iTopRight[iCnt]) / fabs(rgnRectOut->iTopRight[iCnt] - rgnRectOut->iBottomLeft[iCnt]);
			   if(dNormSep > dMaxNormSep)
			   {   
			   	   dMaxNormSep = dNormSep;
			       dimMaxNormSep = iCnt;
			   }
			}

			if(tnInfoMin[(int)dimMaxNormSep] == tnInfoMax[(int)dimMaxNormSep])
			{
				lstNdTemp = ptrChildLst->ptrFirstNd;
				temp=tnInfoMax[(int)dimMaxNormSep];
				if(temp != lstNdTemp->tnInfo)
				{
					rgnRectTemp->iTopRight[(int)dimMaxNormSep] = groupList->groupItems[lstNdTemp->tnInfo->tdInfo->groupElem]->bcell->maxOriginalBoundary[(int)dimMaxNormSep];
					 tnInfoMax[(int)dimMaxNormSep] = lstNdTemp->tnInfo;
					lstNdTemp = lstNdTemp->ptrNextNd;
				}
				else
				{
					rgnRectTemp->iTopRight[(int)dimMaxNormSep] = groupList->groupItems[lstNdTemp->ptrNextNd->tnInfo->tdInfo->groupElem]->bcell->maxOriginalBoundary[(int)dimMaxNormSep];
					tnInfoMax[(int)dimMaxNormSep] = lstNdTemp->ptrNextNd->tnInfo;
					lstNdTemp = lstNdTemp->ptrNextNd->ptrNextNd;
				}
				while(lstNdTemp != NULL)
				{
					if(groupList->groupItems[lstNdTemp->tnInfo->tdInfo->groupElem]->bcell->maxOriginalBoundary[(int)dimMaxNormSep] < rgnRectTemp->iTopRight[(int)dimMaxNormSep] && temp != lstNdTemp->tnInfo)
					{
						rgnRectTemp->iTopRight[(int)dimMaxNormSep] = groupList->groupItems[lstNdTemp->tnInfo->tdInfo->groupElem]->bcell->maxOriginalBoundary[(int)dimMaxNormSep];
			              tnInfoMax[(int)dimMaxNormSep] = lstNdTemp->tnInfo;
					}
						lstNdTemp = lstNdTemp->ptrNextNd;
				} 
			}

			*lstNdChildOne = GdeleteLstElem(ptrChildLst, tnInfoMin[(int)dimMaxNormSep]);
			*lstNdChildTwo = GdeleteLstElem(ptrChildLst, tnInfoMax[(int)dimMaxNormSep]);

			free(rgnRectTemp->iBottomLeft);
			free(rgnRectTemp->iTopRight);
			free(rgnRectTemp);
			free(rgnRectOut->iBottomLeft);
			free(rgnRectOut->iTopRight);
			free(rgnRectOut);
		break;
	}

	free(tnInfoMin);
	free(tnInfoMax);

	return;
}

// Assembly:
testq %rdi, %rdi
je 0x770b
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r15
movq %rdi, %r13
movq %rsi, -0x48(%rbp)
leaq 0xfdc5(%rip), %rax      # 0x17364
movslq (%rax), %r14
movl $0x8, %esi
movq %r14, %rdi
callq 0x31b0
movq %rax, %rbx
movl $0x8, %esi
movq %r14, %rdi
callq 0x31b0
movq %rax, %r14
movq 0x8(%r13), %r12
movq (%r12), %rax
movl (%rax), %eax
cmpl $0x1, %eax
je 0x770c
testl %eax, %eax
jne 0x7b0e
movq %r13, -0x38(%rbp)
movq %r15, -0x40(%rbp)
xorl %edi, %edi
xorl %esi, %esi
callq 0x68bb
movq %rax, %r15
xorl %edi, %edi
xorl %esi, %esi
callq 0x68bb
movq %rax, %r13
leaq 0xfd60(%rip), %rax      # 0x17364
movl (%rax), %eax
xorl %ecx, %ecx
testl %eax, %eax
jle 0x76f6
movq (%r15), %rdx
xorl %esi, %esi
movq (%r12), %rdi
movq 0x8(%rdi), %r8
movq (%r8), %r9
movq (%r9), %r8
movsd (%r8,%rsi,8), %xmm0
testb $0x1, %cl
je 0x7694
ucomisd (%rdx,%rsi,8), %xmm0
jbe 0x763e
movsd %xmm0, (%rdx,%rsi,8)
movq %rdi, (%rbx,%rsi,8)
movq 0x8(%r9), %r9
movsd (%r9,%rsi,8), %xmm0
movq 0x8(%r15), %r10
movsd (%r10,%rsi,8), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x7662
movsd %xmm0, (%r10,%rsi,8)
movq %rdi, (%r14,%rsi,8)
movsd (%r8,%rsi,8), %xmm0
movq (%r13), %rdi
movsd (%rdi,%rsi,8), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x767c
movsd %xmm0, (%rdi,%rsi,8)
movsd (%r9,%rsi,8), %xmm0
movq 0x8(%r13), %rdi
ucomisd (%rdi,%rsi,8), %xmm0
jbe 0x76d5
movsd %xmm0, (%rdi,%rsi,8)
jmp 0x76d5
movsd %xmm0, (%rdx,%rsi,8)
movq 0x8(%r9), %r9
movsd (%r9,%rsi,8), %xmm0
movq 0x8(%r15), %r10
movsd %xmm0, (%r10,%rsi,8)
movsd (%r8,%rsi,8), %xmm0
movq (%r13), %r8
movsd %xmm0, (%r8,%rsi,8)
movsd (%r9,%rsi,8), %xmm0
movq 0x8(%r13), %r8
movsd %xmm0, (%r8,%rsi,8)
movq %rdi, (%rbx,%rsi,8)
movq %rdi, (%r14,%rsi,8)
incq %rsi
cmpq %rsi, %rax
jne 0x7615
movq 0x10(%r12), %r12
movb $0x1, %cl
testq %r12, %r12
jne 0x7608
jmp 0x7858
movq 0x10(%r12), %r12
movb $0x1, %cl
testq %r12, %r12
jne 0x7608
jmp 0x7966
retq
movq %r13, -0x38(%rbp)
movq %r15, -0x40(%rbp)
xorl %edi, %edi
xorl %esi, %esi
callq 0x68bb
movq %rax, %r15
xorl %edi, %edi
xorl %esi, %esi
callq 0x68bb
movq %rax, %r13
leaq 0xfc31(%rip), %rax      # 0x17364
movl (%rax), %ecx
xorl %edx, %edx
testl %ecx, %ecx
jle 0x7843
leaq 0xfc5a(%rip), %rax      # 0x173a0
movq (%rax), %rax
movq (%rax), %rsi
movq (%r15), %rdi
xorl %r8d, %r8d
movq (%r12), %r9
movq 0x8(%r9), %rax
movslq 0x8(%rax), %rax
movq (%rsi,%rax,8), %rax
movq 0x38(%rax), %r11
movq (%r11), %r10
movsd (%r10,%r8,8), %xmm0
testb $0x1, %dl
je 0x77e0
ucomisd (%rdi,%r8,8), %xmm0
jbe 0x7786
movsd %xmm0, (%rdi,%r8,8)
movq %r9, (%rbx,%r8,8)
movq 0x8(%r11), %r11
movsd (%r11,%r8,8), %xmm0
movq 0x8(%r15), %rax
movsd (%rax,%r8,8), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x77aa
movsd %xmm0, (%rax,%r8,8)
movq %r9, (%r14,%r8,8)
movsd (%r10,%r8,8), %xmm0
movq (%r13), %rax
movsd (%rax,%r8,8), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x77c6
movsd %xmm0, (%rax,%r8,8)
movsd (%r11,%r8,8), %xmm0
movq 0x8(%r13), %rax
ucomisd (%rax,%r8,8), %xmm0
jbe 0x7822
movsd %xmm0, (%rax,%r8,8)
jmp 0x7822
movsd %xmm0, (%rdi,%r8,8)
movq 0x8(%r11), %rax
movsd (%rax,%r8,8), %xmm0
movq 0x8(%r15), %r11
movsd %xmm0, (%r11,%r8,8)
movsd (%r10,%r8,8), %xmm0
movq (%r13), %r10
movsd %xmm0, (%r10,%r8,8)
movsd (%rax,%r8,8), %xmm0
movq 0x8(%r13), %rax
movsd %xmm0, (%rax,%r8,8)
movq %r9, (%rbx,%r8,8)
movq %r9, (%r14,%r8,8)
incq %r8
cmpq %r8, %rcx
jne 0x7752
movq 0x10(%r12), %r12
movb $0x1, %dl
testq %r12, %r12
jne 0x7737
jmp 0x78df
movq 0x10(%r12), %r12
movb $0x1, %dl
testq %r12, %r12
jne 0x7737
jmp 0x79eb
testl %eax, %eax
jle 0x7966
movq (%r15), %rcx
movq 0x8(%r15), %rdx
movq (%r13), %rsi
movq 0x8(%r13), %rdi
xorpd %xmm0, %xmm0
xorl %r8d, %r8d
movapd 0xa882(%rip), %xmm1     # 0x12100
xorpd %xmm2, %xmm2
movsd (%rcx,%r8,8), %xmm3
subsd (%rdx,%r8,8), %xmm3
movsd (%rdi,%r8,8), %xmm4
subsd (%rsi,%r8,8), %xmm4
divsd %xmm4, %xmm3
andpd %xmm1, %xmm3
xorps %xmm4, %xmm4
cvtsi2sd %r8d, %xmm4
movapd %xmm3, %xmm5
maxsd %xmm2, %xmm5
cmpltsd %xmm3, %xmm2
andpd %xmm2, %xmm4
andnpd %xmm0, %xmm2
orpd %xmm4, %xmm2
movapd %xmm2, %xmm0
incq %r8
movapd %xmm5, %xmm2
cmpq %r8, %rax
jne 0x7882
cvttsd2si %xmm0, %eax
movslq %eax, %r8
jmp 0x7969
testl %ecx, %ecx
jle 0x79eb
movq (%r15), %rdx
movq 0x8(%r15), %rsi
movq (%r13), %rdi
movq 0x8(%r13), %r8
xorpd %xmm0, %xmm0
xorl %r9d, %r9d
movapd 0xa7fb(%rip), %xmm1     # 0x12100
xorpd %xmm2, %xmm2
movsd (%rdx,%r9,8), %xmm3
subsd (%rsi,%r9,8), %xmm3
movsd (%r8,%r9,8), %xmm4
subsd (%rdi,%r9,8), %xmm4
divsd %xmm4, %xmm3
andpd %xmm1, %xmm3
xorps %xmm4, %xmm4
cvtsi2sd %r9d, %xmm4
movapd %xmm3, %xmm5
maxsd %xmm2, %xmm5
cmpltsd %xmm3, %xmm2
andpd %xmm2, %xmm4
andnpd %xmm0, %xmm2
orpd %xmm4, %xmm2
movapd %xmm2, %xmm0
incq %r9
movapd %xmm5, %xmm2
cmpq %r9, %rcx
jne 0x7909
cvttsd2si %xmm0, %eax
movslq %eax, %r9
jmp 0x79ee
xorl %r8d, %r8d
movq (%rbx,%r8,8), %rsi
movq (%r14,%r8,8), %rax
cmpq %rax, %rsi
jne 0x79fb
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rcx
movq (%rcx), %r9
cmpq %r9, %rsi
jne 0x7991
movq 0x10(%rcx), %rcx
movq (%rcx), %r9
movq 0x8(%r9), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movsd (%rax,%r8,8), %xmm0
movq 0x8(%r15), %rax
movsd %xmm0, (%rax,%r8,8)
movq %r9, (%r14,%r8,8)
movq 0x10(%rcx), %rcx
testq %rcx, %rcx
je 0x7a04
movq (%rcx), %rdx
cmpq %rdx, %rsi
je 0x79b0
movq 0x8(%rdx), %rdi
movq (%rdi), %rdi
movq 0x8(%rdi), %rdi
movsd (%rdi,%r8,8), %xmm1
ucomisd %xmm1, %xmm0
jbe 0x79b0
movsd %xmm1, (%rax,%r8,8)
movq %rdx, (%r14,%r8,8)
movq %rdx, %r9
movapd %xmm1, %xmm0
jmp 0x79b0
xorl %r9d, %r9d
movq (%rbx,%r9,8), %rsi
movq (%r14,%r9,8), %rax
cmpq %rax, %rsi
je 0x7a0d
movq %rax, -0x30(%rbp)
jmp 0x7ab5
movq %r9, -0x30(%rbp)
jmp 0x7ab5
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rdx
movq (%rdx), %r10
leaq 0xf981(%rip), %rax      # 0x173a0
movq (%rax), %rax
movq (%rax), %rcx
cmpq %r10, %rsi
jne 0x7a31
movq 0x10(%rdx), %rdx
movq (%rdx), %r10
movq 0x8(%r10), %rax
movslq 0x8(%rax), %rax
movq (%rcx,%rax,8), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movsd (%rax,%r9,8), %xmm0
movq 0x8(%r15), %rcx
movsd %xmm0, (%rcx,%r9,8)
movq %r10, (%r14,%r9,8)
movq 0x10(%rdx), %rdx
testq %rdx, %rdx
je 0x7ab1
leaq 0xf937(%rip), %rax      # 0x173a0
movq (%rax), %rax
movq (%rax), %rax
movq (%rdx), %rdi
cmpq %rdi, %rsi
je 0x7aa8
movq 0x8(%rdi), %r8
movslq 0x8(%r8), %r8
movq (%rax,%r8,8), %r8
movq 0x38(%r8), %r8
movq 0x8(%r8), %r8
movsd (%r8,%r9,8), %xmm1
ucomisd %xmm1, %xmm0
jbe 0x7aa8
movsd %xmm1, (%rcx,%r9,8)
movq %rdi, (%r14,%r9,8)
movq %rdi, %r10
movapd %xmm1, %xmm0
movq 0x10(%rdx), %rdx
testq %rdx, %rdx
jne 0x7a6f
movq %r10, -0x30(%rbp)
movq -0x38(%rbp), %r12
movq %r12, %rdi
callq 0x42b5
movq -0x48(%rbp), %rcx
movq %rax, (%rcx)
movq %r12, %rdi
movq -0x30(%rbp), %rsi
callq 0x42b5
movq -0x40(%rbp), %rcx
movq %rax, (%rcx)
movq (%r15), %rdi
callq 0x3310
movq 0x8(%r15), %rdi
callq 0x3310
movq %r15, %rdi
callq 0x3310
movq (%r13), %rdi
callq 0x3310
movq 0x8(%r13), %rdi
callq 0x3310
movq %r13, %rdi
callq 0x3310
movq %rbx, %rdi
callq 0x3310
movq %r14, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3310