// File: /workspace/github_c_makefile_star2_O0/PoulinV[P]AxiCLASS/build/../tools/arrays.c
// Function: array_logspline_table_one_column
int array_logspline_table_one_column(
		       double * x, /* vector of size x_size */
		       int x_size,
		       int x_stop,
		       double * y_array, /* array of size x_size*y_size with elements
					  y_array[index_y*x_size+index_x] */
		       int y_size,
		       int index_y,
		       double * ddlogy_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;
  double dy_first;
  double dy_last;

  u = (double*)malloc((x_stop-1) * sizeof(double));
  if (u == NULL) {
    class_sprintf(errmsg,"%s(L:%d) Cannot allocate u",__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_) {
    ddlogy_array[index_y*x_size+index_x] = 0.0;
    u[index_x] = 0.0;
  }
  else {
    if (spline_mode == _SPLINE_EST_DERIV_) {

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

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

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

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

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

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

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

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

  }

  /************************************************/

  if (spline_mode == _SPLINE_NATURAL_) {

      qn=un=0.0;

  }
  else {
    if (spline_mode == _SPLINE_EST_DERIV_) {

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

      qn=0.5;

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

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

  /************************************************/

  index_x=x_stop-1;

  ddlogy_array[index_y*x_size+index_x] =
    (un - qn * u[index_x-1]) /
    (qn * ddlogy_array[index_y*x_size+(index_x-1)] + 1.0);

  for (index_x=x_stop-2; index_x >= 0; index_x--) {

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

  }

  free(u);

  return _SUCCESS_;
}

// Assembly:
subq $0x248, %rsp            # imm = 0x248
movq 0x260(%rsp), %rax
movw 0x258(%rsp), %ax
movq 0x250(%rsp), %rax
movq %rdi, 0x238(%rsp)
movl %esi, 0x234(%rsp)
movl %edx, 0x230(%rsp)
movq %rcx, 0x228(%rsp)
movl %r8d, 0x224(%rsp)
movl %r9d, 0x220(%rsp)
movl 0x230(%rsp), %eax
subl $0x1, %eax
movslq %eax, %rdi
shlq $0x3, %rdi
callq 0x8460
movq %rax, 0x200(%rsp)
cmpq $0x0, 0x200(%rsp)
jne 0x21a41
jmp 0x219d8
xorl %eax, %eax
movl %eax, %esi
leaq 0x1b2421(%rip), %rdx    # 0x1d3e04
leaq 0x1b263a(%rip), %rcx    # 0x1d4024
movl $0x545, %r8d            # imm = 0x545
movq %rsi, %rdi
movb $0x0, %al
callq 0x8540
movl %eax, 0x1dc(%rsp)
movq 0x260(%rsp), %rdi
movl 0x1dc(%rsp), %eax
addl $0x1, %eax
movslq %eax, %rsi
leaq 0x1b23e7(%rip), %rdx    # 0x1d3e04
leaq 0x1b2600(%rip), %rcx    # 0x1d4024
movl $0x545, %r8d            # imm = 0x545
movb $0x0, %al
callq 0x8540
movl $0x1, 0x244(%rsp)
jmp 0x22c0d
cmpl $0x2, 0x234(%rsp)
jne 0x21a55
movw $0x0, 0x258(%rsp)
movl $0x0, 0x1f4(%rsp)
movswl 0x258(%rsp), %eax
cmpl $0x0, %eax
jne 0x21ab3
movq 0x250(%rsp), %rax
movl 0x220(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl 0x1f4(%rsp), %ecx
movslq %ecx, %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movq 0x200(%rsp), %rax
movslq 0x1f4(%rsp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
jmp 0x21fe8
movswl 0x258(%rsp), %eax
cmpl $0x1, %eax
jne 0x21f69
movq 0x238(%rsp), %rax
movsd 0x10(%rax), %xmm0
callq 0x82f0
movsd %xmm0, 0x120(%rsp)
movq 0x238(%rsp), %rax
movsd (%rax), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0x120(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x130(%rsp)
movq 0x238(%rsp), %rax
movsd 0x10(%rax), %xmm0
callq 0x82f0
movsd %xmm0, 0x128(%rsp)
movq 0x238(%rsp), %rax
movsd (%rax), %xmm0
callq 0x82f0
movsd 0x128(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0x130(%rsp), %xmm0
subsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, 0x170(%rsp)
movq 0x228(%rsp), %rax
movl 0x220(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x138(%rsp)
movq 0x228(%rsp), %rax
movl 0x220(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl $0x0, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0x138(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x168(%rsp)
movq 0x238(%rsp), %rax
movsd 0x8(%rax), %xmm0
callq 0x82f0
movsd %xmm0, 0x140(%rsp)
movq 0x238(%rsp), %rax
movsd (%rax), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0x140(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x150(%rsp)
movq 0x238(%rsp), %rax
movsd 0x8(%rax), %xmm0
callq 0x82f0
movsd %xmm0, 0x148(%rsp)
movq 0x238(%rsp), %rax
movsd (%rax), %xmm0
callq 0x82f0
movsd 0x148(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0x150(%rsp), %xmm0
subsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, 0x160(%rsp)
movq 0x228(%rsp), %rax
movl 0x220(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x158(%rsp)
movq 0x228(%rsp), %rax
movl 0x220(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl $0x0, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd 0x158(%rsp), %xmm3
movsd 0x160(%rsp), %xmm1
movsd 0x168(%rsp), %xmm2
movaps %xmm0, %xmm4
movsd 0x170(%rsp), %xmm0
subsd %xmm4, %xmm3
mulsd %xmm3, %xmm1
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x1a0(%rsp)
movq 0x238(%rsp), %rax
movsd 0x10(%rax), %xmm0
callq 0x82f0
movsd %xmm0, 0x178(%rsp)
movq 0x238(%rsp), %rax
movsd (%rax), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0x178(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x188(%rsp)
movq 0x238(%rsp), %rax
movsd 0x8(%rax), %xmm0
callq 0x82f0
movsd %xmm0, 0x180(%rsp)
movq 0x238(%rsp), %rax
movsd (%rax), %xmm0
callq 0x82f0
movsd 0x180(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0x188(%rsp), %xmm0
subsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, 0x198(%rsp)
movq 0x238(%rsp), %rax
movsd 0x10(%rax), %xmm0
callq 0x82f0
movsd %xmm0, 0x190(%rsp)
movq 0x238(%rsp), %rax
movsd 0x8(%rax), %xmm0
callq 0x82f0
movsd 0x190(%rsp), %xmm2
movsd 0x198(%rsp), %xmm1
movaps %xmm0, %xmm3
movsd 0x1a0(%rsp), %xmm0
subsd %xmm3, %xmm2
mulsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x1e8(%rsp)
movq 0x250(%rsp), %rax
movl 0x220(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl 0x1f4(%rsp), %ecx
movslq %ecx, %rcx
movsd 0x1b1870(%rip), %xmm0   # 0x1d36a0
movsd %xmm0, (%rax,%rcx,8)
movq 0x238(%rsp), %rax
movsd 0x8(%rax), %xmm0
callq 0x82f0
movsd %xmm0, 0x1a8(%rsp)
movq 0x238(%rsp), %rax
movsd (%rax), %xmm0
callq 0x82f0
movsd 0x1a8(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd 0x1b1822(%rip), %xmm0   # 0x1d3698
divsd %xmm1, %xmm0
movsd %xmm0, 0x1c8(%rsp)
movq 0x228(%rsp), %rax
movl 0x220(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x1b0(%rsp)
movq 0x228(%rsp), %rax
movl 0x220(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl $0x0, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0x1b0(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x1c0(%rsp)
movq 0x238(%rsp), %rax
movsd 0x8(%rax), %xmm0
callq 0x82f0
movsd %xmm0, 0x1b8(%rsp)
movq 0x238(%rsp), %rax
movsd (%rax), %xmm0
callq 0x82f0
movsd 0x1b8(%rsp), %xmm2
movsd 0x1c0(%rsp), %xmm1
movaps %xmm0, %xmm3
movsd 0x1c8(%rsp), %xmm0
subsd %xmm3, %xmm2
divsd %xmm2, %xmm1
subsd 0x1e8(%rsp), %xmm1
mulsd %xmm1, %xmm0
movq 0x200(%rsp), %rax
movslq 0x1f4(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
jmp 0x21fe6
jmp 0x21f6b
movswl 0x258(%rsp), %r9d
xorl %eax, %eax
movl %eax, %esi
leaq 0x1b1ea0(%rip), %rdx    # 0x1d3e1f
leaq 0x1b209e(%rip), %rcx    # 0x1d4024
movl $0x566, %r8d            # imm = 0x566
movq %rsi, %rdi
movb $0x0, %al
callq 0x8540
movl %eax, 0x1d8(%rsp)
movq 0x260(%rsp), %rdi
movl 0x1d8(%rsp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movswl 0x258(%rsp), %r9d
leaq 0x1b1e5d(%rip), %rdx    # 0x1d3e1f
leaq 0x1b205b(%rip), %rcx    # 0x1d4024
movl $0x566, %r8d            # imm = 0x566
movb $0x0, %al
callq 0x8540
movl $0x1, 0x244(%rsp)
jmp 0x22c0d
jmp 0x21fe8
movl $0x1, 0x1f4(%rsp)
movl 0x1f4(%rsp), %eax
movl 0x230(%rsp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x22448
movq 0x238(%rsp), %rax
movslq 0x1f4(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0xc0(%rsp)
movq 0x238(%rsp), %rax
movl 0x1f4(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0xc0(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0xd0(%rsp)
movq 0x238(%rsp), %rax
movl 0x1f4(%rsp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0xc8(%rsp)
movq 0x238(%rsp), %rax
movl 0x1f4(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd 0xc8(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0xd0(%rsp), %xmm0
subsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x1f8(%rsp)
movsd 0x1f8(%rsp), %xmm0
movq 0x250(%rsp), %rax
movl 0x220(%rsp), %ecx
imull 0x234(%rsp), %ecx
movl 0x1f4(%rsp), %edx
subl $0x1, %edx
addl %edx, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm1
mulsd %xmm1, %xmm0
movsd 0x1b0b6c(%rip), %xmm1   # 0x1d2c80
addsd %xmm1, %xmm0
movsd %xmm0, 0x218(%rsp)
movsd 0x1f8(%rsp), %xmm0
movsd 0x1b0116(%rip), %xmm1   # 0x1d2248
subsd %xmm1, %xmm0
divsd 0x218(%rsp), %xmm0
movq 0x250(%rsp), %rax
movl 0x220(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl 0x1f4(%rsp), %ecx
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0x228(%rsp), %rax
movl 0x220(%rsp), %ecx
imull 0x234(%rsp), %ecx
movl 0x1f4(%rsp), %edx
addl $0x1, %edx
addl %edx, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0xd8(%rsp)
movq 0x228(%rsp), %rax
movl 0x220(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl 0x1f4(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0xd8(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0xe8(%rsp)
movq 0x238(%rsp), %rax
movl 0x1f4(%rsp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0xe0(%rsp)
movq 0x238(%rsp), %rax
movslq 0x1f4(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd 0xe0(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0xe8(%rsp), %xmm0
subsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x108(%rsp)
movq 0x228(%rsp), %rax
movl 0x220(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl 0x1f4(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0xf0(%rsp)
movq 0x228(%rsp), %rax
movl 0x220(%rsp), %ecx
imull 0x234(%rsp), %ecx
movl 0x1f4(%rsp), %edx
subl $0x1, %edx
addl %edx, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0xf0(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x100(%rsp)
movq 0x238(%rsp), %rax
movslq 0x1f4(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0xf8(%rsp)
movq 0x238(%rsp), %rax
movl 0x1f4(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd 0xf8(%rsp), %xmm2
movsd 0x100(%rsp), %xmm1
movaps %xmm0, %xmm3
movsd 0x108(%rsp), %xmm0
subsd %xmm3, %xmm2
divsd %xmm2, %xmm1
subsd %xmm1, %xmm0
movq 0x200(%rsp), %rax
movslq 0x1f4(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0x200(%rsp), %rax
movslq 0x1f4(%rsp), %rcx
movsd 0x1b1328(%rip), %xmm0   # 0x1d3688
mulsd (%rax,%rcx,8), %xmm0
movsd %xmm0, 0x110(%rsp)
movq 0x238(%rsp), %rax
movl 0x1f4(%rsp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x118(%rsp)
movq 0x238(%rsp), %rax
movl 0x1f4(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd 0x110(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0x118(%rsp), %xmm0
subsd %xmm2, %xmm0
divsd %xmm0, %xmm1
movsd 0x1f8(%rsp), %xmm0
movq 0x200(%rsp), %rax
movl 0x1f4(%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 0x218(%rsp), %xmm0
movq 0x200(%rsp), %rax
movslq 0x1f4(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl 0x1f4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1f4(%rsp)
jmp 0x21ff3
movswl 0x258(%rsp), %eax
cmpl $0x0, %eax
jne 0x22472
xorps %xmm0, %xmm0
movsd %xmm0, 0x208(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x210(%rsp)
jmp 0x22a62
movswl 0x258(%rsp), %eax
cmpl $0x1, %eax
jne 0x229e3
movq 0x238(%rsp), %rax
movl 0x230(%rsp), %ecx
subl $0x3, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x8(%rsp)
movq 0x238(%rsp), %rax
movl 0x230(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x18(%rsp)
movq 0x238(%rsp), %rax
movl 0x230(%rsp), %ecx
subl $0x3, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x10(%rsp)
movq 0x238(%rsp), %rax
movl 0x230(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd 0x10(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0x18(%rsp), %xmm0
subsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, 0x58(%rsp)
movq 0x228(%rsp), %rax
movl 0x220(%rsp), %ecx
imull 0x234(%rsp), %ecx
movl 0x230(%rsp), %edx
subl $0x2, %edx
addl %edx, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x20(%rsp)
movq 0x228(%rsp), %rax
movl 0x220(%rsp), %ecx
imull 0x234(%rsp), %ecx
movl 0x230(%rsp), %edx
subl $0x1, %edx
addl %edx, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0x20(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x50(%rsp)
movq 0x238(%rsp), %rax
movl 0x230(%rsp), %ecx
subl $0x2, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x28(%rsp)
movq 0x238(%rsp), %rax
movl 0x230(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0x28(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x38(%rsp)
movq 0x238(%rsp), %rax
movl 0x230(%rsp), %ecx
subl $0x2, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x30(%rsp)
movq 0x238(%rsp), %rax
movl 0x230(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd 0x30(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0x38(%rsp), %xmm0
subsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, 0x48(%rsp)
movq 0x228(%rsp), %rax
movl 0x220(%rsp), %ecx
imull 0x234(%rsp), %ecx
movl 0x230(%rsp), %edx
subl $0x3, %edx
addl %edx, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x40(%rsp)
movq 0x228(%rsp), %rax
movl 0x220(%rsp), %ecx
imull 0x234(%rsp), %ecx
movl 0x230(%rsp), %edx
subl $0x1, %edx
addl %edx, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd 0x40(%rsp), %xmm3
movsd 0x48(%rsp), %xmm1
movsd 0x50(%rsp), %xmm2
movaps %xmm0, %xmm4
movsd 0x58(%rsp), %xmm0
subsd %xmm4, %xmm3
mulsd %xmm3, %xmm1
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x88(%rsp)
movq 0x238(%rsp), %rax
movl 0x230(%rsp), %ecx
subl $0x3, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x60(%rsp)
movq 0x238(%rsp), %rax
movl 0x230(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0x60(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x70(%rsp)
movq 0x238(%rsp), %rax
movl 0x230(%rsp), %ecx
subl $0x2, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x68(%rsp)
movq 0x238(%rsp), %rax
movl 0x230(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd 0x68(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0x70(%rsp), %xmm0
subsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, 0x80(%rsp)
movq 0x238(%rsp), %rax
movl 0x230(%rsp), %ecx
subl $0x3, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x78(%rsp)
movq 0x238(%rsp), %rax
movl 0x230(%rsp), %ecx
subl $0x2, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd 0x78(%rsp), %xmm2
movsd 0x80(%rsp), %xmm1
movaps %xmm0, %xmm3
movsd 0x88(%rsp), %xmm0
subsd %xmm3, %xmm2
mulsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x1e0(%rsp)
movsd 0x1b0434(%rip), %xmm0   # 0x1d2c88
movsd %xmm0, 0x210(%rsp)
movq 0x238(%rsp), %rax
movl 0x230(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x90(%rsp)
movq 0x238(%rsp), %rax
movl 0x230(%rsp), %ecx
subl $0x2, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd 0x90(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd 0x1b0ddf(%rip), %xmm0   # 0x1d3698
divsd %xmm1, %xmm0
movsd %xmm0, 0xb8(%rsp)
movsd 0x1e0(%rsp), %xmm0
movsd %xmm0, 0xb0(%rsp)
movq 0x228(%rsp), %rax
movl 0x220(%rsp), %ecx
imull 0x234(%rsp), %ecx
movl 0x230(%rsp), %edx
subl $0x1, %edx
addl %edx, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x98(%rsp)
movq 0x228(%rsp), %rax
movl 0x220(%rsp), %ecx
imull 0x234(%rsp), %ecx
movl 0x230(%rsp), %edx
subl $0x2, %edx
addl %edx, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0x98(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0xa8(%rsp)
movq 0x238(%rsp), %rax
movl 0x230(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0xa0(%rsp)
movq 0x238(%rsp), %rax
movl 0x230(%rsp), %ecx
subl $0x2, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd 0xa0(%rsp), %xmm3
movsd 0xa8(%rsp), %xmm2
movsd 0xb0(%rsp), %xmm1
movaps %xmm0, %xmm4
movsd 0xb8(%rsp), %xmm0
subsd %xmm4, %xmm3
divsd %xmm3, %xmm2
subsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, 0x208(%rsp)
jmp 0x22a60
jmp 0x229e5
movswl 0x258(%rsp), %r9d
xorl %eax, %eax
movl %eax, %esi
leaq 0x1b1426(%rip), %rdx    # 0x1d3e1f
leaq 0x1b1624(%rip), %rcx    # 0x1d4024
movl $0x59c, %r8d            # imm = 0x59C
movq %rsi, %rdi
movb $0x0, %al
callq 0x8540
movl %eax, 0x1d4(%rsp)
movq 0x260(%rsp), %rdi
movl 0x1d4(%rsp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movswl 0x258(%rsp), %r9d
leaq 0x1b13e3(%rip), %rdx    # 0x1d3e1f
leaq 0x1b15e1(%rip), %rcx    # 0x1d4024
movl $0x59c, %r8d            # imm = 0x59C
movb $0x0, %al
callq 0x8540
movl $0x1, 0x244(%rsp)
jmp 0x22c0d
jmp 0x22a62
movl 0x230(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x1f4(%rsp)
movsd 0x208(%rsp), %xmm1
movsd 0x210(%rsp), %xmm0
movq 0x200(%rsp), %rax
movl 0x1f4(%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
movsd 0x210(%rsp), %xmm1
movq 0x250(%rsp), %rax
movl 0x220(%rsp), %ecx
imull 0x234(%rsp), %ecx
movl 0x1f4(%rsp), %edx
subl $0x1, %edx
addl %edx, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm2
mulsd %xmm2, %xmm1
movsd 0x1af74a(%rip), %xmm2   # 0x1d2248
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movq 0x250(%rsp), %rax
movl 0x220(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl 0x1f4(%rsp), %ecx
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
movl 0x230(%rsp), %eax
subl $0x2, %eax
movl %eax, 0x1f4(%rsp)
cmpl $0x0, 0x1f4(%rsp)
jl 0x22bf5
movq 0x250(%rsp), %rax
movl 0x220(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl 0x1f4(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x250(%rsp), %rax
movl 0x220(%rsp), %ecx
imull 0x234(%rsp), %ecx
movl 0x1f4(%rsp), %edx
addl $0x1, %edx
addl %edx, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm2
movq 0x200(%rsp), %rax
movslq 0x1f4(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq 0x250(%rsp), %rax
movl 0x220(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl 0x1f4(%rsp), %ecx
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
movl 0x1f4(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0x1f4(%rsp)
jmp 0x22b3d
movq 0x200(%rsp), %rdi
callq 0x8420
movl $0x0, 0x244(%rsp)
movl 0x244(%rsp), %eax
addq $0x248, %rsp            # imm = 0x248
retq
nopl (%rax)