// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../tools/arrays.c
// Function: array_spline_table_columns
int array_spline_table_columns(
		       double * x, /* vector of size x_size */
		       int x_size,
		       double * y_array, /* array of size x_size*y_size with elements
					  y_array[index_y*x_size+index_x] */
		       int y_size,
		       double * ddy_array, /* array of size x_size*y_size */
		       short spline_mode,
		       ErrorMsg errmsg
		       ) {

  double * p;
  double * qn;
  double * un;
  double * u;
  double sig;
  int index_x;
  int index_y;
  double dy_first;
  double dy_last;

  u = (double*)malloc((x_size-1) * y_size * sizeof(double));
  p = (double*)malloc(y_size * sizeof(double));
  qn = (double*)malloc(y_size * sizeof(double));
  un = (double*)malloc(y_size * sizeof(double));
  if (u == NULL) {
    class_sprintf(errmsg,"%s(L:%d) Cannot allocate u",__func__,__LINE__);
    return _FAILURE_;
  }
  if (p == NULL) {
    class_sprintf(errmsg,"%s(L:%d) Cannot allocate p",__func__,__LINE__);
    return _FAILURE_;
  }
  if (qn == NULL) {
    class_sprintf(errmsg,"%s(L:%d) Cannot allocate qn",__func__,__LINE__);
    return _FAILURE_;
  }
  if (un == NULL) {
    class_sprintf(errmsg,"%s(L:%d) Cannot allocate un",__func__,__LINE__);
    return _FAILURE_;
  }

  if (x_size==2) spline_mode = _SPLINE_NATURAL_; // in the case of only 2 x-values, only the natural spline method is appropriate, for _SPLINE_EST_DERIV_ at least 3 x-values are needed.

  index_x=0;

  if (spline_mode == _SPLINE_NATURAL_) {
    for (index_y=0; index_y < y_size; index_y++) {
      ddy_array[index_y*x_size+index_x] = 0.0;
      u[index_x*y_size+index_y] = 0.0;
    }
  }
  else {
    if (spline_mode == _SPLINE_EST_DERIV_) {

      class_test(x[2]-x[0]==0.,
		 errmsg,
		 "x[2]=%g, x[0]=%g, stop to avoid seg fault",x[2],x[0]);
      class_test(x[1]-x[0]==0.,
		 errmsg,
		 "x[1]=%g, x[0]=%g, stop to avoid seg fault",x[1],x[0]);
      class_test(x[2]-x[1]==0.,
		 errmsg,
		 "x[2]=%g, x[1]=%g, stop to avoid seg fault",x[2],x[1]);

      for (index_y=0; index_y < y_size; index_y++) {

	dy_first =
	  ((x[2]-x[0])*(x[2]-x[0])*
	   (y_array[index_y*x_size+1]-y_array[index_y*x_size+0])-
	   (x[1]-x[0])*(x[1]-x[0])*
	   (y_array[index_y*x_size+2]-y_array[index_y*x_size+0]))/
	  ((x[2]-x[0])*(x[1]-x[0])*(x[2]-x[1]));

	ddy_array[index_y*x_size+index_x] = -0.5;

	u[index_x*y_size+index_y] =
	  (3./(x[1] -  x[0]))*
	  ((y_array[index_y*x_size+1]-y_array[index_y*x_size+0])/
	   (x[1] - x[0])-dy_first);

      }
    }
    else {
      class_sprintf(errmsg,"%s(L:%d) Spline mode not identified: %d",__func__,__LINE__,spline_mode);
      return _FAILURE_;
    }
  }

  for (index_x=1; index_x < x_size-1; index_x++) {

    sig = (x[index_x] - x[index_x-1])/(x[index_x+1] - x[index_x-1]);

    for (index_y=0; index_y < y_size; index_y++) {

      p[index_y] = sig * ddy_array[index_y*x_size+(index_x-1)] + 2.0;

      ddy_array[index_y*x_size+index_x] = (sig-1.0)/p[index_y];

      u[index_x*y_size+index_y] =
	(y_array[index_y*x_size+(index_x+1)] - y_array[index_y*x_size+index_x])
	/ (x[index_x+1] - x[index_x])
	- (y_array[index_y*x_size+index_x] - y_array[index_y*x_size+(index_x-1)])
	/ (x[index_x] - x[index_x-1]);

      u[index_x*y_size+index_y] = (6.0 * u[index_x*y_size+index_y] /
				   (x[index_x+1] - x[index_x-1])
				   - sig * u[(index_x-1)*y_size+index_y]) / p[index_y];
    }

  }

  if (spline_mode == _SPLINE_NATURAL_) {

    for (index_y=0; index_y < y_size; index_y++) {
      qn[index_y]=un[index_y]=0.0;
    }

  }
  else {
    if (spline_mode == _SPLINE_EST_DERIV_) {

      for (index_y=0; index_y < y_size; index_y++) {

	dy_last =
	  ((x[x_size-3]-x[x_size-1])*(x[x_size-3]-x[x_size-1])*
	   (y_array[index_y*x_size+(x_size-2)]-y_array[index_y*x_size+(x_size-1)])-
	   (x[x_size-2]-x[x_size-1])*(x[x_size-2]-x[x_size-1])*
	   (y_array[index_y*x_size+(x_size-3)]-y_array[index_y*x_size+(x_size-1)]))/
	  ((x[x_size-3]-x[x_size-1])*(x[x_size-2]-x[x_size-1])*(x[x_size-3]-x[x_size-2]));

	qn[index_y]=0.5;

	un[index_y]=
	  (3./(x[x_size-1] - x[x_size-2]))*
	  (dy_last-(y_array[index_y*x_size+(x_size-1)] - y_array[index_y*x_size+(x_size-2)])/
	   (x[x_size-1] - x[x_size-2]));

      }
    }
    else {
      class_sprintf(errmsg,"%s(L:%d) Spline mode not identified: %d",__func__,__LINE__,spline_mode);
      return _FAILURE_;
    }
  }

  index_x=x_size-1;

  for (index_y=0; index_y < y_size; index_y++) {
    ddy_array[index_y*x_size+index_x] =
      (un[index_y] - qn[index_y] * u[(index_x-1)*y_size+index_y]) /
      (qn[index_y] * ddy_array[index_y*x_size+(index_x-1)] + 1.0);
  }

  for (index_x=x_size-2; index_x >= 0; index_x--) {
    for (index_y=0; index_y < y_size; index_y++) {

      ddy_array[index_y*x_size+index_x] = ddy_array[index_y*x_size+index_x] *
	ddy_array[index_y*x_size+(index_x+1)] + u[index_x*y_size+index_y];

    }
  }

  free(qn);
  free(p);
  free(u);
  free(un);

  return _SUCCESS_;
 }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1058, %rsp           # imm = 0x1058
