// File: /workspace/github_cpp_makefile_star2_O1/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<cimg_library::CImg<unsigned char>::Tuint> cimg_library::CImg<unsigned int>::get_index<unsigned char>(cimg_library::CImg<unsigned char> const&, float, bool) const
CImg<typename CImg<t>::Tuint>
    get_index(const CImg<t>& colormap, const float dithering=1, const bool map_indexes=true) const {
      if (colormap._spectrum!=_spectrum)
        throw CImgArgumentException(_cimg_instance
                                    "index(): Instance and specified colormap (%u,%u,%u,%u,%p) "
                                    "have incompatible dimensions.",
                                    cimg_instance,
                                    colormap._width,colormap._height,colormap._depth,colormap._spectrum,colormap._data);

      typedef typename CImg<t>::Tuint tuint;
      if (is_empty()) return CImg<tuint>();
      const unsigned long
        whd = (unsigned long)_width*_height*_depth,
        pwhd = (unsigned long)colormap._width*colormap._height*colormap._depth;
      CImg<tuint> res(_width,_height,_depth,map_indexes?_spectrum:1);
      tuint *ptrd = res._data;
      if (dithering>0) { // Dithered versions.
        const float ndithering = (dithering<0?0:dithering>1?1:dithering)/16;
        Tfloat valm = 0, valM = (Tfloat)max_min(valm);
        if (valm==valM && valm>=0 && valM<=255) { valm = 0; valM = 255; }
        CImg<Tfloat> cache = get_crop(-1,0,0,0,_width,1,0,_spectrum-1);
        Tfloat *cache_current = cache.data(1,0,0,0), *cache_next = cache.data(1,1,0,0);
        const unsigned long cwhd = (unsigned long)cache._width*cache._height*cache._depth;
        switch (_spectrum) {
        case 1 : { // Optimized for scalars.
          cimg_forYZ(*this,y,z) {
            if (y<height()-2) {
              Tfloat *ptrc0 = cache_next; const T *ptrs0 = data(0,y+1,z,0);
              cimg_forX(*this,x) *(ptrc0++) = (Tfloat)*(ptrs0++);
            }
            Tfloat *ptrs0 = cache_current, *ptrsn0 = cache_next;
            cimg_forX(*this,x) {
              const Tfloat _val0 = (Tfloat)*ptrs0, val0 = _val0<valm?valm:_val0>valM?valM:_val0;
              Tfloat distmin = cimg::type<Tfloat>::max(); const t *ptrmin0 = colormap._data;
              for (const t *ptrp0 = colormap._data, *ptrp_end = ptrp0 + pwhd; ptrp0<ptrp_end; ) {
                const Tfloat pval0 = (Tfloat)*(ptrp0++) - val0, dist = pval0*pval0;
                if (dist<distmin) { ptrmin0 = ptrp0 - 1; distmin = dist; }
              }
              const Tfloat err0 = ((*(ptrs0++)=val0) - (Tfloat)*ptrmin0)*ndithering;
              *ptrs0+=7*err0; *(ptrsn0-1)+=3*err0; *(ptrsn0++)+=5*err0; *ptrsn0+=err0;
              if (map_indexes) *(ptrd++) = (tuint)*ptrmin0; else *(ptrd++) = (tuint)(ptrmin0 - colormap._data);
            }
            cimg::swap(cache_current,cache_next);
          }
        } break;
        case 2 : { // Optimized for 2d vectors.
          tuint *ptrd1 = ptrd + whd;
          cimg_forYZ(*this,y,z) {
            if (y<height()-2) {
              Tfloat *ptrc0 = cache_next, *ptrc1 = ptrc0 + cwhd;
              const T *ptrs0 = data(0,y+1,z,0), *ptrs1 = ptrs0 + whd;
              cimg_forX(*this,x) { *(ptrc0++) = (Tfloat)*(ptrs0++); *(ptrc1++) = (Tfloat)*(ptrs1++); }
            }
            Tfloat
              *ptrs0 = cache_current, *ptrs1 = ptrs0 + cwhd,
              *ptrsn0 = cache_next, *ptrsn1 = ptrsn0 + cwhd;
            cimg_forX(*this,x) {
              const Tfloat
                _val0 = (Tfloat)*ptrs0, val0 = _val0<valm?valm:_val0>valM?valM:_val0,
                _val1 = (Tfloat)*ptrs1, val1 = _val1<valm?valm:_val1>valM?valM:_val1;
              Tfloat distmin = cimg::type<Tfloat>::max(); const t *ptrmin0 = colormap._data;
              for (const t *ptrp0 = colormap._data, *ptrp1 = ptrp0 + pwhd, *ptrp_end = ptrp1; ptrp0<ptrp_end; ) {
                const Tfloat
                  pval0 = (Tfloat)*(ptrp0++) - val0, pval1 = (Tfloat)*(ptrp1++) - val1,
                  dist = pval0*pval0 + pval1*pval1;
                if (dist<distmin) { ptrmin0 = ptrp0 - 1; distmin = dist; }
              }
              const t *const ptrmin1 = ptrmin0 + pwhd;
              const Tfloat
                err0 = ((*(ptrs0++)=val0) - (Tfloat)*ptrmin0)*ndithering,
                err1 = ((*(ptrs1++)=val1) - (Tfloat)*ptrmin1)*ndithering;
              *ptrs0+=7*err0; *ptrs1+=7*err1;
              *(ptrsn0-1)+=3*err0; *(ptrsn1-1)+=3*err1;
              *(ptrsn0++)+=5*err0; *(ptrsn1++)+=5*err1;
              *ptrsn0+=err0; *ptrsn1+=err1;
              if (map_indexes) { *(ptrd++) = (tuint)*ptrmin0; *(ptrd1++) = (tuint)*ptrmin1; }
              else *(ptrd++) = (tuint)(ptrmin0 - colormap._data);
            }
            cimg::swap(cache_current,cache_next);
          }
        } break;
        case 3 : { // Optimized for 3d vectors (colors).
          tuint *ptrd1 = ptrd + whd, *ptrd2 = ptrd1 + whd;
          cimg_forYZ(*this,y,z) {
            if (y<height()-2) {
              Tfloat *ptrc0 = cache_next, *ptrc1 = ptrc0 + cwhd, *ptrc2 = ptrc1 + cwhd;
              const T *ptrs0 = data(0,y+1,z,0), *ptrs1 = ptrs0 + whd, *ptrs2 = ptrs1 + whd;
              cimg_forX(*this,x) {
                *(ptrc0++) = (Tfloat)*(ptrs0++); *(ptrc1++) = (Tfloat)*(ptrs1++); *(ptrc2++) = (Tfloat)*(ptrs2++);
              }
            }
            Tfloat
              *ptrs0 = cache_current, *ptrs1 = ptrs0 + cwhd, *ptrs2 = ptrs1 + cwhd,
              *ptrsn0 = cache_next, *ptrsn1 = ptrsn0 + cwhd, *ptrsn2 = ptrsn1 + cwhd;
            cimg_forX(*this,x) {
              const Tfloat
                _val0 = (Tfloat)*ptrs0, val0 = _val0<valm?valm:_val0>valM?valM:_val0,
                _val1 = (Tfloat)*ptrs1, val1 = _val1<valm?valm:_val1>valM?valM:_val1,
                _val2 = (Tfloat)*ptrs2, val2 = _val2<valm?valm:_val2>valM?valM:_val2;
              Tfloat distmin = cimg::type<Tfloat>::max(); const t *ptrmin0 = colormap._data;
              for (const t *ptrp0 = colormap._data, *ptrp1 = ptrp0 + pwhd, *ptrp2 = ptrp1 + pwhd,
                     *ptrp_end = ptrp1; ptrp0<ptrp_end; ) {
                const Tfloat
                  pval0 = (Tfloat)*(ptrp0++) - val0,
                  pval1 = (Tfloat)*(ptrp1++) - val1,
                  pval2 = (Tfloat)*(ptrp2++) - val2,
                  dist = pval0*pval0 + pval1*pval1 + pval2*pval2;
                if (dist<distmin) { ptrmin0 = ptrp0 - 1; distmin = dist; }
              }
              const t *const ptrmin1 = ptrmin0 + pwhd, *const ptrmin2 = ptrmin1 + pwhd;
              const Tfloat
                err0 = ((*(ptrs0++)=val0) - (Tfloat)*ptrmin0)*ndithering,
                err1 = ((*(ptrs1++)=val1) - (Tfloat)*ptrmin1)*ndithering,
                err2 = ((*(ptrs2++)=val2) - (Tfloat)*ptrmin2)*ndithering;

              *ptrs0+=7*err0; *ptrs1+=7*err1; *ptrs2+=7*err2;
              *(ptrsn0-1)+=3*err0; *(ptrsn1-1)+=3*err1; *(ptrsn2-1)+=3*err2;
              *(ptrsn0++)+=5*err0; *(ptrsn1++)+=5*err1; *(ptrsn2++)+=5*err2;
              *ptrsn0+=err0; *ptrsn1+=err1; *ptrsn2+=err2;

              if (map_indexes) {
                *(ptrd++) = (tuint)*ptrmin0; *(ptrd1++) = (tuint)*ptrmin1; *(ptrd2++) = (tuint)*ptrmin2;
              } else *(ptrd++) = (tuint)(ptrmin0 - colormap._data);
            }
            cimg::swap(cache_current,cache_next);
          }
        } break;
        default : // Generic version
          cimg_forYZ(*this,y,z) {
            if (y<height()-2) {
              Tfloat *ptrc = cache_next;
              cimg_forC(*this,c) {
                Tfloat *_ptrc = ptrc; const T *_ptrs = data(0,y+1,z,c);
                cimg_forX(*this,x) *(_ptrc++) = (Tfloat)*(_ptrs++);
                ptrc+=cwhd;
              }
            }
            Tfloat *ptrs = cache_current, *ptrsn = cache_next;
            cimg_forX(*this,x) {
              Tfloat distmin = cimg::type<Tfloat>::max(); const t *ptrmin = colormap._data;
              for (const t *ptrp = colormap._data, *ptrp_end = ptrp + pwhd; ptrp<ptrp_end; ++ptrp) {
                Tfloat dist = 0; Tfloat *_ptrs = ptrs; const t *_ptrp = ptrp;
                cimg_forC(*this,c) {
                  const Tfloat _val = *_ptrs, val = _val<valm?valm:_val>valM?valM:_val;
                  dist+=cimg::sqr((*_ptrs=val) - (Tfloat)*_ptrp); _ptrs+=cwhd; _ptrp+=pwhd;
                }
                if (dist<distmin) { ptrmin = ptrp; distmin = dist; }
              }
              const t *_ptrmin = ptrmin; Tfloat *_ptrs = ptrs++, *_ptrsn = (ptrsn++)-1;
              cimg_forC(*this,c) {
                const Tfloat err = (*(_ptrs++) - (Tfloat)*_ptrmin)*ndithering;
                *_ptrs+=7*err; *(_ptrsn++)+=3*err; *(_ptrsn++)+=5*err; *_ptrsn+=err;
                _ptrmin+=pwhd; _ptrs+=cwhd-1; _ptrsn+=cwhd-2;
              }
              if (map_indexes) {
                tuint *_ptrd = ptrd++;
                cimg_forC(*this,c) { *_ptrd = (tuint)*ptrmin; _ptrd+=whd; ptrmin+=pwhd; }
              }
              else *(ptrd++) = (tuint)(ptrmin - colormap._data);
            }
            cimg::swap(cache_current,cache_next);
          }
        }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movl %ecx, 0x1c(%rsp)
movq %rsi, %r14
movq %rdi, 0x48(%rsp)
movl 0xc(%rsi), %eax
movq %rdx, 0x40(%rsp)
cmpl %eax, 0xc(%rdx)
jne 0x32ff2
testl %eax, %eax
je 0x31fcc
cmpq $0x0, 0x18(%r14)
je 0x31fcc
movl (%r14), %esi
testl %esi, %esi
je 0x31fcc
movl 0x4(%r14), %edx
testl %edx, %edx
je 0x31fcc
movl 0x8(%r14), %ecx
testl %ecx, %ecx
je 0x31fcc
movq %rdx, %r15
imulq %rsi, %r15
imulq %rcx, %r15
movq 0x40(%rsp), %r9
movl (%r9), %edi
movl 0x4(%r9), %r8d
imulq %rdi, %r8
movl 0x8(%r9), %r12d
imulq %r8, %r12
cmpb $0x0, 0x1c(%rsp)
movl $0x1, %r8d
cmovnel %eax, %r8d
movq 0x48(%rsp), %rbx
movq %rbx, %rdi
movss %xmm0, 0x8(%rsp)
callq 0x1dcd4
movq 0x18(%rbx), %r13
xorps %xmm0, %xmm0
movss 0x8(%rsp), %xmm1
ucomiss %xmm0, %xmm1
movq %r14, 0x20(%rsp)
jbe 0x31fe8
leaq 0x34(%rsp), %rsi
movl $0x0, (%rsi)
movq %r14, %rdi
callq 0x36a08
movl (%rax), %eax
cvtsi2ss %rax, %xmm2
cmpl $0xff, %eax
ja 0x31d04
movss 0x34(%rsp), %xmm0
ucomiss %xmm2, %xmm0
jne 0x31d04
jp 0x31d04
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jb 0x31d04
movl $0x0, 0x34(%rsp)
movss 0x3f5c0(%rip), %xmm2    # 0x712c4
movss %xmm2, 0x28(%rsp)
movl (%r14), %eax
movl 0xc(%r14), %r10d
decl %r10d
subq $0x8, %rsp
xorl %r11d, %r11d
leaq 0xb0(%rsp), %rdi
movq %r14, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %r11
pushq %r10
pushq %r11
pushq $0x1
pushq %rax
callq 0x331ee
addq $0x30, %rsp
leaq 0xc8(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x36b1e
movss 0x3f54d(%rip), %xmm11   # 0x712b0
minss 0x8(%rsp), %xmm11
cmpb $0x0, 0xb8(%rsp)
jne 0x31d94
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x31d94
movss %xmm11, 0x8(%rsp)
callq 0x4680
movss 0x8(%rsp), %xmm11
mulss 0x3f54f(%rip), %xmm11   # 0x712ec
movq 0xe0(%rsp), %rax
leaq 0x4(%rax), %rcx
movq %rcx, 0x10(%rsp)
movl 0xc8(%rsp), %edx
movl 0xcc(%rsp), %ecx
movl 0xd0(%rsp), %esi
movq %rax, 0x78(%rsp)
leaq (%rax,%rdx,4), %rax
addq $0x4, %rax
imulq %rdx, %rcx
imulq %rsi, %rcx
movl 0x8(%r14), %edx
movl 0xc(%r14), %esi
cmpl $0x3, %esi
je 0x328cb
cmpl $0x2, %esi
je 0x325ee
cmpl $0x1, %esi
jne 0x32d18
testl %edx, %edx
jle 0x32fc2
xorl %ecx, %ecx
movss 0x3f4db(%rip), %xmm0    # 0x712e8
movss 0x3f4db(%rip), %xmm1    # 0x712f0
movsd 0x3f393(%rip), %xmm2    # 0x711b0
xorl %edi, %edi
movq %rdi, 0x8(%rsp)
movl 0x4(%r14), %ebx
testl %ebx, %ebx
jle 0x31fa4
movq 0x18(%r14), %rdx
movq %rdx, 0x20(%rsp)
movq 0x40(%rsp), %rdx
movq 0x18(%rdx), %rdx
leaq (%rdx,%r12), %r9
xorl %r10d, %r10d
movl $0x1, %r11d
movq %rax, %rsi
leal -0x2(%rbx), %eax
cmpl %eax, %r10d
jge 0x31e96
movslq (%r14), %rax
testq %rax, %rax
jle 0x31e96
movl %ebx, %r8d
imulq %rcx, %r8
imulq %rax, %r8
movl %eax, %ebx
imull %r11d, %ebx
leaq (%r8,%rbx,4), %r8
addq 0x20(%rsp), %r8
xorl %ebx, %ebx
movl (%r8,%rbx,4), %r15d
xorps %xmm3, %xmm3
cvtsi2ss %r15, %xmm3
movss %xmm3, (%rsi,%rbx,4)
incq %rbx
cmpl %ebx, %eax
jne 0x31e7e
cmpl $0x0, (%r14)
jle 0x31f85
xorl %eax, %eax
movq 0x10(%rsp), %rbx
movq %rsi, %r15
movss (%rbx), %xmm3
movss 0x34(%rsp), %xmm4
movss 0x28(%rsp), %xmm5
minss %xmm3, %xmm5
cmpltss %xmm4, %xmm3
movaps %xmm3, %xmm6
andnps %xmm5, %xmm6
andps %xmm4, %xmm3
orps %xmm6, %xmm3
movq %rdx, %rbp
testq %r12, %r12
jle 0x31f0d
movaps %xmm0, %xmm4
movq %rdx, %rbp
movq %rdx, %r8
movzbl (%r8), %edi
xorps %xmm5, %xmm5
cvtsi2ss %edi, %xmm5
subss %xmm3, %xmm5
mulss %xmm5, %xmm5
ucomiss %xmm5, %xmm4
cmovaq %r8, %rbp
leaq 0x1(%r8), %rdi
minss %xmm4, %xmm5
movaps %xmm5, %xmm4
movq %rdi, %r8
cmpq %r9, %rdi
jb 0x31ee0
movss %xmm3, (%rbx)
movzbl (%rbp), %r8d
xorps %xmm4, %xmm4
cvtsi2ss %r8d, %xmm4
subss %xmm4, %xmm3
mulss %xmm11, %xmm3
movaps %xmm3, %xmm4
mulss %xmm1, %xmm4
addss 0x4(%rbx), %xmm4
movss %xmm4, 0x4(%rbx)
movsd -0x4(%r15), %xmm4
movaps %xmm3, %xmm5
unpcklps %xmm3, %xmm5            # xmm5 = xmm5[0],xmm3[0],xmm5[1],xmm3[1]
mulps %xmm2, %xmm5
addps %xmm4, %xmm5
movlps %xmm5, -0x4(%r15)
addss 0x4(%r15), %xmm3
movss %xmm3, 0x4(%r15)
cmpb $0x0, 0x1c(%rsp)
je 0x31f68
movzbl (%rbp), %ebp
jmp 0x31f6a
subl %edx, %ebp
addq $0x4, %rbx
addq $0x4, %r15
movl %ebp, (%r13)
addq $0x4, %r13
incl %eax
cmpl (%r14), %eax
jl 0x31eaa
incl %r10d
movl 0x4(%r14), %ebx
incl %r11d
movq 0x10(%rsp), %rax
movq %rsi, 0x10(%rsp)
cmpl %ebx, %r10d
jl 0x31e4f
jmp 0x31fa9
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdi
incq %rdi
movslq 0x8(%r14), %rdx
addq $0x4, %rcx
movq %rsi, 0x10(%rsp)
cmpq %rdx, %rdi
jl 0x31e1f
jmp 0x32fc2
movq 0x48(%rsp), %rax
movq $0x0, 0x18(%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movb $0x0, 0x10(%rax)
jmp 0x32fe0
movl 0x8(%r14), %eax
movl 0xc(%r14), %ecx
cmpl $0x1, %ecx
je 0x3233f
cmpl $0x2, %ecx
je 0x321db
cmpl $0x3, %ecx
jne 0x32457
testl %eax, %eax
jle 0x32fdb
movq 0x18(%r14), %rax
movq %rax, 0x38(%rsp)
movq $0x0, 0x8(%rsp)
movss 0x3f2bb(%rip), %xmm0    # 0x712e8
movl 0x4(%r14), %eax
testl %eax, %eax
jle 0x321bc
movq 0x40(%rsp), %rcx
movq 0x18(%rcx), %rdi
leaq (%rdi,%r12), %rsi
movq $0x0, 0x28(%rsp)
movl (%r14), %ecx
testq %rcx, %rcx
je 0x321a2
movq 0x28(%rsp), %r14
movl %r14d, %edx
imull %ecx, %edx
movl %eax, %eax
movq 0x8(%rsp), %rbx
imulq %rbx, %rax
imulq %rcx, %rax
movq 0x38(%rsp), %r8
leaq (%r8,%rdx,4), %rdx
leaq (%rdx,%rax,4), %r8
leaq (%r8,%rcx,4), %r9
leaq (%r8,%r15,4), %r10
leaq (%r10,%r15,4), %r11
movq 0x48(%rsp), %rcx
movl (%rcx), %eax
movl 0x4(%rcx), %ecx
movq %r14, %rdx
imulq %rax, %rdx
leaq (,%rdx,4), %rdx
addq %r13, %rdx
imulq %rbx, %rax
imulq %rax, %rcx
leaq (%rdx,%rcx,4), %rbx
leaq (%rbx,%r15,4), %rbp
leaq (,%r15,4), %rax
addq %rbp, %rax
movq %rdi, %rdx
testq %r12, %r12
jle 0x3215b
movl (%r8), %ecx
xorps %xmm1, %xmm1
cvtsi2ss %rcx, %xmm1
movl (%r10), %ecx
xorps %xmm2, %xmm2
cvtsi2ss %rcx, %xmm2
movl (%r11), %ecx
xorps %xmm3, %xmm3
cvtsi2ss %rcx, %xmm3
movq %rdi, %rcx
movq %rdi, %rdx
movaps %xmm0, %xmm4
movzbl (%rcx), %r14d
xorps %xmm5, %xmm5
cvtsi2ss %r14d, %xmm5
subss %xmm1, %xmm5
movzbl (%rcx,%r12), %r14d
xorps %xmm6, %xmm6
cvtsi2ss %r14d, %xmm6
subss %xmm2, %xmm6
movzbl (%rcx,%r12,2), %r14d
xorps %xmm7, %xmm7
cvtsi2ss %r14d, %xmm7
subss %xmm3, %xmm7
mulss %xmm6, %xmm6
mulss %xmm5, %xmm5
addss %xmm6, %xmm5
mulss %xmm7, %xmm7
addss %xmm5, %xmm7
ucomiss %xmm7, %xmm4
cmovaq %rcx, %rdx
leaq 0x1(%rcx), %r14
minss %xmm4, %xmm7
movq %r14, %rcx
movaps %xmm7, %xmm4
cmpq %rsi, %r14
jb 0x320fb
cmpb $0x0, 0x1c(%rsp)
je 0x32180
movzbl (%rdx), %ecx
movl %ecx, (%rbx)
movzbl (%rdx,%r12), %ecx
movl %ecx, (%rbp)
addq $0x4, %rbp
movzbl (%rdx,%r12,2), %ecx
movl %ecx, (%rax)
addq $0x4, %rax
jmp 0x32184
subl %edi, %edx
movl %edx, (%rbx)
movq 0x20(%rsp), %r14
addq $0x4, %r8
addq $0x4, %r10
addq $0x4, %r11
addq $0x4, %rbx
cmpq %r9, %r8
jb 0x320c5
movq 0x28(%rsp), %rdx
incq %rdx
movslq 0x4(%r14), %rax
movq %rdx, 0x28(%rsp)
cmpq %rax, %rdx
jl 0x3204f
movq 0x8(%rsp), %rdx
incq %rdx
movslq 0x8(%r14), %rax
movq %rdx, 0x8(%rsp)
cmpq %rax, %rdx
jl 0x3202d
jmp 0x32fdb
testl %eax, %eax
jle 0x32fdb
movq 0x18(%r14), %rax
movq %rax, 0x28(%rsp)
xorl %ecx, %ecx
movss 0x3f0f2(%rip), %xmm0    # 0x712e8
movl 0x4(%r14), %edx
testl %edx, %edx
jle 0x3232a
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rax
leaq (%rax,%r12), %rsi
xorl %edi, %edi
movl (%r14), %r9d
testq %r9, %r9
je 0x3231a
movl %edi, %r8d
imull %r9d, %r8d
movl %edx, %edx
imulq %rcx, %rdx
imulq %r9, %rdx
movq 0x28(%rsp), %r10
leaq (%r10,%r8,4), %r8
leaq (%r8,%rdx,4), %r8
leaq (%r8,%r9,4), %r9
leaq (%r8,%r15,4), %r10
movq 0x48(%rsp), %r11
movl (%r11), %edx
movl 0x4(%r11), %r11d
movq %rdi, %rbx
imulq %rdx, %rbx
leaq (,%rbx,4), %rbx
addq %r13, %rbx
imulq %rcx, %rdx
imulq %rdx, %r11
leaq (%rbx,%r11,4), %r11
leaq (%r11,%r15,4), %rbx
movq %rax, %rbp
testq %r12, %r12
jle 0x322df
movl (%r8), %edx
xorps %xmm1, %xmm1
cvtsi2ss %rdx, %xmm1
movl (%r10), %edx
xorps %xmm2, %xmm2
cvtsi2ss %rdx, %xmm2
movq %rax, %rdx
movq %rax, %rbp
movaps %xmm0, %xmm3
movzbl (%rdx), %r14d
xorps %xmm4, %xmm4
cvtsi2ss %r14d, %xmm4
movzbl (%rdx,%r12), %r14d
xorps %xmm5, %xmm5
cvtsi2ss %r14d, %xmm5
subss %xmm1, %xmm4
subss %xmm2, %xmm5
mulss %xmm5, %xmm5
mulss %xmm4, %xmm4
addss %xmm5, %xmm4
ucomiss %xmm4, %xmm3
cmovaq %rdx, %rbp
leaq 0x1(%rdx), %r14
minss %xmm3, %xmm4
movq %r14, %rdx
movaps %xmm4, %xmm3
cmpq %rsi, %r14
jb 0x32298
cmpb $0x0, 0x1c(%rsp)
je 0x322fb
movzbl (%rbp), %edx
movl %edx, (%r11)
movzbl (%rbp,%r12), %edx
movl %edx, (%rbx)
addq $0x4, %rbx
jmp 0x32300
subl %eax, %ebp
movl %ebp, (%r11)
movq 0x20(%rsp), %r14
addq $0x4, %r8
addq $0x4, %r10
addq $0x4, %r11
cmpq %r9, %r8
jb 0x32271
incq %rdi
movslq 0x4(%r14), %rdx
cmpq %rdx, %rdi
jl 0x32211
incq %rcx
movslq 0x8(%r14), %rax
cmpq %rax, %rcx
jl 0x321f6
jmp 0x32fdb
testl %eax, %eax
jle 0x32fdb
movq 0x18(%r14), %rax
xorl %ecx, %ecx
movss 0x3ef93(%rip), %xmm0    # 0x712e8
movl 0x4(%r14), %r8d
testl %r8d, %r8d
jle 0x32442
movq 0x40(%rsp), %rdx
movq 0x18(%rdx), %rdx
leaq (%rdx,%r12), %rsi
xorl %edi, %edi
movl (%r14), %r9d
testq %r9, %r9
je 0x32432
movl %edi, %r10d
imull %r9d, %r10d
movl %r8d, %r8d
imulq %rcx, %r8
imulq %r9, %r8
leaq (%rax,%r10,4), %r10
leaq (%r10,%r8,4), %r8
leaq (%r8,%r9,4), %r9
movq 0x48(%rsp), %r11
movl (%r11), %r10d
movl 0x4(%r11), %r11d
movq %rdi, %rbx
imulq %r10, %rbx
leaq (,%rbx,4), %rbx
addq %r13, %rbx
imulq %rcx, %r10
imulq %r10, %r11
leaq (%rbx,%r11,4), %r10
movq %rdx, %r11
testq %r12, %r12
jle 0x3240d
movl (%r8), %r11d
xorps %xmm1, %xmm1
cvtsi2ss %r11, %xmm1
movq %rdx, %rbx
movq %rdx, %r11
movaps %xmm0, %xmm2
movzbl (%rbx), %ebp
xorps %xmm3, %xmm3
cvtsi2ss %ebp, %xmm3
subss %xmm1, %xmm3
mulss %xmm3, %xmm3
ucomiss %xmm3, %xmm2
cmovaq %rbx, %r11
leaq 0x1(%rbx), %r14
minss %xmm2, %xmm3
movq %r14, %rbx
movaps %xmm3, %xmm2
cmpq %rsi, %r14
jb 0x323e1
cmpb $0x0, 0x1c(%rsp)
je 0x3241a
movzbl (%r11), %r11d
jmp 0x3241d
subl %edx, %r11d
movq 0x20(%rsp), %r14
addq $0x4, %r8
movl %r11d, (%r10)
addq $0x4, %r10
cmpq %r9, %r8
jb 0x323c5
incq %rdi
movslq 0x4(%r14), %r8
cmpq %r8, %rdi
jl 0x32371
incq %rcx
movslq 0x8(%r14), %rdx
cmpq %rdx, %rcx
jl 0x32355
jmp 0x32fdb
testl %eax, %eax
jle 0x32fdb
movq 0x18(%r14), %rax
movq %rax, 0x38(%rsp)
shlq $0x2, %r15
movq $0x0, 0x8(%rsp)
movss 0x3ee6b(%rip), %xmm0    # 0x712e8
movl 0x4(%r14), %eax
testl %eax, %eax
jle 0x325cf
movq 0x40(%rsp), %rcx
movq 0x18(%rcx), %rdi
leaq (%rdi,%r12), %rsi
movq $0x0, 0x28(%rsp)
movl (%r14), %ecx
testq %rcx, %rcx
je 0x325b5
movq 0x28(%rsp), %r11
movl %r11d, %edx
imull %ecx, %edx
movl %eax, %eax
movq 0x8(%rsp), %r10
imulq %r10, %rax
imulq %rcx, %rax
movq 0x38(%rsp), %r8
leaq (%r8,%rdx,4), %rdx
leaq (%rdx,%rax,4), %rax
leaq (%rax,%rcx,4), %r9
movq 0x48(%rsp), %rdx
movl (%rdx), %ecx
movl 0x4(%rdx), %edx
movq %r11, %r8
imulq %rcx, %r8
leaq (,%r8,4), %r8
addq %r13, %r8
imulq %r10, %rcx
imulq %rcx, %rdx
leaq (%r8,%rdx,4), %r10
movq %rdi, %r11
testq %r12, %r12
jle 0x3256a
movq 0x20(%rsp), %rcx
movl 0xc(%rcx), %ecx
movq %rdi, %rdx
movq %rdi, %r11
movaps %xmm0, %xmm1
xorps %xmm2, %xmm2
testl %ecx, %ecx
jle 0x32554
movq %rax, %r8
movl %ecx, %ebx
movq %rdx, %rbp
movl (%r8), %r14d
xorps %xmm3, %xmm3
cvtsi2ss %r14, %xmm3
movzbl (%rbp), %r14d
xorps %xmm4, %xmm4
cvtsi2ss %r14d, %xmm4
subss %xmm4, %xmm3
mulss %xmm3, %xmm3
addss %xmm3, %xmm2
addq %r12, %rbp
addq %r15, %r8
decl %ebx
jne 0x32526
ucomiss %xmm2, %xmm1
cmovaq %rdx, %r11
minss %xmm1, %xmm2
incq %rdx
movaps %xmm2, %xmm1
cmpq %rsi, %rdx
jb 0x32517
cmpb $0x0, 0x1c(%rsp)
je 0x32599
movq 0x20(%rsp), %r14
cmpl $0x0, 0xc(%r14)
jle 0x325a4
xorl %ecx, %ecx
movq %r10, %rdx
movzbl (%r11), %r8d
movl %r8d, (%rdx)
addq %r12, %r11
incl %ecx
addq %r15, %rdx
cmpl 0xc(%r14), %ecx
jl 0x32582
jmp 0x325a4
subl %edi, %r11d
movl %r11d, (%r10)
movq 0x20(%rsp), %r14
addq $0x4, %r10
addq $0x4, %rax
cmpq %r9, %rax
jb 0x324fe
movq 0x28(%rsp), %rdx
incq %rdx
movslq 0x4(%r14), %rax
movq %rdx, 0x28(%rsp)
cmpq %rax, %rdx
jl 0x3249f
movq 0x8(%rsp), %rdx
incq %rdx
movslq 0x8(%r14), %rax
movq %rdx, 0x8(%rsp)
cmpq %rax, %rdx
jl 0x3247d
jmp 0x32fdb
testl %edx, %edx
jle 0x32fc2
leaq (,%r15,4), %rdx
addq %r13, %rdx
movq %rdx, 0x20(%rsp)
movq $0x0, 0x50(%rsp)
movss 0x3ecd1(%rip), %xmm0    # 0x712e8
movss 0x3ecd1(%rip), %xmm1    # 0x712f0
movss 0x3ecb9(%rip), %xmm2    # 0x712e0
movss 0x3ecc5(%rip), %xmm3    # 0x712f4
movl 0x4(%r14), %esi
testl %esi, %esi
jle 0x328a2
movq 0x18(%r14), %rdx
movq %rdx, 0x58(%rsp)
movq 0x40(%rsp), %rdx
movq 0x18(%rdx), %r11
leaq (%r11,%r12), %r10
xorl %r9d, %r9d
movq %rax, %rdx
leal -0x2(%rsi), %eax
cmpl %eax, %r9d
jge 0x326b6
movslq (%r14), %rax
testq %rax, %rax
jle 0x326b6
leal 0x1(%r9), %edi
imull %eax, %edi
movq 0x58(%rsp), %r8
leaq (%r8,%rdi,4), %rdi
movl %esi, %esi
imulq 0x50(%rsp), %rsi
imulq %rax, %rsi
leaq (%rdi,%rsi,4), %rdi
movq %rdx, %rsi
movl (%rdi), %r8d
xorps %xmm4, %xmm4
cvtsi2ss %r8, %xmm4
movss %xmm4, (%rsi)
movl (%rdi,%r15,4), %r8d
addq $0x4, %rdi
xorps %xmm4, %xmm4
cvtsi2ss %r8, %xmm4
movss %xmm4, (%rsi,%rcx,4)
addq $0x4, %rsi
decl %eax
jne 0x3268a
movq %r9, 0x38(%rsp)
cmpl $0x0, (%r14)
movq %rdx, 0x8(%rsp)
jle 0x3287c
leaq (%rdx,%rcx,4), %rax
movq 0x10(%rsp), %rsi
leaq (%rsi,%rcx,4), %rbx
xorl %r8d, %r8d
movq %rdx, %rdi
movss (%rsi), %xmm4
movss 0x34(%rsp), %xmm6
movss 0x28(%rsp), %xmm8
movaps %xmm8, %xmm5
minss %xmm4, %xmm5
cmpltss %xmm6, %xmm4
movaps %xmm4, %xmm7
andnps %xmm5, %xmm7
andps %xmm6, %xmm4
orps %xmm7, %xmm4
movss (%rbx), %xmm5
movaps %xmm8, %xmm7
minss %xmm5, %xmm7
cmpltss %xmm6, %xmm5
movaps %xmm5, %xmm8
andnps %xmm7, %xmm8
andps %xmm6, %xmm5
orps %xmm8, %xmm5
movq %r11, %rbp
testq %r12, %r12
jle 0x32782
movaps %xmm0, %xmm6
movq %r11, %rbp
movq %r11, %r9
movzbl (%r9), %edx
xorps %xmm7, %xmm7
cvtsi2ss %edx, %xmm7
movzbl (%r9,%r12), %edx
xorps %xmm8, %xmm8
cvtsi2ss %edx, %xmm8
subss %xmm4, %xmm7
subss %xmm5, %xmm8
mulss %xmm8, %xmm8
mulss %xmm7, %xmm7
addss %xmm8, %xmm7
ucomiss %xmm7, %xmm6
cmovaq %r9, %rbp
leaq 0x1(%r9), %rdx
minss %xmm6, %xmm7
movaps %xmm7, %xmm6
movq %rdx, %r9
cmpq %r10, %rdx
jb 0x32738
movss %xmm4, (%rsi)
movzbl (%rbp), %r9d
xorps %xmm6, %xmm6
cvtsi2ss %r9d, %xmm6
subss %xmm6, %xmm4
mulss %xmm11, %xmm4
movss %xmm5, (%rbx)
movzbl (%rbp,%r12), %r9d
xorps %xmm6, %xmm6
cvtsi2ss %r9d, %xmm6
subss %xmm6, %xmm5
mulss %xmm11, %xmm5
movaps %xmm4, %xmm6
mulss %xmm1, %xmm6
addss 0x4(%rsi), %xmm6
movss %xmm6, 0x4(%rsi)
movaps %xmm5, %xmm6
mulss %xmm1, %xmm6
addss 0x4(%rbx), %xmm6
movss %xmm6, 0x4(%rbx)
movaps %xmm4, %xmm6
mulss %xmm2, %xmm6
addss -0x4(%rdi), %xmm6
movss %xmm6, -0x4(%rdi)
movaps %xmm5, %xmm6
mulss %xmm2, %xmm6
addss -0x4(%rax), %xmm6
movss %xmm6, -0x4(%rax)
movaps %xmm4, %xmm6
mulss %xmm3, %xmm6
addss (%rdi), %xmm6
movss %xmm6, (%rdi)
movaps %xmm5, %xmm6
mulss %xmm3, %xmm6
addss (%rax), %xmm6
movss %xmm6, (%rax)
addss 0x4(%rdi), %xmm4
movss %xmm4, 0x4(%rdi)
addss 0x4(%rax), %xmm5
movss %xmm5, 0x4(%rax)
cmpb $0x0, 0x1c(%rsp)
je 0x32855
movzbl (%rbp), %edx
movl %edx, (%r13)
movzbl (%rbp,%r12), %edx
movq 0x20(%rsp), %r9
movl %edx, (%r9)
addq $0x4, %r9
movq %r9, 0x20(%rsp)
jmp 0x3285c
subl %r11d, %ebp
movl %ebp, (%r13)
addq $0x4, %rsi
addq $0x4, %rbx
addq $0x4, %rdi
addq $0x4, %rax
addq $0x4, %r13
incl %r8d
cmpl (%r14), %r8d
jl 0x326dd
movq 0x38(%rsp), %r9
incl %r9d
movl 0x4(%r14), %esi
movq 0x10(%rsp), %rax
movq 0x8(%rsp), %r8
movq %r8, 0x10(%rsp)
cmpl %esi, %r9d
jl 0x32654
jmp 0x328a7
movq 0x10(%rsp), %r8
movq 0x50(%rsp), %rdi
incq %rdi
movslq 0x8(%r14), %rsi
movq %r8, 0x10(%rsp)
movq %rdi, 0x50(%rsp)
cmpq %rsi, %rdi
jl 0x3262f
jmp 0x32fc2
testl %edx, %edx
jle 0x32fc2
leaq (,%r15,4), %rdx
addq %r13, %rdx
movq %rdx, 0x38(%rsp)
leaq (%rdx,%r15,4), %rdx
movq %rdx, 0x50(%rsp)
leaq (,%r15,4), %rdx
movq %rdx, 0x80(%rsp)
shlq $0x3, %r15
movq $0x0, 0x60(%rsp)
movss 0x3e9d7(%rip), %xmm0    # 0x712e8
movss 0x3e9d7(%rip), %xmm1    # 0x712f0
movss 0x3e9bf(%rip), %xmm2    # 0x712e0
movss 0x3e9cb(%rip), %xmm3    # 0x712f4
xorl %esi, %esi
movq %rsi, 0x88(%rsp)
movl 0x4(%r14), %edx
testl %edx, %edx
jle 0x32ceb
movq 0x18(%r14), %rdi
movq 0x40(%rsp), %rsi
movq 0x18(%rsi), %r8
movq %r8, 0x8(%rsp)
leaq (%r8,%r12), %r10
movq 0x80(%rsp), %rsi
addq %rdi, %rsi
movq %rsi, 0x98(%rsp)
movq %rdi, 0xa0(%rsp)
leaq (%rdi,%r15), %rsi
movq %rsi, 0x90(%rsp)
xorl %esi, %esi
movl $0x1, 0x68(%rsp)
movq %rax, %rbp
leal -0x2(%rdx), %eax
movl %esi, 0x70(%rsp)
cmpl %eax, %esi
jge 0x32a2c
movslq (%r14), %rax
testq %rax, %rax
jle 0x32a2c
movl %edx, %edi
leaq (,%rcx,4), %rdx
addq %rbp, %rdx
leaq (%rdx,%rcx,4), %rsi
imulq 0x60(%rsp), %rdi
imulq %rax, %rdi
movl %eax, %r8d
imull 0x68(%rsp), %r8d
leaq (%rdi,%r8,4), %rdi
movq 0xa0(%rsp), %r8
addq %rdi, %r8
movq 0x98(%rsp), %r9
addq %rdi, %r9
addq 0x90(%rsp), %rdi
xorl %r11d, %r11d
movl (%r8,%r11,4), %ebx
xorps %xmm4, %xmm4
cvtsi2ss %rbx, %xmm4
movss %xmm4, (%rbp,%r11,4)
movl (%r9,%r11,4), %ebx
xorps %xmm4, %xmm4
cvtsi2ss %rbx, %xmm4
movss %xmm4, (%rdx,%r11,4)
movl (%rdi,%r11,4), %ebx
xorps %xmm4, %xmm4
cvtsi2ss %rbx, %xmm4
movss %xmm4, (%rsi,%r11,4)
incq %r11
cmpl %r11d, %eax
jne 0x329ed
movq %rbp, 0x58(%rsp)
cmpl $0x0, (%r14)
jle 0x32cc4
movq 0x58(%rsp), %rdx
leaq (%rdx,%rcx,4), %rax
leaq (%rax,%rcx,4), %rbx
movq 0x10(%rsp), %rsi
leaq (%rsi,%rcx,4), %r9
leaq (%r9,%rcx,4), %r8
xorl %r11d, %r11d
movss (%rsi), %xmm4
movss 0x34(%rsp), %xmm7
movss 0x28(%rsp), %xmm9
movaps %xmm9, %xmm5
minss %xmm4, %xmm5
cmpltss %xmm7, %xmm4
movaps %xmm4, %xmm6
andnps %xmm5, %xmm6
andps %xmm7, %xmm4
orps %xmm6, %xmm4
movss (%r9), %xmm5
movaps %xmm9, %xmm6
minss %xmm5, %xmm6
cmpltss %xmm7, %xmm5
movaps %xmm5, %xmm8
andnps %xmm6, %xmm8
andps %xmm7, %xmm5
orps %xmm8, %xmm5
movss (%r8), %xmm6
movaps %xmm9, %xmm8
minss %xmm6, %xmm8
cmpltss %xmm7, %xmm6
movaps %xmm6, %xmm9
andnps %xmm8, %xmm9
andps %xmm7, %xmm6
orps %xmm9, %xmm6
movq 0x8(%rsp), %rdi
testq %r12, %r12
jle 0x32b4b
movq 0x8(%rsp), %rdi
movq %rdi, %rbp
movaps %xmm0, %xmm7
movzbl (%rbp), %r14d
xorps %xmm8, %xmm8
cvtsi2ss %r14d, %xmm8
subss %xmm4, %xmm8
movzbl (%rbp,%r12), %r14d
xorps %xmm9, %xmm9
cvtsi2ss %r14d, %xmm9
subss %xmm5, %xmm9
movzbl (%rbp,%r12,2), %r14d
xorps %xmm10, %xmm10
cvtsi2ss %r14d, %xmm10
subss %xmm6, %xmm10
mulss %xmm9, %xmm9
mulss %xmm8, %xmm8
addss %xmm9, %xmm8
mulss %xmm10, %xmm10
addss %xmm8, %xmm10
ucomiss %xmm10, %xmm7
cmovaq %rbp, %rdi
leaq 0x1(%rbp), %r14
minss %xmm7, %xmm10
movq %r14, %rbp
movaps %xmm10, %xmm7
cmpq %r10, %r14
jb 0x32ada
movss %xmm4, (%rsi)
movzbl (%rdi), %ebp
xorps %xmm7, %xmm7
cvtsi2ss %ebp, %xmm7
leaq (%rdi,%r12), %rbp
subss %xmm7, %xmm4
movss %xmm5, (%r9)
movzbl (%rdi,%r12), %r14d
xorps %xmm7, %xmm7
cvtsi2ss %r14d, %xmm7
mulss %xmm11, %xmm4
subss %xmm7, %xmm5
mulss %xmm11, %xmm5
movss %xmm6, (%r8)
movzbl (%r12,%rbp), %r14d
xorps %xmm7, %xmm7
cvtsi2ss %r14d, %xmm7
subss %xmm7, %xmm6
mulss %xmm11, %xmm6
movaps %xmm4, %xmm7
mulss %xmm1, %xmm7
addss 0x4(%rsi), %xmm7
movss %xmm7, 0x4(%rsi)
movaps %xmm5, %xmm7
mulss %xmm1, %xmm7
addss 0x4(%r9), %xmm7
movss %xmm7, 0x4(%r9)
movaps %xmm6, %xmm7
mulss %xmm1, %xmm7
addss 0x4(%r8), %xmm7
movss %xmm7, 0x4(%r8)
movaps %xmm4, %xmm7
mulss %xmm2, %xmm7
addss -0x4(%rdx), %xmm7
movss %xmm7, -0x4(%rdx)
movaps %xmm5, %xmm7
mulss %xmm2, %xmm7
addss -0x4(%rax), %xmm7
movss %xmm7, -0x4(%rax)
movaps %xmm6, %xmm7
mulss %xmm2, %xmm7
addss -0x4(%rbx), %xmm7
movss %xmm7, -0x4(%rbx)
movaps %xmm4, %xmm7
mulss %xmm3, %xmm7
addss (%rdx), %xmm7
movss %xmm7, (%rdx)
movaps %xmm5, %xmm7
mulss %xmm3, %xmm7
addss (%rax), %xmm7
movss %xmm7, (%rax)
movaps %xmm6, %xmm7
mulss %xmm3, %xmm7
addss (%rbx), %xmm7
movss %xmm7, (%rbx)
addss 0x4(%rdx), %xmm4
movss %xmm4, 0x4(%rdx)
addss 0x4(%rax), %xmm5
movss %xmm5, 0x4(%rax)
addss 0x4(%rbx), %xmm6
movss %xmm6, 0x4(%rbx)
cmpb $0x0, 0x1c(%rsp)
je 0x32c8f
movzbl (%rdi), %r14d
movl %r14d, (%r13)
movzbl (%rdi,%r12), %edi
movq 0x38(%rsp), %r14
movl %edi, (%r14)
addq $0x4, %r14
movq %r14, 0x38(%rsp)
movzbl (%rbp,%r12), %edi
movq 0x50(%rsp), %r14
movl %edi, (%r14)
addq $0x4, %r14
movq %r14, 0x50(%rsp)
jmp 0x32c97
subl 0x8(%rsp), %edi
movl %edi, (%r13)
movq 0x20(%rsp), %r14
addq $0x4, %rsi
addq $0x4, %r9
addq $0x4, %r8
addq $0x4, %rdx
addq $0x4, %rax
addq $0x4, %rbx
addq $0x4, %r13
incl %r11d
cmpl (%r14), %r11d
jl 0x32a58
movl 0x70(%rsp), %esi
incl %esi
movl 0x4(%r14), %edx
incl 0x68(%rsp)
movq 0x10(%rsp), %rax
movq 0x58(%rsp), %rdi
movq %rdi, 0x10(%rsp)
cmpl %edx, %esi
jl 0x32986
jmp 0x32cf0
movq 0x10(%rsp), %rdi
movq 0x88(%rsp), %rsi
incq %rsi
movslq 0x8(%r14), %rdx
addq $0x4, 0x60(%rsp)
movq %rdi, 0x10(%rsp)
cmpq %rdx, %rsi
jl 0x3292b
jmp 0x32fc2
testl %edx, %edx
jle 0x32fc2
shlq $0x2, %rcx
shlq $0x2, %r15
movq $0x0, 0x70(%rsp)
movss 0x3e5af(%rip), %xmm0    # 0x712e8
movss 0x3e5af(%rip), %xmm1    # 0x712f0
movsd 0x3e467(%rip), %xmm2    # 0x711b0
xorl %esi, %esi
movss 0x28(%rsp), %xmm9
movq %rsi, 0x60(%rsp)
movl 0x4(%r14), %r8d
testl %r8d, %r8d
jle 0x32f9d
movq 0x18(%r14), %rdx
movq %rdx, 0x68(%rsp)
movq 0x40(%rsp), %rdx
movq 0x18(%rdx), %rsi
movq %rsi, 0x8(%rsp)
leaq (%rsi,%r12), %r10
xorl %edx, %edx
movl $0x1, 0x58(%rsp)
movq %rax, 0x38(%rsp)
leal -0x2(%r8), %eax
movl %edx, 0x50(%rsp)
cmpl %eax, %edx
jge 0x32e0a
movslq 0xc(%r14), %rax
testq %rax, %rax
jle 0x32e0a
movl (%r14), %edx
movl 0x8(%r14), %esi
movl %r8d, %r8d
imulq %rdx, %r8
movq %r8, %rdi
imulq 0x70(%rsp), %rdi
movl %edx, %r9d
imull 0x58(%rsp), %r9d
leaq (%rdi,%r9,4), %r9
addq 0x68(%rsp), %r9
imulq %rsi, %r8
shlq $0x2, %r8
movq 0x38(%rsp), %rsi
xorl %edi, %edi
testl %edx, %edx
jle 0x32dfc
xorl %r11d, %r11d
movl (%r9,%r11,4), %ebx
xorps %xmm3, %xmm3
cvtsi2ss %rbx, %xmm3
movss %xmm3, (%rsi,%r11,4)
incq %r11
cmpl %r11d, %edx
jne 0x32de2
incq %rdi
addq %r8, %r9
addq %rcx, %rsi
cmpq %rax, %rdi
jne 0x32ddb
cmpl $0x0, (%r14)
jle 0x32f75
xorl %eax, %eax
movq 0x38(%rsp), %rbx
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %r9
testq %r12, %r12
jle 0x32eb7
movq 0x20(%rsp), %rdx
movl 0xc(%rdx), %r11d
movq 0x8(%rsp), %r9
movq %r9, %rdi
movaps %xmm0, %xmm3
xorps %xmm4, %xmm4
testl %r11d, %r11d
jle 0x32ea1
movq %rsi, %r8
movl %r11d, %ebp
movq %rdi, %rdx
movss (%r8), %xmm5
movss 0x34(%rsp), %xmm6
movaps %xmm9, %xmm7
minss %xmm5, %xmm7
cmpltss %xmm6, %xmm5
movaps %xmm5, %xmm8
andnps %xmm7, %xmm8
andps %xmm6, %xmm5
orps %xmm8, %xmm5
movss %xmm5, (%r8)
movzbl (%rdx), %r14d
xorps %xmm6, %xmm6
cvtsi2ss %r14d, %xmm6
subss %xmm6, %xmm5
mulss %xmm5, %xmm5
addss %xmm5, %xmm4
addq %r12, %rdx
addq %rcx, %r8
decl %ebp
jne 0x32e53
ucomiss %xmm4, %xmm3
cmovaq %rdi, %r9
minss %xmm3, %xmm4
incq %rdi
movaps %xmm4, %xmm3
cmpq %r10, %rdi
jb 0x32e42
movq 0x20(%rsp), %r14
movl 0xc(%r14), %edx
testl %edx, %edx
jle 0x32f2b
movl $0x4, %r8d
movq %r9, %rdi
movzbl (%rdi), %r11d
xorps %xmm3, %xmm3
cvtsi2ss %r11d, %xmm3
movss -0x4(%rsi,%r8), %xmm4
subss %xmm3, %xmm4
mulss %xmm11, %xmm4
movaps %xmm4, %xmm3
mulss %xmm1, %xmm3
addss (%rsi,%r8), %xmm3
movss %xmm3, (%rsi,%r8)
movsd -0x8(%rbx,%r8), %xmm3
movaps %xmm4, %xmm5
unpcklps %xmm4, %xmm5            # xmm5 = xmm5[0],xmm4[0],xmm5[1],xmm4[1]
mulps %xmm2, %xmm5
addps %xmm3, %xmm5
movlps %xmm5, -0x8(%rbx,%r8)
addss (%rbx,%r8), %xmm4
movss %xmm4, (%rbx,%r8)
addq %r12, %rdi
addq %rcx, %r8
decl %edx
jne 0x32ecd
cmpb $0x0, 0x1c(%rsp)
je 0x32f55
cmpl $0x0, 0xc(%r14)
jle 0x32f5e
xorl %edx, %edx
movq %r13, %rdi
movzbl (%r9), %r8d
movl %r8d, (%rdi)
addq %r12, %r9
incl %edx
addq %r15, %rdi
cmpl 0xc(%r14), %edx
jl 0x32f3e
jmp 0x32f5e
subl 0x8(%rsp), %r9d
movl %r9d, (%r13)
addq $0x4, %rsi
addq $0x4, %rbx
addq $0x4, %r13
incl %eax
cmpl (%r14), %eax
jl 0x32e20
movl 0x50(%rsp), %edx
incl %edx
movl 0x4(%r14), %r8d
incl 0x58(%rsp)
movq 0x10(%rsp), %rax
movq 0x38(%rsp), %rdi
movq %rdi, 0x10(%rsp)
cmpl %r8d, %edx
jl 0x32d89
jmp 0x32fa2
movq 0x10(%rsp), %rdi
movq 0x60(%rsp), %rsi
incq %rsi
movslq 0x8(%r14), %rdx
addq $0x4, 0x70(%rsp)
movq %rdi, 0x10(%rsp)
cmpq %rdx, %rsi
jl 0x32d52
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
sete %al
orb 0xd8(%rsp), %al
jne 0x32fdb
callq 0x4680
movq 0x48(%rsp), %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %rbx
movl (%r14), %edx
movl 0x4(%r14), %ecx
movl 0x8(%r14), %r8d
movl 0xc(%r14), %r9d
leaq 0x40323(%rip), %rax     # 0x73338
leaq 0x416f6(%rip), %r10     # 0x74712
cmpb $0x0, 0x10(%r14)
cmovneq %rax, %r10
movq 0x40(%rsp), %rbp
movl (%rbp), %r11d
movl 0x4(%rbp), %r15d
movl 0x8(%rbp), %r12d
movl 0xc(%rbp), %r13d
leaq 0x603e8(%rip), %rsi     # 0x93429
movq %rbx, %rdi
xorl %eax, %eax
pushq 0x18(%rbp)
pushq %r13
pushq %r12
pushq %r15
pushq %r11
leaq 0x60049(%rip), %r11     # 0x930a1
pushq %r11
pushq %r10
pushq 0x18(%r14)
callq 0xc196
addq $0x40, %rsp
leaq 0x79bb0(%rip), %rsi     # 0xacc20
movq 0x79f59(%rip), %rdx     # 0xacfd0
movq %rbx, %rdi
callq 0x4900
movq %rax, %r14
cmpb $0x0, 0xb8(%rsp)
jne 0x330a5
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x330a5
callq 0x4680
jmp 0x330a5
jmp 0x330a2
movq %rax, %r14
movq 0x48(%rsp), %rax
cmpb $0x0, 0x10(%rax)
jne 0x330d0
movq 0x48(%rsp), %rax
movq 0x18(%rax), %rdi
testq %rdi, %rdi
je 0x330d0
callq 0x4680
jmp 0x330d0
movq %rax, %r14
movq %rbx, %rdi
callq 0x43b0
movq %r14, %rdi
callq 0x4950