// File: /workspace/github_c_makefile_star2_O0/PoulinV[P]AxiCLASS/build/../tools/arrays.c
// Function: array_spline
int array_spline(
		  double * array,
		  int n_columns,
		  int n_lines,
		  int index_x,   /** from 0 to (n_columns-1) */
		  int index_y,
		  int index_ddydx2,
		  short spline_mode,
		  ErrorMsg errmsg) {

  int i,k;
  double p,qn,sig,un;
  double * u;
  double dy_first;
  double dy_last;

  if (n_lines < 3) {
    class_sprintf(errmsg,"%s(L:%d) n_lines=%d, while routine needs n_lines >= 3",__func__,__LINE__,n_lines);
    return _FAILURE_;
  }

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

  if (spline_mode == _SPLINE_NATURAL_) {
    *(array+0*n_columns+index_ddydx2) = u[0] = 0.0;
  }
  else {
    if (spline_mode == _SPLINE_EST_DERIV_) {
      dy_first =
	((*(array+2*n_columns+index_x)-*(array+0*n_columns+index_x))*
	 (*(array+2*n_columns+index_x)-*(array+0*n_columns+index_x))*
	 (*(array+1*n_columns+index_y)-*(array+0*n_columns+index_y))-
	 (*(array+1*n_columns+index_x)-*(array+0*n_columns+index_x))*
	 (*(array+1*n_columns+index_x)-*(array+0*n_columns+index_x))*
	 (*(array+2*n_columns+index_y)-*(array+0*n_columns+index_y)))/
	((*(array+2*n_columns+index_x)-*(array+0*n_columns+index_x))*
	 (*(array+1*n_columns+index_x)-*(array+0*n_columns+index_x))*
	 (*(array+2*n_columns+index_x)-*(array+1*n_columns+index_x)));

      *(array+0*n_columns+index_ddydx2) = -0.5;

      u[0] =
	(3./(*(array+1*n_columns+index_x) -  *(array+0*n_columns+index_x)))*
	((*(array+1*n_columns+index_y) -  *(array+0*n_columns+index_y))/
	 (*(array+1*n_columns+index_x) -  *(array+0*n_columns+index_x))
	 -dy_first);
    }
    else {
      class_sprintf(errmsg,"%s(L:%d) Spline mode not identified: %d",__func__,__LINE__,spline_mode);
      return _FAILURE_;
    }
  }

  for (i=1; i < n_lines-1; i++) {

      sig = (*(array+i*n_columns+index_x) - *(array+(i-1)*n_columns+index_x))
	/ (*(array+(i+1)*n_columns+index_x) - *(array+(i-1)*n_columns+index_x));

      p = sig * *(array+(i-1)*n_columns+index_ddydx2) + 2.0;
      *(array+i*n_columns+index_ddydx2) = (sig-1.0)/p;
      u[i] = (*(array+(i+1)*n_columns+index_y) - *(array+i*n_columns+index_y))
	/ (*(array+(i+1)*n_columns+index_x) - *(array+i*n_columns+index_x))
	- (*(array+i*n_columns+index_y) - *(array+(i-1)*n_columns+index_y))
	/ (*(array+i*n_columns+index_x) - *(array+(i-1)*n_columns+index_x));
      u[i]= (6.0 * u[i] /
	     (*(array+(i+1)*n_columns+index_x) - *(array+(i-1)*n_columns+index_x))
	     - sig * u[i-1]) / p;

    }

  if (spline_mode == _SPLINE_NATURAL_) {
    qn=0.;
    un=0.;
  }
  else {
    if (spline_mode == _SPLINE_EST_DERIV_) {
      dy_last =
	((*(array+(n_lines-3)*n_columns+index_x)-*(array+(n_lines-1)*n_columns+index_x))*
	 (*(array+(n_lines-3)*n_columns+index_x)-*(array+(n_lines-1)*n_columns+index_x))*
	 (*(array+(n_lines-2)*n_columns+index_y)-*(array+(n_lines-1)*n_columns+index_y))-
	 (*(array+(n_lines-2)*n_columns+index_x)-*(array+(n_lines-1)*n_columns+index_x))*
	 (*(array+(n_lines-2)*n_columns+index_x)-*(array+(n_lines-1)*n_columns+index_x))*
	 (*(array+(n_lines-3)*n_columns+index_y)-*(array+(n_lines-1)*n_columns+index_y)))/
	((*(array+(n_lines-3)*n_columns+index_x)-*(array+(n_lines-1)*n_columns+index_x))*
	 (*(array+(n_lines-2)*n_columns+index_x)-*(array+(n_lines-1)*n_columns+index_x))*
	 (*(array+(n_lines-3)*n_columns+index_x)-*(array+(n_lines-2)*n_columns+index_x)));

      qn=0.5;
      un =
	(3./(*(array+(n_lines-1)*n_columns+index_x) -  *(array+(n_lines-2)*n_columns+index_x)))*
	(dy_last-(*(array+(n_lines-1)*n_columns+index_y) -  *(array+(n_lines-2)*n_columns+index_y))/
	 (*(array+(n_lines-1)*n_columns+index_x) -  *(array+(n_lines-2)*n_columns+index_x)));
    }
    else {
      class_sprintf(errmsg,"%s(L:%d) Spline mode not identified: %d",__func__,__LINE__,spline_mode);
      return _FAILURE_;
    }
  }

  *(array+(n_lines-1)*n_columns+index_ddydx2) =
    (un-qn*u[n_lines-2])/(qn* *(array+(n_lines-2)*n_columns+index_ddydx2)+1.0);

  for (k=n_lines-2; k>=0; k--)
    *(array+k*n_columns+index_ddydx2) = *(array+k*n_columns+index_ddydx2) *
      *(array+(k+1)*n_columns+index_ddydx2) + u[k];

  free(u);

  return _SUCCESS_;
}

