// File: manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<unsigned char>& cimg_library::CImg<unsigned char>::draw_image<unsigned char, unsigned char>(int, int, int, int, cimg_library::CImg<unsigned char> const&, cimg_library::CImg<unsigned char> const&, float, float)
CImg<T>& draw_image(const int x0, const int y0, const int z0, const int c0,
                        const CImg<ti>& sprite, const CImg<tm>& mask, const float opacity=1,
                        const float mask_max_value=1) {
      if (is_empty() || !sprite || !mask) return *this;
      if (is_overlapped(sprite)) return draw_image(x0,y0,z0,c0,+sprite,mask,opacity,mask_max_value);
      if (is_overlapped(mask))   return draw_image(x0,y0,z0,c0,sprite,+mask,opacity,mask_max_value);
      if (mask._width!=sprite._width || mask._height!=sprite._height || mask._depth!=sprite._depth)
        throw CImgArgumentException(_cimg_instance
                                    "draw_image(): Sprite (%u,%u,%u,%u,%p) and mask (%u,%u,%u,%u,%p) have "
                                    "incompatible dimensions.",
                                    cimg_instance,
                                    sprite._width,sprite._height,sprite._depth,sprite._spectrum,sprite._data,
                                    mask._width,mask._height,mask._depth,mask._spectrum,mask._data);

      const bool bx = (x0<0), by = (y0<0), bz = (z0<0), bc = (c0<0);
      const int
        lX = sprite.width() - (x0 + sprite.width()>width()?x0 + sprite.width() - width():0) + (bx?x0:0),
        lY = sprite.height() - (y0 + sprite.height()>height()?y0 + sprite.height() - height():0) + (by?y0:0),
        lZ = sprite.depth() - (z0 + sprite.depth()>depth()?z0 + sprite.depth() - depth():0) + (bz?z0:0),
        lC = sprite.spectrum() - (c0 + sprite.spectrum()>spectrum()?c0 + sprite.spectrum() - spectrum():0) + (bc?c0:0);
      const int
        coff = -(bx?x0:0)-(by?y0*mask.width():0)-(bz?z0*mask.width()*mask.height():0)-
          (bc?c0*mask.width()*mask.height()*mask.depth():0),
        ssize = mask.width()*mask.height()*mask.depth()*mask.spectrum();
      const ti *ptrs = sprite._data + coff;
      const tm *ptrm = mask._data   + coff;
      const unsigned long
        offX = (unsigned long)_width - lX,
        soffX = (unsigned long)sprite._width - lX,
        offY = (unsigned long)_width*(_height - lY),
        soffY = (unsigned long)sprite._width*(sprite._height - lY),
        offZ = (unsigned long)_width*_height*(_depth - lZ),
        soffZ = (unsigned long)sprite._width*sprite._height*(sprite._depth - lZ);
      if (lX>0 && lY>0 && lZ>0 && lC>0) {
        T *ptrd = data(x0<0?0:x0,y0<0?0:y0,z0<0?0:z0,c0<0?0:c0);
        for (int c = 0; c<lC; ++c) {
          ptrm = mask._data + (ptrm - mask._data)%ssize;
          for (int z = 0; z<lZ; ++z) {
            for (int y = 0; y<lY; ++y) {
              for (int x = 0; x<lX; ++x) {
                const float mopacity = (float)(*(ptrm++)*opacity),
                  nopacity = cimg::abs(mopacity), copacity = mask_max_value - cimg::max(mopacity,0);
                *ptrd = (T)((nopacity*(*(ptrs++)) + *ptrd*copacity)/mask_max_value);
                ++ptrd;
              }
              ptrd+=offX; ptrs+=soffX; ptrm+=soffX;
            }
            ptrd+=offY; ptrs+=soffY; ptrm+=soffY;
          }
          ptrd+=offZ; ptrs+=soffZ; ptrm+=soffZ;
        }
      }
      return *this;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2e8, %rsp            # imm = 0x2E8
movq 0x320(%rsp), %rax
movq %rdi, 0x2d8(%rsp)
movl %esi, 0x2d4(%rsp)
movl %edx, 0x2d0(%rsp)
movl %ecx, 0x2cc(%rsp)
movl %r8d, 0x2c8(%rsp)
movq %r9, 0x2c0(%rsp)
movss %xmm0, 0x2bc(%rsp)
movss %xmm1, 0x2b8(%rsp)
movq 0x2d8(%rsp), %rdi
movq %rdi, 0x1d8(%rsp)
callq 0x1f750
testb $0x1, %al
jne 0x24997
movq 0x2c0(%rsp), %rdi
callq 0x20360
cmpq $0x0, %rax
je 0x24997
movq 0x320(%rsp), %rdi
callq 0x20360
cmpq $0x0, %rax
jne 0x249ac
movq 0x1d8(%rsp), %rax
movq %rax, 0x2e0(%rsp)
jmp 0x25971
movq 0x1d8(%rsp), %rdi
movq 0x2c0(%rsp), %rsi
callq 0x21900
testb $0x1, %al
jne 0x249ca
jmp 0x24ac3
movl 0x2d4(%rsp), %eax
movl %eax, 0x1b8(%rsp)
movl 0x2d0(%rsp), %eax
movl %eax, 0x1bc(%rsp)
movl 0x2cc(%rsp), %eax
movl %eax, 0x1c0(%rsp)
movl 0x2c8(%rsp), %eax
movl %eax, 0x1c4(%rsp)
movq 0x2c0(%rsp), %rsi
leaq 0x298(%rsp), %rdi
movq %rdi, 0x1c8(%rsp)
callq 0x21990
movq 0x1d8(%rsp), %rdi
movl 0x1b8(%rsp), %esi
movl 0x1bc(%rsp), %edx
movl 0x1c0(%rsp), %ecx
movl 0x1c4(%rsp), %r8d
movq 0x1c8(%rsp), %r9
movq 0x320(%rsp), %r10
movss 0x2bc(%rsp), %xmm0
movss 0x2b8(%rsp), %xmm1
movq %rsp, %rax
movq %r10, (%rax)
callq 0x24900
movq %rax, 0x1d0(%rsp)
jmp 0x24a7b
movq 0x1d0(%rsp), %rax
movq %rax, 0x2e0(%rsp)
leaq 0x298(%rsp), %rdi
callq 0x15650
jmp 0x25971
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x290(%rsp)
movl %eax, 0x28c(%rsp)
leaq 0x298(%rsp), %rdi
callq 0x15650
jmp 0x2598b
movq 0x1d8(%rsp), %rdi
movq 0x320(%rsp), %rsi
callq 0x21900
testb $0x1, %al
jne 0x24ae1
jmp 0x24bea
movl 0x2d4(%rsp), %eax
movl %eax, 0x198(%rsp)
movl 0x2d0(%rsp), %eax
movl %eax, 0x19c(%rsp)
movl 0x2cc(%rsp), %eax
movl %eax, 0x1a0(%rsp)
movl 0x2c8(%rsp), %eax
movl %eax, 0x1a4(%rsp)
movq 0x2c0(%rsp), %rax
movq %rax, 0x1a8(%rsp)
movq 0x320(%rsp), %rsi
leaq 0x268(%rsp), %rdi
movq %rdi, 0x190(%rsp)
callq 0x21990
movq 0x190(%rsp), %r10
movq 0x1d8(%rsp), %rdi
movl 0x198(%rsp), %esi
movl 0x19c(%rsp), %edx
movl 0x1a0(%rsp), %ecx
movl 0x1a4(%rsp), %r8d
movq 0x1a8(%rsp), %r9
movss 0x2bc(%rsp), %xmm0
movss 0x2b8(%rsp), %xmm1
movq %rsp, %rax
movq %r10, (%rax)
callq 0x24900
movq %rax, 0x1b0(%rsp)
jmp 0x24ba2
movq 0x1b0(%rsp), %rax
movq %rax, 0x2e0(%rsp)
leaq 0x268(%rsp), %rdi
callq 0x15650
jmp 0x25971
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x290(%rsp)
movl %eax, 0x28c(%rsp)
leaq 0x268(%rsp), %rdi
callq 0x15650
jmp 0x2598b
movq 0x320(%rsp), %rax
movl (%rax), %eax
movq 0x2c0(%rsp), %rcx
cmpl (%rcx), %eax
jne 0x24c34
movq 0x320(%rsp), %rax
movl 0x4(%rax), %eax
movq 0x2c0(%rsp), %rcx
cmpl 0x4(%rcx), %eax
jne 0x24c34
movq 0x320(%rsp), %rax
movl 0x8(%rax), %eax
movq 0x2c0(%rsp), %rcx
cmpl 0x8(%rcx), %eax
je 0x24dac
movl $0x4008, %edi           # imm = 0x4008
callq 0x5240
movq %rax, %rcx
movq 0x1d8(%rsp), %rax
movq %rcx, 0x160(%rsp)
movl (%rax), %ecx
movl %ecx, 0x168(%rsp)
movl 0x4(%rax), %ecx
movl %ecx, 0x16c(%rsp)
movl 0x8(%rax), %ecx
movl %ecx, 0x170(%rsp)
movl 0xc(%rax), %ecx
movl %ecx, 0x174(%rsp)
movq 0x18(%rax), %rcx
movq %rcx, 0x178(%rsp)
movb 0x10(%rax), %dl
leaq 0xc3d44(%rip), %rcx     # 0xe89d2
leaq 0xa4e4c(%rip), %rax     # 0xc9ae1
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, 0x180(%rsp)
callq 0x1c2e0
movq %rax, 0x188(%rsp)
jmp 0x24cb3
movl 0x174(%rsp), %r9d
movl 0x170(%rsp), %r8d
movq 0x180(%rsp), %r10
movq 0x188(%rsp), %r11
movq 0x2c0(%rsp), %rax
movl (%rax), %ebx
movl 0x4(%rax), %ebp
movl 0x8(%rax), %r14d
movl 0xc(%rax), %r15d
movq 0x18(%rax), %r12
movq 0x320(%rsp), %rax
movl (%rax), %r13d
movl 0x4(%rax), %ecx
movl 0x8(%rax), %edx
movl 0xc(%rax), %esi
movq 0x18(%rax), %rdi
movq %rsp, %rax
movq %rax, 0x158(%rsp)
movq %rdi, 0x60(%rax)
movq 0x160(%rsp), %rdi
movl %esi, 0x58(%rax)
movq 0x178(%rsp), %rsi
movl %edx, 0x50(%rax)
movl 0x168(%rsp), %edx
movl %ecx, 0x48(%rax)
movl 0x16c(%rsp), %ecx
movl %r13d, 0x40(%rax)
movq %r12, 0x38(%rax)
movl %r15d, 0x30(%rax)
movl %r14d, 0x28(%rax)
movl %ebp, 0x20(%rax)
movl %ebx, 0x18(%rax)
movq %r11, 0x10(%rax)
movq %r10, 0x8(%rax)
movq %rsi, (%rax)
leaq 0xc3533(%rip), %rsi     # 0xe8295
xorl %eax, %eax
callq 0x12220
jmp 0x24d6b
movq 0x160(%rsp), %rdi
leaq 0xdade6(%rip), %rsi     # 0xffb60
leaq -0x12921(%rip), %rdx    # 0x12460
callq 0x5920
movq 0x160(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x290(%rsp)
movl %eax, 0x28c(%rsp)
callq 0x53a0
jmp 0x2598b
cmpl $0x0, 0x2d4(%rsp)
setl %al
andb $0x1, %al
movb %al, 0x267(%rsp)
cmpl $0x0, 0x2d0(%rsp)
setl %al
andb $0x1, %al
movb %al, 0x266(%rsp)
cmpl $0x0, 0x2cc(%rsp)
setl %al
andb $0x1, %al
movb %al, 0x265(%rsp)
cmpl $0x0, 0x2c8(%rsp)
setl %al
andb $0x1, %al
movb %al, 0x264(%rsp)
movq 0x2c0(%rsp), %rdi
callq 0x173f0
movl %eax, 0x14c(%rsp)
movl 0x2d4(%rsp), %eax
movl %eax, 0x150(%rsp)
movq 0x2c0(%rsp), %rdi
callq 0x173f0
movq 0x1d8(%rsp), %rdi
movl %eax, %ecx
movl 0x150(%rsp), %eax
addl %ecx, %eax
movl %eax, 0x154(%rsp)
callq 0x173f0
movl %eax, %ecx
movl 0x154(%rsp), %eax
cmpl %ecx, %eax
jle 0x24ea5
movl 0x2d4(%rsp), %eax
movl %eax, 0x140(%rsp)
movq 0x2c0(%rsp), %rdi
callq 0x173f0
movq 0x1d8(%rsp), %rdi
movl %eax, %ecx
movl 0x140(%rsp), %eax
addl %ecx, %eax
movl %eax, 0x144(%rsp)
callq 0x173f0
movl %eax, %ecx
movl 0x144(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x148(%rsp)
jmp 0x24eb0
xorl %eax, %eax
movl %eax, 0x148(%rsp)
jmp 0x24eb0
movl 0x14c(%rsp), %eax
movl 0x148(%rsp), %ecx
subl %ecx, %eax
movl %eax, 0x13c(%rsp)
testb $0x1, 0x267(%rsp)
je 0x24ee1
movl 0x2d4(%rsp), %eax
movl %eax, 0x138(%rsp)
jmp 0x24eec
xorl %eax, %eax
movl %eax, 0x138(%rsp)
jmp 0x24eec
movl 0x13c(%rsp), %eax
movl 0x138(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x260(%rsp)
movq 0x2c0(%rsp), %rdi
callq 0x17400
movl %eax, 0x12c(%rsp)
movl 0x2d0(%rsp), %eax
movl %eax, 0x130(%rsp)
movq 0x2c0(%rsp), %rdi
callq 0x17400
movq 0x1d8(%rsp), %rdi
movl %eax, %ecx
movl 0x130(%rsp), %eax
addl %ecx, %eax
movl %eax, 0x134(%rsp)
callq 0x17400
movl %eax, %ecx
movl 0x134(%rsp), %eax
cmpl %ecx, %eax
jle 0x24fac
movl 0x2d0(%rsp), %eax
movl %eax, 0x120(%rsp)
movq 0x2c0(%rsp), %rdi
callq 0x17400
movq 0x1d8(%rsp), %rdi
movl %eax, %ecx
movl 0x120(%rsp), %eax
addl %ecx, %eax
movl %eax, 0x124(%rsp)
callq 0x17400
movl %eax, %ecx
movl 0x124(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x128(%rsp)
jmp 0x24fb7
xorl %eax, %eax
movl %eax, 0x128(%rsp)
jmp 0x24fb7
movl 0x12c(%rsp), %eax
movl 0x128(%rsp), %ecx
subl %ecx, %eax
movl %eax, 0x11c(%rsp)
testb $0x1, 0x266(%rsp)
je 0x24fe8
movl 0x2d0(%rsp), %eax
movl %eax, 0x118(%rsp)
jmp 0x24ff3
xorl %eax, %eax
movl %eax, 0x118(%rsp)
jmp 0x24ff3
movl 0x11c(%rsp), %eax
movl 0x118(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x25c(%rsp)
movq 0x2c0(%rsp), %rdi
callq 0x20220
movl %eax, 0x10c(%rsp)
movl 0x2cc(%rsp), %eax
movl %eax, 0x110(%rsp)
movq 0x2c0(%rsp), %rdi
callq 0x20220
movq 0x1d8(%rsp), %rdi
movl %eax, %ecx
movl 0x110(%rsp), %eax
addl %ecx, %eax
movl %eax, 0x114(%rsp)
callq 0x20220
movl %eax, %ecx
movl 0x114(%rsp), %eax
cmpl %ecx, %eax
jle 0x250b3
movl 0x2cc(%rsp), %eax
movl %eax, 0x100(%rsp)
movq 0x2c0(%rsp), %rdi
callq 0x20220
movq 0x1d8(%rsp), %rdi
movl %eax, %ecx
movl 0x100(%rsp), %eax
addl %ecx, %eax
movl %eax, 0x104(%rsp)
callq 0x20220
movl %eax, %ecx
movl 0x104(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x108(%rsp)
jmp 0x250be
xorl %eax, %eax
movl %eax, 0x108(%rsp)
jmp 0x250be
movl 0x10c(%rsp), %eax
movl 0x108(%rsp), %ecx
subl %ecx, %eax
movl %eax, 0xfc(%rsp)
testb $0x1, 0x265(%rsp)
je 0x250ef
movl 0x2cc(%rsp), %eax
movl %eax, 0xf8(%rsp)
jmp 0x250fa
xorl %eax, %eax
movl %eax, 0xf8(%rsp)
jmp 0x250fa
movl 0xfc(%rsp), %eax
movl 0xf8(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x258(%rsp)
movq 0x2c0(%rsp), %rdi
callq 0x20350
movl %eax, 0xec(%rsp)
movl 0x2c8(%rsp), %eax
movl %eax, 0xf0(%rsp)
movq 0x2c0(%rsp), %rdi
callq 0x20350
movq 0x1d8(%rsp), %rdi
movl %eax, %ecx
movl 0xf0(%rsp), %eax
addl %ecx, %eax
movl %eax, 0xf4(%rsp)
callq 0x20350
movl %eax, %ecx
movl 0xf4(%rsp), %eax
cmpl %ecx, %eax
jle 0x251ba
movl 0x2c8(%rsp), %eax
movl %eax, 0xe0(%rsp)
movq 0x2c0(%rsp), %rdi
callq 0x20350
movq 0x1d8(%rsp), %rdi
movl %eax, %ecx
movl 0xe0(%rsp), %eax
addl %ecx, %eax
movl %eax, 0xe4(%rsp)
callq 0x20350
movl %eax, %ecx
movl 0xe4(%rsp), %eax
subl %ecx, %eax
movl %eax, 0xe8(%rsp)
jmp 0x251c5
xorl %eax, %eax
movl %eax, 0xe8(%rsp)
jmp 0x251c5
movl 0xec(%rsp), %eax
movl 0xe8(%rsp), %ecx
subl %ecx, %eax
movl %eax, 0xdc(%rsp)
testb $0x1, 0x264(%rsp)
je 0x251f6
movl 0x2c8(%rsp), %eax
movl %eax, 0xd8(%rsp)
jmp 0x25201
xorl %eax, %eax
movl %eax, 0xd8(%rsp)
jmp 0x25201
movl 0xdc(%rsp), %eax
movl 0xd8(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x254(%rsp)
testb $0x1, 0x267(%rsp)
je 0x25232
movl 0x2d4(%rsp), %eax
movl %eax, 0xd4(%rsp)
jmp 0x2523d
xorl %eax, %eax
movl %eax, 0xd4(%rsp)
jmp 0x2523d
movl 0xd4(%rsp), %ecx
xorl %eax, %eax
subl %ecx, %eax
movl %eax, 0xd0(%rsp)
testb $0x1, 0x266(%rsp)
je 0x25289
movl 0x2d0(%rsp), %eax
movl %eax, 0xc8(%rsp)
movq 0x320(%rsp), %rdi
callq 0x173f0
movl %eax, %ecx
movl 0xc8(%rsp), %eax
imull %ecx, %eax
movl %eax, 0xcc(%rsp)
jmp 0x25294
xorl %eax, %eax
movl %eax, 0xcc(%rsp)
jmp 0x25294
movl 0xd0(%rsp), %eax
movl 0xcc(%rsp), %ecx
subl %ecx, %eax
movl %eax, 0xc4(%rsp)
testb $0x1, 0x265(%rsp)
je 0x25305
movl 0x2cc(%rsp), %eax
movl %eax, 0xb8(%rsp)
movq 0x320(%rsp), %rdi
callq 0x173f0
movl %eax, %ecx
movl 0xb8(%rsp), %eax
imull %ecx, %eax
movl %eax, 0xbc(%rsp)
movq 0x320(%rsp), %rdi
callq 0x17400
movl %eax, %ecx
movl 0xbc(%rsp), %eax
imull %ecx, %eax
movl %eax, 0xc0(%rsp)
jmp 0x25310
xorl %eax, %eax
movl %eax, 0xc0(%rsp)
jmp 0x25310
movl 0xc4(%rsp), %eax
movl 0xc0(%rsp), %ecx
subl %ecx, %eax
movl %eax, 0xb4(%rsp)
testb $0x1, 0x264(%rsp)
je 0x253a1
movl 0x2c8(%rsp), %eax
movl %eax, 0xa4(%rsp)
movq 0x320(%rsp), %rdi
callq 0x173f0
movl %eax, %ecx
movl 0xa4(%rsp), %eax
imull %ecx, %eax
movl %eax, 0xa8(%rsp)
movq 0x320(%rsp), %rdi
callq 0x17400
movl %eax, %ecx
movl 0xa8(%rsp), %eax
imull %ecx, %eax
movl %eax, 0xac(%rsp)
movq 0x320(%rsp), %rdi
callq 0x20220
movl %eax, %ecx
movl 0xac(%rsp), %eax
imull %ecx, %eax
movl %eax, 0xb0(%rsp)
jmp 0x253ac
xorl %eax, %eax
movl %eax, 0xb0(%rsp)
jmp 0x253ac
movl 0xb4(%rsp), %eax
movl 0xb0(%rsp), %ecx
subl %ecx, %eax
movl %eax, 0x250(%rsp)
movq 0x320(%rsp), %rdi
callq 0x173f0
movl %eax, 0x98(%rsp)
movq 0x320(%rsp), %rdi
callq 0x17400
movl %eax, %ecx
movl 0x98(%rsp), %eax
imull %ecx, %eax
movl %eax, 0x9c(%rsp)
movq 0x320(%rsp), %rdi
callq 0x20220
movl %eax, %ecx
movl 0x9c(%rsp), %eax
imull %ecx, %eax
movl %eax, 0xa0(%rsp)
movq 0x320(%rsp), %rdi
callq 0x20350
movq 0x1d8(%rsp), %rcx
movl %eax, %edx
movl 0xa0(%rsp), %eax
imull %edx, %eax
movl %eax, 0x24c(%rsp)
movq 0x2c0(%rsp), %rax
movq 0x18(%rax), %rax
movslq 0x250(%rsp), %rdx
addq %rdx, %rax
movq %rax, 0x240(%rsp)
movq 0x320(%rsp), %rax
movq 0x18(%rax), %rax
movslq 0x250(%rsp), %rdx
addq %rdx, %rax
movq %rax, 0x238(%rsp)
movl (%rcx), %eax
movslq 0x260(%rsp), %rdx
subq %rdx, %rax
movq %rax, 0x230(%rsp)
movq 0x2c0(%rsp), %rax
movl (%rax), %eax
movslq 0x260(%rsp), %rdx
subq %rdx, %rax
movq %rax, 0x228(%rsp)
movl (%rcx), %eax
movl 0x4(%rcx), %edx
subl 0x25c(%rsp), %edx
movl %edx, %edx
imulq %rdx, %rax
movq %rax, 0x220(%rsp)
movq 0x2c0(%rsp), %rax
movl (%rax), %eax
movq 0x2c0(%rsp), %rdx
movl 0x4(%rdx), %edx
subl 0x25c(%rsp), %edx
movl %edx, %edx
imulq %rdx, %rax
movq %rax, 0x218(%rsp)
movl (%rcx), %eax
movl 0x4(%rcx), %edx
imulq %rdx, %rax
movl 0x8(%rcx), %ecx
subl 0x258(%rsp), %ecx
movl %ecx, %ecx
imulq %rcx, %rax
movq %rax, 0x210(%rsp)
movq 0x2c0(%rsp), %rax
movl (%rax), %eax
movq 0x2c0(%rsp), %rcx
movl 0x4(%rcx), %ecx
imulq %rcx, %rax
movq 0x2c0(%rsp), %rcx
movl 0x8(%rcx), %ecx
subl 0x258(%rsp), %ecx
movl %ecx, %ecx
imulq %rcx, %rax
movq %rax, 0x208(%rsp)
cmpl $0x0, 0x260(%rsp)
jle 0x25961
cmpl $0x0, 0x25c(%rsp)
jle 0x25961
cmpl $0x0, 0x258(%rsp)
jle 0x25961
cmpl $0x0, 0x254(%rsp)
jle 0x25961
cmpl $0x0, 0x2d4(%rsp)
jge 0x2559a
xorl %eax, %eax
movl %eax, 0x94(%rsp)
jmp 0x255a8
movl 0x2d4(%rsp), %eax
movl %eax, 0x94(%rsp)
movl 0x94(%rsp), %eax
movl %eax, 0x90(%rsp)
cmpl $0x0, 0x2d0(%rsp)
jge 0x255cb
xorl %eax, %eax
movl %eax, 0x8c(%rsp)
jmp 0x255d9
movl 0x2d0(%rsp), %eax
movl %eax, 0x8c(%rsp)
movl 0x8c(%rsp), %eax
movl %eax, 0x88(%rsp)
cmpl $0x0, 0x2cc(%rsp)
jge 0x255fc
xorl %eax, %eax
movl %eax, 0x84(%rsp)
jmp 0x2560a
movl 0x2cc(%rsp), %eax
movl %eax, 0x84(%rsp)
movl 0x84(%rsp), %eax
movl %eax, 0x80(%rsp)
cmpl $0x0, 0x2c8(%rsp)
jge 0x2562a
xorl %eax, %eax
movl %eax, 0x7c(%rsp)
jmp 0x25635
movl 0x2c8(%rsp), %eax
movl %eax, 0x7c(%rsp)
movl 0x80(%rsp), %ecx
movl 0x88(%rsp), %edx
movl 0x90(%rsp), %esi
movq 0x1d8(%rsp), %rdi
movl 0x7c(%rsp), %r8d
callq 0x21a70
movq %rax, 0x200(%rsp)
movl $0x0, 0x1fc(%rsp)
movl 0x1fc(%rsp), %eax
cmpl 0x254(%rsp), %eax
jge 0x2595f
movq 0x320(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x70(%rsp)
movq 0x238(%rsp), %rax
movq 0x320(%rsp), %rcx
movq 0x18(%rcx), %rcx
subq %rcx, %rax
movslq 0x24c(%rsp), %rcx
cqto
idivq %rcx
movq 0x70(%rsp), %rax
addq %rdx, %rax
movq %rax, 0x238(%rsp)
movl $0x0, 0x1f8(%rsp)
movl 0x1f8(%rsp), %eax
cmpl 0x258(%rsp), %eax
jge 0x25901
movl $0x0, 0x1f4(%rsp)
movl 0x1f4(%rsp), %eax
cmpl 0x25c(%rsp), %eax
jge 0x258a3
movl $0x0, 0x1f0(%rsp)
movl 0x1f0(%rsp), %eax
cmpl 0x260(%rsp), %eax
jge 0x25845
movq 0x238(%rsp), %rax
movq %rax, %rcx
incq %rcx
movq %rcx, 0x238(%rsp)
movzbl (%rax), %eax
cvtsi2ss %eax, %xmm0
movss 0x2bc(%rsp), %xmm1
mulss %xmm1, %xmm0
movss %xmm0, 0x1ec(%rsp)
movss 0x1ec(%rsp), %xmm0
callq 0x1f3d0
movss %xmm0, 0x1e8(%rsp)
movss 0x2b8(%rsp), %xmm0
movss %xmm0, 0x6c(%rsp)
movl $0x0, 0x1e0(%rsp)
leaq 0x1ec(%rsp), %rdi
leaq 0x1e0(%rsp), %rsi
callq 0x1f3f0
movaps %xmm0, %xmm1
movss 0x6c(%rsp), %xmm0
subss %xmm1, %xmm0
movss %xmm0, 0x1e4(%rsp)
movss 0x1e8(%rsp), %xmm0
movq 0x240(%rsp), %rax
movq %rax, %rcx
incq %rcx
movq %rcx, 0x240(%rsp)
movzbl (%rax), %eax
cvtsi2ss %eax, %xmm2
movq 0x200(%rsp), %rax
movzbl (%rax), %eax
cvtsi2ss %eax, %xmm1
movss 0x1e4(%rsp), %xmm3
mulss %xmm3, %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss 0x2b8(%rsp), %xmm1
divss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movb %al, %cl
movq 0x200(%rsp), %rax
movb %cl, (%rax)
movq 0x200(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x200(%rsp)
movl 0x1f0(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1f0(%rsp)
jmp 0x25711
movq 0x230(%rsp), %rax
addq 0x200(%rsp), %rax
movq %rax, 0x200(%rsp)
movq 0x228(%rsp), %rax
addq 0x240(%rsp), %rax
movq %rax, 0x240(%rsp)
movq 0x228(%rsp), %rax
addq 0x238(%rsp), %rax
movq %rax, 0x238(%rsp)
movl 0x1f4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1f4(%rsp)
jmp 0x256f2
movq 0x220(%rsp), %rax
addq 0x200(%rsp), %rax
movq %rax, 0x200(%rsp)
movq 0x218(%rsp), %rax
addq 0x240(%rsp), %rax
movq %rax, 0x240(%rsp)
movq 0x218(%rsp), %rax
addq 0x238(%rsp), %rax
movq %rax, 0x238(%rsp)
movl 0x1f8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1f8(%rsp)
jmp 0x256d3
movq 0x210(%rsp), %rax
addq 0x200(%rsp), %rax
movq %rax, 0x200(%rsp)
movq 0x208(%rsp), %rax
addq 0x240(%rsp), %rax
movq %rax, 0x240(%rsp)
movq 0x208(%rsp), %rax
addq 0x238(%rsp), %rax
movq %rax, 0x238(%rsp)
movl 0x1fc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1fc(%rsp)
jmp 0x2566f
jmp 0x25961
movq 0x1d8(%rsp), %rax
movq %rax, 0x2e0(%rsp)
movq 0x2e0(%rsp), %rax
addq $0x2e8, %rsp            # imm = 0x2E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x290(%rsp), %rdi
callq 0x5970
nopl (%rax,%rax)