// File: /workspace/github_c_makefile_star2_O1/markpeerdeman[P]mbemm/src/emath/solve.c
// Function: solve_4
void solve_4(matrix Ma, int m, int n,const vector F,intvector nietnul)
{ 
  int    a,i,j,k,l;
  double c,tmp;
  double fabsc, fabsM;
  vector derij; 
  int	 tel1, tel2, tel3, tel4;
  matrix hulpma;
  vector hulpve;
 
  evaluate_level(GREEN,38);
  check_dimensions(Ma, F);
  
  derij=(vector)newvector(m+n);
  
  
  /* First we sweep the upper part of the matrix */
  /* into an upper triangular matrix */

  for (k=0; k<m; k++)
    { 

fprintf(stderr, "processing row: %ld\n", (long)m);

      /* divide row by diagonal coefficient: */
      
      c = M(Ma,k,k); l=k;
      
      /* find largest coefficient for elimination: */
      
      for (i=k; i<m; i++)
	{ 
	  fabsc=fabs(c);
	  fabsM=fabs(M(Ma,i,k));
	  
	  /* if (fabs(M(A,m,k))>=fabs(c)) */
	  
	  if (fabsM>=fabsc)
	    { 
	      c = M(Ma,i,k);
	      l = i;
	    }
	}
      
      /* if (fabs(c)<=TOL) 
	 evaluate_level(RED,33); */
      /* change rows if nescessary: */
      
      if (k!=l)
	{ 
	  tmp = V(F,l);
	  V(F,l) = V(F,k);
	  V(F,k) = tmp;	
	  
	  for (j=k; j<m+n; j++)
	    {
	      if (j<m) 
		{
		  tmp = M(Ma,l,j);
		  M(Ma,l,j)=M(Ma,k,j);
		  M(Ma,k,j)=tmp;	    
		}
	      else 
		if (V(nietnul,j)!=0)
		  {
		    tmp = M(Ma,l,m+V(nietnul,j)-1);
		    M(Ma,l,m+V(nietnul,j)-1)=M(Ma,k,m+V(nietnul,j)-1); 	    
		    M(Ma,k,m+V(nietnul,j)-1) = tmp;
		}
	    }
	}
      
      /* divide current row by diagonal coefficient: */
      
      M(Ma,k,k)=1.0;
      V(F,k) = V(F,k) / c;
      
      for (j=k+1; j<m+n; j++)
	{  
	  if (j<m)
	    M(Ma,k,j) = M(Ma,k,j) / c;
	  else
	    if (V(nietnul,j)!=0) M(Ma,k,m+V(nietnul,i)-1)=M(Ma,k,m+V(nietnul,j)-1)/c;
	}
      
      /* divide remaining rows by diagonal coefficient and eliminate: */
      
      for (i=k+1; i<m; i++)
	{ 
	  c = M(Ma,i,k);
	  M(Ma,i,k)=0.0;
	  V(F,i)=V(F,i)-c*V(F,k);
	  for (j=k+1; j<m+n; j++)
	    { 
	      if (j<m)
		{
		  M(Ma,i,j)=M(Ma,i,j)-c*M(Ma,k,j);
		}
	      else
		if (V(nietnul,j)!=0)
		  {
		    M(Ma,i,m+V(nietnul,j)-1) = M(Ma,i,m+V(nietnul,j)-1) -
		      c*M(Ma,i,m+V(nietnul,j)-1);
		  }
	    }
	}
      /* tijdvalkje(k+2,A); */
    }
  
  
  /* We now sweep the lower part of the matrix */
  /* into a lower triangular matrix */
  
  for (k=m+n-1; k>=m; k--)
    { 
      /* divide row by diagonal coefficient: */
      
      c = M(Ma,k,k); l=k;
      
      /* find largest coefficient for elimination: */
      
      for (i=k; i>=m; i--)
	{ 
	  fabsc=fabs(c);
	  fabsM=fabs(M(Ma,i,k));
	  
	  /* if (fabs(M(A,m,k))>=fabs(c)) */
	  
	  if (fabsM>=fabsc)
	    { 
	      c = M(Ma,i,k);
	      l = m;
	    }
	}
            
      /* if (fabs(c)<=TOL) 
	 evaluate_level(RED,33); */
      /* change rows if nescessary: */
      
      if (k!=l)
	{ 
	  tmp = V(F,l);
	  V(F,l) = V(F,k);
	  V(F,k) = tmp;
	  
	  for (j=k; j>=0; j--)
	    {
	      if (j>=m) 
		{
		  tmp = M(Ma,l,j);
		  M(Ma,l,j)=M(Ma,k,j);  
		  M(Ma,k,j)=tmp;      
		}
	      else 
		if (V(nietnul,j)!=0)
		  {
		    a=m-p+V(nietnul,j)-1;
		    tmp = M(Ma,l,a);
		    M(Ma,l,a)=M(Ma,k,a);	 
		    M(Ma,k,a) = tmp;
		  }
	    }
	}
            
      /* divide current row by diagonal coefficient: */
      
      M(Ma,k,k)=1.0;
      V(F,k) = V(F,k) / c; 
      
      for (j=k-1; j>=0; j--)
	{  
	  if (j>=m)
	    M(Ma,k,j) = M(Ma,k,j) / c;
	  else
	    if (V(nietnul,j)!=0) 
	      M(Ma,k,m-p+V(nietnul,j)-1)=M(Ma,k,m-p+V(nietnul,j)-1)/c;
	}
      
      /* divide remaining rows by diagonal coefficient and eliminate: */
      
      for (i=k-1; i>=m; i--)
	{ 
	  c = M(Ma,i,k);
	  M(Ma,i,k)=0.0;
	  V(F,i)=V(F,i)-c*V(F,k);

	  for (j=k-1; j>=0; j--)
	    { 
	      if (j>=m)
		{
		  M(Ma,i,j)=M(Ma,i,j)-c*M(Ma,k,j);
		}
	      else
		if (V(nietnul,j)!=0)
		  {
		    M(Ma,i,m-p+V(nietnul,j)-1) = M(Ma,i,m-p+V(nietnul,i)-1) -
		      c*M(Ma,i,m-p+V(nietnul,i)-1);
		  }
	    }
	}
      /*	tijdvalkje(k+2,A);  */
    }


  /* We are now left with an upper triangular matrix and a lower triangular matrix */
  /* We now try to find an approximation for the variables corresponding to the */
  /* non-zero colums */

  hulpma=(matrix)newmatrix(p+q,p+q);
  hulpve=(vector)newvector(p+q);

  /* We now fill the additional small matrix with the right elements */  

  tel1=0;
  for (i=0; i<m+n; i++)
    if (V(nietnul,i)!=0)
      {
	V(hulpve,tel1)=V(F,i);
	
	tel2=0;
	for (j=0; j<m+n;j++)
	  if (V(nietnul,j)!=0)
	    {
	      M(hulpma,tel1,tel2)=hetelement(m,i,j,nietnul,Ma);
	      tel2++;
	    }
	tel1++;
      }

  printmatrix(hulpma,"hulpmatrix");
  printvector(hulpve,"hulpvector");
 
  printf("No 4\n");

  /* We now solve the small additonal matrix */
  
  for (k=0; k<p+q; k++)    
    {
      c=M(hulpma,k,k);
      M(hulpma,k,k)=1.0;
      V(hulpve,k) = V(hulpve,k) / c; 
      
      for (j=k-1; j>=0; j--)
	M(hulpma,k,j)=M(Ma,k,j)/c;
	
      
      /* divide remaining rows by diagonal coefficient and eliminate: */
      
      for (i=k+1; i<p+q; i++)
	{ 
	  c = M(hulpma,i,k);
	  M(hulpma,i,k)=0.0;
	  V(hulpve,i)=V(hulpve,i)-c*V(hulpve,k);

	  for (j=k+1; j<p+q; j++)
	    M(hulpma,i,j)=M(hulpma,i,j)-c*M(hulpma,k,j);
	}
    }	

  /* apply backsubstitution to compute the unknowns in hulpve */
  
  for (i=p+q-2;i>=0;i--)
    {
      for (j=p+q-1;j>i;j--)
	{
	  V(hulpve,i) = V(hulpve,i) - M(hulpma,i,j)*V(hulpve,i);
	}
    }

  /* We put the approximation into the vector F */  

  for (i=0; i<m+n; i++)
    {
      tel1=0;
      if (V(nietnul,i)!=0)
	{
	  for (j=0; j<m+n; j++)
	    if (V(nietnul,j)!=0)
	      {
		V(F,i)=V(F,i)-hetelement(m,i,j,nietnul,Ma)*V(hulpve,tel1);
		tel1++;
	      }
	}
    }

  /* Now we can solve the upper triangular matrix */
	  
  for (i=m-2;i>=0;i--)
    {
       for (j=m-1;j>i;j--)
	 {
	   V(F,i) = V(F,i) - M(Ma,i,j)*V(F,i);
	 }
    }

  /* And then we solve the lower triangular matrix */
	  
  for (i=m+1;i<m+n;i++)
    {
      for (j=m;j<i;j++)
	{
	  V(F,i) = V(F,i) - M(Ma,i,j)*V(F,i);
	}
    }
  
  /*  tijdvalkje(-1,A); */
  
  
  evaluate_level(GREEN,34);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %r8, %r13
movq %rcx, %rbx
movl %edx, %r12d
movl %esi, %r14d
movq %rdi, %r15
pushq $0x26
popq %rsi
xorl %edi, %edi
callq 0xbc50
movq %r15, 0x30(%rsp)
movq %r15, %rdi
movq %rbx, 0x28(%rsp)
movq %rbx, %rsi
callq 0x11e0
movq %r12, 0x40(%rsp)
leal (%r12,%r14), %edi
movl %edi, 0x20(%rsp)
callq 0xbde7
movslq %r14d, %rax
movq %rax, 0x38(%rsp)
testl %r14d, %r14d
jle 0x14bf
movl %r14d, %r15d
movslq 0x20(%rsp), %r12
pushq $0x1
popq %rbp
xorl %edx, %edx
movq %rdx, %rbx
movq 0x13d68(%rip), %rax     # 0x14ff8
movq (%rax), %rdi
leaq 0xce0c(%rip), %rsi      # 0xe0a6
movq %r15, %rdx
xorl %eax, %eax
callq 0x1100
movapd 0xcd64(%rip), %xmm4     # 0xe010
movq 0x30(%rsp), %rax
movq 0x8(%rax), %rax
movq (%rax,%rbx,8), %rcx
movsd (%rcx,%rbx,8), %xmm0
movq %rbx, %rdi
movl %ebx, %edx
movapd %xmm0, %xmm1
andpd %xmm4, %xmm1
movq (%rax,%rdi,8), %rsi
movsd (%rsi,%rbx,8), %xmm2
movapd %xmm2, %xmm3
andpd %xmm4, %xmm3
ucomisd %xmm1, %xmm3
cmpnlesd %xmm3, %xmm1
andpd %xmm1, %xmm0
andnpd %xmm2, %xmm1
orpd %xmm1, %xmm0
cmovael %edi, %edx
incq %rdi
cmpq %rdi, %r15
jne 0x12c3
movl %edx, %esi
cmpq %rsi, %rbx
movapd 0xcd17(%rip), %xmm3     # 0xe020
je 0x1393
movq 0x28(%rsp), %rsi
movq 0x8(%rsi), %rsi
movslq %edx, %rdx
movsd (%rsi,%rdx,8), %xmm1
movsd (%rsi,%rbx,8), %xmm2
movsd %xmm2, (%rsi,%rdx,8)
movsd %xmm1, (%rsi,%rbx,8)
cmpq %r12, %rbx
jge 0x1393
movq %rbx, %rsi
cmpq %r15, %rsi
jae 0x1358
movq (%rax,%rdx,8), %r8
movsd (%r8,%rsi,8), %xmm1
movsd (%rcx,%rsi,8), %xmm2
movsd %xmm2, (%r8,%rsi,8)
movsd %xmm1, (%rcx,%rsi,8)
jmp 0x138b
movq 0x8(%r13), %r8
movl (%r8,%rsi,4), %r8d
testl %r8d, %r8d
je 0x138b
movq (%rax,%rdx,8), %r9
addl %r14d, %r8d
movslq %r8d, %r8
movsd -0x8(%r9,%r8,8), %xmm1
movsd -0x8(%rcx,%r8,8), %xmm2
movsd %xmm2, -0x8(%r9,%r8,8)
movsd %xmm1, -0x8(%rcx,%r8,8)
incq %rsi
cmpq %r12, %rsi
jl 0x1337
movabsq $0x3ff0000000000000, %rdx # imm = 0x3FF0000000000000
movq %rdx, (%rcx,%rbx,8)
movq 0x28(%rsp), %rdx
movq 0x8(%rdx), %rsi
movsd (%rsi,%rbx,8), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rsi,%rbx,8)
leaq 0x1(%rbx), %rdx
cmpq %r12, %rdx
jge 0x1415
movl %edi, %edi
movq %rbp, %r8
cmpq %r15, %r8
jae 0x13dd
movsd (%rcx,%r8,8), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rcx,%r8,8)
jmp 0x140b
movq 0x8(%r13), %r9
movl (%r9,%r8,4), %r10d
testl %r10d, %r10d
je 0x140b
addl %r14d, %r10d
movslq %r10d, %r10
movsd -0x8(%rcx,%r10,8), %xmm1
divsd %xmm0, %xmm1
movslq (%r9,%rdi,4), %r9
addq 0x38(%rsp), %r9
movsd %xmm1, -0x8(%rcx,%r9,8)
incq %r8
cmpl %r8d, 0x20(%rsp)
jg 0x13c6
movq %rbp, %rdi
cmpq %r15, %rdx
jae 0x14b3
movq (%rax,%rdi,8), %r8
movsd (%r8,%rbx,8), %xmm0
andq $0x0, (%r8,%rbx,8)
movsd (%rsi,%rdi,8), %xmm1
movsd (%rsi,%rbx,8), %xmm2
mulsd %xmm0, %xmm2
subsd %xmm2, %xmm1
movsd %xmm1, (%rsi,%rdi,8)
cmpq %r12, %rdx
jge 0x14a7
xorpd %xmm3, %xmm0
movq %rbp, %r9
cmpq %r15, %r9
jae 0x1470
movsd (%rcx,%r9,8), %xmm1
mulsd %xmm0, %xmm1
addsd (%r8,%r9,8), %xmm1
movsd %xmm1, (%r8,%r9,8)
jmp 0x149d
movq 0x8(%r13), %r10
movl (%r10,%r9,4), %r10d
testl %r10d, %r10d
je 0x149d
addl %r14d, %r10d
movslq %r10d, %r10
movsd -0x8(%r8,%r10,8), %xmm1
movapd %xmm0, %xmm2
mulsd %xmm1, %xmm2
addsd %xmm1, %xmm2
movsd %xmm2, -0x8(%r8,%r10,8)
incq %r9
cmpl %r9d, 0x20(%rsp)
jg 0x1453
incq %rdi
cmpq %r15, %rdi
jne 0x1421
incq %rbp
cmpq %r15, %rdx
jne 0x1286
movslq 0x20(%rsp), %rax
movq %rax, 0x50(%rsp)
cmpl $0x0, 0x40(%rsp)
movq 0x28(%rsp), %r15
movq 0x38(%rsp), %r8
jle 0x17d7
movq 0x30(%rsp), %rax
movq 0x8(%rax), %rbx
leal -0x1(%r14), %eax
movl %eax, 0x4c(%rsp)
movq 0x8(%r15), %rdx
movq 0x40(%rsp), %rcx
leal -0x1(%rcx,%r14), %eax
movslq %eax, %rsi
leal -0x2(%rcx,%r14), %edi
leaq 0x2(%r8), %rax
movq %rax, 0x58(%rsp)
movq %rsi, 0x8(%rsp)
incq %rsi
movapd 0xcaf2(%rip), %xmm0     # 0xe010
movapd 0xcafa(%rip), %xmm1     # 0xe020
movq 0x50(%rsp), %r11
movq %rbx, 0x18(%rsp)
movq %r11, %rax
decq %r11
movq -0x8(%rbx,%rax,8), %r15
movsd -0x8(%r15,%rax,8), %xmm2
movq %rax, (%rsp)
cmpq %r8, %rax
movq %rsi, 0x60(%rsp)
movl %r11d, %ecx
jle 0x158f
movapd %xmm2, %xmm3
andpd %xmm0, %xmm3
movq -0x8(%rbx,%rsi,8), %rax
movsd (%rax,%r11,8), %xmm4
movapd %xmm4, %xmm5
andpd %xmm0, %xmm5
ucomisd %xmm3, %xmm5
cmpnlesd %xmm5, %xmm3
andpd %xmm3, %xmm2
andnpd %xmm4, %xmm3
orpd %xmm3, %xmm2
cmovael %r14d, %ecx
decq %rsi
cmpq %r8, %rsi
jg 0x1553
cmpl %r11d, %ecx
je 0x1633
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rax
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm3
movsd (%rax,%r11,8), %xmm4
movsd %xmm4, (%rax,%rcx,8)
movsd %xmm3, (%rax,%r11,8)
cmpq $0x0, (%rsp)
jle 0x1633
movl 0x8(%rsp), %r8d
leaq (,%r8,8), %r12
leaq 0x1431b(%rip), %rax     # 0x158f0
movl (%rax), %ebp
movq (%rsp), %rax
movl %eax, %r10d
cmpl %r14d, %r8d
jge 0x1606
movq 0x8(%r13), %rax
movl (%rax,%r8,4), %esi
testl %esi, %esi
je 0x1624
addl 0x4c(%rsp), %esi
subl %ebp, %esi
movslq %esi, %r9
leaq (,%r9,8), %rsi
addq (%rbx,%rcx,8), %rsi
jmp 0x1610
movq (%rbx,%rcx,8), %rsi
addq %r12, %rsi
movq %r8, %r9
movsd (%rsi), %xmm3
movsd (%r15,%r9,8), %xmm4
movsd %xmm4, (%rsi)
movsd %xmm3, (%r15,%r9,8)
decq %r8
decl %r10d
addq $-0x8, %r12
testl %r10d, %r10d
jg 0x15de
movl %edi, %r12d
leaq (,%r12,8), %rax
movq %rax, 0x10(%rsp)
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, (%r15,%r11,8)
movsd (%rdx,%r11,8), %xmm3
divsd %xmm2, %xmm3
movsd %xmm3, (%rdx,%r11,8)
cmpq $0x2, (%rsp)
jl 0x16c4
leaq -0x8(%r15), %rcx
leaq 0x1427d(%rip), %rax     # 0x158f0
movl (%rax), %esi
movq 0x10(%rsp), %rax
leaq (%r15,%rax), %r8
movq 0x8(%rsp), %rax
movl %eax, %r9d
movq %r12, %r10
decl %r9d
movq %r8, %rbx
cmpl %r14d, %r9d
jge 0x16ac
movq 0x8(%r13), %rax
movl (%rax,%r10,4), %ebx
testl %ebx, %ebx
je 0x16b8
addl %r14d, %ebx
subl %esi, %ebx
movslq %ebx, %rax
leaq (%rcx,%rax,8), %rbx
movsd (%rbx), %xmm3
divsd %xmm2, %xmm3
movsd %xmm3, (%rbx)
decq %r10
addq $-0x8, %r8
testl %r9d, %r9d
jg 0x1689
movq (%rsp), %rax
cmpq 0x58(%rsp), %rax
jl 0x17af
shlq $0x2, %r12
movslq %edi, %r8
addq 0x10(%rsp), %r15
movq 0x18(%rsp), %rax
movq (%rax,%r8,8), %rcx
movsd (%rcx,%r11,8), %xmm2
andq $0x0, (%rcx,%r11,8)
movsd (%rdx,%r8,8), %xmm3
movsd (%rdx,%r11,8), %xmm4
mulsd %xmm2, %xmm4
subsd %xmm4, %xmm3
movsd %xmm3, (%rdx,%r8,8)
cmpq $0x2, (%rsp)
jl 0x179d
xorpd %xmm1, %xmm2
leaq 0x141cd(%rip), %rax     # 0x158f0
movslq (%rax), %rax
movq 0x38(%rsp), %r10
subq %rax, %r10
movq 0x10(%rsp), %rax
leaq (%rcx,%rax), %r9
xorl %esi, %esi
movq 0x8(%rsp), %rax
movl %eax, %ebp
leal (%rdi,%rsi), %eax
cmpl %r14d, %eax
jge 0x177e
movq 0x8(%r13), %rax
leaq (%rax,%r12), %rbx
movl (%rbx,%rsi,4), %ebx
testl %ebx, %ebx
je 0x1794
movslq (%rax,%r8,4), %rax
addq %r10, %rax
movsd -0x8(%rcx,%rax,8), %xmm3
movapd %xmm2, %xmm4
mulsd %xmm3, %xmm4
addsd %xmm3, %xmm4
addl %r10d, %ebx
movslq %ebx, %rax
movsd %xmm4, -0x8(%rcx,%rax,8)
jmp 0x1794
movsd (%r15,%rsi,8), %xmm3
mulsd %xmm2, %xmm3
addsd (%r9,%rsi,8), %xmm3
movsd %xmm3, (%r9,%rsi,8)
decl %ebp
decq %rsi
testl %ebp, %ebp
jg 0x1740
leaq -0x1(%r8), %rax
cmpq 0x38(%rsp), %r8
movq %rax, %r8
jg 0x16df
decq 0x8(%rsp)
decq %rdi
movq 0x60(%rsp), %rsi
decq %rsi
movq 0x38(%rsp), %r8
cmpq %r8, %r11
movq 0x28(%rsp), %r15
movq 0x18(%rsp), %rbx
jg 0x1530
leaq 0x14112(%rip), %rbx     # 0x158f0
leaq 0x1410f(%rip), %r12     # 0x158f4
movl (%r12), %edi
addl (%rbx), %edi
movl %edi, %esi
callq 0xbcb0
movq %rax, 0x10(%rsp)
movl (%r12), %edi
addl (%rbx), %edi
callq 0xbde7
movq %rax, 0x18(%rsp)
movl 0x20(%rsp), %eax
movl %eax, %ecx
movq %rcx, (%rsp)
testl %eax, %eax
jle 0x18a3
xorl %ebx, %ebx
xorl %ecx, %ecx
movq 0x8(%r13), %rax
cmpl $0x0, (%rax,%rbx,4)
je 0x1896
movq 0x8(%r15), %rax
movsd (%rax,%rbx,8), %xmm0
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rax
movl %ecx, 0x8(%rsp)
movslq %ecx, %r15
movsd %xmm0, (%rax,%r15,8)
xorl %ebp, %ebp
xorl %r12d, %r12d
movq 0x8(%r13), %rax
cmpl $0x0, (%rax,%rbp,4)
je 0x1882
movl %r14d, %edi
movl %ebx, %esi
movl %ebp, %edx
movq %r13, %rcx
movq 0x30(%rsp), %r8
callq 0xcd9a
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movq (%rax,%r15,8), %rax
movslq %r12d, %r12
movsd %xmm0, (%rax,%r12,8)
incl %r12d
incq %rbp
cmpq %rbp, (%rsp)
jne 0x184b
movl 0x8(%rsp), %ecx
incl %ecx
movq 0x28(%rsp), %r15
incq %rbx
cmpq (%rsp), %rbx
jne 0x181d
leaq 0xc811(%rip), %rsi      # 0xe0bb
movq 0x10(%rsp), %rdi
callq 0xc7fc
leaq 0xc80b(%rip), %rsi      # 0xe0c6
movq 0x18(%rsp), %rdi
callq 0xc8e4
leaq 0xc805(%rip), %rdi      # 0xe0d1
callq 0x1060
leaq 0x1401c(%rip), %rax     # 0x158f4
movl (%rax), %eax
leaq 0x1400f(%rip), %rcx     # 0x158f0
addl (%rcx), %eax
jle 0x19ed
movq 0x10(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq 0x18(%rsp), %rdx
movq 0x8(%rdx), %rdx
movl %eax, %ebp
pushq $0x1
popq %rdi
xorl %r8d, %r8d
movapd 0xc715(%rip), %xmm0     # 0xe020
movq %rdi, %r9
xorl %ebx, %ebx
movq %rbp, 0x8(%rsp)
movq %rbx, %r10
movq (%rcx,%rbx,8), %r11
movsd (%r11,%rbx,8), %xmm1
movabsq $0x3ff0000000000000, %rsi # imm = 0x3FF0000000000000
movq %rsi, (%r11,%rbx,8)
movsd (%rdx,%rbx,8), %xmm2
divsd %xmm1, %xmm2
movsd %xmm2, (%rdx,%rbx,8)
testq %rbx, %rbx
je 0x1970
movq 0x30(%rsp), %rsi
movq 0x8(%rsi), %rbx
movq (%rbx,%r10,8), %rbx
movq %r9, %r15
leal -0x2(%r15), %r12d
movsd (%rbx,%r12,8), %xmm2
divsd %xmm1, %xmm2
movsd %xmm2, (%r11,%r12,8)
decq %r15
cmpq $0x1, %r15
jg 0x1953
leaq 0x1(%r10), %rbx
cmpq %rbp, %rbx
jae 0x19d8
addq %r8, %r11
movq %r9, %rbp
movq (%rcx,%rbp,8), %r15
movsd (%r15,%r10,8), %xmm2
andq $0x0, (%r15,%r10,8)
movsd (%rdx,%rbp,8), %xmm3
movapd %xmm2, %xmm1
xorpd %xmm0, %xmm1
mulsd (%rdx,%r10,8), %xmm2
subsd %xmm2, %xmm3
movsd %xmm3, (%rdx,%rbp,8)
addq %r8, %r15
movq %rdi, %r12
movsd (%r11,%r12,8), %xmm2
mulsd %xmm1, %xmm2
addsd (%r15,%r12,8), %xmm2
movsd %xmm2, (%r15,%r12,8)
incq %r12
leal (%r10,%r12), %esi
cmpl %esi, %eax
jg 0x19b0
incq %rbp
cmpl %ebp, %eax
jg 0x197f
incq %r9
addq $0x8, %r8
movq 0x8(%rsp), %rbp
cmpq %rbp, %rbx
jne 0x1915
cmpl $0x2, %eax
movq 0x28(%rsp), %r12
jl 0x1a44
leal -0x2(%rax), %ecx
decl %eax
cmpl %ecx, %eax
jle 0x1a39
movq 0x18(%rsp), %rdx
movq 0x8(%rdx), %rdx
movq 0x10(%rsp), %rsi
movq 0x8(%rsi), %rsi
movq (%rsi,%rcx,8), %rsi
movsd (%rdx,%rcx,8), %xmm0
movl %eax, %edi
movl %edi, %r8d
movsd (%rsi,%r8,8), %xmm1
mulsd %xmm0, %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, (%rdx,%rcx,8)
decl %edi
cmpl %ecx, %edi
jg 0x1a1d
leaq -0x1(%rcx), %rdx
testl %ecx, %ecx
movq %rdx, %rcx
jg 0x19fc
cmpl $0x0, 0x20(%rsp)
jle 0x1ac5
xorl %ebx, %ebx
movq 0x8(%r13), %rax
cmpl $0x0, (%rax,%rbx,4)
je 0x1abc
xorl %r15d, %r15d
xorl %ebp, %ebp
movq 0x8(%r13), %rax
cmpl $0x0, (%rax,%r15,4)
je 0x1ab3
movq 0x8(%r12), %rax
movsd (%rax,%rbx,8), %xmm0
movsd %xmm0, 0x20(%rsp)
movl %r14d, %edi
movl %ebx, %esi
movl %r15d, %edx
movq %r13, %rcx
movq 0x30(%rsp), %r8
callq 0xcd9a
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rax
movslq %ebp, %rbp
mulsd (%rax,%rbp,8), %xmm0
movsd 0x20(%rsp), %xmm1
subsd %xmm0, %xmm1
movq 0x8(%r12), %rax
movsd %xmm1, (%rax,%rbx,8)
incl %ebp
incq %r15
cmpq %r15, (%rsp)
jne 0x1a5c
incq %rbx
cmpq (%rsp), %rbx
jne 0x1a4d
cmpl $0x2, %r14d
movq 0x38(%rsp), %r10
movq 0x50(%rsp), %r11
jl 0x1b2d
leal -0x2(%r14), %eax
leal -0x1(%r14), %ecx
movslq %ecx, %rcx
leaq -0x1(%r10), %rdx
cmpq %rcx, %rax
jge 0x1b21
movq 0x8(%r12), %rsi
movq 0x30(%rsp), %rdi
movq 0x8(%rdi), %rdi
movq (%rdi,%rax,8), %rdi
movsd (%rsi,%rax,8), %xmm0
movq %rdx, %r8
movl %r8d, %r9d
movsd (%rdi,%r9,8), %xmm1
mulsd %xmm0, %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, (%rsi,%rax,8)
decq %r8
cmpq %r8, %rax
jl 0x1b03
leaq -0x1(%rax), %rsi
testq %rax, %rax
movq %rsi, %rax
jg 0x1ae4
cmpl $0x2, 0x40(%rsp)
jl 0x1b90
pushq $0x1
popq %rax
leal 0x1(%r14), %ecx
movslq %ecx, %rcx
shlq $0x3, %r10
movl %r14d, %edx
cmpl %r14d, %edx
jl 0x1b7f
movq 0x8(%r12), %rdx
movq 0x30(%rsp), %rsi
movq 0x8(%rsi), %rsi
movsd (%rdx,%rcx,8), %xmm0
movq (%rsi,%rcx,8), %rsi
addq %r10, %rsi
xorl %edi, %edi
movsd (%rsi,%rdi,8), %xmm1
mulsd %xmm0, %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, (%rdx,%rcx,8)
incq %rdi
cmpl %edi, %eax
jne 0x1b66
movl %ecx, %edx
leaq 0x1(%rcx), %rsi
incq %rax
movq %rsi, %rcx
cmpq %r11, %rsi
jl 0x1b45
pushq $0x22
popq %rsi
xorl %edi, %edi
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xbc50