// File: jamesliu516[P]amrdg2d/face_flux_all.cpp
// Function: face_kxrcf(Face&)
void face_kxrcf(Face &fc)
{
     double uxl[4][3]={0.0},uxr[4][3]={0.0};
     
     OctCell *lsbl, *lsbl0;
     double xc0[2],xc1[2];
     
     double xii0[3][2]={0.0};
          
     double dx0,dy0,dx1,dy1;
     double dofp[4][6]={0.0};
     double dofn[4][6]={0.0};
     bool pflag2,nflag2; 
     lsbl0=fc.parent;
     lsbl=fc.neighbor;
     xc0[0]=lsbl0->xc1;
     xc0[1]=lsbl0->yc1;
     
     xc1[0]=lsbl->xc1;
     xc1[1]=lsbl->yc1;
     
     dx0=lsbl0->dx;
     dy0=lsbl0->dy;
     dx1=lsbl->dx;
     dy1=lsbl->dy;
      
     for(short j=0; j<3;++j){
        xii0[j][0]=fc.gs_pt[j][0];
        xii0[j][1]=fc.gs_pt[j][1];                 
      }

     if((!lsbl0->mvflg)||(!lsbl->mvflg)){
         for(short i1=0;i1<4;++i1){
             for(short j1=0;j1<6;++j1){
                 dofp[i1][j1]=lsbl0->dof[i1][j1];
                 dofn[i1][j1]=lsbl->dof[i1][j1];
             }
         }
     }
     else{
         pflag2=(lsbl0->flag==2);
         nflag2=(lsbl->flag==2);
         if((pflag2&& !nflag2) || (!pflag2&& nflag2)){
             //.....
             if(pflag2) getGhostValueMagazine(lsbl0,mv_qvlvModify);
             if(nflag2) getGhostValueMagazine(lsbl,mv_qvlvModify);
             for(short i1=0;i1<4;++i1){
                 for(short j1=0;j1<6;++j1){
                     dofp[i1][j1]=lsbl0->dof[i1][j1];
                     dofn[i1][j1]=lsbl->dof[i1][j1];
                 }
             }
         }
         else {
             for(short i1=0;i1<4;++i1){
                 for(short j1=0;j1<6;++j1){
                     dofp[i1][j1]=lsbl0->dof[i1][j1];
                     dofn[i1][j1]=lsbl->dof[i1][j1];
                 }
             }
         }
     }

     /*
        for(short i1=0;i1<4;++i1){
        for(short j1=0;j1<6;++j1){
        dofp[i1][j1]=lsbl0->dof[i1][j1];
        dofn[i1][j1]=lsbl->dof[i1][j1];
        }
        }
        */
     for(short i=0; i< 4; i++)  {
         for(short j=0;j<3;j++) {
	    uxl[i][j]= n_approx_sol(xii0[j], xc0, dx0, dy0, dofp[i], nDOF );
	    uxr[i][j]= n_approx_sol(xii0[j], xc1, dx1, dy1, dofn[i], nDOF );
	    }
     }     
     
     SHBL ushl[3], ushr[3];
   //  JBBL ujbl[3], ujbr[3];     
     
     for(short j=0; j<3;j++) {
          ushl[j].q=uxl[0][j];
          ushl[j].qu=uxl[1][j];
          ushl[j].qv=uxl[2][j];         
          ushl[j].te=uxl[3][j];
          
          ushr[j].q=uxr[0][j];
          ushr[j].qu=uxr[1][j];
          ushr[j].qv=uxr[2][j];         
          ushr[j].te=uxr[3][j];
      }     
     
     PXYZ normal;
     
     normal.x=fc.nml[0];
     normal.y=fc.nml[1];
     
     double u1,v1,u0,v0;
     double rtmp;
     JBBL uljb[3],urjb[3];
     double prel[3], prer[3];

     for(short j=0; j<3;++j) {
          shblToJbbl(&ushl[j], &uljb[j]);
          shblToJbbl(&ushr[j], &urjb[j]); 
          prel[j]=uljb[j].p;
          prer[j]=urjb[j].p;
     }
     u0=dofp[1][0]/dofp[0][0];
     v0=dofp[2][0]/dofp[0][0];
     u1=dofn[1][0]/dofn[0][0];
     v1=dofn[2][0]/dofn[0][0];
/*den
     rtmp=(wei[0]*(uxl[0][0]-uxr[0][0])+wei[1]*(uxl[0][1]-uxr[0][1])
         +wei[2]*(uxl[0][2]-uxr[0][2]))*fc.area*0.5;
         */
     //entropy
     rtmp=(wei[0]*(prel[0]/pow(uxl[0][0],GAMMA)-prer[0]/pow(uxr[0][0],GAMMA))
         +wei[1]*(prel[1]/pow(uxl[0][1],GAMMA)-prer[1]/pow(uxr[0][1],GAMMA)) 
         +wei[2]*(prel[2]/pow(uxl[0][2],GAMMA)-prer[2]/pow(uxr[0][2],GAMMA)) )*fc.area*0.5;
     if(u0*normal.x+v0*normal.y<0.0){
         lsbl0->kxq+=rtmp;
         lsbl0->inlen+=fc.area;
     }

     if(u1*normal.x+v1*normal.y>0.0){
         lsbl->kxq-=rtmp;
         lsbl->inlen+=fc.area;
     }

 }