// Assembly:
subq $0x78, %rsp
movq 0x88(%rsp), %rax
movw 0x80(%rsp), %ax
movq %rdi, 0x68(%rsp)
movl %esi, 0x64(%rsp)
movl %edx, 0x60(%rsp)
movl %ecx, 0x5c(%rsp)
movl %r8d, 0x58(%rsp)
movl %r9d, 0x54(%rsp)
cmpl $0x3, 0x60(%rsp)
jge 0x1b3e2
jmp 0x1b378
movl 0x60(%rsp), %r9d
xorl %eax, %eax
movl %eax, %esi
leaq 0x1b8a39(%rip), %rdx    # 0x1d3dc1
leaq 0x1b8a68(%rip), %rcx    # 0x1d3df7
movl $0x164, %r8d            # imm = 0x164
movq %rsi, %rdi
movb $0x0, %al
callq 0x8540
movl %eax, 0xc(%rsp)
movq 0x88(%rsp), %rdi
movl 0xc(%rsp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movl 0x60(%rsp), %r9d
leaq 0x1b8a00(%rip), %rdx    # 0x1d3dc1
leaq 0x1b8a2f(%rip), %rcx    # 0x1d3df7
movl $0x164, %r8d            # imm = 0x164
movb $0x0, %al
callq 0x8540
movl $0x1, 0x74(%rsp)
jmp 0x1c1af
movl 0x60(%rsp), %eax
subl $0x1, %eax
movslq %eax, %rdi
shlq $0x3, %rdi
callq 0x8460
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0x1b464
jmp 0x1b404
xorl %eax, %eax
movl %eax, %esi
leaq 0x1b89f5(%rip), %rdx    # 0x1d3e04
leaq 0x1b89e1(%rip), %rcx    # 0x1d3df7
movl $0x16a, %r8d            # imm = 0x16A
movq %rsi, %rdi
movb $0x0, %al
callq 0x8540
movl %eax, 0x8(%rsp)
movq 0x88(%rsp), %rdi
movl 0x8(%rsp), %eax
addl $0x1, %eax
movslq %eax, %rsi
leaq 0x1b89c1(%rip), %rdx    # 0x1d3e04
leaq 0x1b89ad(%rip), %rcx    # 0x1d3df7
movl $0x16a, %r8d            # imm = 0x16A
movb $0x0, %al
callq 0x8540
movl $0x1, 0x74(%rsp)
jmp 0x1c1af
movswl 0x80(%rsp), %eax
cmpl $0x0, %eax
jne 0x1b4a3
movq 0x20(%rsp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movq 0x68(%rsp), %rax
imull $0x0, 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x54(%rsp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
jmp 0x1b897
movswl 0x80(%rsp), %eax
cmpl $0x1, %eax
jne 0x1b821
movq 0x68(%rsp), %rax
movl 0x64(%rsp), %ecx
shll %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x68(%rsp), %rax
imull $0x0, 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm0
movq 0x68(%rsp), %rax
movl 0x64(%rsp), %ecx
shll %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq 0x68(%rsp), %rax
imull $0x0, 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm1
mulsd %xmm1, %xmm0
movq 0x68(%rsp), %rax
movl 0x64(%rsp), %ecx
shll $0x0, %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x58(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm2
movq 0x68(%rsp), %rax
imull $0x0, 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x58(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm2
movq 0x68(%rsp), %rax
movl 0x64(%rsp), %ecx
shll $0x0, %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq 0x68(%rsp), %rax
imull $0x0, 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm1
movq 0x68(%rsp), %rax
movl 0x64(%rsp), %ecx
shll $0x0, %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm3
movq 0x68(%rsp), %rax
imull $0x0, 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm3
mulsd %xmm3, %xmm1
movq 0x68(%rsp), %rax
movl 0x64(%rsp), %ecx
shll %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x58(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm3
movq 0x68(%rsp), %rax
imull $0x0, 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x58(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm3
mulsd %xmm3, %xmm1
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq 0x68(%rsp), %rax
movl 0x64(%rsp), %ecx
shll %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq 0x68(%rsp), %rax
imull $0x0, 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm1
movq 0x68(%rsp), %rax
movl 0x64(%rsp), %ecx
shll $0x0, %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm2
movq 0x68(%rsp), %rax
imull $0x0, 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm2
mulsd %xmm2, %xmm1
movq 0x68(%rsp), %rax
movl 0x64(%rsp), %ecx
shll %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm2
movq 0x68(%rsp), %rax
movl 0x64(%rsp), %ecx
shll $0x0, %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm2
mulsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x18(%rsp)
movq 0x68(%rsp), %rax
imull $0x0, 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x54(%rsp), %rcx
movsd 0x1b7f63(%rip), %xmm0   # 0x1d36a0
movsd %xmm0, (%rax,%rcx,8)
movq 0x68(%rsp), %rax
movl 0x64(%rsp), %ecx
shll $0x0, %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq 0x68(%rsp), %rax
imull $0x0, 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm1
movsd 0x1b7f10(%rip), %xmm0   # 0x1d3698
divsd %xmm1, %xmm0
movq 0x68(%rsp), %rax
movl 0x64(%rsp), %ecx
shll $0x0, %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x58(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq 0x68(%rsp), %rax
imull $0x0, 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x58(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm1
movq 0x68(%rsp), %rax
movl 0x64(%rsp), %ecx
shll $0x0, %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm2
movq 0x68(%rsp), %rax
imull $0x0, 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm2
divsd %xmm2, %xmm1
subsd 0x18(%rsp), %xmm1
mulsd %xmm1, %xmm0
movq 0x20(%rsp), %rax
movsd %xmm0, (%rax)
jmp 0x1b895
jmp 0x1b823
movswl 0x80(%rsp), %r9d
xorl %eax, %eax
movl %eax, %esi
leaq 0x1b85e8(%rip), %rdx    # 0x1d3e1f
leaq 0x1b85b9(%rip), %rcx    # 0x1d3df7
movl $0x187, %r8d            # imm = 0x187
movq %rsi, %rdi
movb $0x0, %al
callq 0x8540
movl %eax, 0x4(%rsp)
movq 0x88(%rsp), %rdi
movl 0x4(%rsp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movswl 0x80(%rsp), %r9d
leaq 0x1b85ab(%rip), %rdx    # 0x1d3e1f
leaq 0x1b857c(%rip), %rcx    # 0x1d3df7
movl $0x187, %r8d            # imm = 0x187
movb $0x0, %al
callq 0x8540
movl $0x1, 0x74(%rsp)
jmp 0x1c1af
jmp 0x1b897
movl $0x1, 0x50(%rsp)
movl 0x50(%rsp), %eax
movl 0x60(%rsp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x1bbc2
movq 0x68(%rsp), %rax
movl 0x50(%rsp), %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x68(%rsp), %rax
movl 0x50(%rsp), %ecx
subl $0x1, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm0
movq 0x68(%rsp), %rax
movl 0x50(%rsp), %ecx
addl $0x1, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq 0x68(%rsp), %rax
movl 0x50(%rsp), %ecx
subl $0x1, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x30(%rsp)
movsd 0x30(%rsp), %xmm0
movq 0x68(%rsp), %rax
movl 0x50(%rsp), %ecx
subl $0x1, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x54(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
mulsd %xmm1, %xmm0
movsd 0x1b72fc(%rip), %xmm1   # 0x1d2c80
addsd %xmm1, %xmm0
movsd %xmm0, 0x40(%rsp)
movsd 0x30(%rsp), %xmm0
movsd 0x1b68ac(%rip), %xmm1   # 0x1d2248
subsd %xmm1, %xmm0
divsd 0x40(%rsp), %xmm0
movq 0x68(%rsp), %rax
movl 0x50(%rsp), %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x54(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0x68(%rsp), %rax
movl 0x50(%rsp), %ecx
addl $0x1, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x58(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x68(%rsp), %rax
movl 0x50(%rsp), %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x58(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm0
movq 0x68(%rsp), %rax
movl 0x50(%rsp), %ecx
addl $0x1, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq 0x68(%rsp), %rax
movl 0x50(%rsp), %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm1
divsd %xmm1, %xmm0
movq 0x68(%rsp), %rax
movl 0x50(%rsp), %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x58(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq 0x68(%rsp), %rax
movl 0x50(%rsp), %ecx
subl $0x1, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x58(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm1
movq 0x68(%rsp), %rax
movl 0x50(%rsp), %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm2
movq 0x68(%rsp), %rax
movl 0x50(%rsp), %ecx
subl $0x1, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm2
divsd %xmm2, %xmm1
subsd %xmm1, %xmm0
movq 0x20(%rsp), %rax
movslq 0x50(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0x20(%rsp), %rax
movslq 0x50(%rsp), %rcx
movsd 0x1b7b77(%rip), %xmm1   # 0x1d3688
mulsd (%rax,%rcx,8), %xmm1
movq 0x68(%rsp), %rax
movl 0x50(%rsp), %ecx
addl $0x1, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x68(%rsp), %rax
movl 0x50(%rsp), %ecx
subl $0x1, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm0
divsd %xmm0, %xmm1
movsd 0x30(%rsp), %xmm0
movq 0x20(%rsp), %rax
movl 0x50(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm2
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
divsd 0x40(%rsp), %xmm0
movq 0x20(%rsp), %rax
movslq 0x50(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl 0x50(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x50(%rsp)
jmp 0x1b89f
movswl 0x80(%rsp), %eax
cmpl $0x0, %eax
jne 0x1bbe6
xorps %xmm0, %xmm0
movsd %xmm0, 0x38(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x28(%rsp)
jmp 0x1c054
movswl 0x80(%rsp), %eax
cmpl $0x1, %eax
jne 0x1bfe0
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x3, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x1, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm0
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x3, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x1, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm1
mulsd %xmm1, %xmm0
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x2, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x58(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm2
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x1, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x58(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm2
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x2, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x1, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm1
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x2, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm3
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x1, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm3
mulsd %xmm3, %xmm1
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x3, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x58(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm3
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x1, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x58(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm3
mulsd %xmm3, %xmm1
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x3, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x1, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm1
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x2, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm2
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x1, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm2
mulsd %xmm2, %xmm1
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x3, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm2
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x2, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm2
mulsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x10(%rsp)
movsd 0x1b6db2(%rip), %xmm0   # 0x1d2c88
movsd %xmm0, 0x38(%rsp)
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x1, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x2, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm1
movsd 0x1b776a(%rip), %xmm0   # 0x1d3698
divsd %xmm1, %xmm0
movsd 0x10(%rsp), %xmm1
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x1, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x58(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm2
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x2, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x58(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm2
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x1, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm3
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x2, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x5c(%rsp), %rcx
subsd (%rax,%rcx,8), %xmm3
divsd %xmm3, %xmm2
subsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, 0x28(%rsp)
jmp 0x1c052
jmp 0x1bfe2
movswl 0x80(%rsp), %r9d
xorl %eax, %eax
movl %eax, %esi
leaq 0x1b7e29(%rip), %rdx    # 0x1d3e1f
leaq 0x1b7dfa(%rip), %rcx    # 0x1d3df7
movl $0x1b5, %r8d            # imm = 0x1B5
movq %rsi, %rdi
movb $0x0, %al
callq 0x8540
movl %eax, (%rsp)
movq 0x88(%rsp), %rdi
movl (%rsp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movswl 0x80(%rsp), %r9d
leaq 0x1b7dee(%rip), %rdx    # 0x1d3e1f
leaq 0x1b7dbf(%rip), %rcx    # 0x1d3df7
movl $0x1b5, %r8d            # imm = 0x1B5
movb $0x0, %al
callq 0x8540
movl $0x1, 0x74(%rsp)
jmp 0x1c1af
jmp 0x1c054
movsd 0x28(%rsp), %xmm1
movsd 0x38(%rsp), %xmm0
movq 0x20(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x2, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm2
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd 0x38(%rsp), %xmm1
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x2, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x54(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm2
mulsd %xmm2, %xmm1
movsd 0x1b617e(%rip), %xmm2   # 0x1d2248
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %ecx
subl $0x1, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x54(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl 0x60(%rsp), %eax
subl $0x2, %eax
movl %eax, 0x4c(%rsp)
cmpl $0x0, 0x4c(%rsp)
jl 0x1c19d
movq 0x68(%rsp), %rax
movl 0x4c(%rsp), %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x54(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x68(%rsp), %rax
movl 0x4c(%rsp), %ecx
addl $0x1, %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x54(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm2
movq 0x20(%rsp), %rax
movslq 0x4c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq 0x68(%rsp), %rax
movl 0x4c(%rsp), %ecx
imull 0x64(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq 0x54(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl 0x4c(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0x4c(%rsp)
jmp 0x1c102
movq 0x20(%rsp), %rdi
callq 0x8420
movl $0x0, 0x74(%rsp)
movl 0x74(%rsp), %eax
addq $0x78, %rsp
retq
nopl (%rax,%rax)