// File: Kingsford-Group[P]ghost2/include/Eigen/src/Core/products/SelfadjointMatrixVector.h
// Function: Eigen::internal::selfadjoint_matrix_vector_product<double, long, 0, 1, false, false, 0>::run(long, double const*, long, double const*, long, double*, double)
EIGEN_DONT_INLINE void selfadjoint_matrix_vector_product<Scalar,Index,StorageOrder,UpLo,ConjugateLhs,ConjugateRhs,Version>::run(
  Index size,
  const Scalar*  lhs, Index lhsStride,
  const Scalar* _rhs, Index rhsIncr,
  Scalar* res,
  Scalar alpha)
{
  typedef typename packet_traits<Scalar>::type Packet;
  const Index PacketSize = sizeof(Packet)/sizeof(Scalar);

  enum {
    IsRowMajor = StorageOrder==RowMajor ? 1 : 0,
    IsLower = UpLo == Lower ? 1 : 0,
    FirstTriangular = IsRowMajor == IsLower
  };

  conj_helper<Scalar,Scalar,NumTraits<Scalar>::IsComplex && EIGEN_LOGICAL_XOR(ConjugateLhs,  IsRowMajor), ConjugateRhs> cj0;
  conj_helper<Scalar,Scalar,NumTraits<Scalar>::IsComplex && EIGEN_LOGICAL_XOR(ConjugateLhs, !IsRowMajor), ConjugateRhs> cj1;
  conj_helper<Scalar,Scalar,NumTraits<Scalar>::IsComplex, ConjugateRhs> cjd;

  conj_helper<Packet,Packet,NumTraits<Scalar>::IsComplex && EIGEN_LOGICAL_XOR(ConjugateLhs,  IsRowMajor), ConjugateRhs> pcj0;
  conj_helper<Packet,Packet,NumTraits<Scalar>::IsComplex && EIGEN_LOGICAL_XOR(ConjugateLhs, !IsRowMajor), ConjugateRhs> pcj1;

  Scalar cjAlpha = ConjugateRhs ? numext::conj(alpha) : alpha;

  // FIXME this copy is now handled outside product_selfadjoint_vector, so it could probably be removed.
  // if the rhs is not sequentially stored in memory we copy it to a temporary buffer,
  // this is because we need to extract packets
  ei_declare_aligned_stack_constructed_variable(Scalar,rhs,size,rhsIncr==1 ? const_cast<Scalar*>(_rhs) : 0);  
  if (rhsIncr!=1)
  {
    const Scalar* it = _rhs;
    for (Index i=0; i<size; ++i, it+=rhsIncr)
      rhs[i] = *it;
  }

  Index bound = (std::max)(Index(0),size-8) & 0xfffffffe;
  if (FirstTriangular)
    bound = size - bound;

  for (Index j=FirstTriangular ? bound : 0;
       j<(FirstTriangular ? size : bound);j+=2)
  {
    const Scalar* EIGEN_RESTRICT A0 = lhs + j*lhsStride;
    const Scalar* EIGEN_RESTRICT A1 = lhs + (j+1)*lhsStride;

    Scalar t0 = cjAlpha * rhs[j];
    Packet ptmp0 = pset1<Packet>(t0);
    Scalar t1 = cjAlpha * rhs[j+1];
    Packet ptmp1 = pset1<Packet>(t1);

    Scalar t2(0);
    Packet ptmp2 = pset1<Packet>(t2);
    Scalar t3(0);
    Packet ptmp3 = pset1<Packet>(t3);

    size_t starti = FirstTriangular ? 0 : j+2;
    size_t endi   = FirstTriangular ? j : size;
    size_t alignedStart = (starti) + internal::first_aligned(&res[starti], endi-starti);
    size_t alignedEnd = alignedStart + ((endi-alignedStart)/(PacketSize))*(PacketSize);

    // TODO make sure this product is a real * complex and that the rhs is properly conjugated if needed
    res[j]   += cjd.pmul(numext::real(A0[j]), t0);
    res[j+1] += cjd.pmul(numext::real(A1[j+1]), t1);
    if(FirstTriangular)
    {
      res[j]   += cj0.pmul(A1[j],   t1);
      t3       += cj1.pmul(A1[j],   rhs[j]);
    }
    else
    {
      res[j+1] += cj0.pmul(A0[j+1],t0);
      t2 += cj1.pmul(A0[j+1], rhs[j+1]);
    }

    for (size_t i=starti; i<alignedStart; ++i)
    {
      res[i] += t0 * A0[i] + t1 * A1[i];
      t2 += numext::conj(A0[i]) * rhs[i];
      t3 += numext::conj(A1[i]) * rhs[i];
    }
    // Yes this an optimization for gcc 4.3 and 4.4 (=> huge speed up)
    // gcc 4.2 does this optimization automatically.
    const Scalar* EIGEN_RESTRICT a0It  = A0  + alignedStart;
    const Scalar* EIGEN_RESTRICT a1It  = A1  + alignedStart;
    const Scalar* EIGEN_RESTRICT rhsIt = rhs + alignedStart;
          Scalar* EIGEN_RESTRICT resIt = res + alignedStart;
    for (size_t i=alignedStart; i<alignedEnd; i+=PacketSize)
    {
      Packet A0i = ploadu<Packet>(a0It);  a0It  += PacketSize;
      Packet A1i = ploadu<Packet>(a1It);  a1It  += PacketSize;
      Packet Bi  = ploadu<Packet>(rhsIt); rhsIt += PacketSize; // FIXME should be aligned in most cases
      Packet Xi  = pload <Packet>(resIt);

      Xi    = pcj0.pmadd(A0i,ptmp0, pcj0.pmadd(A1i,ptmp1,Xi));
      ptmp2 = pcj1.pmadd(A0i,  Bi, ptmp2);
      ptmp3 = pcj1.pmadd(A1i,  Bi, ptmp3);
      pstore(resIt,Xi); resIt += PacketSize;
    }
    for (size_t i=alignedEnd; i<endi; i++)
    {
      res[i] += cj0.pmul(A0[i], t0) + cj0.pmul(A1[i],t1);
      t2 += cj1.pmul(A0[i], rhs[i]);
      t3 += cj1.pmul(A1[i], rhs[i]);
    }

    res[j]   += alpha * (t2 + predux(ptmp2));
    res[j+1] += alpha * (t3 + predux(ptmp3));
  }
  for (Index j=FirstTriangular ? 0 : bound;j<(FirstTriangular ? bound : size);j++)
  {
    const Scalar* EIGEN_RESTRICT A0 = lhs + j*lhsStride;

    Scalar t1 = cjAlpha * rhs[j];
    Scalar t2(0);
    // TODO make sure this product is a real * complex and that the rhs is properly conjugated if needed
    res[j] += cjd.pmul(numext::real(A0[j]), t1);
    for (Index i=FirstTriangular ? 0 : j+1; i<(FirstTriangular ? j : size); i++)
    {
      res[i] += cj0.pmul(A0[i], t1);
      t2 += cj1.pmul(A0[i], rhs[i]);
    }
    res[j] += alpha * t2;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x390, %rsp            # imm = 0x390
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movsd %xmm0, -0x40(%rbp)
movq $0x2, -0x48(%rbp)
movsd -0x40(%rbp), %xmm0
movsd %xmm0, -0x58(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
movabsq $0x1fffffffffffffff, %rax # imm = 0x1FFFFFFFFFFFFFFF
cmpq %rax, -0x8(%rbp)
jbe 0x6ef07
callq 0x4a840
cmpq $0x1, -0x30(%rbp)
jne 0x6ef1b
movq -0x28(%rbp), %rax
movq %rax, -0x230(%rbp)
jmp 0x6ef26
xorl %eax, %eax
movq %rax, -0x230(%rbp)
jmp 0x6ef26
movq -0x230(%rbp), %rax
cmpq $0x0, %rax
je 0x6ef62
cmpq $0x1, -0x30(%rbp)
jne 0x6ef47
movq -0x28(%rbp), %rax
movq %rax, -0x238(%rbp)
jmp 0x6ef52
xorl %eax, %eax
movq %rax, -0x238(%rbp)
jmp 0x6ef52
movq -0x238(%rbp), %rax
movq %rax, -0x240(%rbp)
jmp 0x6efb6
movq -0x10(%rbp), %rax
shlq $0x3, %rax
cmpq $0x4e20, %rax           # imm = 0x4E20
ja 0x6ef94
movq -0x10(%rbp), %rax
leaq 0xf(,%rax,8), %rcx
andq $-0x10, %rcx
movq %rsp, %rax
subq %rcx, %rax
movq %rax, %rsp
movq %rax, -0x248(%rbp)
jmp 0x6efa8
movq -0x10(%rbp), %rdi
shlq $0x3, %rdi
callq 0x4a8c0
movq %rax, -0x248(%rbp)
movq -0x248(%rbp), %rax
movq %rax, -0x240(%rbp)
movq -0x240(%rbp), %rax
movq %rax, -0x60(%rbp)
cmpq $0x1, -0x30(%rbp)
jne 0x6efd5
movq -0x28(%rbp), %rax
movq %rax, -0x250(%rbp)
jmp 0x6efe0
xorl %eax, %eax
movq %rax, -0x250(%rbp)
jmp 0x6efe0
movq -0x250(%rbp), %rax
cmpq $0x0, %rax
jne 0x6effa
movq -0x60(%rbp), %rax
movq %rax, -0x258(%rbp)
jmp 0x6f005
xorl %eax, %eax
movq %rax, -0x258(%rbp)
jmp 0x6f005
movq -0x258(%rbp), %rsi
movq -0x10(%rbp), %rdx
movq -0x10(%rbp), %rax
shlq $0x3, %rax
cmpq $0x4e20, %rax           # imm = 0x4E20
seta %al
movzbl %al, %ecx
andl $0x1, %ecx
leaq -0x78(%rbp), %rdi
callq 0x541f0
cmpq $0x1, -0x30(%rbp)
je 0x6f095
movq -0x28(%rbp), %rax
movq %rax, -0x80(%rbp)
movq $0x0, -0x88(%rbp)
movq -0x88(%rbp), %rax
cmpq -0x10(%rbp), %rax
jge 0x6f093
movq -0x80(%rbp), %rax
movsd (%rax), %xmm0
movq -0x60(%rbp), %rax
movq -0x88(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -0x88(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x88(%rbp)
movq -0x30(%rbp), %rax
shlq $0x3, %rax
addq -0x80(%rbp), %rax
movq %rax, -0x80(%rbp)
jmp 0x6f04a
jmp 0x6f095
movq $0x0, -0x98(%rbp)
movq -0x10(%rbp), %rax
subq $0x8, %rax
movq %rax, -0xa0(%rbp)
leaq -0x98(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x37b20
movq %rax, %rcx
movabsq $0xfffffffe, %rax       # imm = 0xFFFFFFFE
andq (%rcx), %rax
movq %rax, -0x90(%rbp)
movq $0x0, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
cmpq -0x90(%rbp), %rax
jge 0x6f9be
movq -0x18(%rbp), %rax
movq -0xa8(%rbp), %rcx
movq -0x20(%rbp), %rdx
imulq %rdx, %rcx
leaq (%rax,%rcx,8), %rax
movq %rax, -0xb0(%rbp)
movq -0x18(%rbp), %rax
movq -0xa8(%rbp), %rcx
incq %rcx
movq -0x20(%rbp), %rdx
imulq %rdx, %rcx
leaq (%rax,%rcx,8), %rax
movq %rax, -0xb8(%rbp)
movsd -0x58(%rbp), %xmm0
movq -0x60(%rbp), %rax
movq -0xa8(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, -0xc0(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0x4bcd0
movaps %xmm0, -0x270(%rbp)
jmp 0x6f16d
movaps -0x270(%rbp), %xmm0
movapd %xmm0, -0xd0(%rbp)
movsd -0x58(%rbp), %xmm0
movq -0x60(%rbp), %rax
movq -0xa8(%rbp), %rcx
movsd 0x8(%rax,%rcx,8), %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, -0xe8(%rbp)
leaq -0xe8(%rbp), %rdi
callq 0x4bcd0
movaps %xmm0, -0x280(%rbp)
jmp 0x6f1b3
movaps -0x280(%rbp), %xmm0
movapd %xmm0, -0x100(%rbp)
movq $0x0, -0x108(%rbp)
leaq -0x108(%rbp), %rdi
callq 0x4bcd0
movaps %xmm0, -0x290(%rbp)
jmp 0x6f1e2
movaps -0x290(%rbp), %xmm0
movapd %xmm0, -0x120(%rbp)
movq $0x0, -0x128(%rbp)
leaq -0x128(%rbp), %rdi
callq 0x4bcd0
movaps %xmm0, -0x2a0(%rbp)
jmp 0x6f211
movaps -0x2a0(%rbp), %xmm0
movapd %xmm0, -0x140(%rbp)
movq -0xa8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x148(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x150(%rbp)
movq -0x148(%rbp), %rax
movq %rax, -0x2b0(%rbp)
movq -0x38(%rbp), %rcx
leaq (%rcx,%rax,8), %rdi
movq -0x150(%rbp), %rsi
subq %rax, %rsi
callq 0x23340
movq %rax, -0x2a8(%rbp)
jmp 0x6f26b
movq -0x2a8(%rbp), %rcx
movq -0x2b0(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x158(%rbp)
movq -0x158(%rbp), %rax
movq -0x150(%rbp), %rcx
subq %rax, %rcx
andq $-0x2, %rcx
addq %rcx, %rax
movq %rax, -0x160(%rbp)
movq -0xb0(%rbp), %rax
movq -0xa8(%rbp), %rcx
leaq (%rax,%rcx,8), %rdi
callq 0x4c2a0
movsd %xmm0, -0x2b8(%rbp)
jmp 0x6f2c3
movsd -0x2b8(%rbp), %xmm0
movsd %xmm0, -0x168(%rbp)
leaq -0x4b(%rbp), %rdi
leaq -0x168(%rbp), %rsi
leaq -0xc0(%rbp), %rdx
callq 0x56da0
movaps %xmm0, %xmm1
movq -0x38(%rbp), %rax
movq -0xa8(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movq -0xb8(%rbp), %rax
movq -0xa8(%rbp), %rcx
leaq 0x8(%rax,%rcx,8), %rdi
callq 0x4c2a0
movsd %xmm0, -0x2c0(%rbp)
jmp 0x6f328
movsd -0x2c0(%rbp), %xmm0
movsd %xmm0, -0x170(%rbp)
leaq -0x4b(%rbp), %rdi
leaq -0x170(%rbp), %rsi
leaq -0xe8(%rbp), %rdx
callq 0x56da0
movq -0x38(%rbp), %rax
movq -0xa8(%rbp), %rcx
addsd 0x8(%rax,%rcx,8), %xmm0
movsd %xmm0, 0x8(%rax,%rcx,8)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rax
addq $0x1, %rax
shlq $0x3, %rax
addq %rax, %rsi
leaq -0x49(%rbp), %rdi
leaq -0xc0(%rbp), %rdx
callq 0x56da0
movq -0x38(%rbp), %rax
movq -0xa8(%rbp), %rcx
addsd 0x8(%rax,%rcx,8), %xmm0
movsd %xmm0, 0x8(%rax,%rcx,8)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rax
addq $0x1, %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x60(%rbp), %rdx
movq -0xa8(%rbp), %rax
addq $0x1, %rax
shlq $0x3, %rax
addq %rax, %rdx
leaq -0x4a(%rbp), %rdi
callq 0x56da0
addsd -0x108(%rbp), %xmm0
movsd %xmm0, -0x108(%rbp)
movq -0x148(%rbp), %rax
movq %rax, -0x178(%rbp)
movq -0x178(%rbp), %rax
cmpq -0x158(%rbp), %rax
jae 0x6f536
movsd -0xc0(%rbp), %xmm1
movq -0xb0(%rbp), %rax
movq -0x178(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm2
movsd -0xe8(%rbp), %xmm0
movq -0xb8(%rbp), %rax
movsd (%rax,%rcx,8), %xmm3
mulsd %xmm3, %xmm0
mulsd %xmm2, %xmm1
addsd %xmm0, %xmm1
movq -0x38(%rbp), %rax
movsd (%rax,%rcx,8), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movq -0xb0(%rbp), %rax
movq -0x178(%rbp), %rcx
leaq (%rax,%rcx,8), %rdi
callq 0x4df90
movsd %xmm0, -0x2c8(%rbp)
jmp 0x6f47e
movsd -0x2c8(%rbp), %xmm0
movq -0x60(%rbp), %rax
movq -0x178(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm2
movsd -0x108(%rbp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x108(%rbp)
movq -0xb8(%rbp), %rax
movq -0x178(%rbp), %rcx
leaq (%rax,%rcx,8), %rdi
callq 0x4df90
movsd %xmm0, -0x2d0(%rbp)
jmp 0x6f4cf
movsd -0x2d0(%rbp), %xmm0
movq -0x60(%rbp), %rax
movq -0x178(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm2
movsd -0x128(%rbp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x128(%rbp)
movq -0x178(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x178(%rbp)
jmp 0x6f3fc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd8(%rbp)
movl %eax, -0xdc(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x55c10
jmp 0x6fb87
movq -0xb0(%rbp), %rax
movq -0x158(%rbp), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x180(%rbp)
movq -0xb8(%rbp), %rax
movq -0x158(%rbp), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x188(%rbp)
movq -0x60(%rbp), %rax
movq -0x158(%rbp), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x190(%rbp)
movq -0x38(%rbp), %rax
movq -0x158(%rbp), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x198(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0x1a0(%rbp)
movq -0x1a0(%rbp), %rax
cmpq -0x160(%rbp), %rax
jae 0x6f79e
movq -0x180(%rbp), %rdi
callq 0x517b0
movaps %xmm0, -0x2e0(%rbp)
jmp 0x6f5d7
movaps -0x2e0(%rbp), %xmm0
movapd %xmm0, -0x1b0(%rbp)
movq -0x180(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x180(%rbp)
movq -0x188(%rbp), %rdi
callq 0x517b0
movaps %xmm0, -0x2f0(%rbp)
jmp 0x6f60d
movaps -0x2f0(%rbp), %xmm0
movapd %xmm0, -0x1c0(%rbp)
movq -0x188(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x188(%rbp)
movq -0x190(%rbp), %rdi
callq 0x517b0
movaps %xmm0, -0x300(%rbp)
jmp 0x6f643
movaps -0x300(%rbp), %xmm0
movapd %xmm0, -0x1d0(%rbp)
movq -0x190(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x190(%rbp)
movq -0x198(%rbp), %rdi
callq 0x4bc80
movaps %xmm0, -0x310(%rbp)
jmp 0x6f679
movaps -0x310(%rbp), %xmm0
movapd %xmm0, -0x1e0(%rbp)
leaq -0x4c(%rbp), %rdi
leaq -0x1c0(%rbp), %rsi
leaq -0x100(%rbp), %rdx
leaq -0x1e0(%rbp), %rcx
callq 0x56d70
movaps %xmm0, -0x320(%rbp)
jmp 0x6f6af
movaps -0x320(%rbp), %xmm0
movapd %xmm0, -0x1f0(%rbp)
leaq -0x4c(%rbp), %rdi
leaq -0x1b0(%rbp), %rsi
leaq -0xd0(%rbp), %rdx
leaq -0x1f0(%rbp), %rcx
callq 0x56d70
movaps %xmm0, -0x330(%rbp)
jmp 0x6f6e5
movaps -0x330(%rbp), %xmm0
movapd %xmm0, -0x1e0(%rbp)
leaq -0x4d(%rbp), %rdi
leaq -0x1b0(%rbp), %rsi
leaq -0x1d0(%rbp), %rdx
leaq -0x120(%rbp), %rcx
callq 0x56d70
movaps %xmm0, -0x340(%rbp)
jmp 0x6f71b
movaps -0x340(%rbp), %xmm0
movapd %xmm0, -0x120(%rbp)
leaq -0x4d(%rbp), %rdi
leaq -0x1c0(%rbp), %rsi
leaq -0x1d0(%rbp), %rdx
leaq -0x140(%rbp), %rcx
callq 0x56d70
movaps %xmm0, -0x350(%rbp)
jmp 0x6f751
movaps -0x350(%rbp), %xmm0
movapd %xmm0, -0x140(%rbp)
movq -0x198(%rbp), %rdi
leaq -0x1e0(%rbp), %rsi
callq 0x4bbd0
jmp 0x6f775
movq -0x198(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x198(%rbp)
movq -0x1a0(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x1a0(%rbp)
jmp 0x6f5ae
movq -0x160(%rbp), %rax
movq %rax, -0x1f8(%rbp)
movq -0x1f8(%rbp), %rax
cmpq -0x150(%rbp), %rax
jae 0x6f8cd
movq -0xb0(%rbp), %rsi
movq -0x1f8(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
leaq -0x49(%rbp), %rdi
leaq -0xc0(%rbp), %rdx
callq 0x56da0
movsd %xmm0, -0x358(%rbp)
movq -0xb8(%rbp), %rsi
movq -0x1f8(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
leaq -0x49(%rbp), %rdi
leaq -0xe8(%rbp), %rdx
callq 0x56da0
movaps %xmm0, %xmm1
movsd -0x358(%rbp), %xmm0
addsd %xmm1, %xmm0
movq -0x38(%rbp), %rax
movq -0x1f8(%rbp), %rcx
addsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
movq -0xb0(%rbp), %rsi
movq -0x1f8(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x60(%rbp), %rdx
movq -0x1f8(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdx
leaq -0x4a(%rbp), %rdi
callq 0x56da0
addsd -0x108(%rbp), %xmm0
movsd %xmm0, -0x108(%rbp)
movq -0xb8(%rbp), %rsi
movq -0x1f8(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x60(%rbp), %rdx
movq -0x1f8(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdx
leaq -0x4a(%rbp), %rdi
callq 0x56da0
addsd -0x128(%rbp), %xmm0
movsd %xmm0, -0x128(%rbp)
movq -0x1f8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x1f8(%rbp)
jmp 0x6f7ac
movsd -0x40(%rbp), %xmm0
movsd %xmm0, -0x370(%rbp)
movsd -0x108(%rbp), %xmm0
movsd %xmm0, -0x368(%rbp)
leaq -0x120(%rbp), %rdi
callq 0x4cae0
movsd %xmm0, -0x360(%rbp)
jmp 0x6f900
movsd -0x370(%rbp), %xmm0
movsd -0x360(%rbp), %xmm1
movsd -0x368(%rbp), %xmm2
addsd %xmm1, %xmm2
movq -0x38(%rbp), %rax
movq -0xa8(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movsd -0x40(%rbp), %xmm0
movsd %xmm0, -0x388(%rbp)
movsd -0x128(%rbp), %xmm0
movsd %xmm0, -0x380(%rbp)
leaq -0x140(%rbp), %rdi
callq 0x4cae0
movsd %xmm0, -0x378(%rbp)
jmp 0x6f96c
movsd -0x388(%rbp), %xmm0
movsd -0x378(%rbp), %xmm1
movsd -0x380(%rbp), %xmm2
addsd %xmm1, %xmm2
movq -0x38(%rbp), %rax
movq -0xa8(%rbp), %rcx
movsd 0x8(%rax,%rcx,8), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rax,%rcx,8)
movq -0xa8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0xa8(%rbp)
jmp 0x6f0e4
movq -0x90(%rbp), %rax
movq %rax, -0x200(%rbp)
movq -0x200(%rbp), %rax
cmpq -0x10(%rbp), %rax
jge 0x6fb79
movq -0x18(%rbp), %rax
movq -0x200(%rbp), %rcx
movq -0x20(%rbp), %rdx
imulq %rdx, %rcx
leaq (%rax,%rcx,8), %rax
movq %rax, -0x208(%rbp)
movsd -0x58(%rbp), %xmm0
movq -0x60(%rbp), %rax
movq -0x200(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, -0x210(%rbp)
movq $0x0, -0x218(%rbp)
movq -0x208(%rbp), %rax
movq -0x200(%rbp), %rcx
leaq (%rax,%rcx,8), %rdi
callq 0x4c2a0
movsd %xmm0, -0x390(%rbp)
jmp 0x6fa48
movsd -0x390(%rbp), %xmm0
movsd %xmm0, -0x220(%rbp)
leaq -0x4b(%rbp), %rdi
leaq -0x220(%rbp), %rsi
leaq -0x210(%rbp), %rdx
callq 0x56da0
movq -0x38(%rbp), %rax
movq -0x200(%rbp), %rcx
addsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
movq -0x200(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x228(%rbp)
movq -0x228(%rbp), %rax
cmpq -0x10(%rbp), %rax
jge 0x6fb38
movq -0x208(%rbp), %rsi
movq -0x228(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
leaq -0x49(%rbp), %rdi
leaq -0x210(%rbp), %rdx
callq 0x56da0
movq -0x38(%rbp), %rax
movq -0x228(%rbp), %rcx
addsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
movq -0x208(%rbp), %rsi
movq -0x228(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x60(%rbp), %rdx
movq -0x228(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdx
leaq -0x4a(%rbp), %rdi
callq 0x56da0
addsd -0x218(%rbp), %xmm0
movsd %xmm0, -0x218(%rbp)
movq -0x228(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x228(%rbp)
jmp 0x6fa96
movsd -0x40(%rbp), %xmm0
movsd -0x218(%rbp), %xmm2
movq -0x38(%rbp), %rax
movq -0x200(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movq -0x200(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x200(%rbp)
jmp 0x6f9cc
leaq -0x78(%rbp), %rdi
callq 0x55c10
movq %rbp, %rsp
popq %rbp
retq
movq -0xd8(%rbp), %rdi
callq 0x10cc0
nopw %cs:(%rax,%rax)
nopl (%rax)