// File: /workspace/github_c_makefile_star2_O1/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, %ebx
movq %r8, 0x10(%rsp)
movl %ecx, %r15d
movq %rdx, 0x40(%rsp)
movq %rdi, %rbp
movq 0x1090(%rsp), %r13
movq %rsi, 0x18(%rsp)
leal -0x1(%rsi), %eax
movl %eax, 0x2c(%rsp)
imull %ecx, %eax
movslq %eax, %rdi
shlq $0x3, %rdi
callq 0x8460
movq %rax, %r14
movq %r15, (%rsp)
movslq %r15d, %rax
movq %rax, 0x48(%rsp)
leaq (,%rax,8), %r12
movq %r12, %rdi
callq 0x8460
movq %rax, %r15
movq %r12, %rdi
callq 0x8460
testq %r14, %r14
je 0x15786
testq %r15, %r15
je 0x157c1
testq %rax, %rax
je 0x15801
movq %r14, %rdi
xorl %ecx, %ecx
movq 0x18(%rsp), %r14
cmpl $0x2, %r14d
cmovel %ecx, %ebx
movswl %bx, %ecx
testw %cx, %cx
je 0x1585d
cmpw $0x1, %bx
jne 0x15bce
movsd (%rbp), %xmm1
movsd 0x10(%rbp), %xmm0
movapd %xmm0, %xmm2
subsd %xmm1, %xmm2
xorpd %xmm3, %xmm3
ucomisd %xmm3, %xmm2
jne 0x15db1
jp 0x15db1
leaq 0xdd817(%rip), %rsi     # 0xf2f4b
leaq 0x850(%rsp), %rbx
movq %rbx, %rdi
movb $0x2, %al
callq 0x30c2c
leaq 0xdb935(%rip), %rsi     # 0xf1082
leaq 0xdd821(%rip), %rdx     # 0xf2f75
leaq 0x50(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x30c2c
leaq 0xdb8c7(%rip), %rsi     # 0xf1034
leaq 0xdd7bc(%rip), %rdx     # 0xf2f30
movq 0x1090(%rsp), %rdi
movl $0x3a8, %ecx            # imm = 0x3A8
jmp 0x15e88
leaq 0xdd680(%rip), %rbx     # 0xf2e0d
leaq 0xdd79c(%rip), %r14     # 0xf2f30
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 0x1583f
leaq 0xdd714(%rip), %rbx     # 0xf2edc
leaq 0xdd761(%rip), %r14     # 0xf2f30
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 0x1583f
leaq 0xdd6f0(%rip), %rbx     # 0xf2ef8
leaq 0xdd721(%rip), %r14     # 0xf2f30
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
movl %ebx, 0x28(%rsp)
movl %ecx, 0x24(%rsp)
movq %r15, 0x30(%rsp)
cmpl $0x0, (%rsp)
jle 0x15943
movq (%rsp), %r13
movl %r13d, %r15d
leaq (,%r15,8), %rdx
xorl %esi, %esi
movq %rax, 0x8(%rsp)
movq %r14, %rbx
movq %rdi, %r14
callq 0x8200
movq %r14, %rdi
movq %rbx, %r14
movq 0x8(%rsp), %rax
movslq %r14d, %r8
leal 0x1(%r13), %ecx
andl $-0x2, %ecx
decq %r15
movq %r15, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
movq %r8, %rdx
shlq $0x4, %rdx
movdqa 0xdc3ba(%rip), %xmm1    # 0xf1c80
movdqa 0xdc3c2(%rip), %xmm2    # 0xf1c90
pxor %xmm2, %xmm0
pcmpeqd %xmm3, %xmm3
movdqa 0xdcea2(%rip), %xmm4    # 0xf2780
movq 0x10(%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, %r9d
notl %r9d
testb $0x1, %r9b
je 0x1591e
movq $0x0, (%rsi)
pxor %xmm3, %xmm5
pextrw $0x4, %xmm5, %r9d
testb $0x1, %r9b
je 0x15936
movq $0x0, (%rsi,%r8,8)
paddq %xmm4, %xmm1
addq %rdx, %rsi
addq $-0x2, %rcx
jne 0x158e3
movq %rax, 0x8(%rsp)
movq %rdi, 0x38(%rsp)
cmpl $0x3, %r14d
jl 0x15aa7
movl 0x18(%rsp), %eax
movl 0x2c(%rsp), %ecx
movl (%rsp), %edx
movq 0x40(%rsp), %rsi
addq $0x10, %rsi
movq 0x10(%rsp), %rdi
addq $0x8, %rdi
movl $0x1, %r8d
movsd 0xdbe66(%rip), %xmm0    # 0xf17e8
movapd 0xdb8a6(%rip), %xmm1    # 0xf1230
movsd 0xdc36e(%rip), %xmm2    # 0xf1d00
movsd 0xdccd6(%rip), %xmm3    # 0xf2670
movq 0x38(%rsp), %r13
movq %r8, %r10
incq %r8
cmpl $0x0, (%rsp)
jle 0x15a93
movsd -0x8(%rbp,%r10,8), %xmm5
movsd (%rbp,%r10,8), %xmm4
subsd %xmm5, %xmm4
movsd 0x8(%rbp,%r10,8), %xmm6
subsd %xmm5, %xmm6
divsd %xmm6, %xmm4
movapd %xmm4, %xmm5
addsd %xmm0, %xmm5
movapd %xmm4, %xmm6
xorpd %xmm1, %xmm6
movq %rdx, %r11
xorl %r15d, %r15d
movq %r13, %r9
movsd -0x8(%rdi,%r15,8), %xmm7
mulsd %xmm4, %xmm7
addsd %xmm2, %xmm7
movapd %xmm5, %xmm8
divsd %xmm7, %xmm8
movsd %xmm8, (%rdi,%r15,8)
movsd -0x8(%rsi,%r15,8), %xmm8
movsd (%rsi,%r15,8), %xmm9
subsd %xmm8, %xmm9
movsd (%rbp,%r8,8), %xmm10
movsd -0x8(%rbp,%r10,8), %xmm11
movsd (%rbp,%r10,8), %xmm12
movapd %xmm10, %xmm13
subsd %xmm12, %xmm13
subsd -0x10(%rsi,%r15,8), %xmm8
divsd %xmm13, %xmm9
subsd %xmm11, %xmm12
divsd %xmm12, %xmm8
subsd %xmm8, %xmm9
movsd %xmm9, (%r9,%r12)
mulsd %xmm3, %xmm9
subsd %xmm11, %xmm10
divsd %xmm10, %xmm9
movsd (%r9), %xmm8
mulsd %xmm6, %xmm8
addsd %xmm9, %xmm8
divsd %xmm7, %xmm8
movsd %xmm8, (%r9,%r12)
addq $0x8, %r9
addq %rax, %r15
decq %r11
jne 0x159e9
addq %r12, %r13
addq $0x8, %rsi
addq $0x8, %rdi
cmpq %rcx, %r8
jne 0x1599f
movl 0x28(%rsp), %ebx
testw %bx, %bx
je 0x15c16
cmpw $0x1, %bx
movq 0x38(%rsp), %r15
movq 0x8(%rsp), %rdi
movq 0x30(%rsp), %r13
movq 0x18(%rsp), %r11
jne 0x15d5d
cmpl $0x0, (%rsp)
movq 0x40(%rsp), %r14
jle 0x15c59
movslq %r11d, %rax
leaq -0x3(%rax), %rcx
movslq 0x2c(%rsp), %rdx
movsd (%rbp,%rdx,8), %xmm3
movsd -0x18(%rbp,%rax,8), %xmm0
movsd -0x10(%rbp,%rax,8), %xmm4
movapd %xmm0, %xmm2
subsd %xmm3, %xmm2
movapd %xmm4, %xmm5
subsd %xmm3, %xmm5
movapd 0xdb719(%rip), %xmm1    # 0xf1230
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 0xdcb2c(%rip), %xmm3    # 0xf2680
divsd %xmm6, %xmm3
movl (%rsp), %esi
shlq $0x3, %rax
xorl %r9d, %r9d
movabsq $0x3fe0000000000000, %r8 # imm = 0x3FE0000000000000
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, (%r13,%r9,8)
movsd %xmm7, (%rdi,%r9,8)
incq %r9
cmpq %r9, %rsi
jne 0x15b6c
jmp 0x15c59
leaq 0xdd253(%rip), %rbx     # 0xf2e28
leaq 0xdd354(%rip), %r14     # 0xf2f30
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
movl %ecx, %ebp
movq %r14, %rcx
movl $0x3c3, %r8d            # imm = 0x3C3
movl %ebp, %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
jmp 0x15da2
cmpl $0x0, (%rsp)
movq 0x38(%rsp), %r15
movq 0x8(%rsp), %rdi
movq 0x30(%rsp), %r13
movq 0x18(%rsp), %r11
jle 0x15c59
movl (%rsp), %r14d
shlq $0x3, %r14
xorl %esi, %esi
movq %r14, %rdx
callq 0x8200
movq %r13, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x8200
movq 0x18(%rsp), %r11
movq 0x8(%rsp), %rdi
cmpl $0x0, (%rsp)
jle 0x15cc8
leal -0x2(%r11), %ecx
movslq %ecx, %rax
movq (%rsp), %rdx
imull %edx, %ecx
movslq %ecx, %rsi
movslq %r11d, %rcx
movl %edx, %edx
leaq (%r15,%rsi,8), %rsi
shlq $0x3, %rcx
xorl %r9d, %r9d
movsd 0xdb5d8(%rip), %xmm0    # 0xf1260
movq 0x10(%rsp), %r8
movsd (%rdi,%r9,8), %xmm1
movsd (%r13,%r9,8), %xmm2
movsd (%rsi,%r9,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 %r9
cmpq %r9, %rdx
jne 0x15c8d
cmpl $0x2, %r11d
jl 0x15d3c
movslq %r11d, %rdi
leaq -0x2(%rdi), %rdx
movl %r11d, %eax
movl (%rsp), %ecx
movq 0x48(%rsp), %rsi
imulq %rdx, %rsi
leaq (%r15,%rsi,8), %rsi
negq %r12
movq 0x10(%rsp), %r8
leaq (%r8,%rdi,8), %rdi
addq $-0x10, %rdi
shlq $0x3, %rax
cmpl $0x0, (%rsp)
jle 0x15d29
movq %rdi, %r8
xorl %r9d, %r9d
movsd (%r8), %xmm0
mulsd 0x8(%r8), %xmm0
addsd (%rsi,%r9,8), %xmm0
movsd %xmm0, (%r8)
incq %r9
addq %rax, %r8
cmpq %r9, %rcx
jne 0x15d08
leaq -0x1(%rdx), %r8
addq %r12, %rsi
addq $-0x8, %rdi
testq %rdx, %rdx
movq %r8, %rdx
jg 0x15cfc
movq %r13, %rdi
callq 0x8410
movq %r15, %rdi
callq 0x8410
movq 0x8(%rsp), %rdi
callq 0x8410
xorl %eax, %eax
jmp 0x1584b
leaq 0xdd0c4(%rip), %rbx     # 0xf2e28
leaq 0xdd1c5(%rip), %r14     # 0xf2f30
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x3fc, %r8d            # imm = 0x3FC
movl 0x24(%rsp), %ebp
movl %ebp, %r9d
xorl %eax, %eax
callq 0x8550
incl %eax
movslq %eax, %rsi
movq 0x1090(%rsp), %rdi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x3fc, %r8d            # imm = 0x3FC
movl %ebp, %r9d
xorl %eax, %eax
callq 0x8550
jmp 0x15846
movsd 0x8(%rbp), %xmm2
movapd %xmm2, %xmm4
subsd %xmm1, %xmm4
ucomisd %xmm3, %xmm4
jne 0x15e20
jp 0x15e20
leaq 0xdd1b6(%rip), %rsi     # 0xf2f83
leaq 0x850(%rsp), %rbx
movq %rbx, %rdi
movapd %xmm2, %xmm0
movb $0x2, %al
callq 0x30c2c
leaq 0xdb298(%rip), %rsi     # 0xf1082
leaq 0xdd1bc(%rip), %rdx     # 0xf2fad
leaq 0x50(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x30c2c
leaq 0xdb22a(%rip), %rsi     # 0xf1034
leaq 0xdd11f(%rip), %rdx     # 0xf2f30
movq 0x1090(%rsp), %rdi
movl $0x3ab, %ecx            # imm = 0x3AB
jmp 0x15e88
movapd %xmm0, %xmm1
subsd %xmm2, %xmm1
ucomisd %xmm3, %xmm1
jne 0x15e97
jp 0x15e97
leaq 0xdd184(%rip), %rsi     # 0xf2fbb
leaq 0x850(%rsp), %rbx
movq %rbx, %rdi
movapd %xmm2, %xmm1
movb $0x2, %al
callq 0x30c2c
leaq 0xdb22e(%rip), %rsi     # 0xf1082
leaq 0xdd18a(%rip), %rdx     # 0xf2fe5
leaq 0x50(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x30c2c
leaq 0xdb1c0(%rip), %rsi     # 0xf1034
leaq 0xdd0b5(%rip), %rdx     # 0xf2f30
movq 0x1090(%rsp), %rdi
movl $0x3ae, %ecx            # imm = 0x3AE
movq %r14, %r8
xorl %eax, %eax
callq 0x30c2c
jmp 0x15846
movl %ebx, 0x28(%rsp)
movl %ecx, 0x24(%rsp)
movq %r15, 0x30(%rsp)
cmpl $0x0, (%rsp)
jle 0x15943
movslq %r14d, %r8
movl (%rsp), %ecx
xorl %edx, %edx
movabsq $-0x4020000000000000, %rsi # imm = 0xBFE0000000000000
movapd 0xdc8a8(%rip), %xmm0    # 0xf2770
xorl %r10d, %r10d
movq 0x40(%rsp), %r11
movq 0x10(%rsp), %r9
movsd 0x10(%rbp), %xmm4
movsd (%rbp), %xmm5
movsd 0x8(%rbp), %xmm3
movapd %xmm4, %xmm1
movsd (%r11,%rdx,8), %xmm6
movsd 0x8(%r11,%rdx,8), %xmm2
subsd %xmm6, %xmm2
subsd %xmm5, %xmm1
subsd %xmm3, %xmm4
subsd %xmm5, %xmm3
movsd 0x10(%r11,%rdx,8), %xmm5
movapd %xmm1, %xmm7
subsd %xmm6, %xmm5
mulsd %xmm3, %xmm1
mulsd %xmm3, %xmm3
mulsd %xmm7, %xmm7
mulsd %xmm5, %xmm3
movq %rsi, (%r9,%rdx,8)
movsd 0x8(%rbp), %xmm5
mulsd %xmm4, %xmm1
subsd (%rbp), %xmm5
movsd 0x8(%r11,%rdx,8), %xmm4
mulsd %xmm7, %xmm2
subsd (%r11,%rdx,8), %xmm4
movapd %xmm0, %xmm6
subsd %xmm3, %xmm2
unpcklpd %xmm4, %xmm6            # xmm6 = xmm6[0],xmm4[0]
unpcklpd %xmm5, %xmm5            # xmm5 = xmm5[0,0]
divpd %xmm5, %xmm6
divsd %xmm1, %xmm2
movapd %xmm6, %xmm1
unpckhpd %xmm6, %xmm1            # xmm1 = xmm1[1],xmm6[1]
subsd %xmm2, %xmm1
mulsd %xmm6, %xmm1
movsd %xmm1, (%rdi,%r10,8)
incq %r10
addq %r8, %rdx
cmpq %r10, %rcx
jne 0x15ed5
jmp 0x15943