// Assembly:
subq $0x5c8, %rsp            # imm = 0x5C8
movq %rdi, 0x5c0(%rsp)
leaq 0x560(%rsp), %rdi
xorl %esi, %esi
movl $0x60, %edx
callq 0x3150
leaq 0x500(%rsp), %rdi
xorl %esi, %esi
movl $0x60, %edx
callq 0x3150
leaq 0x4a0(%rsp), %rdi
xorl %esi, %esi
movl $0x30, %edx
callq 0x3150
leaq 0x3c0(%rsp), %rdi
xorl %esi, %esi
movl $0xc0, %edx
callq 0x3150
leaq 0x300(%rsp), %rdi
xorl %esi, %esi
movl $0xc0, %edx
callq 0x3150
movq 0x5c0(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x4f0(%rsp)
movq 0x5c0(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x4f8(%rsp)
movq 0x4f0(%rsp), %rax
movsd 0x278(%rax), %xmm0
movsd %xmm0, 0x4e0(%rsp)
movq 0x4f0(%rsp), %rax
movsd 0x280(%rax), %xmm0
movsd %xmm0, 0x4e8(%rsp)
movq 0x4f8(%rsp), %rax
movsd 0x278(%rax), %xmm0
movsd %xmm0, 0x4d0(%rsp)
movq 0x4f8(%rsp), %rax
movsd 0x280(%rax), %xmm0
movsd %xmm0, 0x4d8(%rsp)
movq 0x4f0(%rsp), %rax
movsd 0x288(%rax), %xmm0
movsd %xmm0, 0x498(%rsp)
movq 0x4f0(%rsp), %rax
movsd 0x290(%rax), %xmm0
movsd %xmm0, 0x490(%rsp)
movq 0x4f8(%rsp), %rax
movsd 0x288(%rax), %xmm0
movsd %xmm0, 0x488(%rsp)
movq 0x4f8(%rsp), %rax
movsd 0x290(%rax), %xmm0
movsd %xmm0, 0x480(%rsp)
movw $0x0, 0x2fc(%rsp)
movswl 0x2fc(%rsp), %eax
cmpl $0x3, %eax
jge 0x20770
movq 0x5c0(%rsp), %rax
addq $0x20, %rax
movswq 0x2fc(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movsd (%rax), %xmm0
movswq 0x2fc(%rsp), %rcx
leaq 0x4a0(%rsp), %rax
shlq $0x4, %rcx
addq %rcx, %rax
movsd %xmm0, (%rax)
movq 0x5c0(%rsp), %rax
addq $0x20, %rax
movswq 0x2fc(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movsd 0x8(%rax), %xmm0
movswq 0x2fc(%rsp), %rcx
leaq 0x4a0(%rsp), %rax
shlq $0x4, %rcx
addq %rcx, %rax
movsd %xmm0, 0x8(%rax)
movw 0x2fc(%rsp), %ax
addw $0x1, %ax
movw %ax, 0x2fc(%rsp)
jmp 0x206cc
movq 0x4f0(%rsp), %rax
testb $0x1, 0x1b4(%rax)
je 0x20796
movq 0x4f8(%rsp), %rax
testb $0x1, 0x1b4(%rax)
jne 0x208a5
movw $0x0, 0x2fa(%rsp)
movswl 0x2fa(%rsp), %eax
cmpl $0x4, %eax
jge 0x208a0
movw $0x0, 0x2f8(%rsp)
movswl 0x2f8(%rsp), %eax
cmpl $0x6, %eax
jge 0x20885
movq 0x4f0(%rsp), %rax
addq $0x30, %rax
movswq 0x2fa(%rsp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movswq 0x2f8(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movswq 0x2fa(%rsp), %rcx
leaq 0x3c0(%rsp), %rax
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movswq 0x2f8(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0x4f8(%rsp), %rax
addq $0x30, %rax
movswq 0x2fa(%rsp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movswq 0x2f8(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movswq 0x2fa(%rsp), %rcx
leaq 0x300(%rsp), %rax
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movswq 0x2f8(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movw 0x2f8(%rsp), %ax
addw $0x1, %ax
movw %ax, 0x2f8(%rsp)
jmp 0x207bb
jmp 0x20887
movw 0x2fa(%rsp), %ax
addw $0x1, %ax
movw %ax, 0x2fa(%rsp)
jmp 0x207a0
jmp 0x20b60
movq 0x4f0(%rsp), %rax
movswl 0x1b0(%rax), %eax
cmpl $0x2, %eax
sete %al
andb $0x1, %al
movb %al, 0x2ff(%rsp)
movq 0x4f8(%rsp), %rax
movswl 0x1b0(%rax), %eax
cmpl $0x2, %eax
sete %al
andb $0x1, %al
movb %al, 0x2fe(%rsp)
testb $0x1, 0x2ff(%rsp)
je 0x208f5
testb $0x1, 0x2fe(%rsp)
je 0x20911
testb $0x1, 0x2ff(%rsp)
jne 0x20a52
testb $0x1, 0x2fe(%rsp)
je 0x20a52
testb $0x1, 0x2ff(%rsp)
je 0x2092a
movq 0x4f0(%rsp), %rdi
xorl %esi, %esi
callq 0x2bde0
testb $0x1, 0x2fe(%rsp)
je 0x20943
movq 0x4f8(%rsp), %rdi
xorl %esi, %esi
callq 0x2bde0
movw $0x0, 0x2f6(%rsp)
movswl 0x2f6(%rsp), %eax
cmpl $0x4, %eax
jge 0x20a4d
movw $0x0, 0x2f4(%rsp)
movswl 0x2f4(%rsp), %eax
cmpl $0x6, %eax
jge 0x20a32
movq 0x4f0(%rsp), %rax
addq $0x30, %rax
movswq 0x2f6(%rsp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movswq 0x2f4(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movswq 0x2f6(%rsp), %rcx
leaq 0x3c0(%rsp), %rax
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movswq 0x2f4(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0x4f8(%rsp), %rax
addq $0x30, %rax
movswq 0x2f6(%rsp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movswq 0x2f4(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movswq 0x2f6(%rsp), %rcx
leaq 0x300(%rsp), %rax
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movswq 0x2f4(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movw 0x2f4(%rsp), %ax
addw $0x1, %ax
movw %ax, 0x2f4(%rsp)
jmp 0x20968
jmp 0x20a34
movw 0x2f6(%rsp), %ax
addw $0x1, %ax
movw %ax, 0x2f6(%rsp)
jmp 0x2094d
jmp 0x20b5e
movw $0x0, 0x2f2(%rsp)
movswl 0x2f2(%rsp), %eax
cmpl $0x4, %eax
jge 0x20b5c
movw $0x0, 0x2f0(%rsp)
movswl 0x2f0(%rsp), %eax
cmpl $0x6, %eax
jge 0x20b41
movq 0x4f0(%rsp), %rax
addq $0x30, %rax
movswq 0x2f2(%rsp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movswq 0x2f0(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movswq 0x2f2(%rsp), %rcx
leaq 0x3c0(%rsp), %rax
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movswq 0x2f0(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0x4f8(%rsp), %rax
addq $0x30, %rax
movswq 0x2f2(%rsp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movswq 0x2f0(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movswq 0x2f2(%rsp), %rcx
leaq 0x300(%rsp), %rax
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movswq 0x2f0(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movw 0x2f0(%rsp), %ax
addw $0x1, %ax
movw %ax, 0x2f0(%rsp)
jmp 0x20a77
jmp 0x20b43
movw 0x2f2(%rsp), %ax
addw $0x1, %ax
movw %ax, 0x2f2(%rsp)
jmp 0x20a5c
jmp 0x20b5e
jmp 0x20b60
movw $0x0, 0x2ee(%rsp)
movswl 0x2ee(%rsp), %eax
cmpl $0x4, %eax
jge 0x20cbe
movw $0x0, 0x2ec(%rsp)
movswl 0x2ec(%rsp), %eax
cmpl $0x3, %eax
jge 0x20ca3
movswq 0x2ec(%rsp), %rax
leaq 0x4a0(%rsp), %rdi
shlq $0x4, %rax
addq %rax, %rdi
leaq 0x4e0(%rsp), %rsi
movsd 0x498(%rsp), %xmm0
movsd 0x490(%rsp), %xmm1
movswq 0x2ee(%rsp), %rax
leaq 0x3c0(%rsp), %rdx
imulq $0x30, %rax, %rax
addq %rax, %rdx
movl $0x6, %ecx
callq 0x1f830
movswq 0x2ee(%rsp), %rcx
leaq 0x560(%rsp), %rax
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movswq 0x2ec(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movswq 0x2ec(%rsp), %rax
leaq 0x4a0(%rsp), %rdi
shlq $0x4, %rax
addq %rax, %rdi
leaq 0x4d0(%rsp), %rsi
movsd 0x488(%rsp), %xmm0
movsd 0x480(%rsp), %xmm1
movswq 0x2ee(%rsp), %rax
leaq 0x300(%rsp), %rdx
imulq $0x30, %rax, %rax
addq %rax, %rdx
movl $0x6, %ecx
callq 0x1f830
movswq 0x2ee(%rsp), %rcx
leaq 0x500(%rsp), %rax
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movswq 0x2ec(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movw 0x2ec(%rsp), %ax
addw $0x1, %ax
movw %ax, 0x2ec(%rsp)
jmp 0x20b85
jmp 0x20ca5
movw 0x2ee(%rsp), %ax
addw $0x1, %ax
movw %ax, 0x2ee(%rsp)
jmp 0x20b6a
leaq 0x280(%rsp), %rax
movq %rax, %rcx
addq $0x60, %rcx
movq %rcx, 0xc8(%rsp)
movq %rax, 0xd0(%rsp)
movq 0xd0(%rsp), %rdi
movq %rdi, 0xc0(%rsp)
callq 0x21aa0
movq 0xc0(%rsp), %rax
movq 0xc8(%rsp), %rcx
addq $0x20, %rax
cmpq %rcx, %rax
movq %rax, 0xd0(%rsp)
jne 0x20cdd
leaq 0x220(%rsp), %rax
movq %rax, %rcx
addq $0x60, %rcx
movq %rcx, 0xb0(%rsp)
movq %rax, 0xb8(%rsp)
movq 0xb8(%rsp), %rdi
movq %rdi, 0xa8(%rsp)
callq 0x21aa0
movq 0xa8(%rsp), %rax
movq 0xb0(%rsp), %rcx
addq $0x20, %rax
cmpq %rcx, %rax
movq %rax, 0xb8(%rsp)
jne 0x20d32
movw $0x0, 0x21e(%rsp)
movswl 0x21e(%rsp), %eax
cmpl $0x3, %eax
jge 0x20f12
movswq 0x21e(%rsp), %rax
movsd 0x560(%rsp,%rax,8), %xmm0
movswq 0x21e(%rsp), %rcx
leaq 0x280(%rsp), %rax
shlq $0x5, %rcx
addq %rcx, %rax
movsd %xmm0, (%rax)
movswq 0x21e(%rsp), %rax
movsd 0x578(%rsp,%rax,8), %xmm0
movswq 0x21e(%rsp), %rcx
leaq 0x280(%rsp), %rax
shlq $0x5, %rcx
addq %rcx, %rax
movsd %xmm0, 0x8(%rax)
movswq 0x21e(%rsp), %rax
movsd 0x590(%rsp,%rax,8), %xmm0
movswq 0x21e(%rsp), %rcx
leaq 0x280(%rsp), %rax
shlq $0x5, %rcx
addq %rcx, %rax
movsd %xmm0, 0x10(%rax)
movswq 0x21e(%rsp), %rax
movsd 0x5a8(%rsp,%rax,8), %xmm0
movswq 0x21e(%rsp), %rcx
leaq 0x280(%rsp), %rax
shlq $0x5, %rcx
addq %rcx, %rax
movsd %xmm0, 0x18(%rax)
movswq 0x21e(%rsp), %rax
movsd 0x500(%rsp,%rax,8), %xmm0
movswq 0x21e(%rsp), %rcx
leaq 0x220(%rsp), %rax
shlq $0x5, %rcx
addq %rcx, %rax
movsd %xmm0, (%rax)
movswq 0x21e(%rsp), %rax
movsd 0x518(%rsp,%rax,8), %xmm0
movswq 0x21e(%rsp), %rcx
leaq 0x220(%rsp), %rax
shlq $0x5, %rcx
addq %rcx, %rax
movsd %xmm0, 0x8(%rax)
movswq 0x21e(%rsp), %rax
movsd 0x530(%rsp,%rax,8), %xmm0
movswq 0x21e(%rsp), %rcx
leaq 0x220(%rsp), %rax
shlq $0x5, %rcx
addq %rcx, %rax
movsd %xmm0, 0x10(%rax)
movswq 0x21e(%rsp), %rax
movsd 0x548(%rsp,%rax,8), %xmm0
movswq 0x21e(%rsp), %rcx
leaq 0x220(%rsp), %rax
shlq $0x5, %rcx
addq %rcx, %rax
movsd %xmm0, 0x18(%rax)
movw 0x21e(%rsp), %ax
addw $0x1, %ax
movw %ax, 0x21e(%rsp)
jmp 0x20d72
leaq 0x208(%rsp), %rdi
callq 0x6310
movq 0x5c0(%rsp), %rax
movsd 0x10(%rax), %xmm0
movsd %xmm0, 0x208(%rsp)
movq 0x5c0(%rsp), %rax
movsd 0x18(%rax), %xmm0
movsd %xmm0, 0x210(%rsp)
leaq 0x180(%rsp), %rax
movq %rax, %rcx
addq $0x60, %rcx
movq %rcx, 0x98(%rsp)
movq %rax, 0xa0(%rsp)
movq 0xa0(%rsp), %rdi
movq %rdi, 0x90(%rsp)
callq 0x6530
movq 0x90(%rsp), %rax
movq 0x98(%rsp), %rcx
addq $0x20, %rax
cmpq %rcx, %rax
movq %rax, 0xa0(%rsp)
jne 0x20f6a
leaq 0x120(%rsp), %rax
movq %rax, %rcx
addq $0x60, %rcx
movq %rcx, 0x80(%rsp)
movq %rax, 0x88(%rsp)
movq 0x88(%rsp), %rdi
movq %rdi, 0x78(%rsp)
callq 0x6530
movq 0x78(%rsp), %rax
movq 0x80(%rsp), %rcx
addq $0x20, %rax
cmpq %rcx, %rax
movq %rax, 0x88(%rsp)
jne 0x20fbf
movw $0x0, 0xde(%rsp)
movswl 0xde(%rsp), %eax
cmpl $0x3, %eax
jge 0x210eb
movswq 0xde(%rsp), %rax
leaq 0x280(%rsp), %rdi
shlq $0x5, %rax
addq %rax, %rdi
movswq 0xde(%rsp), %rax
leaq 0x180(%rsp), %rsi
shlq $0x5, %rax
addq %rax, %rsi
callq 0x21ad0
movswq 0xde(%rsp), %rax
leaq 0x220(%rsp), %rdi
shlq $0x5, %rax
addq %rax, %rdi
movswq 0xde(%rsp), %rax
leaq 0x120(%rsp), %rsi
shlq $0x5, %rax
addq %rax, %rsi
callq 0x21ad0
movswq 0xde(%rsp), %rcx
leaq 0x180(%rsp), %rax
shlq $0x5, %rcx
addq %rcx, %rax
movsd 0x18(%rax), %xmm0
movswq 0xde(%rsp), %rax
movsd %xmm0, 0x100(%rsp,%rax,8)
movswq 0xde(%rsp), %rcx
leaq 0x120(%rsp), %rax
shlq $0x5, %rcx
addq %rcx, %rax
movsd 0x18(%rax), %xmm0
movswq 0xde(%rsp), %rax
movsd %xmm0, 0xe0(%rsp,%rax,8)
movw 0xde(%rsp), %ax
addw $0x1, %ax
movw %ax, 0xde(%rsp)
jmp 0x20ff9
movsd 0x3f0(%rsp), %xmm0
divsd 0x3c0(%rsp), %xmm0
movsd %xmm0, 0x1f0(%rsp)
movsd 0x420(%rsp), %xmm0
divsd 0x3c0(%rsp), %xmm0
movsd %xmm0, 0x1e8(%rsp)
movsd 0x330(%rsp), %xmm0
divsd 0x300(%rsp), %xmm0
movsd %xmm0, 0x200(%rsp)
movsd 0x360(%rsp), %xmm0
divsd 0x300(%rsp), %xmm0
movsd %xmm0, 0x1f8(%rsp)
movsd 0x1e601(%rip), %xmm0    # 0x3f760
movsd %xmm0, 0x48(%rsp)
movsd 0x100(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movsd 0x560(%rsp), %xmm0
movsd 0x1e053(%rip), %xmm1    # 0x3f1d8
callq 0x3430
movaps %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, 0x18(%rsp)
movsd 0xe0(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
movsd 0x500(%rsp), %xmm0
movsd 0x1e01b(%rip), %xmm1    # 0x3f1d8
callq 0x3430
movsd 0x10(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0x18(%rsp), %xmm0
divsd %xmm2, %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, 0x40(%rsp)
movsd 0x1e581(%rip), %xmm0    # 0x3f768
movsd %xmm0, 0x38(%rsp)
movsd 0x108(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
movsd 0x568(%rsp), %xmm0
movsd 0x1dfcb(%rip), %xmm1    # 0x3f1d8
callq 0x3430
movaps %xmm0, %xmm1
movsd 0x20(%rsp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, 0x30(%rsp)
movsd 0xe8(%rsp), %xmm0
movsd %xmm0, 0x28(%rsp)
movsd 0x508(%rsp), %xmm0
movsd 0x1df93(%rip), %xmm1    # 0x3f1d8
callq 0x3430
movsd 0x28(%rsp), %xmm4
movsd 0x30(%rsp), %xmm3
movsd 0x38(%rsp), %xmm1
movsd 0x40(%rsp), %xmm2
movaps %xmm0, %xmm5
movsd 0x48(%rsp), %xmm0
divsd %xmm5, %xmm4
subsd %xmm4, %xmm3
mulsd %xmm3, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x68(%rsp)
movsd 0x1e4e3(%rip), %xmm0    # 0x3f770
movsd %xmm0, 0x70(%rsp)
movsd 0x110(%rsp), %xmm0
movsd %xmm0, 0x50(%rsp)
movsd 0x570(%rsp), %xmm0
movsd 0x1df25(%rip), %xmm1    # 0x3f1d8
callq 0x3430
movaps %xmm0, %xmm1
movsd 0x50(%rsp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, 0x60(%rsp)
movsd 0xf0(%rsp), %xmm0
movsd %xmm0, 0x58(%rsp)
movsd 0x510(%rsp), %xmm0
movsd 0x1deed(%rip), %xmm1    # 0x3f1d8
callq 0x3430
movsd 0x58(%rsp), %xmm3
movsd 0x60(%rsp), %xmm2
movsd 0x68(%rsp), %xmm1
movaps %xmm0, %xmm4
movsd 0x70(%rsp), %xmm0
divsd %xmm4, %xmm3
subsd %xmm3, %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq 0x5c0(%rsp), %rax
mulsd 0xb0(%rax), %xmm0
movsd 0x1de0d(%rip), %xmm1    # 0x3f140
mulsd %xmm1, %xmm0
movsd %xmm0, 0x1e0(%rsp)
movsd 0x1f0(%rsp), %xmm1
movsd 0x208(%rsp), %xmm2
movsd 0x1e8(%rsp), %xmm0
mulsd 0x210(%rsp), %xmm0
mulsd %xmm2, %xmm1
addsd %xmm0, %xmm1
xorps %xmm0, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x213be
movsd 0x1e0(%rsp), %xmm0
movq 0x4f0(%rsp), %rax
addsd 0x220(%rax), %xmm0
movsd %xmm0, 0x220(%rax)
movq 0x5c0(%rsp), %rax
movsd 0xb0(%rax), %xmm0
movq 0x4f0(%rsp), %rax
addsd 0x230(%rax), %xmm0
movsd %xmm0, 0x230(%rax)
movsd 0x200(%rsp), %xmm0
movsd 0x208(%rsp), %xmm2
movsd 0x1f8(%rsp), %xmm1
mulsd 0x210(%rsp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x21440
movsd 0x1e0(%rsp), %xmm1
movq 0x4f8(%rsp), %rax
movsd 0x220(%rax), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x220(%rax)
movq 0x5c0(%rsp), %rax
movsd 0xb0(%rax), %xmm0
movq 0x4f8(%rsp), %rax
addsd 0x230(%rax), %xmm0
movsd %xmm0, 0x230(%rax)
addq $0x5c8, %rsp            # imm = 0x5C8
retq
nopl (%rax,%rax)