// File: /workspace/github_c_makefile_star2_O1/PoulinV[P]AxiCLASS/build/../tools/arrays.c
// Function: array_logspline_table_lines
int array_logspline_table_lines(
			     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_x*y_size+index_y] */
			     int y_size,
			     double * ddlny_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++) {
      ddlny_array[index_x*y_size+index_y] = u[index_x*y_size+index_y] = 0.0;
    }
  }
  else {
    if (spline_mode == _SPLINE_EST_DERIV_) {

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

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

	ddlny_array[index_x*y_size+index_y] = -0.5;

	u[index_x*y_size+index_y] =
	  (3./(log(x[1]) - log(x[0])))*
	  ((log(y_array[1*y_size+index_y])-log(y_array[0*y_size+index_y]))/
	   (log(x[1]) - log(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 = (log(x[index_x]) - log(x[index_x-1]))/(log(x[index_x+1]) - log(x[index_x-1]));

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

      p[index_y] = sig * ddlny_array[(index_x-1)*y_size+index_y] + 2.0;

      ddlny_array[index_x*y_size+index_y] = (sig-1.0)/p[index_y];

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

      u[index_x*y_size+index_y] = (6.0 * u[index_x*y_size+index_y] /
				   (log(x[index_x+1]) - log(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 =
	  ((log(x[x_size-3])-log(x[x_size-1]))*(log(x[x_size-3])-log(x[x_size-1]))*
	   (log(y_array[(x_size-2)*y_size+index_y])-log(y_array[(x_size-1)*y_size+index_y]))-
	   (log(x[x_size-2])-log(x[x_size-1]))*(log(x[x_size-2])-log(x[x_size-1]))*
	   (log(y_array[(x_size-3)*y_size+index_y])-log(y_array[(x_size-1)*y_size+index_y])))/
	  ((log(x[x_size-3])-log(x[x_size-1]))*(log(x[x_size-2])-log(x[x_size-1]))*(log(x[x_size-3])-log(x[x_size-2])));

	qn[index_y]=0.5;

	un[index_y]=
	  (3./(log(x[x_size-1]) - log(x[x_size-2])))*
	  (dy_last-(log(y_array[(x_size-1)*y_size+index_y]) - log(y_array[(x_size-2)*y_size+index_y]))/
	   (log(x[x_size-1]) - log(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++) {
    ddlny_array[index_x*y_size+index_y] =
      (un[index_y] - qn[index_y] * u[(index_x-1)*y_size+index_y]) /
      (qn[index_y] * ddlny_array[(index_x-1)*y_size+index_y] + 1.0);
  }

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

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

    }
  }

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

  return _SUCCESS_;
 }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movl %r9d, %r13d
movq %r8, 0x78(%rsp)
movl %ecx, %r15d
movq %rdx, 0xb0(%rsp)
movq %rdi, %rbp
movq %rsi, 0x70(%rsp)
leal -0x1(%rsi), %eax
movl %eax, 0x4c(%rsp)
imull %ecx, %eax
cltq
movq %rax, 0xe0(%rsp)
leaq (,%rax,8), %rdi
callq 0x8460
movq %rax, %r14
movslq %r15d, %rax
movq %rax, 0xe8(%rsp)
leaq (,%rax,8), %rbx
movq %rbx, %rdi
callq 0x8460
movq %rax, %r12
movq %rbx, 0xb8(%rsp)
movq %rbx, %rdi
callq 0x8460
testq %r14, %r14
je 0x14c5e
testq %r12, %r12
je 0x14c9e
testq %rax, %rax
je 0x14cde
xorl %ecx, %ecx
cmpl $0x2, 0x70(%rsp)
movl %r13d, %edx
cmovel %ecx, %edx
movswl %dx, %r13d
testw %r13w, %r13w
je 0x14d3a
cmpw $0x1, %dx
jne 0x15461
movl %edx, 0x44(%rsp)
movl %r13d, 0x48(%rsp)
movq %rax, 0x38(%rsp)
movq %r12, 0x68(%rsp)
testl %r15d, %r15d
movq %r14, %rbx
movq 0xb0(%rsp), %r14
jle 0x14d78
leal (%r15,%r15), %eax
movl %r15d, %ecx
movq %rcx, 0xc0(%rsp)
leaq (%r14,%rcx,8), %r12
leaq (%r14,%rax,8), %rax
movq %rax, 0x30(%rsp)
xorl %r13d, %r13d
movsd 0x10(%rbp), %xmm0
callq 0x82c0
movsd %xmm0, 0x8(%rsp)
movsd (%rbp), %xmm0
callq 0x82c0
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movsd 0x10(%rbp), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movsd (%rbp), %xmm0
callq 0x82c0
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
mulsd 0x8(%rsp), %xmm1
movsd %xmm1, 0x10(%rsp)
movsd (%r12,%r13,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x8(%rsp)
movsd (%r14,%r13,8), %xmm0
callq 0x82c0
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
mulsd 0x10(%rsp), %xmm1
movsd %xmm1, 0x8(%rsp)
movsd 0x8(%rbp), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movsd (%rbp), %xmm0
callq 0x82c0
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rsp)
movsd 0x8(%rbp), %xmm0
callq 0x82c0
movsd %xmm0, 0x20(%rsp)
movsd (%rbp), %xmm0
callq 0x82c0
movsd 0x20(%rsp), %xmm1
subsd %xmm0, %xmm1
mulsd 0x10(%rsp), %xmm1
movsd %xmm1, 0x20(%rsp)
movq 0x30(%rsp), %rax
movsd (%rax,%r13,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movsd (%r14,%r13,8), %xmm0
callq 0x82c0
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
mulsd 0x20(%rsp), %xmm1
movsd 0x8(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
movsd 0x10(%rbp), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movsd (%rbp), %xmm0
callq 0x82c0
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rsp)
movsd 0x8(%rbp), %xmm0
callq 0x82c0
movsd %xmm0, 0x20(%rsp)
movsd (%rbp), %xmm0
callq 0x82c0
movsd 0x20(%rsp), %xmm1
subsd %xmm0, %xmm1
mulsd 0x10(%rsp), %xmm1
movsd %xmm1, 0x20(%rsp)
movsd 0x10(%rbp), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movsd 0x8(%rbp), %xmm0
callq 0x82c0
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
mulsd 0x20(%rsp), %xmm1
movsd 0x8(%rsp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x78(%rsp), %rax
movabsq $-0x4020000000000000, %rcx # imm = 0xBFE0000000000000
movq %rcx, (%rax,%r13,8)
movsd 0x8(%rbp), %xmm0
callq 0x82c0
movaps %xmm0, 0x10(%rsp)
movsd (%rbp), %xmm0
callq 0x82c0
movaps %xmm0, 0x20(%rsp)
movsd (%r12,%r13,8), %xmm0
callq 0x82c0
movaps %xmm0, 0xa0(%rsp)
movsd (%r14,%r13,8), %xmm0
callq 0x82c0
movapd 0xa0(%rsp), %xmm1
subsd %xmm0, %xmm1
movapd 0xddb8d(%rip), %xmm0    # 0xf2770
unpcklpd %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
movapd %xmm0, 0xa0(%rsp)
movsd 0x8(%rbp), %xmm0
callq 0x82c0
movaps %xmm0, 0x50(%rsp)
movsd (%rbp), %xmm0
callq 0x82c0
movapd 0x10(%rsp), %xmm1
unpcklpd 0x50(%rsp), %xmm1       # xmm1 = xmm1[0],mem[0]
movapd 0x20(%rsp), %xmm2
unpcklpd %xmm0, %xmm2            # xmm2 = xmm2[0],xmm0[0]
subpd %xmm2, %xmm1
movapd 0xa0(%rsp), %xmm2
divpd %xmm1, %xmm2
movapd %xmm2, %xmm0
unpckhpd %xmm2, %xmm0            # xmm0 = xmm0[1],xmm2[1]
subsd 0x8(%rsp), %xmm0
mulsd %xmm2, %xmm0
movsd %xmm0, (%rbx,%r13,8)
incq %r13
cmpq %r13, 0xc0(%rsp)
jne 0x149c4
jmp 0x14d78
leaq 0xde1a8(%rip), %rbx     # 0xf2e0d
leaq 0xde2a8(%rip), %r14     # 0xf2f14
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x2e7, %r8d            # imm = 0x2E7
xorl %eax, %eax
callq 0x8550
incl %eax
movslq %eax, %rsi
movq 0x170(%rsp), %rdi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x2e7, %r8d            # imm = 0x2E7
jmp 0x14d1c
leaq 0xde237(%rip), %rbx     # 0xf2edc
leaq 0xde268(%rip), %r14     # 0xf2f14
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x2ef, %r8d            # imm = 0x2EF
xorl %eax, %eax
callq 0x8550
incl %eax
movslq %eax, %rsi
movq 0x170(%rsp), %rdi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x2ef, %r8d            # imm = 0x2EF
jmp 0x14d1c
leaq 0xde213(%rip), %rbx     # 0xf2ef8
leaq 0xde228(%rip), %r14     # 0xf2f14
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x2f3, %r8d            # imm = 0x2F3
xorl %eax, %eax
callq 0x8550
incl %eax
movslq %eax, %rsi
movq 0x170(%rsp), %rdi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x2f3, %r8d            # imm = 0x2F3
xorl %eax, %eax
callq 0x8550
movl $0x1, %eax
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %edx, 0x44(%rsp)
movl %r13d, 0x48(%rsp)
movq %rax, 0x38(%rsp)
movq %r12, 0x68(%rsp)
testl %r15d, %r15d
movq %r14, %rbx
jle 0x14d78
movl %r15d, %r13d
shlq $0x3, %r13
movq %rbx, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x8200
movq 0x78(%rsp), %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x8200
movq %rbx, 0xd8(%rsp)
cmpl $0x3, 0x70(%rsp)
movq %r15, 0x80(%rsp)
jl 0x150e6
movl 0x4c(%rsp), %eax
movq %rax, 0x100(%rsp)
movl %r15d, %edi
movq 0xe8(%rsp), %rdx
movq %rdx, %r8
shlq $0x4, %r8
movq 0xb0(%rsp), %rsi
addq %rsi, %r8
movq 0xd8(%rsp), %rax
leaq (%rax,%rdx,8), %r9
leaq (%rsi,%rdx,8), %r10
movq 0x78(%rsp), %rcx
leaq (%rcx,%rdx,8), %rdx
shlq $0x3, %rdi
movq %rdi, 0xf8(%rsp)
movl $0x1, %ebx
movq %r9, 0xf0(%rsp)
movq %rcx, 0x88(%rsp)
movq %rax, 0x90(%rsp)
movq %r8, 0x98(%rsp)
movq %rsi, 0x30(%rsp)
movq %rdx, 0xc0(%rsp)
movsd (%rbp,%rbx,8), %xmm0
movq %r10, %r14
callq 0x82c0
movaps %xmm0, 0x50(%rsp)
movsd -0x8(%rbp,%rbx,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x8(%rsp)
leaq 0x1(%rbx), %r12
movsd 0x8(%rbp,%rbx,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movsd -0x8(%rbp,%rbx,8), %xmm0
callq 0x82c0
testl %r15d, %r15d
movq %rbp, %r13
movq 0xf8(%rsp), %rbp
movsd 0xdce93(%rip), %xmm2    # 0xf1d00
jle 0x1506e
movapd 0x50(%rsp), %xmm1
subsd 0x8(%rsp), %xmm1
movsd 0x10(%rsp), %xmm3
subsd %xmm0, %xmm3
divsd %xmm3, %xmm1
movapd %xmm1, %xmm0
addsd 0xdc94f(%rip), %xmm0    # 0xf17e8
movapd %xmm0, 0x120(%rsp)
movapd %xmm1, 0x50(%rsp)
xorpd 0xdc380(%rip), %xmm1    # 0xf1230
movapd %xmm1, 0x110(%rsp)
xorl %r15d, %r15d
movq %r14, 0x108(%rsp)
movq 0x88(%rsp), %rax
movsd (%rax,%r15), %xmm1
mulsd 0x50(%rsp), %xmm1
addsd %xmm2, %xmm1
movsd %xmm1, 0x20(%rsp)
movapd 0x120(%rsp), %xmm0
divsd %xmm1, %xmm0
movq 0xc0(%rsp), %rax
movsd %xmm0, (%rax,%r15)
movq 0x98(%rsp), %rax
movsd (%rax,%r15), %xmm0
callq 0x82c0
movsd %xmm0, 0x8(%rsp)
movsd (%r14,%r15), %xmm0
callq 0x82c0
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movsd (%r13,%r12,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movsd (%r13,%rbx,8), %xmm0
callq 0x82c0
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
movsd (%r14,%r15), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movq 0x30(%rsp), %rax
movsd (%rax,%r15), %xmm0
callq 0x82c0
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rsp)
movsd (%r13,%rbx,8), %xmm0
callq 0x82c0
movsd %xmm0, 0xa0(%rsp)
movsd -0x8(%r13,%rbx,8), %xmm0
callq 0x82c0
movsd 0xa0(%rsp), %xmm2
subsd %xmm0, %xmm2
movsd 0x10(%rsp), %xmm1
divsd %xmm2, %xmm1
movsd 0x8(%rsp), %xmm0
subsd %xmm1, %xmm0
movq 0xf0(%rsp), %r14
movsd %xmm0, (%r14,%r15)
mulsd 0xdd67e(%rip), %xmm0    # 0xf2670
movsd %xmm0, 0x8(%rsp)
movsd (%r13,%r12,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movsd -0x8(%r13,%rbx,8), %xmm0
callq 0x82c0
movsd 0xdcce2(%rip), %xmm2    # 0xf1d00
movsd 0x10(%rsp), %xmm3
subsd %xmm0, %xmm3
movsd 0x8(%rsp), %xmm1
divsd %xmm3, %xmm1
movq 0x90(%rsp), %rax
movsd (%rax,%r15), %xmm0
mulsd 0x110(%rsp), %xmm0
addsd %xmm1, %xmm0
divsd 0x20(%rsp), %xmm0
movsd %xmm0, (%r14,%r15)
movq 0x108(%rsp), %r14
addq $0x8, %r15
cmpq %r15, %rbp
jne 0x14ec4
movq 0xb8(%rsp), %rax
movq 0x98(%rsp), %rdx
addq %rax, %rdx
movq 0xf0(%rsp), %r10
addq %rax, %r10
addq %rax, %r14
movq 0xc0(%rsp), %rcx
addq %rax, %rcx
movq 0x88(%rsp), %r9
addq %rax, %r9
movq 0x30(%rsp), %rsi
addq %rax, %rsi
movq 0x90(%rsp), %rdi
addq %rax, %rdi
cmpq 0x100(%rsp), %r12
movq 0x80(%rsp), %r15
movq %rdx, %r8
movq %rcx, %rdx
movq %rdi, %rax
movq %r9, %rcx
movq %r13, %rbp
movq %r10, %r9
movq %r14, %r10
movq %r12, %rbx
jne 0x14de6
movl 0x44(%rsp), %eax
testw %ax, %ax
movl 0x48(%rsp), %r12d
je 0x154aa
cmpw $0x1, %ax
jne 0x15604
testl %r15d, %r15d
movq 0x38(%rsp), %rsi
jle 0x154e2
movq 0x70(%rsp), %rcx
leal -0x3(%rcx), %eax
movslq %eax, %rdx
movslq 0x4c(%rsp), %r12
leal -0x2(%rcx), %eax
movslq %eax, %rbx
movq 0x80(%rsp), %rdi
imull %edi, %eax
movq %rdx, 0x98(%rsp)
movl %edx, %ecx
imull %edi, %ecx
cltq
movslq %ecx, %rcx
movl %edi, %edx
movq %rdx, 0x30(%rsp)
movq 0xb0(%rsp), %rdx
leaq (%rdx,%rax,8), %rax
movq %rax, 0xa0(%rsp)
movq 0xe0(%rsp), %rax
leaq (%rdx,%rax,8), %rax
movq %rax, 0x90(%rsp)
leaq (%rdx,%rcx,8), %rax
movq %rax, 0x88(%rsp)
xorl %r14d, %r14d
movq %rsi, 0x38(%rsp)
movq 0x98(%rsp), %r13
movq 0x90(%rsp), %r15
movsd (%rbp,%r13,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x8(%rsp)
movsd (%rbp,%r12,8), %xmm0
callq 0x82c0
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movsd (%rbp,%r13,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movsd (%rbp,%r12,8), %xmm0
callq 0x82c0
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
mulsd 0x8(%rsp), %xmm1
movsd %xmm1, 0x10(%rsp)
movq 0xa0(%rsp), %rax
movsd (%rax,%r14,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x8(%rsp)
movsd (%r15,%r14,8), %xmm0
callq 0x82c0
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
mulsd 0x10(%rsp), %xmm1
movsd %xmm1, 0x8(%rsp)
movsd (%rbp,%rbx,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movsd (%rbp,%r12,8), %xmm0
callq 0x82c0
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rsp)
movsd (%rbp,%rbx,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x20(%rsp)
movsd (%rbp,%r12,8), %xmm0
callq 0x82c0
movsd 0x20(%rsp), %xmm1
subsd %xmm0, %xmm1
mulsd 0x10(%rsp), %xmm1
movsd %xmm1, 0x20(%rsp)
movq 0x88(%rsp), %rax
movsd (%rax,%r14,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movsd (%r15,%r14,8), %xmm0
callq 0x82c0
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
mulsd 0x20(%rsp), %xmm1
movsd 0x8(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
movsd (%rbp,%r13,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movsd (%rbp,%r12,8), %xmm0
callq 0x82c0
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rsp)
movsd (%rbp,%rbx,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x20(%rsp)
movsd (%rbp,%r12,8), %xmm0
callq 0x82c0
movsd 0x20(%rsp), %xmm1
subsd %xmm0, %xmm1
mulsd 0x10(%rsp), %xmm1
movsd %xmm1, 0x20(%rsp)
movsd (%rbp,%r13,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movsd (%rbp,%rbx,8), %xmm0
callq 0x82c0
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
mulsd 0x20(%rsp), %xmm1
movsd 0x8(%rsp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x68(%rsp), %rax
movabsq $0x3fe0000000000000, %rcx # imm = 0x3FE0000000000000
movq %rcx, (%rax,%r14,8)
movsd (%rbp,%r12,8), %xmm0
callq 0x82c0
movaps %xmm0, 0x10(%rsp)
movsd (%rbp,%rbx,8), %xmm0
callq 0x82c0
movaps %xmm0, 0x20(%rsp)
movsd (%r15,%r14,8), %xmm0
callq 0x82c0
movaps %xmm0, 0x50(%rsp)
movq 0xa0(%rsp), %rax
movsd (%rax,%r14,8), %xmm0
callq 0x82c0
movapd 0x50(%rsp), %xmm1
subsd %xmm0, %xmm1
movapd 0xdd393(%rip), %xmm0    # 0xf2770
unpcklpd %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
movapd %xmm0, 0x50(%rsp)
movsd (%rbp,%r12,8), %xmm0
callq 0x82c0
movaps %xmm0, 0xc0(%rsp)
movsd (%rbp,%rbx,8), %xmm0
callq 0x82c0
movq 0x38(%rsp), %rsi
movapd 0x10(%rsp), %xmm1
unpcklpd 0xc0(%rsp), %xmm1       # xmm1 = xmm1[0],mem[0]
movapd 0x20(%rsp), %xmm2
unpcklpd %xmm0, %xmm2            # xmm2 = xmm2[0],xmm0[0]
subpd %xmm2, %xmm1
movapd 0x50(%rsp), %xmm2
divpd %xmm1, %xmm2
movapd %xmm2, %xmm0
unpckhpd %xmm2, %xmm0            # xmm0 = xmm0[1],xmm2[1]
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
mulsd %xmm2, %xmm1
movsd %xmm1, (%rsi,%r14,8)
incq %r14
cmpq %r14, 0x30(%rsp)
jne 0x15196
jmp 0x154e2
leaq 0xdd9c0(%rip), %rbx     # 0xf2e28
leaq 0xddaa5(%rip), %r14     # 0xf2f14
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x316, %r8d            # imm = 0x316
movl %r13d, %r9d
xorl %eax, %eax
callq 0x8550
incl %eax
movslq %eax, %rsi
movq 0x170(%rsp), %rdi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x316, %r8d            # imm = 0x316
movl %r13d, %r9d
jmp 0x15648
testl %r15d, %r15d
movq 0x38(%rsp), %rsi
jle 0x154e2
movl 0x80(%rsp), %r14d
shlq $0x3, %r14
movq %rsi, %rdi
movq %rsi, %rbx
xorl %esi, %esi
movq %r14, %rdx
callq 0x8200
movq 0x68(%rsp), %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x8200
movq %rbx, %rsi
movq 0x80(%rsp), %r11
testl %r11d, %r11d
movq 0xd8(%rsp), %rbx
movq 0x68(%rsp), %rdi
movq %rsi, %r14
movq 0x78(%rsp), %r9
movq 0x70(%rsp), %r10
jle 0x1556c
leal -0x2(%r10), %eax
imull %r11d, %eax
movslq %eax, %rsi
movl %r11d, %eax
movq 0xe0(%rsp), %rcx
leaq (%r9,%rcx,8), %rcx
leaq (%rbx,%rsi,8), %rdx
leaq (%r9,%rsi,8), %rsi
xorl %r8d, %r8d
movsd 0xdbd2a(%rip), %xmm0    # 0xf1260
movsd (%r14,%r8,8), %xmm1
movsd (%rdi,%r8,8), %xmm2
movsd (%rdx,%r8,8), %xmm3
mulsd %xmm2, %xmm3
subsd %xmm3, %xmm1
mulsd (%rsi,%r8,8), %xmm2
addsd %xmm0, %xmm2
divsd %xmm2, %xmm1
movsd %xmm1, (%rcx,%r8,8)
incq %r8
cmpq %r8, %rax
jne 0x15536
cmpl $0x2, %r10d
jl 0x155e8
movslq %r10d, %rdx
leaq -0x2(%rdx), %rcx
movl %r11d, %eax
decq %rdx
movq 0xe8(%rsp), %r8
imulq %r8, %rdx
leaq (%r9,%rdx,8), %rdx
negq 0xb8(%rsp)
imulq %rcx, %r8
leaq (%r9,%r8,8), %rsi
leaq (%rbx,%r8,8), %r10
movq 0xb8(%rsp), %r9
testl %r11d, %r11d
jle 0x155d3
xorl %r8d, %r8d
movsd (%rsi,%r8,8), %xmm0
mulsd (%rdx,%r8,8), %xmm0
addsd (%r10,%r8,8), %xmm0
movsd %xmm0, (%rsi,%r8,8)
incq %r8
cmpq %r8, %rax
jne 0x155b3
leaq -0x1(%rcx), %r8
addq %r9, %rdx
addq %r9, %rsi
addq %r9, %r10
testq %rcx, %rcx
movq %r8, %rcx
jg 0x155ab
callq 0x8410
movq %r14, %rdi
callq 0x8410
movq %rbx, %rdi
callq 0x8410
xorl %eax, %eax
jmp 0x14d28
leaq 0xdd81d(%rip), %rbx     # 0xf2e28
leaq 0xdd902(%rip), %r14     # 0xf2f14
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x350, %r8d            # imm = 0x350
movl %r12d, %r9d
xorl %eax, %eax
callq 0x8550
incl %eax
movslq %eax, %rsi
movq 0x170(%rsp), %rdi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x350, %r8d            # imm = 0x350
movl %r12d, %r9d
xorl %eax, %eax
callq 0x8550
jmp 0x14d23