// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double> const& cimg_library::CImg<double>::SVD<double>(cimg_library::CImg<double>&, cimg_library::CImg<double>&, cimg_library::CImg<double>&, bool, unsigned int, float) const
const CImg<T>& SVD(CImg<t>& U, CImg<t>& S, CImg<t>& V, const bool sorting=true,
                       const unsigned int max_iteration=40, const float lambda=0) const {
      if (is_empty()) { U.assign(); S.assign(); V.assign(); }
      else {
        U = *this;
        if (lambda!=0) {
          const unsigned int delta = cimg::min(U._width,U._height);
          for (unsigned int i = 0; i<delta; ++i) U(i,i) = (t)(U(i,i) + lambda);
        }
        if (S.size()<_width) S.assign(1,_width);
        if (V._width<_width || V._height<_height) V.assign(_width,_width);
        CImg<t> rv1(_width);
        t anorm = 0, c, f, g = 0, h, s, scale = 0;
        int l = 0, nm = 0;

        cimg_forX(U,i) {
          l = i+1; rv1[i] = scale*g; g = s = scale = 0;
          if (i<height()) {
            for (int k = i; k<height(); ++k) scale+= cimg::abs(U(i,k));
            if (scale) {
              for (int k = i; k<height(); ++k) { U(i,k)/=scale; s+= U(i,k)*U(i,k); }
              f = U(i,i); g = (t)((f>=0?-1:1)*std::sqrt(s)); h=f*g-s; U(i,i) = f-g;
              for (int j = l; j<width(); ++j) {
                s = 0;
                for (int k=i; k<height(); ++k) s+= U(i,k)*U(j,k);
                f = s/h;
                for (int k = i; k<height(); ++k) U(j,k)+= f*U(i,k);
              }
              for (int k = i; k<height(); ++k) U(i,k)*= scale;
            }
          }
          S[i]=scale*g;

          g = s = scale = 0;
          if (i<height() && i!=width()-1) {
            for (int k = l; k<width(); ++k) scale+=cimg::abs(U(k,i));
            if (scale) {
              for (int k = l; k<width(); ++k) { U(k,i)/= scale; s+= U(k,i)*U(k,i); }
              f = U(l,i); g = (t)((f>=0?-1:1)*std::sqrt(s)); h = f*g-s; U(l,i) = f-g;
              for (int k = l; k<width(); ++k) rv1[k]=U(k,i)/h;
              for (int j = l; j<height(); ++j) {
                s = 0;
                for (int k = l; k<width(); ++k) s+= U(k,j)*U(k,i);
                for (int k = l; k<width(); ++k) U(k,j)+= s*rv1[k];
              }
              for (int k = l; k<width(); ++k) U(k,i)*= scale;
            }
          }
          anorm = (t)cimg::max((float)anorm,(float)(cimg::abs(S[i])+cimg::abs(rv1[i])));
        }

        for (int i = width()-1; i>=0; --i) {
          if (i<width()-1) {
            if (g) {
              for (int j = l; j<width(); ++j) V(i,j) =(U(j,i)/U(l,i))/g;
              for (int j = l; j<width(); ++j) {
                s = 0;
                for (int k = l; k<width(); ++k) s+= U(k,i)*V(j,k);
                for (int k = l; k<width(); ++k) V(j,k)+= s*V(i,k);
              }
            }
            for (int j = l; j<width(); ++j) V(j,i) = V(i,j) = (t)0.0;
          }
          V(i,i) = (t)1.0; g = rv1[i]; l = i;
        }

        for (int i = cimg::min(width(),height())-1; i>=0; --i) {
          l = i+1; g = S[i];
          for (int j = l; j<width(); ++j) U(j,i) = 0;
          if (g) {
            g = 1/g;
            for (int j = l; j<width(); ++j) {
              s = 0; for (int k = l; k<height(); ++k) s+= U(i,k)*U(j,k);
              f = (s/U(i,i))*g;
              for (int k = i; k<height(); ++k) U(j,k)+= f*U(i,k);
            }
            for (int j = i; j<height(); ++j) U(i,j)*= g;
          } else for (int j = i; j<height(); ++j) U(i,j) = 0;
          ++U(i,i);
        }

        for (int k = width()-1; k>=0; --k) {
          for (unsigned int its = 0; its<max_iteration; ++its) {
            bool flag = true;
            for (l = k; l>=1; --l) {
              nm = l-1;
              if ((cimg::abs(rv1[l])+anorm)==anorm) { flag = false; break; }
              if ((cimg::abs(S[nm])+anorm)==anorm) break;
            }
            if (flag) {
              c = 0; s = 1;
              for (int i = l; i<=k; ++i) {
                f = s*rv1[i]; rv1[i] = c*rv1[i];
                if ((cimg::abs(f)+anorm)==anorm) break;
                g = S[i]; h = (t)cimg::_pythagore(f,g); S[i] = h; h = 1/h; c = g*h; s = -f*h;
                cimg_forY(U,j) { const t y = U(nm,j), z = U(i,j); U(nm,j) = y*c + z*s; U(i,j) = z*c - y*s; }
              }
            }

            const t z = S[k];
            if (l==k) { if (z<0) { S[k] = -z; cimg_forX(U,j) V(k,j) = -V(k,j); } break; }
            nm = k-1;
            t x = S[l], y = S[nm];
            g = rv1[nm]; h = rv1[k];
            f = ((y-z)*(y+z)+(g-h)*(g+h))/cimg::max((t)1e-25,2*h*y);
            g = (t)cimg::_pythagore(f,1.0);
            f = ((x-z)*(x+z)+h*((y/(f + (f>=0?g:-g)))-h))/cimg::max((t)1e-25,x);
            c = s = 1;
            for (int j = l; j<=nm; ++j) {
              const int i = j+1;
              g = rv1[i]; h = s*g; g = c*g;
              t y = S[i];
              t z = (t)cimg::_pythagore(f,h);
              rv1[j] = z; c = f/cimg::max((t)1e-25,z); s = h/cimg::max((t)1e-25,z);
              f = x*c+g*s; g = g*c-x*s; h = y*s; y*=c;
              cimg_forX(U,jj) { const t x = V(j,jj), z = V(i,jj); V(j,jj) = x*c + z*s; V(i,jj) = z*c - x*s; }
              z = (t)cimg::_pythagore(f,h); S[j] = z;
              if (z) { z = 1/cimg::max((t)1e-25,z); c = f*z; s = h*z; }
              f = c*g+s*y; x = c*y-s*g;
              cimg_forY(U,jj) { const t y = U(j,jj); z = U(i,jj); U(j,jj) = y*c + z*s; U(i,jj) = z*c - y*s; }
            }
            rv1[l] = 0; rv1[k]=f; S[k]=x;
          }
        }

        if (sorting) {
          CImg<intT> permutations;
          CImg<t> tmp(_width);
          S.sort(permutations,false);
          cimg_forY(U,k) {
            cimg_forY(permutations,y) tmp(y) = U(permutations(y),k);
            std::memcpy(U.data(0,k),tmp._data,sizeof(t)*_width);
          }
          cimg_forY(V,k) {
            cimg_forY(permutations,y) tmp(y) = V(permutations(y),k);
            std::memcpy(V.data(0,k),tmp._data,sizeof(t)*_width);
          }
        }
      }
      return *this;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movss %xmm0, 0x10(%rsp)
movl %r9d, 0xb8(%rsp)
movl %r8d, 0xb0(%rsp)
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
callq 0x8dc8
testb %al, %al
movq %rbx, 0x8(%rsp)
je 0x4c880
movq %r15, %rdi
callq 0x94f6
movq %r12, %rdi
callq 0x94f6
movq %r14, %rdi
callq 0x94f6
jmp 0x4da8a
movq %r14, 0x38(%rsp)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2ad88
xorps %xmm0, %xmm0
movss 0x10(%rsp), %xmm1
ucomiss %xmm0, %xmm1
jne 0x4c8a0
jnp 0x4c8d2
movl (%r15), %eax
movl 0x4(%r15), %ecx
cmpl %ecx, %eax
cmovbl %eax, %ecx
movq 0x18(%r15), %rdx
incl %eax
cvtss2sd %xmm1, %xmm0
xorl %esi, %esi
subq $0x1, %rcx
jb 0x4c8d2
movl %esi, %edi
movsd (%rdx,%rdi,8), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%rdx,%rdi,8)
addl %eax, %esi
jmp 0x4c8b8
movl (%r12), %eax
movl 0x4(%r12), %ecx
imulq %rax, %rcx
movl 0x8(%r12), %eax
movl 0xc(%r12), %esi
imulq %rax, %rsi
imulq %rcx, %rsi
movq 0x8(%rsp), %rbx
movl (%rbx), %edx
cmpq %rdx, %rsi
jae 0x4c90f
pushq $0x1
popq %rcx
movq %r12, %rdi
movl %ecx, %esi
movl %ecx, %r8d
callq 0x988e
movl (%rbx), %edx
movq 0x38(%rsp), %rdi
cmpl %edx, (%rdi)
jb 0x4c925
movl 0x4(%rdi), %eax
movq 0x8(%rsp), %rcx
cmpl 0x4(%rcx), %eax
jae 0x4c939
pushq $0x1
popq %rcx
movl %edx, %esi
movl %ecx, %r8d
callq 0x988e
movq 0x8(%rsp), %rax
movl (%rax), %edx
leaq 0xc0(%rsp), %rdi
pushq $0x1
popq %rcx
movl %edx, %esi
movl %ecx, %edx
movl %ecx, %r8d
callq 0x6caa
xorpd %xmm5, %xmm5
pushq $0x1
popq %r13
pushq $0x8
popq %rax
movq %rax, 0x20(%rsp)
xorl %r8d, %r8d
movapd 0x7775(%rip), %xmm6     # 0x540e0
xorl %r11d, %r11d
movq $0x0, 0x40(%rsp)
xorpd %xmm7, %xmm7
xorps %xmm1, %xmm1
xorpd %xmm4, %xmm4
movq 0x8(%rsp), %rdx
movq 0x40(%rsp), %rbp
movslq (%r15), %rax
cmpq %rax, %rbp
movsd %xmm4, 0xa0(%rsp)
jge 0x4cec3
leaq 0x1(%rbp), %rcx
movq %rcx, 0x40(%rsp)
mulsd %xmm1, %xmm7
movq 0xd8(%rsp), %rcx
movsd %xmm7, (%rcx,%rbp,8)
movslq 0x4(%rdx), %r9
xorpd %xmm7, %xmm7
cmpq %r9, %rbp
jge 0x4ca10
movq %r8, 0x60(%rsp)
movq 0x18(%r15), %rsi
movq %r9, %rcx
movl %r9d, %edi
leal 0x1(%rax), %edx
movl %ebp, %r8d
imull %edx, %r8d
xorpd %xmm8, %xmm8
movq %rdi, %r9
movapd 0x76ef(%rip), %xmm1     # 0x540e0
cmpq %r9, %rbp
je 0x4ca1e
movl %r8d, %r10d
movsd (%rsi,%r10,8), %xmm0
andpd %xmm1, %xmm0
addsd %xmm0, %xmm8
decq %r9
addl %eax, %r8d
jmp 0x4c9f1
xorpd %xmm8, %xmm8
xorpd %xmm1, %xmm1
jmp 0x4cc1d
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm8
jne 0x4ca2b
jnp 0x4ca75
movl %ebp, %ecx
imull %edx, %ecx
xorpd %xmm3, %xmm3
cmpq %rdi, %rbp
je 0x4ca5c
movl %ecx, %r8d
movsd (%rsi,%r8,8), %xmm0
divsd %xmm8, %xmm0
movsd %xmm0, (%rsi,%r8,8)
mulsd %xmm0, %xmm0
addsd %xmm0, %xmm3
decq %rdi
addl %eax, %ecx
jmp 0x4ca34
movq 0x18(%r15), %rax
imull %ebp, %edx
movsd (%rax,%rdx,8), %xmm9
ucomisd %xmm5, %xmm3
jb 0x4ca87
sqrtsd %xmm3, %xmm0
jmp 0x4cae3
movq 0x8(%rsp), %rdx
movq 0x60(%rsp), %r8
movq %rcx, %r9
jmp 0x4cc1d
movapd %xmm3, %xmm0
movq %r11, %rbx
movapd %xmm8, 0x10(%rsp)
movsd %xmm3, 0x90(%rsp)
movsd %xmm9, 0xe0(%rsp)
callq 0x4400
movsd 0xe0(%rsp), %xmm9
movsd 0x90(%rsp), %xmm3
movapd 0x10(%rsp), %xmm8
xorpd %xmm7, %xmm7
movq %rbx, %r11
movapd 0x760a(%rip), %xmm6     # 0x540e0
xorpd %xmm5, %xmm5
movsd 0xa0(%rsp), %xmm4
movapd %xmm0, %xmm2
xorpd 0x75d1(%rip), %xmm2     # 0x540c0
xorpd %xmm1, %xmm1
cmplesd %xmm9, %xmm1
andpd %xmm1, %xmm2
andnpd %xmm0, %xmm1
orpd %xmm2, %xmm1
movapd %xmm9, %xmm0
mulsd %xmm1, %xmm0
subsd %xmm3, %xmm0
subsd %xmm1, %xmm9
movq 0x18(%r15), %rax
movl (%r15), %edx
leal 0x1(%rdx), %esi
movl %esi, %ecx
imull %ebp, %ecx
movsd %xmm9, (%rax,%rcx,8)
movq 0x8(%rsp), %rcx
movl (%rcx), %edi
movl %edi, 0x10(%rsp)
movslq 0x4(%rcx), %rcx
cmpl %ebp, %ecx
movl %ebp, %r8d
movq %rcx, 0x90(%rsp)
cmovgl %ecx, %r8d
movq %r11, 0x80(%rsp)
addq %r11, %r8
movl %ebp, %r9d
imull %esi, %r9d
pushq $0x1
popq %rcx
movl %ecx, %r10d
movq 0x40(%rsp), %rcx
movl %ecx, %r11d
cmpl 0x10(%rsp), %r11d
jge 0x4cbda
movq %rbp, %rdi
xorpd %xmm2, %xmm2
movl %r9d, %r14d
movq %r8, %rbp
subq $0x1, %rbp
jb 0x4cba0
movl %r14d, %ebx
movsd (%rax,%rbx,8), %xmm3
leal (%r10,%r14), %ebx
mulsd (%rax,%rbx,8), %xmm3
addsd %xmm3, %xmm2
addl %edx, %r14d
jmp 0x4cb80
divsd %xmm0, %xmm2
movl %r9d, %r14d
movq %r8, %rbp
subq $0x1, %rbp
jb 0x4cbcf
movl %r14d, %ebx
leal (%r10,%r14), %ecx
movsd (%rax,%rbx,8), %xmm3
mulsd %xmm2, %xmm3
addsd (%rax,%rcx,8), %xmm3
movsd %xmm3, (%rax,%rcx,8)
addl %edx, %r14d
jmp 0x4cbaa
incl %r11d
incl %r10d
movq %rdi, %rbp
jmp 0x4cb6c
movq 0x90(%rsp), %r9
cmpl %ebp, %r9d
movl %ebp, %edi
cmovgl %r9d, %edi
imull %ebp, %esi
movq 0x60(%rsp), %r8
movq 0x80(%rsp), %r11
cmpq %rdi, %rbp
je 0x4cc18
movl %esi, %ecx
movsd (%rax,%rcx,8), %xmm0
mulsd %xmm8, %xmm0
movsd %xmm0, (%rax,%rcx,8)
decq %rdi
addl %edx, %esi
jmp 0x4cbfb
movq 0x8(%rsp), %rdx
mulsd %xmm1, %xmm8
movq 0x18(%r12), %rax
movsd %xmm8, (%rax,%rbp,8)
cmpq %r9, %rbp
jge 0x4cc3c
movl (%rdx), %eax
leal -0x1(%rax), %ecx
cmpq %rcx, %rbp
jne 0x4cc45
xorpd %xmm1, %xmm1
jmp 0x4ce73
movq 0x18(%r15), %rcx
movl (%r15), %edx
imull %ebp, %edx
xorpd %xmm7, %xmm7
movl %r13d, %esi
movapd 0x7482(%rip), %xmm1     # 0x540e0
cmpl %esi, %eax
jle 0x4cc76
leal (%rdx,%rsi), %edi
movsd (%rcx,%rdi,8), %xmm0
andpd %xmm1, %xmm0
addsd %xmm0, %xmm7
incl %esi
jmp 0x4cc5e
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm7
jne 0x4cc86
jnp 0x4ce6e
xorpd %xmm3, %xmm3
movl %r13d, %esi
cmpl %esi, %eax
jle 0x4ccae
leal (%rdx,%rsi), %edi
movsd (%rcx,%rdi,8), %xmm0
divsd %xmm7, %xmm0
movsd %xmm0, (%rcx,%rdi,8)
mulsd %xmm0, %xmm0
addsd %xmm0, %xmm3
incl %esi
jmp 0x4cc8d
movq 0x18(%r15), %rax
movl (%r15), %ecx
imull %ebp, %ecx
addl 0x40(%rsp), %ecx
movsd (%rax,%rcx,8), %xmm8
ucomisd %xmm5, %xmm3
movq %r11, 0x80(%rsp)
jb 0x4ccd6
sqrtsd %xmm3, %xmm0
jmp 0x4cd26
movapd %xmm3, %xmm0
movq %r8, %rbx
movsd %xmm7, 0x10(%rsp)
movsd %xmm3, 0x60(%rsp)
movsd %xmm8, 0x90(%rsp)
callq 0x4400
movsd 0x90(%rsp), %xmm8
movsd 0x60(%rsp), %xmm3
movsd 0x10(%rsp), %xmm7
movapd 0x73ca(%rip), %xmm6     # 0x540e0
movq %rbx, %r8
xorpd %xmm5, %xmm5
movsd 0xa0(%rsp), %xmm4
movapd %xmm0, %xmm2
xorpd 0x738e(%rip), %xmm2     # 0x540c0
xorpd %xmm1, %xmm1
cmplesd %xmm8, %xmm1
andpd %xmm1, %xmm2
andnpd %xmm0, %xmm1
orpd %xmm2, %xmm1
movapd %xmm8, %xmm0
mulsd %xmm1, %xmm0
subsd %xmm3, %xmm0
subsd %xmm1, %xmm8
movq 0x18(%r15), %rax
movl (%r15), %ecx
movl %ecx, %edx
imull %ebp, %edx
addl 0x40(%rsp), %edx
movsd %xmm8, (%rax,%rdx,8)
movq 0x8(%rsp), %rdx
movl (%rdx), %edx
movq 0xd8(%rsp), %rsi
movq %r8, %r14
addq %r8, %rsi
leal 0x1(%rcx), %edi
imull %ebp, %edi
pushq $0x1
popq %r8
leal (%r8,%rbp), %r9d
cmpl %r9d, %edx
jle 0x4cdb1
leal (%rdi,%r8), %r9d
movsd (%rax,%r9,8), %xmm2
divsd %xmm0, %xmm2
movsd %xmm2, (%rsi,%r8,8)
incq %r8
jmp 0x4cd8f
movq 0x8(%rsp), %rsi
movl 0x4(%rsi), %esi
movl %ecx, %edi
imull %ebp, %edi
leal 0x1(%rcx), %r8d
imull %r13d, %r8d
movq 0x40(%rsp), %r9
cmpl %esi, %r9d
jge 0x4ce39
xorpd %xmm0, %xmm0
movl %r8d, %r10d
movl %r13d, %r11d
cmpl %r11d, %edx
jle 0x4cdfc
movl %r10d, %ebx
movsd (%rax,%rbx,8), %xmm2
leal (%rdi,%r11), %ebx
mulsd (%rax,%rbx,8), %xmm2
addsd %xmm2, %xmm0
incl %r11d
incl %r10d
jmp 0x4cdda
movq 0xd8(%rsp), %r10
addq 0x20(%rsp), %r10
xorl %r11d, %r11d
leal (%r11,%r13), %ebx
cmpl %ebx, %edx
jle 0x4ce31
leal (%r8,%r11), %ebx
movsd (%r10,%r11,8), %xmm2
mulsd %xmm0, %xmm2
addsd (%rax,%rbx,8), %xmm2
movsd %xmm2, (%rax,%rbx,8)
incq %r11
jmp 0x4ce0c
incl %r9d
addq %rcx, %r8
jmp 0x4cdcb
imull %ebp, %ecx
movl %r13d, %esi
movq %r14, %r8
movq 0x80(%rsp), %r11
cmpl %esi, %edx
jle 0x4ce63
leal (%rcx,%rsi), %edi
movsd (%rax,%rdi,8), %xmm0
mulsd %xmm7, %xmm0
movsd %xmm0, (%rax,%rdi,8)
incl %esi
jmp 0x4ce4a
movq 0x18(%r12), %rax
movsd (%rax,%rbp,8), %xmm8
movq 0x8(%rsp), %rdx
cvtsd2ss %xmm4, %xmm0
andpd %xmm6, %xmm8
movq 0xd8(%rsp), %rax
movsd (%rax,%rbp,8), %xmm2
andpd %xmm6, %xmm2
addsd %xmm8, %xmm2
cvtsd2ss %xmm2, %xmm2
movaps %xmm2, %xmm3
cmpless %xmm0, %xmm3
movaps %xmm3, %xmm4
andnps %xmm2, %xmm4
andps %xmm0, %xmm3
orps %xmm4, %xmm3
cvtss2sd %xmm3, %xmm4
incq %r13
decq %r11
addq $0x8, %r8
addq $0x8, 0x20(%rsp)
jmp 0x4c987
movl (%rdx), %ecx
movq 0x38(%rsp), %rdx
movq 0x18(%rdx), %r10
movl (%rdx), %r11d
incl %r11d
movq 0xd8(%rsp), %r13
leal -0x1(%rcx), %r8d
movl %r8d, %r9d
imull %eax, %r9d
xorps %xmm0, %xmm0
movq %rcx, %rdx
movq %r10, 0x20(%rsp)
movl %r11d, 0x40(%rsp)
movq %r13, 0x60(%rsp)
testl %edx, %edx
jle 0x4d06a
movq %rdx, %rsi
decq %rsi
movq %rsi, 0x10(%rsp)
cmpl %edx, %ecx
jle 0x4d03a
ucomisd %xmm0, %xmm1
movq 0x38(%rsp), %rdx
movq 0x18(%rdx), %rbx
movl (%rdx), %r14d
jne 0x4cf2f
jnp 0x4d010
movq 0x18(%r15), %r10
movl %eax, %r13d
imull 0x10(%rsp), %r13d
addl %ebp, %r13d
movl %ebp, %edx
imull %r14d, %edx
addl %r8d, %edx
movl %ebp, %edi
movq %rbp, %r11
cmpl %ecx, %edi
jge 0x4cf76
leal (%r9,%rdi), %ebp
movsd (%r10,%rbp,8), %xmm2
divsd (%r10,%r13,8), %xmm2
divsd %xmm1, %xmm2
movl %edx, %ebp
movsd %xmm2, (%rbx,%rbp,8)
movq %r11, %rbp
incl %edi
addl %r14d, %edx
jmp 0x4cf4d
movl %ebp, %ebx
cmpl %ecx, %ebx
jge 0x4cff5
movq 0x18(%r15), %r10
movq 0x38(%rsp), %rdx
movq 0x18(%rdx), %r14
movl (%rdx), %r13d
movq %rbp, %rdi
imull %r13d, %ebp
leal (%rbx,%rbp), %edx
xorpd %xmm1, %xmm1
cmpl %ecx, %edi
jge 0x4cfbb
leal (%r9,%rdi), %esi
movsd (%r10,%rsi,8), %xmm2
movl %edx, %esi
mulsd (%r14,%rsi,8), %xmm2
addsd %xmm2, %xmm1
incl %edi
addl %r13d, %edx
jmp 0x4cf9a
leal (%rbx,%rbp), %r10d
addl %r8d, %ebp
movl %r11d, %edx
cmpl %ecx, %edx
jge 0x4cfee
movl %ebp, %esi
movl %r10d, %edi
movsd (%r14,%rsi,8), %xmm2
mulsd %xmm1, %xmm2
addsd (%r14,%rdi,8), %xmm2
movsd %xmm2, (%r14,%rdi,8)
incl %edx
addl %r13d, %r10d
addl %r13d, %ebp
jmp 0x4cfc5
incl %ebx
movq %r11, %rbp
jmp 0x4cf78
movq 0x38(%rsp), %rdx
movq 0x18(%rdx), %rbx
movl (%rdx), %r14d
movq 0x20(%rsp), %r10
movl 0x40(%rsp), %r11d
movq 0x60(%rsp), %r13
movl %r14d, %edx
imull %r8d, %edx
movl %ebp, %edi
imull %r14d, %edi
addl %r8d, %edi
cmpl %ecx, %ebp
jge 0x4d03a
movl %edi, %esi
andq $0x0, (%rbx,%rsi,8)
leal (%rdx,%rbp), %esi
andq $0x0, (%rbx,%rsi,8)
incl %ebp
addl %r14d, %edi
jmp 0x4d020
movl %r11d, %edx
movq 0x10(%rsp), %rbp
imull %ebp, %edx
movabsq $0x3ff0000000000000, %rsi # imm = 0x3FF0000000000000
movq %rsi, (%r10,%rdx,8)
movl %ebp, %edx
movsd (%r13,%rdx,8), %xmm1
decl %r8d
subl %eax, %r9d
movq %rbp, %rdx
jmp 0x4cefc
movq 0x8(%rsp), %rdx
movl 0x4(%rdx), %edx
cmpl %edx, %ecx
movl %edx, %r14d
cmovll %ecx, %r14d
movq 0x18(%r12), %rsi
movq %rsi, 0xa8(%rsp)
leal 0x1(%rax), %edi
movq 0x18(%r15), %rsi
movq %rsi, 0x50(%rsp)
leal -0x1(%r14), %esi
movl %esi, 0x10(%rsp)
imull %eax, %esi
leal (%r14,%rsi), %r10d
movl %eax, %r8d
notl %r8d
movl %r8d, 0x5c(%rsp)
leal -0x1(%r14,%rsi), %esi
movl %esi, 0x20(%rsp)
movl %r14d, %r11d
movl %edi, 0x78(%rsp)
imull %edi, %r11d
leal -0x1(%r11), %esi
movl %esi, 0x60(%rsp)
xorps %xmm0, %xmm0
testl %r14d, %r14d
movapd 0x7008(%rip), %xmm1     # 0x540e0
jle 0x4d294
movq %r14, %rbx
decq %rbx
movl %ebx, %esi
movq 0xa8(%rsp), %rdi
movsd (%rdi,%rsi,8), %xmm2
movq 0x18(%r15), %rsi
movl %r14d, %edi
movl %r10d, %r8d
cmpl %edi, %ecx
jle 0x4d110
movl %r8d, %r9d
andq $0x0, (%rsi,%r9,8)
incl %r8d
incl %edi
jmp 0x4d0fd
ucomisd %xmm0, %xmm2
jne 0x4d11c
jnp 0x4d236
movsd 0x6eec(%rip), %xmm1     # 0x54010
divsd %xmm2, %xmm1
movq 0x18(%r15), %r8
movl 0x78(%rsp), %esi
movq %rbx, 0xe0(%rsp)
imull %ebx, %esi
movq %rsi, 0x40(%rsp)
movl %r10d, 0x80(%rsp)
movq %r11, 0x90(%rsp)
movl %r11d, %ebx
movl %r14d, %r11d
movq 0x18(%r15), %rsi
cmpl %ecx, %r11d
jge 0x4d1ed
xorpd %xmm2, %xmm2
movq %r14, %rdi
movl %r14d, %r9d
movl 0x60(%rsp), %ebp
movl %ebx, %r14d
cmpl %r9d, %edx
jle 0x4d199
movl %ebp, %r13d
movsd (%rsi,%r13,8), %xmm3
movl %r14d, %r13d
mulsd (%rsi,%r13,8), %xmm3
addsd %xmm3, %xmm2
addl %eax, %r14d
addl %eax, %ebp
incl %r9d
jmp 0x4d174
movq 0x40(%rsp), %rsi
divsd (%r8,%rsi,8), %xmm2
mulsd %xmm1, %xmm2
movl 0x10(%rsp), %esi
movl 0x20(%rsp), %r9d
movl %r10d, %ebp
cmpl %esi, %edx
jle 0x4d1dd
movl %r9d, %r14d
movl %ebp, %r13d
movsd (%r8,%r14,8), %xmm3
mulsd %xmm2, %xmm3
addsd (%r8,%r13,8), %xmm3
movsd %xmm3, (%r8,%r13,8)
addl %eax, %ebp
addl %eax, %r9d
incl %esi
jmp 0x4d1b4
incl %r11d
incl %ebx
incl %r10d
movq %rdi, %r14
jmp 0x4d156
movl 0x10(%rsp), %r8d
movl 0x20(%rsp), %r9d
movq 0x90(%rsp), %r11
movq 0xe0(%rsp), %rbx
cmpl %r8d, %edx
jle 0x4d227
movl %r9d, %r10d
movsd (%rsi,%r10,8), %xmm2
mulsd %xmm1, %xmm2
movsd %xmm2, (%rsi,%r10,8)
addl %eax, %r9d
incl %r8d
jmp 0x4d207
movl 0x80(%rsp), %r10d
movq 0x40(%rsp), %rdi
jmp 0x4d25f
movq 0x18(%r15), %rsi
movl 0x10(%rsp), %edi
movl 0x20(%rsp), %r8d
cmpl %edi, %edx
jle 0x4d256
movl %r8d, %r9d
andq $0x0, (%rsi,%r9,8)
addl %eax, %r8d
incl %edi
jmp 0x4d243
movl 0x78(%rsp), %esi
movl %esi, %edi
imull %ebx, %edi
movq 0x50(%rsp), %rsi
movsd (%rsi,%rdi,8), %xmm1
addsd 0x6d9f(%rip), %xmm1     # 0x54010
movsd %xmm1, (%rsi,%rdi,8)
movl 0x5c(%rsp), %esi
addl %esi, %r10d
addl %esi, 0x20(%rsp)
decl 0x10(%rsp)
addl %esi, %r11d
addl %esi, 0x60(%rsp)
movq %rbx, %r14
jmp 0x4d0cd
movslq %ecx, %rcx
leal -0x1(%rcx), %eax
xorl %ebp, %ebp
xorl %r14d, %r14d
testq %rcx, %rcx
jle 0x4d904
leaq -0x1(%rcx), %rdx
movl %eax, 0xb4(%rsp)
movl %eax, %esi
movq %rdx, %rax
decq %rsi
movq %rsi, 0x110(%rsp)
movq %rcx, 0x78(%rsp)
addq $-0x2, %rcx
movq %rcx, 0xa8(%rsp)
xorl %ecx, %ecx
movq %rdx, 0x50(%rsp)
cmpl 0xb8(%rsp), %ecx
je 0x4d8f3
movl %ecx, 0x5c(%rsp)
movq 0xd8(%rsp), %rcx
movq 0x18(%r12), %rax
movq 0x110(%rsp), %rdx
movq 0x78(%rsp), %rsi
leal -0x1(%rsi), %r13d
testl %r13d, %r13d
jle 0x4d356
movsd 0x8(%rcx,%rdx,8), %xmm0
andpd %xmm1, %xmm0
addsd %xmm4, %xmm0
ucomisd %xmm4, %xmm0
jne 0x4d329
jnp 0x4d482
movl %esi, %r14d
addl $-0x2, %r14d
movl %edx, %esi
movsd (%rax,%rsi,8), %xmm0
andpd %xmm1, %xmm0
addsd %xmm4, %xmm0
decq %rdx
ucomisd %xmm4, %xmm0
movl %r13d, %esi
jne 0x4d306
jp 0x4d306
leal -0x1(%r13), %r14d
movl %r13d, %ebx
jmp 0x4d358
xorl %ebx, %ebx
testl %r13d, %r13d
cmovlel %ebp, %r13d
xorpd %xmm6, %xmm6
movsd 0x6ca5(%rip), %xmm5     # 0x54010
cmpq 0x78(%rsp), %r13
jge 0x4d47b
movq 0xd8(%rsp), %rax
movsd (%rax,%r13,8), %xmm0
mulsd %xmm0, %xmm5
mulsd %xmm0, %xmm6
movsd %xmm6, (%rax,%r13,8)
movapd %xmm5, %xmm0
andpd %xmm1, %xmm0
addsd %xmm4, %xmm0
ucomisd %xmm4, %xmm0
movq 0x18(%r12), %rax
jne 0x4d3af
jnp 0x4d48b
movsd (%rax,%r13,8), %xmm1
movsd %xmm1, 0x20(%rsp)
movapd %xmm5, %xmm0
movapd %xmm5, 0x10(%rsp)
callq 0x4e1c1
movsd 0x20(%rsp), %xmm6
movapd 0x10(%rsp), %xmm5
movq %r12, %r10
movq 0x18(%r12), %rax
movsd %xmm0, (%rax,%r13,8)
movsd 0x6c24(%rip), %xmm1     # 0x54010
divsd %xmm0, %xmm1
mulsd %xmm1, %xmm6
xorpd 0x6cc4(%rip), %xmm5     # 0x540c0
mulsd %xmm1, %xmm5
movl (%r15), %eax
movl 0x4(%r15), %ecx
movq 0x18(%r15), %rdx
testl %ecx, %ecx
cmovlel %ebp, %ecx
movl %r14d, %esi
movl %r13d, %edi
subq $0x1, %rcx
jb 0x4d460
movl %esi, %r8d
movsd (%rdx,%r8,8), %xmm0
movl %edi, %r9d
movsd (%rdx,%r9,8), %xmm1
movapd %xmm5, %xmm2
mulsd %xmm1, %xmm2
movapd %xmm5, %xmm3
mulsd %xmm0, %xmm3
mulsd %xmm6, %xmm0
addsd %xmm2, %xmm0
movsd %xmm0, (%rdx,%r8,8)
mulsd %xmm6, %xmm1
subsd %xmm3, %xmm1
movsd %xmm1, (%rdx,%r9,8)
addl %eax, %edi
addl %eax, %esi
jmp 0x4d416
incq %r13
movaps 0x6c76(%rip), %xmm1     # 0x540e0
movsd 0xa0(%rsp), %xmm4
movq %r10, %r12
jmp 0x4d36b
movq 0x18(%r12), %rax
jmp 0x4d48b
leal -0x1(%rsi), %ebx
addl $-0x2, %esi
movl %esi, %r14d
movq 0x50(%rsp), %rdx
movsd (%rax,%rdx,8), %xmm2
cmpl %edx, %ebx
movl %ebx, 0xbc(%rsp)
jne 0x4d4f3
xorpd %xmm0, %xmm0
ucomisd %xmm2, %xmm0
jbe 0x4d8ee
xorpd 0x6c0a(%rip), %xmm2     # 0x540c0
movq 0x50(%rsp), %rcx
movlpd %xmm2, (%rax,%rcx,8)
movl (%r15), %eax
movq 0x38(%rsp), %rdx
movq 0x18(%rdx), %rcx
movl (%rdx), %edx
testl %eax, %eax
cmovlel %ebp, %eax
subq $0x1, %rax
jb 0x4d8d4
movl %ebx, %edi
movsd (%rcx,%rdi,8), %xmm0
xorps 0x6bd5(%rip), %xmm0     # 0x540c0
movlps %xmm0, (%rcx,%rdi,8)
addl %edx, %ebx
jmp 0x4d4d3
movl %ebx, %ebx
movsd (%rax,%rbx,8), %xmm0
movaps %xmm0, 0x20(%rsp)
movq 0x78(%rsp), %rcx
movsd -0x10(%rax,%rcx,8), %xmm5
movq 0xd8(%rsp), %rax
movsd -0x10(%rax,%rcx,8), %xmm0
movsd (%rax,%rdx,8), %xmm3
movsd %xmm3, 0x10(%rsp)
movapd %xmm5, %xmm4
subsd %xmm2, %xmm4
movapd %xmm2, %xmm1
addsd %xmm5, %xmm1
movapd %xmm5, 0x80(%rsp)
mulsd %xmm4, %xmm1
movapd %xmm0, %xmm4
subsd %xmm3, %xmm4
addsd %xmm3, %xmm0
mulsd %xmm4, %xmm0
addsd %xmm1, %xmm0
movapd %xmm3, %xmm4
addsd %xmm3, %xmm4
mulsd %xmm5, %xmm4
movsd 0x6b50(%rip), %xmm1     # 0x540b8
maxsd %xmm4, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x40(%rsp)
movsd 0x6a92(%rip), %xmm1     # 0x54010
movapd %xmm2, 0x60(%rsp)
callq 0x4e1c1
movapd 0x80(%rsp), %xmm8
movapd 0x20(%rsp), %xmm3
movapd %xmm3, %xmm1
movapd 0x60(%rsp), %xmm2
subsd %xmm2, %xmm1
addsd %xmm3, %xmm2
mulsd %xmm1, %xmm2
movapd %xmm2, %xmm4
xorpd %xmm1, %xmm1
movsd 0x40(%rsp), %xmm5
cmplesd %xmm5, %xmm1
movapd %xmm1, %xmm2
andpd %xmm0, %xmm2
xorpd 0x6aee(%rip), %xmm0     # 0x540c0
andnpd %xmm0, %xmm1
orpd %xmm2, %xmm1
addsd %xmm5, %xmm1
divsd %xmm1, %xmm8
movsd 0x10(%rsp), %xmm0
subsd %xmm0, %xmm8
mulsd %xmm0, %xmm8
addsd %xmm4, %xmm8
movsd 0x6ab8(%rip), %xmm0     # 0x540b8
maxsd %xmm3, %xmm0
divsd %xmm0, %xmm8
movq %rbx, %r14
movsd 0x69fc(%rip), %xmm7     # 0x54010
movapd %xmm7, %xmm1
movslq %r14d, %rax
cmpq 0xa8(%rsp), %rax
jg 0x4d891
leaq 0x1(%r14), %r13
movq 0xd8(%rsp), %rax
movsd 0x8(%rax,%r14,8), %xmm0
mulsd %xmm0, %xmm1
movapd %xmm1, 0x10(%rsp)
mulsd %xmm0, %xmm7
movapd %xmm7, 0x40(%rsp)
movq 0x18(%r12), %rax
movsd 0x8(%rax,%r14,8), %xmm0
movsd %xmm0, 0x60(%rsp)
movapd %xmm8, %xmm0
movapd %xmm3, 0x20(%rsp)
movapd %xmm8, 0x80(%rsp)
callq 0x4e1c1
movsd 0x60(%rsp), %xmm2
movapd 0x20(%rsp), %xmm6
movapd 0x10(%rsp), %xmm5
movq 0xd8(%rsp), %rax
movsd %xmm0, (%rax,%r14,8)
movsd 0x6a14(%rip), %xmm1     # 0x540b8
maxsd %xmm0, %xmm1
unpcklpd 0x80(%rsp), %xmm5       # xmm5 = xmm5[0],mem[0]
unpcklpd %xmm1, %xmm1            # xmm1 = xmm1[0,0]
divpd %xmm1, %xmm5
movapd 0x40(%rsp), %xmm0
mulsd %xmm5, %xmm0
movapd %xmm6, %xmm1
xorpd 0x69f1(%rip), %xmm1     # 0x540c0
mulsd %xmm5, %xmm1
movapd %xmm1, 0x80(%rsp)
movapd %xmm2, %xmm1
mulsd %xmm5, %xmm1
movl (%r15), %eax
movq 0x38(%rsp), %rdx
movq 0x18(%rdx), %rcx
testl %eax, %eax
cmovlel %ebp, %eax
movl (%rdx), %edx
movapd %xmm5, %xmm9
unpckhpd %xmm5, %xmm9            # xmm9 = xmm9[1],xmm5[1]
movl %r14d, %esi
subq $0x1, %rax
jb 0x4d750
movl %esi, %edi
movsd (%rcx,%rdi,8), %xmm8
leal 0x1(%rsi), %r8d
movsd (%rcx,%r8,8), %xmm2
movapd %xmm5, %xmm3
mulsd %xmm2, %xmm3
movapd %xmm5, %xmm4
mulsd %xmm8, %xmm4
mulsd %xmm9, %xmm8
addsd %xmm3, %xmm8
movsd %xmm8, (%rcx,%rdi,8)
mulsd %xmm9, %xmm2
subsd %xmm4, %xmm2
movsd %xmm2, (%rcx,%r8,8)
addl %edx, %esi
jmp 0x4d704
movapd %xmm9, 0x90(%rsp)
mulsd %xmm9, %xmm6
addsd %xmm0, %xmm6
movapd %xmm6, 0x20(%rsp)
movapd %xmm6, %xmm0
movapd %xmm5, 0x10(%rsp)
movapd %xmm1, 0xe0(%rsp)
callq 0x4e1c1
movapd 0x10(%rsp), %xmm1
movq 0x18(%r12), %rax
movsd %xmm0, (%rax,%r14,8)
ucomisd 0x6896(%rip), %xmm0     # 0x54030
jne 0x4d79e
jnp 0x4d7cd
movsd 0x6912(%rip), %xmm2     # 0x540b8
maxsd %xmm0, %xmm2
movsd 0x685e(%rip), %xmm1     # 0x54010
divsd %xmm2, %xmm1
movapd 0xe0(%rsp), %xmm0
unpcklpd 0x20(%rsp), %xmm0       # xmm0 = xmm0[0],mem[0]
unpcklpd %xmm1, %xmm1            # xmm1 = xmm1[0,0]
mulpd %xmm0, %xmm1
movapd 0x40(%rsp), %xmm8
movapd 0x90(%rsp), %xmm2
mulsd %xmm2, %xmm8
addsd 0x80(%rsp), %xmm8
movsd 0x60(%rsp), %xmm9
mulsd %xmm2, %xmm9
movapd %xmm9, %xmm6
mulsd %xmm1, %xmm6
movapd %xmm1, %xmm0
xorpd 0x68b3(%rip), %xmm0     # 0x540c0
mulsd %xmm8, %xmm0
movl (%r15), %eax
movl 0x4(%r15), %ecx
movq 0x18(%r15), %rdx
testl %ecx, %ecx
cmovlel %ebp, %ecx
movapd %xmm1, %xmm7
unpckhpd %xmm1, %xmm7            # xmm7 = xmm7[1],xmm1[1]
subq $0x1, %rcx
jb 0x4d870
movl %r14d, %esi
movsd (%rdx,%rsi,8), %xmm2
leal 0x1(%r14), %edi
movsd (%rdx,%rdi,8), %xmm3
movapd %xmm1, %xmm4
mulsd %xmm3, %xmm4
movapd %xmm1, %xmm5
mulsd %xmm2, %xmm5
mulsd %xmm7, %xmm2
addsd %xmm4, %xmm2
movsd %xmm2, (%rdx,%rsi,8)
mulsd %xmm7, %xmm3
subsd %xmm5, %xmm3
movsd %xmm3, (%rdx,%rdi,8)
addl %eax, %r14d
jmp 0x4d82a
mulsd %xmm7, %xmm8
addsd %xmm6, %xmm8
mulsd %xmm7, %xmm9
addsd %xmm0, %xmm9
movq %r13, %r14
movapd %xmm9, %xmm3
jmp 0x4d618
movq 0xd8(%rsp), %rax
andq $0x0, (%rax,%rbx,8)
movq 0x50(%rsp), %rcx
movsd %xmm8, (%rax,%rcx,8)
movq 0x18(%r12), %rax
movsd %xmm3, (%rax,%rcx,8)
movq %rcx, %rax
movq 0xa8(%rsp), %rcx
movl %ecx, %r14d
movapd 0x6817(%rip), %xmm1     # 0x540e0
movsd 0xa0(%rsp), %xmm4
jmp 0x4d8d9
movq 0x50(%rsp), %rax
movl 0x5c(%rsp), %ecx
incl %ecx
cmpl %eax, 0xbc(%rsp)
jne 0x4d2db
jmp 0x4d8f3
movq 0x50(%rsp), %rax
movq %rax, %rcx
movl 0xb4(%rsp), %eax
decl %eax
jmp 0x4d29f
cmpb $0x0, 0xb0(%rsp)
je 0x4da7d
andq $0x0, 0x108(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0xf0(%rsp)
movb $0x0, 0x100(%rsp)
movq 0x8(%rsp), %rax
movl (%rax), %esi
leaq 0x118(%rsp), %rdi
pushq $0x1
popq %rcx
movl %ecx, %edx
movl %ecx, %r8d
callq 0x6caa
leaq 0xf0(%rsp), %rsi
xorl %ebx, %ebx
movq %r12, %rdi
xorl %edx, %edx
callq 0x4e21a
xorl %r14d, %r14d
movslq 0x4(%r15), %rax
cmpq %rax, %r14
jge 0x4d9dd
movl 0xf4(%rsp), %eax
movq 0x108(%rsp), %rcx
movq 0x18(%r15), %rdx
movl (%r15), %esi
imull %r14d, %esi
movq 0x130(%rsp), %rdi
testl %eax, %eax
cmovlel %ebx, %eax
xorl %r8d, %r8d
cmpq %r8, %rax
je 0x4d9b1
movl (%rcx,%r8,4), %r9d
addl %esi, %r9d
movsd (%rdx,%r9,8), %xmm0
movsd %xmm0, (%rdi,%r8,8)
incq %r8
jmp 0x4d994
movl (%r15), %edi
imulq %r14, %rdi
shlq $0x3, %rdi
addq 0x18(%r15), %rdi
movq 0x130(%rsp), %rsi
movq 0x8(%rsp), %rax
movl (%rax), %edx
shlq $0x3, %rdx
callq 0x4410
incq %r14
jmp 0x4d961
xorl %ebx, %ebx
xorl %r14d, %r14d
movq 0x38(%rsp), %r15
movslq 0x4(%r15), %rax
cmpq %rax, %r14
jge 0x4da63
movl 0xf4(%rsp), %eax
movq 0x108(%rsp), %rcx
movq 0x18(%r15), %rdx
movl (%r15), %esi
imull %r14d, %esi
movq 0x130(%rsp), %rdi
testl %eax, %eax
cmovlel %ebx, %eax
xorl %r8d, %r8d
cmpq %r8, %rax
je 0x4da37
movl (%rcx,%r8,4), %r9d
addl %esi, %r9d
movsd (%rdx,%r9,8), %xmm0
movsd %xmm0, (%rdi,%r8,8)
incq %r8
jmp 0x4da1a
movl (%r15), %edi
imulq %r14, %rdi
shlq $0x3, %rdi
addq 0x18(%r15), %rdi
movq 0x130(%rsp), %rsi
movq 0x8(%rsp), %rax
movl (%rax), %edx
shlq $0x3, %rdx
callq 0x4410
incq %r14
jmp 0x4d9e7
leaq 0x118(%rsp), %rdi
callq 0x6c96
leaq 0xf0(%rsp), %rdi
callq 0x368ee
leaq 0xc0(%rsp), %rdi
callq 0x6c96
movq 0x8(%rsp), %rax
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x118(%rsp), %rdi
callq 0x6c96
jmp 0x4dab6
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x368ee
leaq 0xc0(%rsp), %rdi
callq 0x6c96
movq %rbx, %rdi
callq 0x4950