// File: /workspace/github_c_makefile_star2_O3/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 $0x128, %rsp            # imm = 0x128
movl %r9d, %ebp
movq %r8, 0x40(%rsp)
movl %ecx, %r12d
movq %rdx, 0xb0(%rsp)
movl %esi, %r14d
movq %rdi, %rbx
leal -0x1(%r14), %eax
movl %eax, 0x5c(%rsp)
imull %ecx, %eax
cltq
movq %rax, 0xd0(%rsp)
leaq (,%rax,8), %rdi
callq 0x8460
movq %rax, %r15
movq %r12, 0x30(%rsp)
movslq %r12d, %rax
movq %rax, 0xd8(%rsp)
leaq (,%rax,8), %r12
movq %r12, %rdi
callq 0x8460
movq %rax, %r13
movq %r12, 0xb8(%rsp)
movq %r12, %rdi
callq 0x8460
testq %r15, %r15
je 0x14da9
testq %r13, %r13
je 0x14de9
testq %rax, %rax
movq 0x160(%rsp), %r12
je 0x14e29
xorl %ecx, %ecx
cmpl $0x2, %r14d
cmovel %ecx, %ebp
movswl %bp, %ecx
testw %cx, %cx
movq %r15, 0x48(%rsp)
movq %r13, 0x78(%rsp)
movq %rax, 0x70(%rsp)
movl %ecx, 0x58(%rsp)
je 0x14e80
cmpw $0x1, %bp
movq 0xb0(%rsp), %r15
jne 0x15584
movl %ebp, 0x54(%rsp)
movq %r14, 0x38(%rsp)
cmpl $0x0, 0x30(%rsp)
movq 0x40(%rsp), %r14
jle 0x14eba
movq 0x30(%rsp), %rcx
leal (%rcx,%rcx), %eax
movl %ecx, %r12d
leaq (%r15,%r12,8), %r13
leaq (%r15,%rax,8), %rax
movq %rax, 0xc0(%rsp)
xorl %ebp, %ebp
movsd 0x10(%rbx), %xmm0
callq 0x82c0
movsd %xmm0, 0x8(%rsp)
movsd (%rbx), %xmm0
callq 0x82c0
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movsd 0x10(%rbx), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movsd (%rbx), %xmm0
callq 0x82c0
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
mulsd 0x8(%rsp), %xmm1
movsd %xmm1, 0x10(%rsp)
movsd (%r13,%rbp,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x8(%rsp)
movsd (%r15,%rbp,8), %xmm0
callq 0x82c0
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
mulsd 0x10(%rsp), %xmm1
movsd %xmm1, 0x8(%rsp)
movsd 0x8(%rbx), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movsd (%rbx), %xmm0
callq 0x82c0
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rsp)
movsd 0x8(%rbx), %xmm0
callq 0x82c0
movsd %xmm0, 0x20(%rsp)
movsd (%rbx), %xmm0
callq 0x82c0
movsd 0x20(%rsp), %xmm1
subsd %xmm0, %xmm1
mulsd 0x10(%rsp), %xmm1
movsd %xmm1, 0x20(%rsp)
movq 0xc0(%rsp), %rax
movsd (%rax,%rbp,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movsd (%r15,%rbp,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(%rbx), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movsd (%rbx), %xmm0
callq 0x82c0
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rsp)
movsd 0x8(%rbx), %xmm0
callq 0x82c0
movsd %xmm0, 0x20(%rsp)
movsd (%rbx), %xmm0
callq 0x82c0
movsd 0x20(%rsp), %xmm1
subsd %xmm0, %xmm1
mulsd 0x10(%rsp), %xmm1
movsd %xmm1, 0x20(%rsp)
movsd 0x10(%rbx), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movsd 0x8(%rbx), %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)
movabsq $-0x4020000000000000, %rax # imm = 0xBFE0000000000000
movq %rax, (%r14,%rbp,8)
movsd 0x8(%rbx), %xmm0
callq 0x82c0
movaps %xmm0, 0x10(%rsp)
movsd (%rbx), %xmm0
callq 0x82c0
movaps %xmm0, 0x20(%rsp)
movsd (%r13,%rbp,8), %xmm0
callq 0x82c0
movaps %xmm0, 0xa0(%rsp)
movsd (%r15,%rbp,8), %xmm0
callq 0x82c0
movapd 0xa0(%rsp), %xmm1
subsd %xmm0, %xmm1
movapd 0xdaa50(%rip), %xmm0    # 0xef780
unpcklpd %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
movapd %xmm0, 0xa0(%rsp)
movsd 0x8(%rbx), %xmm0
callq 0x82c0
movaps %xmm0, 0x60(%rsp)
movsd (%rbx), %xmm0
callq 0x82c0
movq 0x48(%rsp), %rdx
movapd 0x10(%rsp), %xmm1
unpcklpd 0x60(%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, (%rdx,%rbp,8)
incq %rbp
cmpq %rbp, %r12
jne 0x14b19
jmp 0x14eba
leaq 0xdb06d(%rip), %rbx     # 0xefe1d
leaq 0xdb16d(%rip), %r14     # 0xeff24
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 0x160(%rsp), %rdi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x2e7, %r8d            # imm = 0x2E7
jmp 0x14e62
leaq 0xdb0fc(%rip), %rbx     # 0xefeec
leaq 0xdb12d(%rip), %r14     # 0xeff24
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 0x160(%rsp), %rdi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x2ef, %r8d            # imm = 0x2EF
jmp 0x14e62
leaq 0xdb0d8(%rip), %rbx     # 0xeff08
leaq 0xdb0ed(%rip), %r14     # 0xeff24
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 %r12, %rdi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x2f3, %r8d            # imm = 0x2F3
xorl %eax, %eax
callq 0x8550
movl $0x1, %eax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %ebp, 0x54(%rsp)
movq %r14, 0x38(%rsp)
cmpl $0x0, 0x30(%rsp)
movq 0x40(%rsp), %r14
jle 0x14eba
movl 0x30(%rsp), %r12d
shlq $0x3, %r12
movq 0x48(%rsp), %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x8200
movq %r14, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x8200
cmpl $0x3, 0x38(%rsp)
movq 0x30(%rsp), %r15
jl 0x15224
movl 0x5c(%rsp), %eax
movq %rax, 0xf0(%rsp)
movl %r15d, %edi
movq 0xd8(%rsp), %rdx
movq %rdx, %r8
shlq $0x4, %r8
movq 0xb0(%rsp), %rsi
addq %rsi, %r8
movq 0x48(%rsp), %rax
leaq (%rax,%rdx,8), %r9
leaq (%rsi,%rdx,8), %r10
movq 0x40(%rsp), %rcx
leaq (%rcx,%rdx,8), %rdx
shlq $0x3, %rdi
movq %rdi, 0xe8(%rsp)
movl $0x1, %r14d
movq %r9, 0xe0(%rsp)
movq %rcx, 0x80(%rsp)
movq %rax, 0x88(%rsp)
movq %r8, 0x90(%rsp)
movq %rsi, 0x98(%rsp)
movq %rdx, 0xc0(%rsp)
movsd (%rbx,%r14,8), %xmm0
movq %r10, %r12
callq 0x82c0
movaps %xmm0, 0x60(%rsp)
movsd -0x8(%rbx,%r14,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x8(%rsp)
leaq 0x1(%r14), %r13
movsd 0x8(%rbx,%r14,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movsd -0x8(%rbx,%r14,8), %xmm0
callq 0x82c0
testl %r15d, %r15d
movq %rbx, %rbp
movq 0xe8(%rsp), %rbx
movsd 0xd9d58(%rip), %xmm2    # 0xeed00
jle 0x151ac
movapd 0x60(%rsp), %xmm1
subsd 0x8(%rsp), %xmm1
movsd 0x10(%rsp), %xmm3
subsd %xmm0, %xmm3
divsd %xmm3, %xmm1
movapd %xmm1, %xmm0
addsd 0xd9814(%rip), %xmm0    # 0xee7e8
movapd %xmm0, 0x110(%rsp)
movapd %xmm1, 0x60(%rsp)
xorpd 0xd9245(%rip), %xmm1    # 0xee230
movapd %xmm1, 0x100(%rsp)
xorl %r15d, %r15d
movq %r12, 0xf8(%rsp)
movq 0x80(%rsp), %rax
movsd (%rax,%r15), %xmm1
mulsd 0x60(%rsp), %xmm1
addsd %xmm2, %xmm1
movsd %xmm1, 0x20(%rsp)
movapd 0x110(%rsp), %xmm0
divsd %xmm1, %xmm0
movq 0xc0(%rsp), %rax
movsd %xmm0, (%rax,%r15)
movq 0x90(%rsp), %rax
movsd (%rax,%r15), %xmm0
callq 0x82c0
movsd %xmm0, 0x8(%rsp)
movsd (%r12,%r15), %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,%r14,8), %xmm0
callq 0x82c0
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
movsd (%r12,%r15), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movq 0x98(%rsp), %rax
movsd (%rax,%r15), %xmm0
callq 0x82c0
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rsp)
movsd (%rbp,%r14,8), %xmm0
callq 0x82c0
movsd %xmm0, 0xa0(%rsp)
movsd -0x8(%rbp,%r14,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 0xe0(%rsp), %r12
movsd %xmm0, (%r12,%r15)
mulsd 0xda540(%rip), %xmm0    # 0xef670
movsd %xmm0, 0x8(%rsp)
movsd (%rbp,%r13,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movsd -0x8(%rbp,%r14,8), %xmm0
callq 0x82c0
movsd 0xd9ba4(%rip), %xmm2    # 0xeed00
movsd 0x10(%rsp), %xmm3
subsd %xmm0, %xmm3
movsd 0x8(%rsp), %xmm1
divsd %xmm3, %xmm1
movq 0x88(%rsp), %rax
movsd (%rax,%r15), %xmm0
mulsd 0x100(%rsp), %xmm0
addsd %xmm1, %xmm0
divsd 0x20(%rsp), %xmm0
movsd %xmm0, (%r12,%r15)
movq 0xf8(%rsp), %r12
addq $0x8, %r15
cmpq %r15, %rbx
jne 0x14fff
movq 0xb8(%rsp), %rax
movq 0x90(%rsp), %rdx
addq %rax, %rdx
movq 0xe0(%rsp), %r10
addq %rax, %r10
addq %rax, %r12
movq 0xc0(%rsp), %rcx
addq %rax, %rcx
movq 0x80(%rsp), %r9
addq %rax, %r9
movq 0x98(%rsp), %rsi
addq %rax, %rsi
movq 0x88(%rsp), %rdi
addq %rax, %rdi
cmpq 0xf0(%rsp), %r13
movq 0x30(%rsp), %r15
movq %rdx, %r8
movq %rcx, %rdx
movq %rdi, %rax
movq %r9, %rcx
movq %rbp, %rbx
movq %r10, %r9
movq %r12, %r10
movq %r13, %r14
jne 0x14f1b
movl 0x54(%rsp), %eax
testw %ax, %ax
je 0x155c9
cmpw $0x1, %ax
movq 0x78(%rsp), %r14
movq 0x70(%rsp), %r12
jne 0x15681
testl %r15d, %r15d
jle 0x156d5
movq 0x38(%rsp), %rcx
leal -0x3(%rcx), %eax
movslq %eax, %rsi
movslq 0x5c(%rsp), %rbp
leal -0x2(%rcx), %eax
movq %r15, %rdx
movslq %eax, %r13
imull %edx, %eax
movq %rsi, 0x88(%rsp)
movl %esi, %ecx
imull %edx, %ecx
cltq
movslq %ecx, %rcx
movl %edx, %edx
movq %rdx, 0x98(%rsp)
movq 0xb0(%rsp), %rdx
leaq (%rdx,%rax,8), %rax
movq %rax, 0xa0(%rsp)
movq 0xd0(%rsp), %rax
leaq (%rdx,%rax,8), %rax
movq %rax, 0x90(%rsp)
leaq (%rdx,%rcx,8), %rax
movq %rax, 0x80(%rsp)
xorl %r14d, %r14d
movq 0x88(%rsp), %r15
movq 0x90(%rsp), %r12
movsd (%rbx,%r15,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x8(%rsp)
movsd (%rbx,%rbp,8), %xmm0
callq 0x82c0
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movsd (%rbx,%r15,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movsd (%rbx,%rbp,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 (%r12,%r14,8), %xmm0
callq 0x82c0
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
mulsd 0x10(%rsp), %xmm1
movsd %xmm1, 0x8(%rsp)
movsd (%rbx,%r13,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movsd (%rbx,%rbp,8), %xmm0
callq 0x82c0
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rsp)
movsd (%rbx,%r13,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x20(%rsp)
movsd (%rbx,%rbp,8), %xmm0
callq 0x82c0
movsd 0x20(%rsp), %xmm1
subsd %xmm0, %xmm1
mulsd 0x10(%rsp), %xmm1
movsd %xmm1, 0x20(%rsp)
movq 0x80(%rsp), %rax
movsd (%rax,%r14,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movsd (%r12,%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 (%rbx,%r15,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movsd (%rbx,%rbp,8), %xmm0
callq 0x82c0
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rsp)
movsd (%rbx,%r13,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x20(%rsp)
movsd (%rbx,%rbp,8), %xmm0
callq 0x82c0
movsd 0x20(%rsp), %xmm1
subsd %xmm0, %xmm1
mulsd 0x10(%rsp), %xmm1
movsd %xmm1, 0x20(%rsp)
movsd (%rbx,%r15,8), %xmm0
callq 0x82c0
movsd %xmm0, 0x10(%rsp)
movsd (%rbx,%r13,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 0x78(%rsp), %rax
movabsq $0x3fe0000000000000, %rcx # imm = 0x3FE0000000000000
movq %rcx, (%rax,%r14,8)
movsd (%rbx,%rbp,8), %xmm0
callq 0x82c0
movaps %xmm0, 0x10(%rsp)
movsd (%rbx,%r13,8), %xmm0
callq 0x82c0
movaps %xmm0, 0x20(%rsp)
movsd (%r12,%r14,8), %xmm0
callq 0x82c0
movaps %xmm0, 0x60(%rsp)
movq 0xa0(%rsp), %rax
movsd (%rax,%r14,8), %xmm0
callq 0x82c0
movapd 0x60(%rsp), %xmm1
subsd %xmm0, %xmm1
movapd 0xda27e(%rip), %xmm0    # 0xef780
unpcklpd %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
movapd %xmm0, 0x60(%rsp)
movsd (%rbx,%rbp,8), %xmm0
callq 0x82c0
movaps %xmm0, 0xc0(%rsp)
movsd (%rbx,%r13,8), %xmm0
callq 0x82c0
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 0x60(%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
movq 0x70(%rsp), %rax
movsd %xmm1, (%rax,%r14,8)
incq %r14
cmpq %r14, 0x98(%rsp)
jne 0x152cd
jmp 0x155fd
leaq 0xda8ad(%rip), %rbx     # 0xefe38
leaq 0xda992(%rip), %r14     # 0xeff24
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x316, %r8d            # imm = 0x316
movl 0x58(%rsp), %ebp
movl %ebp, %r9d
xorl %eax, %eax
callq 0x8550
incl %eax
movslq %eax, %rsi
movq %r12, %rdi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x316, %r8d            # imm = 0x316
jmp 0x156c6
testl %r15d, %r15d
movq 0x78(%rsp), %r14
movq 0x70(%rsp), %r12
jle 0x156d5
movl %r15d, %ebx
shlq $0x3, %rbx
movq %r12, %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x8200
movq %r14, %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x8200
movq 0x38(%rsp), %r9
leal -0x2(%r9), %eax
movq 0x30(%rsp), %rcx
imull %ecx, %eax
movslq %eax, %rsi
movl %ecx, %eax
movq 0x40(%rsp), %r8
movq 0xd0(%rsp), %rcx
leaq (%r8,%rcx,8), %rcx
movq 0x48(%rsp), %rbx
leaq (%rbx,%rsi,8), %rdx
leaq (%r8,%rsi,8), %rsi
xorl %edi, %edi
movsd 0xd8c25(%rip), %xmm0    # 0xee260
movq 0x78(%rsp), %r14
movq 0x70(%rsp), %r12
movsd (%r12,%rdi,8), %xmm1
movsd (%r14,%rdi,8), %xmm2
movsd (%rdx,%rdi,8), %xmm3
mulsd %xmm2, %xmm3
subsd %xmm3, %xmm1
mulsd (%rsi,%rdi,8), %xmm2
addsd %xmm0, %xmm2
divsd %xmm2, %xmm1
movsd %xmm1, (%rcx,%rdi,8)
incq %rdi
cmpq %rdi, %rax
jne 0x15645
movb $0x1, %al
movq 0x30(%rsp), %r15
jmp 0x156e6
leaq 0xda7b0(%rip), %rbx     # 0xefe38
leaq 0xda895(%rip), %r14     # 0xeff24
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x350, %r8d            # imm = 0x350
movl 0x58(%rsp), %ebp
movl %ebp, %r9d
xorl %eax, %eax
callq 0x8550
incl %eax
movslq %eax, %rsi
movq 0x160(%rsp), %rdi
movq %rbx, %rdx
movq %r14, %rcx
movl $0x350, %r8d            # imm = 0x350
movl %ebp, %r9d
xorl %eax, %eax
callq 0x8550
jmp 0x14e69
xorl %eax, %eax
movq 0x48(%rsp), %rbx
movq 0x38(%rsp), %r9
movq 0x40(%rsp), %r8
cmpl $0x2, %r9d
jl 0x1575f
addl $-0x2, %r9d
movl %r15d, %ecx
leaq 0x1(%r9), %rdx
movq 0xd8(%rsp), %rdi
imulq %rdi, %rdx
leaq (%r8,%rdx,8), %rdx
negq 0xb8(%rsp)
imulq %r9, %rdi
leaq (%r8,%rdi,8), %rsi
leaq (%rbx,%rdi,8), %rdi
movq 0xb8(%rsp), %r10
testb %al, %al
je 0x1574a
xorl %r8d, %r8d
movsd (%rsi,%r8,8), %xmm0
mulsd (%rdx,%r8,8), %xmm0
addsd (%rdi,%r8,8), %xmm0
movsd %xmm0, (%rsi,%r8,8)
incq %r8
cmpq %r8, %rcx
jne 0x1572a
leaq -0x1(%r9), %r8
addq %r10, %rdx
addq %r10, %rsi
addq %r10, %rdi
testq %r9, %r9
movq %r8, %r9
jg 0x15723
movq %r14, %rdi
callq 0x8410
movq %r12, %rdi
callq 0x8410
movq %rbx, %rdi
callq 0x8410
xorl %eax, %eax
jmp 0x14e6e