// File: /workspace/github_cpp_makefile_star2_O3/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, 0x14(%rsp)
movq %rsi, %rbp
movq %rdi, 0x40(%rsp)
movq %rdx, 0x30(%rsp)
movl 0xc(%rdx), %eax
cmpl 0xc(%rsi), %eax
jne 0x31442
testl %eax, %eax
je 0x303d6
cmpq $0x0, 0x18(%rbp)
je 0x303d6
movl (%rbp), %esi
testl %esi, %esi
je 0x303d6
movl 0x4(%rbp), %edx
testl %edx, %edx
je 0x303d6
movl 0x8(%rbp), %ecx
testl %ecx, %ecx
je 0x303d6
movq %rdx, %r15
imulq %rsi, %r15
imulq %rcx, %r15
movq 0x30(%rsp), %r9
movl (%r9), %edi
movl 0x4(%r9), %r8d
imulq %rdi, %r8
movl 0x8(%r9), %r12d
imulq %r8, %r12
cmpb $0x0, 0x14(%rsp)
movl $0x1, %r8d
cmovnel %eax, %r8d
movq 0x40(%rsp), %rbx
movq %rbx, %rdi
movss %xmm0, 0x8(%rsp)
callq 0x1dcd2
movq 0x18(%rbx), %r13
xorps %xmm0, %xmm0
movss 0x8(%rsp), %xmm1
ucomiss %xmm0, %xmm1
movq %rbp, 0x18(%rsp)
jbe 0x303f2
leaq 0x2c(%rsp), %rsi
movl $0x0, (%rsi)
movq %rbp, %rdi
callq 0x34e7e
movl (%rax), %eax
cvtsi2ss %rax, %xmm2
cmpl $0xff, %eax
ja 0x3010a
movss 0x2c(%rsp), %xmm0
ucomiss %xmm2, %xmm0
jne 0x3010a
jp 0x3010a
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jb 0x3010a
movl $0x0, 0x2c(%rsp)
movss 0x3e1ba(%rip), %xmm2    # 0x6e2c4
movss %xmm2, 0x38(%rsp)
movl (%rbp), %eax
movl 0xc(%rbp), %r10d
decl %r10d
subq $0x8, %rsp
xorl %r11d, %r11d
leaq 0xb0(%rsp), %rdi
movq %rbp, %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 0x31626
addq $0x30, %rsp
leaq 0xc8(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x34f7c
movss 0x3e147(%rip), %xmm11   # 0x6e2b0
minss 0x8(%rsp), %xmm11
cmpb $0x0, 0xb8(%rsp)
jne 0x3019a
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x3019a
movss %xmm11, 0x8(%rsp)
callq 0x4690
movss 0x8(%rsp), %xmm11
mulss 0x3e14d(%rip), %xmm11   # 0x6e2f0
movq 0xe0(%rsp), %rsi
leaq 0x4(%rsi), %r14
movl 0xc8(%rsp), %eax
movl 0xcc(%rsp), %ecx
movl 0xd0(%rsp), %edx
movq %rsi, 0x78(%rsp)
leaq (%rsi,%rax,4), %r11
addq $0x4, %r11
imulq %rax, %rcx
imulq %rdx, %rcx
movl 0x8(%rbp), %r8d
movl 0xc(%rbp), %eax
cmpl $0x3, %eax
je 0x30cdb
cmpl $0x2, %eax
je 0x309f5
cmpl $0x1, %eax
jne 0x31161
testl %r8d, %r8d
jle 0x31412
movl 0x4(%rbp), %ebx
xorl %ecx, %ecx
movss 0x3e0db(%rip), %xmm0    # 0x6e2ec
movss 0x3e0db(%rip), %xmm1    # 0x6e2f4
movsd 0x3df9f(%rip), %xmm2    # 0x6e1c0
xorl %edx, %edx
testl %ebx, %ebx
jle 0x303be
movq %rdx, 0x20(%rsp)
movq 0x18(%rbp), %rax
movq %rax, 0x8(%rsp)
movq 0x30(%rsp), %rax
movq 0x18(%rax), %rdx
leaq (%rdx,%r12), %rdi
movl (%rbp), %ebp
xorl %r8d, %r8d
movl $0x1, %r9d
movq %r14, %r10
movq %r11, %r14
leal -0x2(%rbx), %esi
cmpl %esi, %r8d
jge 0x302a2
testl %ebp, %ebp
jle 0x3039b
movl %ebx, %esi
movl %ebp, %r11d
imulq %rcx, %rsi
imulq %r11, %rsi
movl %ebp, %r15d
imull %r9d, %r15d
leaq (%rsi,%r15,4), %rsi
addq 0x8(%rsp), %rsi
xorl %r15d, %r15d
movl (%rsi,%r15,4), %eax
xorps %xmm3, %xmm3
cvtsi2ss %rax, %xmm3
movss %xmm3, (%r14,%r15,4)
incq %r15
cmpl %r15d, %r11d
jne 0x30288
testl %ebp, %ebp
jle 0x3039b
xorl %r11d, %r11d
movq %r10, %rbx
movq %r14, %r15
movss (%rbx), %xmm3
movss 0x2c(%rsp), %xmm4
movss 0x38(%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 0x30315
movaps %xmm0, %xmm4
movq %rdx, %rbp
movq %rdx, %rsi
movzbl (%rsi), %eax
xorps %xmm5, %xmm5
cvtsi2ss %eax, %xmm5
subss %xmm3, %xmm5
mulss %xmm5, %xmm5
ucomiss %xmm5, %xmm4
cmovaq %rsi, %rbp
leaq 0x1(%rsi), %rax
minss %xmm4, %xmm5
movaps %xmm5, %xmm4
movq %rax, %rsi
cmpq %rdi, %rax
jb 0x302e9
movss %xmm3, (%rbx)
movzbl (%rbp), %eax
xorps %xmm4, %xmm4
cvtsi2ss %eax, %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, 0x14(%rsp)
je 0x3036e
movzbl (%rbp), %ebp
jmp 0x30370
subl %edx, %ebp
addq $0x4, %rbx
addq $0x4, %r15
movl %ebp, (%r13)
addq $0x4, %r13
incl %r11d
movq 0x18(%rsp), %rax
movl (%rax), %ebp
cmpl %ebp, %r11d
jl 0x302b3
movq 0x18(%rsp), %rax
movl 0x4(%rax), %ebx
incl %r8d
incl %r9d
movq %r10, %r11
cmpl %ebx, %r8d
jl 0x30252
movq 0x18(%rsp), %rbp
movl 0x8(%rbp), %r8d
movq %r10, %r11
movq 0x20(%rsp), %rdx
incq %rdx
movslq %r8d, %rax
addq $0x4, %rcx
cmpq %rax, %rdx
jl 0x30223
jmp 0x31412
movq 0x40(%rsp), %rax
movq $0x0, 0x18(%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movb $0x0, 0x10(%rax)
jmp 0x31430
movl 0x8(%rbp), %edx
movl 0xc(%rbp), %eax
cmpl $0x1, %eax
je 0x30746
cmpl $0x2, %eax
je 0x305db
cmpl $0x3, %eax
jne 0x30864
testl %edx, %edx
jle 0x3142b
movq 0x18(%rbp), %rax
movq %rax, 0x20(%rsp)
movl 0x4(%rbp), %eax
movq $0x0, 0x8(%rsp)
movss 0x3deb4(%rip), %xmm0    # 0x6e2ec
testl %eax, %eax
jle 0x305bd
movq 0x30(%rsp), %rcx
movq 0x18(%rcx), %rdi
leaq (%rdi,%r12), %rsi
xorl %r14d, %r14d
movl (%rbp), %ecx
testq %rcx, %rcx
je 0x305ab
movl %r14d, %edx
imull %ecx, %edx
movl %eax, %eax
movq 0x8(%rsp), %rbx
imulq %rbx, %rax
imulq %rcx, %rax
movq 0x20(%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 0x40(%rsp), %rcx
movl (%rcx), %eax
movl 0x4(%rcx), %ecx
movq %r14, 0x38(%rsp)
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 0x3055c
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 0x304fc
cmpb $0x0, 0x14(%rsp)
je 0x30581
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 0x30585
subl %edi, %edx
movl %edx, (%rbx)
addq $0x4, %r8
addq $0x4, %r10
addq $0x4, %r11
addq $0x4, %rbx
cmpq %r9, %r8
jb 0x304c6
movq 0x18(%rsp), %rbp
movl 0x4(%rbp), %eax
movq 0x38(%rsp), %r14
incq %r14
movslq %eax, %rcx
cmpq %rcx, %r14
jl 0x30450
movl 0x8(%rbp), %edx
movq 0x8(%rsp), %rdi
incq %rdi
movslq %edx, %rcx
movq %rdi, 0x8(%rsp)
cmpq %rcx, %rdi
jl 0x30438
jmp 0x3142b
testl %edx, %edx
jle 0x3142b
movq 0x18(%rbp), %rax
movq %rax, 0x38(%rsp)
movl 0x4(%rbp), %r8d
xorl %ecx, %ecx
movss 0x3dcf2(%rip), %xmm0    # 0x6e2ec
testl %r8d, %r8d
jle 0x30732
movq 0x30(%rsp), %rax
movq 0x18(%rax), %rax
leaq (%rax,%r12), %rsi
xorl %edi, %edi
movl (%rbp), %edx
testq %rdx, %rdx
je 0x30720
movl %edi, %r9d
imull %edx, %r9d
movl %r8d, %r8d
imulq %rcx, %r8
imulq %rdx, %r8
movq 0x38(%rsp), %r10
leaq (%r10,%r9,4), %r9
leaq (%r9,%r8,4), %r8
leaq (%r8,%rdx,4), %r9
leaq (%r8,%r15,4), %r10
movq 0x40(%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 0x306e1
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 0x3069a
cmpb $0x0, 0x14(%rsp)
je 0x306fd
movzbl (%rbp), %edx
movl %edx, (%r11)
movzbl (%rbp,%r12), %edx
movl %edx, (%rbx)
addq $0x4, %rbx
jmp 0x30702
subl %eax, %ebp
movl %ebp, (%r11)
addq $0x4, %r8
addq $0x4, %r10
addq $0x4, %r11
cmpq %r9, %r8
jb 0x30673
movq 0x18(%rsp), %rbp
movl 0x4(%rbp), %r8d
incq %rdi
movslq %r8d, %rdx
cmpq %rdx, %rdi
jl 0x30612
movl 0x8(%rbp), %edx
incq %rcx
movslq %edx, %rax
cmpq %rax, %rcx
jl 0x305fa
jmp 0x3142b
testl %edx, %edx
jle 0x3142b
movq 0x18(%rbp), %rax
movl 0x4(%rbp), %r8d
xorl %ecx, %ecx
movss 0x3db8c(%rip), %xmm0    # 0x6e2ec
testl %r8d, %r8d
jle 0x30850
movq 0x30(%rsp), %rdx
movq 0x18(%rdx), %rdx
leaq (%rdx,%r12), %rsi
xorl %edi, %edi
movl (%rbp), %r9d
testq %r9, %r9
je 0x3083e
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 0x40(%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 0x30815
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 0x307e9
cmpb $0x0, 0x14(%rsp)
je 0x30822
movzbl (%r11), %r11d
jmp 0x30825
subl %edx, %r11d
movq 0x18(%rsp), %rbp
addq $0x4, %r8
movl %r11d, (%r10)
addq $0x4, %r10
cmpq %r9, %r8
jb 0x307cd
movl 0x4(%rbp), %r8d
incq %rdi
movslq %r8d, %r9
cmpq %r9, %rdi
jl 0x30778
movl 0x8(%rbp), %edx
incq %rcx
movslq %edx, %rsi
cmpq %rsi, %rcx
jl 0x30760
jmp 0x3142b
testl %edx, %edx
jle 0x3142b
movq 0x18(%rbp), %rax
movq %rax, 0x20(%rsp)
movl 0x4(%rbp), %r8d
shlq $0x2, %r15
movq $0x0, 0x8(%rsp)
movss 0x3da5e(%rip), %xmm0    # 0x6e2ec
testl %r8d, %r8d
jle 0x309d7
movq 0x30(%rsp), %rax
movq 0x18(%rax), %rdi
leaq (%rdi,%r12), %rsi
xorl %r11d, %r11d
movl (%rbp), %ecx
testq %rcx, %rcx
je 0x309c5
movl %r11d, %eax
imull %ecx, %eax
movl %r8d, %edx
movq 0x8(%rsp), %r10
imulq %r10, %rdx
imulq %rcx, %rdx
movq 0x20(%rsp), %r8
leaq (%r8,%rax,4), %rax
leaq (%rax,%rdx,4), %rax
leaq (%rax,%rcx,4), %r9
movq 0x40(%rsp), %rdx
movl (%rdx), %ecx
movl 0x4(%rdx), %edx
movq %r11, 0x38(%rsp)
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 0x30973
movq 0x18(%rsp), %rcx
movl 0xc(%rcx), %ecx
movq %rdi, %rdx
movq %rdi, %r11
movaps %xmm0, %xmm1
xorps %xmm2, %xmm2
testl %ecx, %ecx
jle 0x3095d
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 0x3092f
ucomiss %xmm2, %xmm1
cmovaq %rdx, %r11
minss %xmm1, %xmm2
incq %rdx
movaps %xmm2, %xmm1
cmpq %rsi, %rdx
jb 0x30920
cmpb $0x0, 0x14(%rsp)
je 0x309a0
movq 0x18(%rsp), %rbp
cmpl $0x0, 0xc(%rbp)
jle 0x309ab
xorl %ecx, %ecx
movq %r10, %rdx
movzbl (%r11), %r8d
movl %r8d, (%rdx)
addq %r12, %r11
incl %ecx
addq %r15, %rdx
cmpl 0xc(%rbp), %ecx
jl 0x3098a
jmp 0x309ab
subl %edi, %r11d
movl %r11d, (%r10)
movq 0x18(%rsp), %rbp
addq $0x4, %r10
addq $0x4, %rax
cmpq %r9, %rax
jb 0x30907
movl 0x4(%rbp), %r8d
movq 0x38(%rsp), %r11
incq %r11
movslq %r8d, %rax
cmpq %rax, %r11
jl 0x308a7
movl 0x8(%rbp), %edx
movq 0x8(%rsp), %rsi
incq %rsi
movslq %edx, %rax
movq %rsi, 0x8(%rsp)
cmpq %rax, %rsi
jl 0x3088e
jmp 0x3142b
testl %r8d, %r8d
jle 0x31412
movq %r14, %rdi
leaq (,%r15,4), %r14
addq %r13, %r14
movl 0x4(%rbp), %eax
movq $0x0, 0x48(%rsp)
movss 0x3d8cc(%rip), %xmm0    # 0x6e2ec
movss 0x3d8cc(%rip), %xmm1    # 0x6e2f4
movss 0x3d8b0(%rip), %xmm2    # 0x6e2e0
movss 0x3d8c0(%rip), %xmm3    # 0x6e2f8
testl %eax, %eax
jle 0x30cbd
movq 0x18(%rbp), %rdx
movq %rdx, 0x50(%rsp)
movq 0x30(%rsp), %rdx
movq 0x18(%rdx), %r10
leaq (%r10,%r12), %r9
movl (%rbp), %ebp
xorl %ebx, %ebx
movq %rdi, %rdx
movq %rdx, 0x8(%rsp)
movq %r11, %rdx
leal -0x2(%rax), %esi
cmpl %esi, %ebx
jge 0x30ac8
testl %ebp, %ebp
jle 0x30c9c
leal 0x1(%rbx), %esi
imull %ebp, %esi
movq 0x50(%rsp), %rdi
leaq (%rdi,%rsi,4), %rsi
movl %eax, %edi
imulq 0x48(%rsp), %rdi
movl %ebp, %r8d
imulq %rdi, %r8
leaq (%rsi,%r8,4), %r8
movl %ebp, %esi
movq %rdx, %rdi
movl (%r8), %r11d
xorps %xmm4, %xmm4
cvtsi2ss %r11, %xmm4
movss %xmm4, (%rdi)
movl (%r8,%r15,4), %r11d
addq $0x4, %r8
xorps %xmm4, %xmm4
cvtsi2ss %r11, %xmm4
movss %xmm4, (%rdi,%rcx,4)
addq $0x4, %rdi
decl %esi
jne 0x30a9c
testl %ebp, %ebp
jle 0x30c9c
movq %rbx, 0x20(%rsp)
leaq (%rdx,%rcx,4), %rax
movq 0x8(%rsp), %rbx
leaq (%rbx,%rcx,4), %r11
xorl %edi, %edi
movq %rdx, %rsi
movq %rdx, 0x58(%rsp)
movss (%rbx), %xmm4
movss 0x2c(%rsp), %xmm6
movss 0x38(%rsp), %xmm8
movaps %xmm8, %xmm5
minss %xmm4, %xmm5
cmpltss %xmm6, %xmm4
movaps %xmm4, %xmm7
andnps %xmm5, %xmm7
andps %xmm6, %xmm4
orps %xmm7, %xmm4
movss (%r11), %xmm5
movaps %xmm8, %xmm7
minss %xmm5, %xmm7
cmpltss %xmm6, %xmm5
movaps %xmm5, %xmm8
andnps %xmm7, %xmm8
andps %xmm6, %xmm5
orps %xmm8, %xmm5
movq %r10, %rbp
testq %r12, %r12
jle 0x30b92
movaps %xmm0, %xmm6
movq %r10, %rbp
movq %r10, %r8
movzbl (%r8), %edx
xorps %xmm7, %xmm7
cvtsi2ss %edx, %xmm7
movzbl (%r8,%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 %r8, %rbp
leaq 0x1(%r8), %rdx
minss %xmm6, %xmm7
movaps %xmm7, %xmm6
movq %rdx, %r8
cmpq %r9, %rdx
jb 0x30b48
movss %xmm4, (%rbx)
movzbl (%rbp), %r8d
xorps %xmm6, %xmm6
cvtsi2ss %r8d, %xmm6
subss %xmm6, %xmm4
mulss %xmm11, %xmm4
movss %xmm5, (%r11)
movzbl (%rbp,%r12), %r8d
xorps %xmm6, %xmm6
cvtsi2ss %r8d, %xmm6
subss %xmm6, %xmm5
mulss %xmm11, %xmm5
movaps %xmm4, %xmm6
mulss %xmm1, %xmm6
addss 0x4(%rbx), %xmm6
movss %xmm6, 0x4(%rbx)
movaps %xmm5, %xmm6
mulss %xmm1, %xmm6
addss 0x4(%r11), %xmm6
movss %xmm6, 0x4(%r11)
movaps %xmm4, %xmm6
mulss %xmm2, %xmm6
addss -0x4(%rsi), %xmm6
movss %xmm6, -0x4(%rsi)
movaps %xmm5, %xmm6
mulss %xmm2, %xmm6
addss -0x4(%rax), %xmm6
movss %xmm6, -0x4(%rax)
movaps %xmm4, %xmm6
mulss %xmm3, %xmm6
addss (%rsi), %xmm6
movss %xmm6, (%rsi)
movaps %xmm5, %xmm6
mulss %xmm3, %xmm6
addss (%rax), %xmm6
movss %xmm6, (%rax)
addss 0x4(%rsi), %xmm4
movss %xmm4, 0x4(%rsi)
addss 0x4(%rax), %xmm5
movss %xmm5, 0x4(%rax)
cmpb $0x0, 0x14(%rsp)
je 0x30c5e
movzbl (%rbp), %edx
movl %edx, (%r13)
movzbl (%rbp,%r12), %edx
movl %edx, (%r14)
addq $0x4, %r14
jmp 0x30c65
subl %r10d, %ebp
movl %ebp, (%r13)
addq $0x4, %rbx
addq $0x4, %r11
addq $0x4, %rsi
addq $0x4, %rax
addq $0x4, %r13
incl %edi
movq 0x18(%rsp), %rdx
movl (%rdx), %ebp
cmpl %ebp, %edi
jl 0x30aec
movq 0x18(%rsp), %rax
movl 0x4(%rax), %eax
movq 0x58(%rsp), %rdx
movq 0x20(%rsp), %rbx
movq 0x8(%rsp), %rsi
incl %ebx
movq %rsi, %r11
cmpl %eax, %ebx
jl 0x30a5e
movq %rdx, %rdi
movq 0x18(%rsp), %rbp
movl 0x8(%rbp), %r8d
movq %rsi, %r11
movq 0x48(%rsp), %r9
incq %r9
movslq %r8d, %rsi
movq %r9, 0x48(%rsp)
cmpq %rsi, %r9
jl 0x30a38
jmp 0x31412
testl %r8d, %r8d
jle 0x31412
movq %r14, %rsi
leaq (,%r15,4), %rax
addq %r13, %rax
movq %rax, 0x20(%rsp)
leaq (%rax,%r15,4), %rax
movq %rax, 0x48(%rsp)
movl 0x4(%rbp), %r14d
leaq (,%r15,4), %rax
movq %rax, 0x80(%rsp)
shlq $0x3, %r15
movq $0x0, 0x70(%rsp)
movss 0x3d5c3(%rip), %xmm0    # 0x6e2ec
movss 0x3d5c3(%rip), %xmm1    # 0x6e2f4
movss 0x3d5a7(%rip), %xmm2    # 0x6e2e0
movss 0x3d5b7(%rip), %xmm3    # 0x6e2f8
xorl %eax, %eax
testl %r14d, %r14d
jle 0x31147
movq %rax, 0x88(%rsp)
movq 0x18(%rbp), %rdx
movq 0x30(%rsp), %rax
movq 0x18(%rax), %rdi
movq %rdi, 0x8(%rsp)
leaq (%rdi,%r12), %r10
movl (%rbp), %ebp
movq 0x80(%rsp), %rax
addq %rdx, %rax
movq %rax, 0x98(%rsp)
movq %rdx, 0xa0(%rsp)
leaq (%rdx,%r15), %rax
movq %rax, 0x90(%rsp)
xorl %edi, %edi
movl $0x1, %ebx
movl %ebp, %edx
movq %rsi, %rax
movq %rax, %r9
movq %r11, %rax
leal -0x2(%r14), %esi
cmpl %esi, %edi
jge 0x30e5f
testl %edx, %edx
jle 0x31120
movq %r9, 0x68(%rsp)
movl %edi, 0x50(%rsp)
movq %r14, 0x58(%rsp)
movl %r14d, %r9d
movl %edx, %esi
leaq (%rax,%rcx,4), %rdi
leaq (%rdi,%rcx,4), %r8
imulq 0x70(%rsp), %r9
imulq %rsi, %r9
movl %ebx, 0x60(%rsp)
imull %ebx, %edx
leaq (%r9,%rdx,4), %rdx
movq 0xa0(%rsp), %r9
addq %rdx, %r9
movq 0x98(%rsp), %r11
addq %rdx, %r11
addq 0x90(%rsp), %rdx
movq %rax, %r14
xorl %ebx, %ebx
movl (%r9,%rbx,4), %eax
xorps %xmm4, %xmm4
cvtsi2ss %rax, %xmm4
movss %xmm4, (%r14,%rbx,4)
movl (%r11,%rbx,4), %eax
xorps %xmm4, %xmm4
cvtsi2ss %rax, %xmm4
movss %xmm4, (%rdi,%rbx,4)
movl (%rdx,%rbx,4), %eax
xorps %xmm4, %xmm4
cvtsi2ss %rax, %xmm4
movss %xmm4, (%r8,%rbx,4)
incq %rbx
cmpl %ebx, %esi
jne 0x30e0d
movl %ebp, %edx
movq %r14, %rax
movl 0x50(%rsp), %edi
movl 0x60(%rsp), %ebx
movq 0x68(%rsp), %r9
movq 0x58(%rsp), %r14
testl %edx, %edx
jle 0x31120
movl %ebx, 0x60(%rsp)
movl %edi, 0x50(%rsp)
leaq (%rax,%rcx,4), %r11
movq %rax, %rdx
leaq (%r11,%rcx,4), %rbx
movq %r9, %rsi
leaq (%r9,%rcx,4), %r9
leaq (%r9,%rcx,4), %r8
xorl %eax, %eax
movq %rdx, 0x58(%rsp)
movq %rsi, 0x68(%rsp)
movss (%rsi), %xmm4
movss 0x2c(%rsp), %xmm7
movss 0x38(%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), %rbp
testq %r12, %r12
jle 0x30f81
movq 0x8(%rsp), %rbp
movq %rbp, %rdi
movaps %xmm0, %xmm7
movzbl (%rdi), %r14d
xorps %xmm8, %xmm8
cvtsi2ss %r14d, %xmm8
subss %xmm4, %xmm8
movzbl (%rdi,%r12), %r14d
xorps %xmm9, %xmm9
cvtsi2ss %r14d, %xmm9
subss %xmm5, %xmm9
movzbl (%rdi,%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 %rdi, %rbp
leaq 0x1(%rdi), %r14
minss %xmm7, %xmm10
movq %r14, %rdi
movaps %xmm10, %xmm7
cmpq %r10, %r14
jb 0x30f13
movss %xmm4, (%rsi)
movzbl (%rbp), %edi
xorps %xmm7, %xmm7
cvtsi2ss %edi, %xmm7
leaq (%r12,%rbp), %rdi
subss %xmm7, %xmm4
movss %xmm5, (%r9)
movzbl (%rbp,%r12), %r14d
xorps %xmm7, %xmm7
cvtsi2ss %r14d, %xmm7
mulss %xmm11, %xmm4
subss %xmm7, %xmm5
mulss %xmm11, %xmm5
movss %xmm6, (%r8)
movzbl (%r12,%rdi), %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(%r11), %xmm7
movss %xmm7, -0x4(%r11)
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 (%r11), %xmm7
movss %xmm7, (%r11)
movaps %xmm6, %xmm7
mulss %xmm3, %xmm7
addss (%rbx), %xmm7
movss %xmm7, (%rbx)
addss 0x4(%rdx), %xmm4
movss %xmm4, 0x4(%rdx)
addss 0x4(%r11), %xmm5
movss %xmm5, 0x4(%r11)
addss 0x4(%rbx), %xmm6
movss %xmm6, 0x4(%rbx)
cmpb $0x0, 0x14(%rsp)
je 0x310ce
movzbl (%rbp), %r14d
movl %r14d, (%r13)
movzbl (%rbp,%r12), %ebp
movq 0x20(%rsp), %r14
movl %ebp, (%r14)
addq $0x4, %r14
movq %r14, 0x20(%rsp)
movzbl (%rdi,%r12), %edi
movq 0x48(%rsp), %r14
movl %edi, (%r14)
addq $0x4, %r14
movq %r14, 0x48(%rsp)
jmp 0x310d6
subl 0x8(%rsp), %ebp
movl %ebp, (%r13)
addq $0x4, %rsi
addq $0x4, %r9
addq $0x4, %r8
addq $0x4, %rdx
addq $0x4, %r11
addq $0x4, %rbx
addq $0x4, %r13
incl %eax
movq 0x18(%rsp), %rdi
movl (%rdi), %ebp
cmpl %ebp, %eax
jl 0x30e91
movq 0x18(%rsp), %rax
movl 0x4(%rax), %r14d
movl %ebp, %edx
movq 0x58(%rsp), %rax
movl 0x50(%rsp), %edi
movl 0x60(%rsp), %ebx
movq 0x68(%rsp), %r9
incl %edi
incl %ebx
movq %r9, %r11
cmpl %r14d, %edi
jl 0x30da0
movq %rax, %rsi
movq 0x18(%rsp), %rbp
movl 0x8(%rbp), %r8d
movq %r9, %r11
movq 0x88(%rsp), %rax
incq %rax
movslq %r8d, %rdx
addq $0x4, 0x70(%rsp)
cmpq %rdx, %rax
jl 0x30d43
jmp 0x31412
testl %r8d, %r8d
jle 0x31412
movl 0x4(%rbp), %eax
shlq $0x2, %rcx
shlq $0x2, %r15
movq $0x0, 0x60(%rsp)
movss 0x3d166(%rip), %xmm0    # 0x6e2ec
movss 0x3d166(%rip), %xmm1    # 0x6e2f4
movsd 0x3d02a(%rip), %xmm2    # 0x6e1c0
xorl %esi, %esi
movss 0x38(%rsp), %xmm9
testl %eax, %eax
jle 0x313fd
movq %rsi, 0x70(%rsp)
movq 0x18(%rbp), %rdx
movq %rdx, 0x68(%rsp)
movq 0x30(%rsp), %rdx
movq 0x18(%rdx), %rsi
movq %rsi, 0x8(%rsp)
leaq (%rsi,%r12), %r9
xorl %edi, %edi
movl $0x1, %ebx
movq %r14, %r10
movq %r11, %r14
leal -0x2(%rax), %edx
cmpl %edx, %edi
movq %r11, 0x58(%rsp)
movl %edi, 0x20(%rsp)
movl %ebx, 0x48(%rsp)
movq %r10, 0x50(%rsp)
jge 0x3126a
movslq 0xc(%rbp), %rsi
movl (%rbp), %edx
testq %rsi, %rsi
jle 0x3126d
movl %eax, %r8d
movl 0x8(%rbp), %edi
imulq %rdx, %r8
movq %r8, %r10
imulq 0x60(%rsp), %r10
movl %edx, %r11d
imull %ebx, %r11d
leaq (%r10,%r11,4), %r11
addq 0x68(%rsp), %r11
imulq %rdi, %r8
shlq $0x2, %r8
movq %r14, %rdi
xorl %r10d, %r10d
testl %edx, %edx
jle 0x31248
xorl %ebx, %ebx
movl (%r11,%rbx,4), %r14d
xorps %xmm3, %xmm3
cvtsi2ss %r14, %xmm3
movss %xmm3, (%rdi,%rbx,4)
incq %rbx
cmpl %ebx, %edx
jne 0x31230
incq %r10
addq %r8, %r11
addq %rcx, %rdi
cmpq %rsi, %r10
jne 0x3122a
movq 0x58(%rsp), %r14
movl 0x20(%rsp), %edi
movl 0x48(%rsp), %ebx
movq 0x50(%rsp), %r10
jmp 0x3126d
movl (%rbp), %edx
testl %edx, %edx
jle 0x313e2
xorl %eax, %eax
movq %r14, %r11
movq %r10, %rbx
movl 0xc(%rbp), %r10d
movq 0x8(%rsp), %r8
testq %r12, %r12
jle 0x31309
movq 0x8(%rsp), %r8
movq %r8, %rdi
movaps %xmm0, %xmm3
xorps %xmm4, %xmm4
testl %r10d, %r10d
jle 0x312f3
movq %rbx, %rsi
movl %r10d, %ebp
movq %rdi, %rdx
movss (%rsi), %xmm5
movss 0x2c(%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, (%rsi)
movzbl (%rdx), %r14d
xorps %xmm6, %xmm6
cvtsi2ss %r14d, %xmm6
subss %xmm6, %xmm5
mulss %xmm5, %xmm5
addss %xmm5, %xmm4
addq %r12, %rdx
addq %rcx, %rsi
decl %ebp
jne 0x312a7
ucomiss %xmm4, %xmm3
cmovaq %rdi, %r8
minss %xmm3, %xmm4
incq %rdi
movaps %xmm4, %xmm3
cmpq %r9, %rdi
jb 0x31296
testl %r10d, %r10d
jle 0x313a1
movl $0x4, %edx
movl %r10d, %esi
movq %r8, %rdi
movzbl (%rdi), %ebp
xorps %xmm3, %xmm3
cvtsi2ss %ebp, %xmm3
movss -0x4(%rbx,%rdx), %xmm4
subss %xmm3, %xmm4
mulss %xmm11, %xmm4
movaps %xmm4, %xmm3
mulss %xmm1, %xmm3
addss (%rbx,%rdx), %xmm3
movss %xmm3, (%rbx,%rdx)
movsd -0x8(%r11,%rdx), %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(%r11,%rdx)
addss (%r11,%rdx), %xmm4
movss %xmm4, (%r11,%rdx)
addq %r12, %rdi
addq %rcx, %rdx
decl %esi
jne 0x3131d
cmpb $0x0, 0x14(%rsp)
movq 0x18(%rsp), %rbp
je 0x313ad
testl %r10d, %r10d
jle 0x313b6
xorl %edx, %edx
movq %r13, %rsi
movzbl (%r8), %edi
movl %edi, (%rsi)
addq %r12, %r8
incl %edx
addq %r15, %rsi
cmpl 0xc(%rbp), %edx
jl 0x3138c
jmp 0x313b6
cmpb $0x0, 0x14(%rsp)
movq 0x18(%rsp), %rbp
jne 0x313b6
subl 0x8(%rsp), %r8d
movl %r8d, (%r13)
addq $0x4, %rbx
addq $0x4, %r11
addq $0x4, %r13
incl %eax
cmpl (%rbp), %eax
jl 0x3127d
movl 0x4(%rbp), %eax
movq 0x58(%rsp), %r14
movl 0x20(%rsp), %edi
movl 0x48(%rsp), %ebx
movq 0x50(%rsp), %r10
incl %edi
incl %ebx
movq %r10, %r11
cmpl %eax, %edi
jl 0x311ce
movl 0x8(%rbp), %r8d
movq %r10, %r11
movq 0x70(%rsp), %rsi
incq %rsi
movslq %r8d, %rdx
addq $0x4, 0x60(%rsp)
cmpq %rdx, %rsi
jl 0x3119f
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
sete %al
orb 0xd8(%rsp), %al
jne 0x3142b
callq 0x4690
movq 0x40(%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, %rdi
movl (%rbp), %edx
movl 0x4(%rbp), %ecx
movl 0x8(%rbp), %r8d
movl 0xc(%rbp), %r9d
leaq 0x3d404(%rip), %rax     # 0x6e868
leaq 0x3e7d7(%rip), %r10     # 0x6fc42
cmpb $0x0, 0x10(%rbp)
cmovneq %rax, %r10
movq 0x30(%rsp), %rbx
movl (%rbx), %r11d
movl 0x4(%rbx), %r15d
movl 0x8(%rbx), %r12d
movl 0xc(%rbx), %r13d
movq %rbp, %r14
leaq 0x5d4c8(%rip), %rsi     # 0x8e959
movq %rdi, %rbp
xorl %eax, %eax
pushq 0x18(%rbx)
pushq %r13
pushq %r12
pushq %r15
pushq %r11
leaq 0x5d129(%rip), %r11     # 0x8e5d1
pushq %r11
pushq %r10
pushq 0x18(%r14)
callq 0xc16a
addq $0x40, %rsp
leaq 0x76790(%rip), %rsi     # 0xa7c50
movq 0x76b09(%rip), %rdx     # 0xa7fd0
movq %rbp, %rdi
callq 0x4910
movq %rax, %r14
cmpb $0x0, 0xb8(%rsp)
jne 0x314f5
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x314f5
callq 0x4690
jmp 0x314f5
jmp 0x314f2
movq %rax, %r14
movq 0x40(%rsp), %rax
cmpb $0x0, 0x10(%rax)
jne 0x31520
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rdi
testq %rdi, %rdi
je 0x31520
callq 0x4690
jmp 0x31520
movq %rax, %r14
movq %rbp, %rdi
callq 0x43c0
movq %r14, %rdi
callq 0x4960