// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x258, %rsp            # imm = 0x258
movw %r9w, %ax
movq 0x260(%rsp), %r9
movq %rdi, 0x248(%rsp)
movl %esi, 0x244(%rsp)
movq %rdx, 0x238(%rsp)
movl %ecx, 0x234(%rsp)
movq %r8, 0x228(%rsp)
movw %ax, 0x226(%rsp)
movl 0x244(%rsp), %eax
subl $0x1, %eax
imull 0x234(%rsp), %eax
movslq %eax, %rdi
shlq $0x3, %rdi
callq 0x8460
movq %rax, 0x200(%rsp)
movslq 0x234(%rsp), %rdi
shlq $0x3, %rdi
callq 0x8460
movq %rax, 0x218(%rsp)
movslq 0x234(%rsp), %rdi
shlq $0x3, %rdi
callq 0x8460
movq %rax, 0x210(%rsp)
movslq 0x234(%rsp), %rdi
shlq $0x3, %rdi
callq 0x8460
movq %rax, 0x208(%rsp)
cmpq $0x0, 0x200(%rsp)
jne 0x1df08
jmp 0x1de9f
xorl %eax, %eax
movl %eax, %esi
leaq 0x1b5f5a(%rip), %rdx    # 0x1d3e04
leaq 0x1b605a(%rip), %rcx    # 0x1d3f0b
movl $0x2e7, %r8d            # imm = 0x2E7
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 0x1b5f20(%rip), %rdx    # 0x1d3e04
leaq 0x1b6020(%rip), %rcx    # 0x1d3f0b
movl $0x2e7, %r8d            # imm = 0x2E7
movb $0x0, %al
callq 0x8540
movl $0x1, 0x254(%rsp)
jmp 0x1f49b
cmpq $0x0, 0x218(%rsp)
jne 0x1df7e
jmp 0x1df15
xorl %eax, %eax
movl %eax, %esi
leaq 0x1b5f98(%rip), %rdx    # 0x1d3eb8
leaq 0x1b5fe4(%rip), %rcx    # 0x1d3f0b
movl $0x2eb, %r8d            # imm = 0x2EB
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
leaq 0x1b5f5e(%rip), %rdx    # 0x1d3eb8
leaq 0x1b5faa(%rip), %rcx    # 0x1d3f0b
movl $0x2eb, %r8d            # imm = 0x2EB
movb $0x0, %al
callq 0x8540
movl $0x1, 0x254(%rsp)
jmp 0x1f49b
cmpq $0x0, 0x210(%rsp)
jne 0x1dff4
jmp 0x1df8b
xorl %eax, %eax
movl %eax, %esi
leaq 0x1b5f3d(%rip), %rdx    # 0x1d3ed3
leaq 0x1b5f6e(%rip), %rcx    # 0x1d3f0b
movl $0x2ef, %r8d            # imm = 0x2EF
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
leaq 0x1b5f03(%rip), %rdx    # 0x1d3ed3
leaq 0x1b5f34(%rip), %rcx    # 0x1d3f0b
movl $0x2ef, %r8d            # imm = 0x2EF
movb $0x0, %al
callq 0x8540
movl $0x1, 0x254(%rsp)
jmp 0x1f49b
cmpq $0x0, 0x208(%rsp)
jne 0x1e06a
jmp 0x1e001
xorl %eax, %eax
movl %eax, %esi
leaq 0x1b5ee3(%rip), %rdx    # 0x1d3eef
leaq 0x1b5ef8(%rip), %rcx    # 0x1d3f0b
movl $0x2f3, %r8d            # imm = 0x2F3
movq %rsi, %rdi
movb $0x0, %al
callq 0x8540
movl %eax, 0x1d0(%rsp)
movq 0x260(%rsp), %rdi
movl 0x1d0(%rsp), %eax
addl $0x1, %eax
movslq %eax, %rsi
leaq 0x1b5ea9(%rip), %rdx    # 0x1d3eef
leaq 0x1b5ebe(%rip), %rcx    # 0x1d3f0b
movl $0x2f3, %r8d            # imm = 0x2F3
movb $0x0, %al
callq 0x8540
movl $0x1, 0x254(%rsp)
jmp 0x1f49b
cmpl $0x2, 0x244(%rsp)
jne 0x1e07e
movw $0x0, 0x226(%rsp)
movl $0x0, 0x1f4(%rsp)
movswl 0x226(%rsp), %eax
cmpl $0x0, %eax
jne 0x1e11f
movl $0x0, 0x1f0(%rsp)
movl 0x1f0(%rsp), %eax
cmpl 0x234(%rsp), %eax
jge 0x1e11a
movq 0x200(%rsp), %rax
movl 0x1f4(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movq 0x228(%rsp), %rax
movl 0x1f4(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movl 0x1f0(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1f0(%rsp)
jmp 0x1e0a5
jmp 0x1e68d
movswl 0x226(%rsp), %eax
cmpl $0x1, %eax
jne 0x1e60e
movl $0x0, 0x1f0(%rsp)
movl 0x1f0(%rsp), %eax
cmpl 0x234(%rsp), %eax
jge 0x1e60c
movq 0x248(%rsp), %rax
movsd 0x10(%rax), %xmm0
callq 0x82f0
movsd %xmm0, 0x118(%rsp)
movq 0x248(%rsp), %rax
movsd (%rax), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0x118(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x128(%rsp)
movq 0x248(%rsp), %rax
movsd 0x10(%rax), %xmm0
callq 0x82f0
movsd %xmm0, 0x120(%rsp)
movq 0x248(%rsp), %rax
movsd (%rax), %xmm0
callq 0x82f0
movsd 0x120(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0x128(%rsp), %xmm0
subsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, 0x168(%rsp)
movq 0x238(%rsp), %rax
movl 0x234(%rsp), %ecx
shll $0x0, %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x130(%rsp)
movq 0x238(%rsp), %rax
imull $0x0, 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0x130(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x160(%rsp)
movq 0x248(%rsp), %rax
movsd 0x8(%rax), %xmm0
callq 0x82f0
movsd %xmm0, 0x138(%rsp)
movq 0x248(%rsp), %rax
movsd (%rax), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0x138(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x148(%rsp)
movq 0x248(%rsp), %rax
movsd 0x8(%rax), %xmm0
callq 0x82f0
movsd %xmm0, 0x140(%rsp)
movq 0x248(%rsp), %rax
movsd (%rax), %xmm0
callq 0x82f0
movsd 0x140(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0x148(%rsp), %xmm0
subsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, 0x158(%rsp)
movq 0x238(%rsp), %rax
movl 0x234(%rsp), %ecx
shll %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x150(%rsp)
movq 0x238(%rsp), %rax
imull $0x0, 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd 0x150(%rsp), %xmm3
movsd 0x158(%rsp), %xmm1
movsd 0x160(%rsp), %xmm2
movaps %xmm0, %xmm4
movsd 0x168(%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, 0x198(%rsp)
movq 0x248(%rsp), %rax
movsd 0x10(%rax), %xmm0
callq 0x82f0
movsd %xmm0, 0x170(%rsp)
movq 0x248(%rsp), %rax
movsd (%rax), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0x170(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x180(%rsp)
movq 0x248(%rsp), %rax
movsd 0x8(%rax), %xmm0
callq 0x82f0
movsd %xmm0, 0x178(%rsp)
movq 0x248(%rsp), %rax
movsd (%rax), %xmm0
callq 0x82f0
movsd 0x178(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0x180(%rsp), %xmm0
subsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, 0x190(%rsp)
movq 0x248(%rsp), %rax
movsd 0x10(%rax), %xmm0
callq 0x82f0
movsd %xmm0, 0x188(%rsp)
movq 0x248(%rsp), %rax
movsd 0x8(%rax), %xmm0
callq 0x82f0
movsd 0x188(%rsp), %xmm2
movsd 0x190(%rsp), %xmm1
movaps %xmm0, %xmm3
movsd 0x198(%rsp), %xmm0
subsd %xmm3, %xmm2
mulsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x1e8(%rsp)
movq 0x228(%rsp), %rax
movl 0x1f4(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd 0x1b51ee(%rip), %xmm0   # 0x1d36a0
movsd %xmm0, (%rax,%rcx,8)
movq 0x248(%rsp), %rax
movsd 0x8(%rax), %xmm0
callq 0x82f0
movsd %xmm0, 0x1a0(%rsp)
movq 0x248(%rsp), %rax
movsd (%rax), %xmm0
callq 0x82f0
movsd 0x1a0(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd 0x1b51a0(%rip), %xmm0   # 0x1d3698
divsd %xmm1, %xmm0
movsd %xmm0, 0x1c0(%rsp)
movq 0x238(%rsp), %rax
movl 0x234(%rsp), %ecx
shll $0x0, %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x1a8(%rsp)
movq 0x238(%rsp), %rax
imull $0x0, 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0x1a8(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x1b8(%rsp)
movq 0x248(%rsp), %rax
movsd 0x8(%rax), %xmm0
callq 0x82f0
movsd %xmm0, 0x1b0(%rsp)
movq 0x248(%rsp), %rax
movsd (%rax), %xmm0
callq 0x82f0
movsd 0x1b0(%rsp), %xmm2
movsd 0x1b8(%rsp), %xmm1
movaps %xmm0, %xmm3
movsd 0x1c0(%rsp), %xmm0
subsd %xmm3, %xmm2
divsd %xmm2, %xmm1
subsd 0x1e8(%rsp), %xmm1
mulsd %xmm1, %xmm0
movq 0x200(%rsp), %rax
movl 0x1f4(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
movl 0x1f0(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1f0(%rsp)
jmp 0x1e13b
jmp 0x1e68b
jmp 0x1e610
movswl 0x226(%rsp), %r9d
xorl %eax, %eax
movl %eax, %esi
leaq 0x1b57fb(%rip), %rdx    # 0x1d3e1f
leaq 0x1b58e0(%rip), %rcx    # 0x1d3f0b
movl $0x316, %r8d            # imm = 0x316
movq %rsi, %rdi
movb $0x0, %al
callq 0x8540
movl %eax, 0x1cc(%rsp)
movq 0x260(%rsp), %rdi
movl 0x1cc(%rsp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movswl 0x226(%rsp), %r9d
leaq 0x1b57b8(%rip), %rdx    # 0x1d3e1f
leaq 0x1b589d(%rip), %rcx    # 0x1d3f0b
movl $0x316, %r8d            # imm = 0x316
movb $0x0, %al
callq 0x8540
movl $0x1, 0x254(%rsp)
jmp 0x1f49b
jmp 0x1e68d
movl $0x1, 0x1f4(%rsp)
movl 0x1f4(%rsp), %eax
movl 0x244(%rsp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x1eb84
movq 0x248(%rsp), %rax
movslq 0x1f4(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x100(%rsp)
movq 0x248(%rsp), %rax
movl 0x1f4(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0x100(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x110(%rsp)
movq 0x248(%rsp), %rax
movl 0x1f4(%rsp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x108(%rsp)
movq 0x248(%rsp), %rax
movl 0x1f4(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd 0x108(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0x110(%rsp), %xmm0
subsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x1f8(%rsp)
movl $0x0, 0x1f0(%rsp)
movl 0x1f0(%rsp), %eax
cmpl 0x234(%rsp), %eax
jge 0x1eb6c
movsd 0x1f8(%rsp), %xmm0
movq 0x228(%rsp), %rax
movl 0x1f4(%rsp), %ecx
subl $0x1, %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm1
mulsd %xmm1, %xmm0
movsd 0x1b44aa(%rip), %xmm1   # 0x1d2c80
addsd %xmm1, %xmm0
movq 0x218(%rsp), %rax
movslq 0x1f0(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movsd 0x1f8(%rsp), %xmm0
movsd 0x1b3a48(%rip), %xmm1   # 0x1d2248
subsd %xmm1, %xmm0
movq 0x218(%rsp), %rax
movslq 0x1f0(%rsp), %rcx
divsd (%rax,%rcx,8), %xmm0
movq 0x228(%rsp), %rax
movl 0x1f4(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0x238(%rsp), %rax
movl 0x1f4(%rsp), %ecx
addl $0x1, %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0xb8(%rsp)
movq 0x238(%rsp), %rax
movl 0x1f4(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0xb8(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0xc8(%rsp)
movq 0x248(%rsp), %rax
movl 0x1f4(%rsp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0xc0(%rsp)
movq 0x248(%rsp), %rax
movslq 0x1f4(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd 0xc0(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0xc8(%rsp), %xmm0
subsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0xe8(%rsp)
movq 0x238(%rsp), %rax
movl 0x1f4(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0xd0(%rsp)
movq 0x238(%rsp), %rax
movl 0x1f4(%rsp), %ecx
subl $0x1, %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0xd0(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0xe0(%rsp)
movq 0x248(%rsp), %rax
movslq 0x1f4(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0xd8(%rsp)
movq 0x248(%rsp), %rax
movl 0x1f4(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd 0xd8(%rsp), %xmm2
movsd 0xe0(%rsp), %xmm1
movaps %xmm0, %xmm3
movsd 0xe8(%rsp), %xmm0
subsd %xmm3, %xmm2
divsd %xmm2, %xmm1
subsd %xmm1, %xmm0
movq 0x200(%rsp), %rax
movl 0x1f4(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0x200(%rsp), %rax
movl 0x1f4(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd 0x1b4c30(%rip), %xmm0   # 0x1d3688
mulsd (%rax,%rcx,8), %xmm0
movsd %xmm0, 0xf0(%rsp)
movq 0x248(%rsp), %rax
movl 0x1f4(%rsp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0xf8(%rsp)
movq 0x248(%rsp), %rax
movl 0x1f4(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd 0xf0(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0xf8(%rsp), %xmm0
subsd %xmm2, %xmm0
divsd %xmm0, %xmm1
movsd 0x1f8(%rsp), %xmm0
movq 0x200(%rsp), %rax
movl 0x1f4(%rsp), %ecx
subl $0x1, %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %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
movq 0x218(%rsp), %rax
movslq 0x1f0(%rsp), %rcx
divsd (%rax,%rcx,8), %xmm0
movq 0x200(%rsp), %rax
movl 0x1f4(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
movl 0x1f0(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1f0(%rsp)
jmp 0x1e784
jmp 0x1eb6e
movl 0x1f4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1f4(%rsp)
jmp 0x1e698
movswl 0x226(%rsp), %eax
cmpl $0x0, %eax
jne 0x1ebf4
movl $0x0, 0x1f0(%rsp)
movl 0x1f0(%rsp), %eax
cmpl 0x234(%rsp), %eax
jge 0x1ebef
movq 0x208(%rsp), %rax
movslq 0x1f0(%rsp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movq 0x210(%rsp), %rax
movslq 0x1f0(%rsp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movl 0x1f0(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1f0(%rsp)
jmp 0x1eb9c
jmp 0x1f21d
movswl 0x226(%rsp), %eax
cmpl $0x1, %eax
jne 0x1f19e
movl $0x0, 0x1f0(%rsp)
movl 0x1f0(%rsp), %eax
cmpl 0x234(%rsp), %eax
jge 0x1f19c
movq 0x248(%rsp), %rax
movl 0x244(%rsp), %ecx
subl $0x3, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, (%rsp)
movq 0x248(%rsp), %rax
movl 0x244(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd (%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x10(%rsp)
movq 0x248(%rsp), %rax
movl 0x244(%rsp), %ecx
subl $0x3, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x8(%rsp)
movq 0x248(%rsp), %rax
movl 0x244(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd 0x8(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0x10(%rsp), %xmm0
subsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, 0x50(%rsp)
movq 0x238(%rsp), %rax
movl 0x244(%rsp), %ecx
subl $0x2, %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x18(%rsp)
movq 0x238(%rsp), %rax
movl 0x244(%rsp), %ecx
subl $0x1, %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0x18(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x48(%rsp)
movq 0x248(%rsp), %rax
movl 0x244(%rsp), %ecx
subl $0x2, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x20(%rsp)
movq 0x248(%rsp), %rax
movl 0x244(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0x20(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x30(%rsp)
movq 0x248(%rsp), %rax
movl 0x244(%rsp), %ecx
subl $0x2, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x28(%rsp)
movq 0x248(%rsp), %rax
movl 0x244(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd 0x28(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0x30(%rsp), %xmm0
subsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, 0x40(%rsp)
movq 0x238(%rsp), %rax
movl 0x244(%rsp), %ecx
subl $0x3, %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x38(%rsp)
movq 0x238(%rsp), %rax
movl 0x244(%rsp), %ecx
subl $0x1, %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd 0x38(%rsp), %xmm3
movsd 0x40(%rsp), %xmm1
movsd 0x48(%rsp), %xmm2
movaps %xmm0, %xmm4
movsd 0x50(%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, 0x80(%rsp)
movq 0x248(%rsp), %rax
movl 0x244(%rsp), %ecx
subl $0x3, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x58(%rsp)
movq 0x248(%rsp), %rax
movl 0x244(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0x58(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x68(%rsp)
movq 0x248(%rsp), %rax
movl 0x244(%rsp), %ecx
subl $0x2, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x60(%rsp)
movq 0x248(%rsp), %rax
movl 0x244(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd 0x60(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0x68(%rsp), %xmm0
subsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, 0x78(%rsp)
movq 0x248(%rsp), %rax
movl 0x244(%rsp), %ecx
subl $0x3, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x70(%rsp)
movq 0x248(%rsp), %rax
movl 0x244(%rsp), %ecx
subl $0x2, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd 0x70(%rsp), %xmm2
movsd 0x78(%rsp), %xmm1
movaps %xmm0, %xmm3
movsd 0x80(%rsp), %xmm0
subsd %xmm3, %xmm2
mulsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x1e0(%rsp)
movq 0x210(%rsp), %rax
movslq 0x1f0(%rsp), %rcx
movsd 0x1b3c93(%rip), %xmm0   # 0x1d2c88
movsd %xmm0, (%rax,%rcx,8)
movq 0x248(%rsp), %rax
movl 0x244(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x88(%rsp)
movq 0x248(%rsp), %rax
movl 0x244(%rsp), %ecx
subl $0x2, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd 0x88(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd 0x1b4642(%rip), %xmm0   # 0x1d3698
divsd %xmm1, %xmm0
movsd %xmm0, 0xb0(%rsp)
movsd 0x1e0(%rsp), %xmm0
movsd %xmm0, 0xa8(%rsp)
movq 0x238(%rsp), %rax
movl 0x244(%rsp), %ecx
subl $0x1, %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x90(%rsp)
movq 0x238(%rsp), %rax
movl 0x244(%rsp), %ecx
subl $0x2, %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0x90(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0xa0(%rsp)
movq 0x248(%rsp), %rax
movl 0x244(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd %xmm0, 0x98(%rsp)
movq 0x248(%rsp), %rax
movl 0x244(%rsp), %ecx
subl $0x2, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movsd 0x98(%rsp), %xmm3
movsd 0xa0(%rsp), %xmm2
movsd 0xa8(%rsp), %xmm1
movaps %xmm0, %xmm4
movsd 0xb0(%rsp), %xmm0
subsd %xmm4, %xmm3
divsd %xmm3, %xmm2
subsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movq 0x208(%rsp), %rax
movslq 0x1f0(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl 0x1f0(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1f0(%rsp)
jmp 0x1ec10
jmp 0x1f21b
jmp 0x1f1a0
movswl 0x226(%rsp), %r9d
xorl %eax, %eax
movl %eax, %esi
leaq 0x1b4c6b(%rip), %rdx    # 0x1d3e1f
leaq 0x1b4d50(%rip), %rcx    # 0x1d3f0b
movl $0x350, %r8d            # imm = 0x350
movq %rsi, %rdi
movb $0x0, %al
callq 0x8540
movl %eax, 0x1c8(%rsp)
movq 0x260(%rsp), %rdi
movl 0x1c8(%rsp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movswl 0x226(%rsp), %r9d
leaq 0x1b4c28(%rip), %rdx    # 0x1d3e1f
leaq 0x1b4d0d(%rip), %rcx    # 0x1d3f0b
movl $0x350, %r8d            # imm = 0x350
movb $0x0, %al
callq 0x8540
movl $0x1, 0x254(%rsp)
jmp 0x1f49b
jmp 0x1f21d
movl 0x244(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x1f4(%rsp)
movl $0x0, 0x1f0(%rsp)
movl 0x1f0(%rsp), %eax
cmpl 0x234(%rsp), %eax
jge 0x1f34d
movq 0x208(%rsp), %rax
movslq 0x1f0(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq 0x210(%rsp), %rax
movslq 0x1f0(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x200(%rsp), %rax
movl 0x1f4(%rsp), %ecx
subl $0x1, %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %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
movq 0x210(%rsp), %rax
movslq 0x1f0(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq 0x228(%rsp), %rax
movl 0x1f4(%rsp), %ecx
subl $0x1, %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm2
mulsd %xmm2, %xmm1
movsd 0x1b2f3f(%rip), %xmm2   # 0x1d2248
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movq 0x228(%rsp), %rax
movl 0x1f4(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
movl 0x1f0(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1f0(%rsp)
jmp 0x1f239
movl 0x244(%rsp), %eax
subl $0x2, %eax
movl %eax, 0x1f4(%rsp)
cmpl $0x0, 0x1f4(%rsp)
jl 0x1f45c
movl $0x0, 0x1f0(%rsp)
movl 0x1f0(%rsp), %eax
cmpl 0x234(%rsp), %eax
jge 0x1f444
movq 0x228(%rsp), %rax
movl 0x1f4(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x228(%rsp), %rax
movl 0x1f4(%rsp), %ecx
addl $0x1, %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm2
movq 0x200(%rsp), %rax
movl 0x1f4(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq 0x228(%rsp), %rax
movl 0x1f4(%rsp), %ecx
imull 0x234(%rsp), %ecx
addl 0x1f0(%rsp), %ecx
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
movl 0x1f0(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1f0(%rsp)
jmp 0x1f377
jmp 0x1f446
movl 0x1f4(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0x1f4(%rsp)
jmp 0x1f35e
movq 0x210(%rsp), %rdi
callq 0x8420
movq 0x208(%rsp), %rdi
callq 0x8420
movq 0x218(%rsp), %rdi
callq 0x8420
movq 0x200(%rsp), %rdi
callq 0x8420
movl $0x0, 0x254(%rsp)
movl 0x254(%rsp), %eax
addq $0x258, %rsp            # imm = 0x258
retq
nopw (%rax,%rax)