movl %r9d, %r14d
movq %r8, 0x18(%rsp)
movl %ecx, %r12d
movq %rdx, 0x38(%rsp)
movq %rdi, %r15
movq 0x1090(%rsp), %r13
movq %rsi, 0x30(%rsp)
leal -0x1(%rsi), %eax
movl %eax, 0x2c(%rsp)
imull %ecx, %eax
movslq %eax, %rdi
shlq $0x3, %rdi
callq 0x8460
movq %rax, %rbx
movq %r12, 0x20(%rsp)
movslq %r12d, %rax
movq %rax, 0x48(%rsp)
leaq (,%rax,8), %r12
movq %r12, %rdi
callq 0x8460
movq %rax, %rbp
movq %r12, %rdi
callq 0x8460
testq %rbx, %rbx
je 0x158b4
testq %rbp, %rbp
je 0x158ef
testq %rax, %rax
je 0x1592f
xorl %ecx, %ecx
cmpl $0x2, 0x30(%rsp)
cmovel %ecx, %r14d
movswl %r14w, %r13d
testw %r13w, %r13w
je 0x1598b
cmpw $0x1, %r14w
movq 0x20(%rsp), %r11
jne 0x15d10
movsd (%r15), %xmm1
movsd 0x10(%r15), %xmm0
movapd %xmm0, %xmm2
subsd %xmm1, %xmm2
xorpd %xmm3, %xmm3
ucomisd %xmm3, %xmm2
jne 0x15e4f
jp 0x15e4f
leaq 0xda6f9(%rip), %rsi     # 0xeff5b
leaq 0x850(%rsp), %rbx
movq %rbx, %rdi
movb $0x2, %al
callq 0x30af0
leaq 0xd8807(%rip), %rsi     # 0xee082
leaq 0xda703(%rip), %rdx     # 0xeff85
leaq 0x50(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x30af0
leaq 0xd8799(%rip), %rsi     # 0xee034
leaq 0xda69e(%rip), %rdx     # 0xeff40
movq 0x1090(%rsp), %rdi
movl $0x3a8, %ecx            # imm = 0x3A8
jmp 0x15fc5
leaq 0xda562(%rip), %rbx     # 0xefe1d
leaq 0xda67e(%rip), %r14     # 0xeff40
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x389, %r8d            # imm = 0x389
xorl %eax, %eax
callq 0x8550
incl %eax
movslq %eax, %rsi
movq %r13, %rdi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x389, %r8d            # imm = 0x389
jmp 0x1596d
leaq 0xda5f6(%rip), %rbx     # 0xefeec
leaq 0xda643(%rip), %r14     # 0xeff40
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x391, %r8d            # imm = 0x391
xorl %eax, %eax
callq 0x8550
incl %eax
movslq %eax, %rsi
movq 0x1090(%rsp), %rdi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x391, %r8d            # imm = 0x391
jmp 0x1596d
leaq 0xda5d2(%rip), %rbx     # 0xeff08
leaq 0xda603(%rip), %r14     # 0xeff40
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x395, %r8d            # imm = 0x395
xorl %eax, %eax
callq 0x8550
incl %eax
movslq %eax, %rsi
movq 0x1090(%rsp), %rdi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x395, %r8d            # imm = 0x395
xorl %eax, %eax
callq 0x8550
movl $0x1, %eax
addq $0x1058, %rsp           # imm = 0x1058
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x20(%rsp), %r11
testl %r11d, %r11d
jle 0x15a72
movq %rbx, (%rsp)
movl %r13d, 0xc(%rsp)
movl %r11d, %r13d
leaq (,%r13,8), %rdx
movq (%rsp), %rdi
xorl %esi, %esi
movq %rax, 0x10(%rsp)
callq 0x8200
movq 0x20(%rsp), %r11
movq 0x10(%rsp), %rax
movslq 0x30(%rsp), %r8
leal 0x1(%r11), %ecx
andl $-0x2, %ecx
decq %r13
movq %r13, %xmm0
movl 0xc(%rsp), %r13d
movq (%rsp), %rbx
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
movq %r8, %rdx
shlq $0x4, %rdx
movdqa 0xd9288(%rip), %xmm1    # 0xeec80
movdqa 0xd9290(%rip), %xmm2    # 0xeec90
pxor %xmm2, %xmm0
pcmpeqd %xmm3, %xmm3
movdqa 0xd9d80(%rip), %xmm4    # 0xef790
movq 0x18(%rsp), %rsi
movdqa %xmm1, %xmm5
pxor %xmm2, %xmm5
movdqa %xmm5, %xmm6
pcmpgtd %xmm0, %xmm6
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm7     # xmm7 = xmm5[1,1,3,3]
pand %xmm6, %xmm7
pshufd $0xf5, %xmm6, %xmm5     # xmm5 = xmm6[1,1,3,3]
por %xmm7, %xmm5
movd %xmm5, %edi
notl %edi
testb $0x1, %dil
je 0x15a4e
movq $0x0, (%rsi)
pxor %xmm3, %xmm5
pextrw $0x4, %xmm5, %edi
testb $0x1, %dil
je 0x15a65
movq $0x0, (%rsi,%r8,8)
paddq %xmm4, %xmm1
addq %rdx, %rsi
addq $-0x2, %rcx
jne 0x15a15
movl %r13d, 0xc(%rsp)
movq %rax, 0x10(%rsp)
movq %rbx, (%rsp)
movq 0x30(%rsp), %rbx
cmpl $0x3, %ebx
jl 0x15bed
movl %ebx, %eax
movl 0x2c(%rsp), %ecx
movsd 0x8(%r15), %xmm4
movl %r11d, %edx
movq %rdx, 0x40(%rsp)
movq 0x38(%rsp), %rdx
leaq 0x10(%rdx), %rsi
movq 0x18(%rsp), %rdx
leaq 0x8(%rdx), %rdi
movl $0x1, %r8d
movsd 0xd8d26(%rip), %xmm0    # 0xee7e8
movapd 0xd8766(%rip), %xmm1    # 0xee230
movsd 0xd922e(%rip), %xmm2    # 0xeed00
movsd 0xd9b96(%rip), %xmm3    # 0xef670
movq (%rsp), %rdx
movq %r8, %r10
incq %r8
movsd 0x8(%r15,%r10,8), %xmm6
testl %r11d, %r11d
jle 0x15bd0
movsd -0x8(%r15,%r10,8), %xmm5
subsd %xmm5, %xmm4
subsd %xmm5, %xmm6
divsd %xmm6, %xmm4
movapd %xmm4, %xmm5
addsd %xmm0, %xmm5
movapd %xmm4, %xmm7
xorpd %xmm1, %xmm7
movq 0x40(%rsp), %r11
xorl %r13d, %r13d
movq %rdx, %r9
movsd -0x8(%rdi,%r13,8), %xmm8
mulsd %xmm4, %xmm8
addsd %xmm2, %xmm8
movapd %xmm5, %xmm6
divsd %xmm8, %xmm6
movsd %xmm6, (%rdi,%r13,8)
movsd -0x8(%rsi,%r13,8), %xmm9
movsd (%rsi,%r13,8), %xmm10
subsd %xmm9, %xmm10
movsd (%r15,%r8,8), %xmm6
movsd -0x8(%r15,%r10,8), %xmm11
movsd (%r15,%r10,8), %xmm12
movapd %xmm6, %xmm13
subsd %xmm12, %xmm13
divsd %xmm13, %xmm10
subsd -0x10(%rsi,%r13,8), %xmm9
subsd %xmm11, %xmm12
divsd %xmm12, %xmm9
subsd %xmm9, %xmm10
movsd %xmm10, (%r9,%r12)
mulsd %xmm3, %xmm10
movapd %xmm6, %xmm9
subsd %xmm11, %xmm9
divsd %xmm9, %xmm10
movsd (%r9), %xmm9
mulsd %xmm7, %xmm9
addsd %xmm10, %xmm9
divsd %xmm8, %xmm9
movsd %xmm9, (%r9,%r12)
addq $0x8, %r9
addq %rax, %r13
decq %r11
jne 0x15b22
addq %r12, %rdx
addq $0x8, %rsi
addq $0x8, %rdi
movapd %xmm6, %xmm4
cmpq %rcx, %r8
movq 0x20(%rsp), %r11
jne 0x15ade
testw %r14w, %r14w
movq 0x1090(%rsp), %r13
je 0x15d59
cmpw $0x1, %r14w
movq 0x10(%rsp), %r9
jne 0x15e00
testl %r11d, %r11d
jle 0x15eca
movslq %ebx, %rax
leaq -0x3(%rax), %rcx
movslq 0x2c(%rsp), %rdx
movsd (%r15,%rdx,8), %xmm3
movsd -0x18(%r15,%rax,8), %xmm0
movsd -0x10(%r15,%rax,8), %xmm4
movapd %xmm0, %xmm2
subsd %xmm3, %xmm2
movapd %xmm4, %xmm5
subsd %xmm3, %xmm5
movapd 0xd85e0(%rip), %xmm1    # 0xee230
xorpd %xmm5, %xmm1
mulsd %xmm5, %xmm1
mulsd %xmm2, %xmm5
mulsd %xmm2, %xmm2
leaq -0x2(%rax), %rdx
subsd %xmm4, %xmm0
movapd %xmm0, %xmm6
unpcklpd %xmm3, %xmm6            # xmm6 = xmm6[0],xmm3[0]
mulsd %xmm5, %xmm0
unpcklpd %xmm4, %xmm5            # xmm5 = xmm5[0],xmm4[0]
subpd %xmm5, %xmm6
shufpd $0x2, %xmm6, %xmm0      # xmm0 = xmm0[0],xmm6[1]
unpckhpd %xmm6, %xmm6            # xmm6 = xmm6[1,1]
movsd 0xd99f3(%rip), %xmm3    # 0xef680
divsd %xmm6, %xmm3
movl %r11d, %esi
shlq $0x3, %rax
xorl %r10d, %r10d
movabsq $0x3fe0000000000000, %r8 # imm = 0x3FE0000000000000
movq (%rsp), %r15
movq 0x38(%rsp), %r14
movsd (%r14,%rdx,8), %xmm4
movsd -0x8(%r14,%rax), %xmm5
movapd %xmm4, %xmm6
subsd %xmm5, %xmm6
movsd (%r14,%rcx,8), %xmm7
mulsd %xmm2, %xmm6
subsd %xmm5, %xmm7
mulsd %xmm1, %xmm7
subsd %xmm4, %xmm5
addsd %xmm6, %xmm7
unpcklpd %xmm5, %xmm7            # xmm7 = xmm7[0],xmm5[0]
divpd %xmm0, %xmm7
movapd %xmm7, %xmm4
addq %rax, %r14
unpckhpd %xmm7, %xmm4            # xmm4 = xmm4[1],xmm7[1]
subsd %xmm4, %xmm7
mulsd %xmm3, %xmm7
movq %r8, (%rbp,%r10,8)
movsd %xmm7, (%r9,%r10,8)
incq %r10
cmpq %r10, %rsi
jne 0x15cae
jmp 0x15d93
leaq 0xda121(%rip), %rbx     # 0xefe38
leaq 0xda222(%rip), %r14     # 0xeff40
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x3c3, %r8d            # imm = 0x3C3
movl %r13d, %r9d
xorl %eax, %eax
callq 0x8550
incl %eax
movslq %eax, %rsi
movq 0x1090(%rsp), %rdi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x3c3, %r8d            # imm = 0x3C3
movl %r13d, %r9d
jmp 0x15e43
testl %r11d, %r11d
movq 0x10(%rsp), %rdi
jle 0x15eca
movl %r11d, %r14d
shlq $0x3, %r14
xorl %esi, %esi
movq %r14, %rdx
callq 0x8200
movq %rbp, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x8200
movq 0x20(%rsp), %r11
movq 0x10(%rsp), %r9
movq (%rsp), %r15
leal -0x2(%rbx), %ecx
movslq %ecx, %rax
imull %r11d, %ecx
movslq %ecx, %rsi
movslq %ebx, %rcx
movl %r11d, %edx
leaq (%r15,%rsi,8), %rsi
shlq $0x3, %rcx
xorl %r10d, %r10d
movsd 0xd84a7(%rip), %xmm0    # 0xee260
movq 0x18(%rsp), %r8
movsd (%r9,%r10,8), %xmm1
movsd (%rbp,%r10,8), %xmm2
movsd (%rsi,%r10,8), %xmm3
mulsd %xmm2, %xmm3
subsd %xmm3, %xmm1
mulsd (%r8,%rax,8), %xmm2
addsd %xmm0, %xmm2
divsd %xmm2, %xmm1
movsd %xmm1, -0x8(%r8,%rcx)
addq %rcx, %r8
incq %r10
cmpq %r10, %rdx
jne 0x15dbe
movb $0x1, %al
jmp 0x15ed0
leaq 0xda031(%rip), %rbx     # 0xefe38
leaq 0xda132(%rip), %r14     # 0xeff40
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x3fc, %r8d            # imm = 0x3FC
movl 0xc(%rsp), %ebp
movl %ebp, %r9d
xorl %eax, %eax
callq 0x8550
incl %eax
movslq %eax, %rsi
movq %r13, %rdi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x3fc, %r8d            # imm = 0x3FC
movl %ebp, %r9d
xorl %eax, %eax
callq 0x8550
jmp 0x15974
movsd 0x8(%r15), %xmm2
movapd %xmm2, %xmm4
subsd %xmm1, %xmm4
ucomisd %xmm3, %xmm4
jne 0x15f59
jp 0x15f59
leaq 0xda11f(%rip), %rsi     # 0xeff93
leaq 0x850(%rsp), %rbx
movq %rbx, %rdi
movapd %xmm2, %xmm0
movb $0x2, %al
callq 0x30af0
leaq 0xd81f1(%rip), %rsi     # 0xee082
leaq 0xda125(%rip), %rdx     # 0xeffbd
leaq 0x50(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x30af0
leaq 0xd8183(%rip), %rsi     # 0xee034
leaq 0xda088(%rip), %rdx     # 0xeff40
movq 0x1090(%rsp), %rdi
movl $0x3ab, %ecx            # imm = 0x3AB
jmp 0x15fc5
xorl %eax, %eax
movq (%rsp), %r15
cmpl $0x2, %ebx
jl 0x15f38
movl %ebx, %ecx
addl $-0x2, %ebx
movl %r11d, %edx
movq 0x48(%rsp), %rsi
imulq %rbx, %rsi
leaq (%r15,%rsi,8), %rsi
negq %r12
movq 0x18(%rsp), %r8
leaq (%r8,%rbx,8), %r10
shlq $0x3, %rcx
testb %al, %al
je 0x15f25
movq %r10, %r8
xorl %r9d, %r9d
movsd (%r8), %xmm0
mulsd 0x8(%r8), %xmm0
addsd (%rsi,%r9,8), %xmm0
movsd %xmm0, (%r8)
incq %r9
addq %rcx, %r8
cmpq %r9, %rdx
jne 0x15f04
leaq -0x1(%rbx), %r8
addq %r12, %rsi
addq $-0x8, %r10
testq %rbx, %rbx
movq %r8, %rbx
jg 0x15efa
movq %rbp, %rdi
callq 0x8410
movq %r15, %rdi
callq 0x8410
movq 0x10(%rsp), %rdi
callq 0x8410
xorl %eax, %eax
jmp 0x15979
movapd %xmm0, %xmm3
subsd %xmm2, %xmm3
xorpd %xmm4, %xmm4
ucomisd %xmm4, %xmm3
jne 0x15fd4
jp 0x15fd4
leaq 0xda057(%rip), %rsi     # 0xeffcb
leaq 0x850(%rsp), %rbx
movq %rbx, %rdi
movapd %xmm2, %xmm1
movb $0x2, %al
callq 0x30af0
leaq 0xd80f1(%rip), %rsi     # 0xee082
leaq 0xda05d(%rip), %rdx     # 0xefff5
leaq 0x50(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x30af0
leaq 0xd8083(%rip), %rsi     # 0xee034
leaq 0xd9f88(%rip), %rdx     # 0xeff40
movq 0x1090(%rsp), %rdi
movl $0x3ae, %ecx            # imm = 0x3AE
movq %r14, %r8
xorl %eax, %eax
callq 0x30af0
jmp 0x15974
testl %r11d, %r11d
jle 0x15a72
movslq 0x30(%rsp), %r8
movl %r11d, %ecx
xorl %edx, %edx
movabsq $-0x4020000000000000, %rsi # imm = 0xBFE0000000000000
movapd 0xd9787(%rip), %xmm0    # 0xef780
xorl %edi, %edi
movq 0x38(%rsp), %r10
movq 0x18(%rsp), %r9
movsd 0x10(%r15), %xmm4
movapd %xmm4, %xmm5
subsd %xmm1, %xmm5
movapd %xmm5, %xmm6
mulsd %xmm5, %xmm6
movsd (%r10,%rdx,8), %xmm7
movsd 0x8(%r10,%rdx,8), %xmm3
subsd %xmm7, %xmm3
mulsd %xmm6, %xmm3
subsd %xmm2, %xmm4
subsd %xmm1, %xmm2
movsd 0x10(%r10,%rdx,8), %xmm1
subsd %xmm7, %xmm1
mulsd %xmm2, %xmm5
mulsd %xmm2, %xmm2
mulsd %xmm1, %xmm2
subsd %xmm2, %xmm3
mulsd %xmm4, %xmm5
divsd %xmm5, %xmm3
movq %rsi, (%r9,%rdx,8)
movsd (%r15), %xmm1
movsd 0x8(%r15), %xmm2
movapd %xmm2, %xmm4
subsd %xmm1, %xmm4
movsd 0x8(%r10,%rdx,8), %xmm5
subsd (%r10,%rdx,8), %xmm5
movapd %xmm0, %xmm6
unpcklpd %xmm5, %xmm6            # xmm6 = xmm6[0],xmm5[0]
unpcklpd %xmm4, %xmm4            # xmm4 = xmm4[0,0]
divpd %xmm4, %xmm6
movapd %xmm6, %xmm4
unpckhpd %xmm6, %xmm4            # xmm4 = xmm4[1],xmm6[1]
subsd %xmm3, %xmm4
mulsd %xmm6, %xmm4
movsd %xmm4, (%rbx,%rdi,8)
incq %rdi
addq %r8, %rdx
cmpq %rdi, %rcx
jne 0x16005
jmp 0x15a72