// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: void cimg_library::CImgDisplay::_render_resize<unsigned int, unsigned int>(unsigned int const*, unsigned int, unsigned int, unsigned int*, unsigned int, unsigned int)
static void _render_resize(const T *ptrs, const unsigned int ws, const unsigned int hs,
                               t *ptrd, const unsigned int wd, const unsigned int hd) {
      unsigned int *const offx = new unsigned int[wd], *const offy = new unsigned int[hd+1], *poffx, *poffy;
      float s, curr, old;
      s = (float)ws/wd;
      poffx = offx; curr = 0; for (unsigned int x = 0; x<wd; ++x) {
        old = curr; curr+=s; *(poffx++) = (unsigned int)curr - (unsigned int)old;
      }
      s = (float)hs/hd;
      poffy = offy; curr = 0; for (unsigned int y = 0; y<hd; ++y) {
        old = curr; curr+=s; *(poffy++) = ws*((unsigned int)curr - (unsigned int)old);
      }
      *poffy = 0;
      poffy = offy;
      for (unsigned int y = 0; y<hd; ) {
        const T *ptr = ptrs;
        poffx = offx;
        for (unsigned int x = 0; x<wd; ++x) { *(ptrd++) = *ptr; ptr+=*(poffx++); }
        ++y;
        unsigned int dy = *(poffy++);
        for ( ; !dy && y<hd; std::memcpy(ptrd,ptrd - wd,sizeof(t)*wd), ++y, ptrd+=wd, dy = *(poffy++)) {}
        ptrs+=dy;
      }
      delete[] offx; delete[] offy;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r9d, %ebx
movq %rcx, %r14
movl %edx, (%rsp)
movl %esi, %ebp
movq %rdi, 0x8(%rsp)
movl %r8d, %r15d
leaq (,%r15,4), %r12
movq %r12, %rdi
callq 0x4040
movq %rax, %r13
leal 0x1(%rbx), %edi
shlq $0x2, %rdi
callq 0x4040
movq %r13, %rdi
movq %r15, %rsi
movl %ebp, %ecx
cvtsi2ss %rcx, %xmm0
movq %rax, %r13
cvtsi2ss %r15, %xmm1
divss %xmm1, %xmm0
movq %rbx, 0x20(%rsp)
movl %ebx, %ebx
xorps %xmm1, %xmm1
xorl %r8d, %r8d
cmpl %r8d, %esi
je 0x1eed2
movaps %xmm0, %xmm2
addss %xmm1, %xmm2
cvttss2si %xmm2, %rcx
cvttss2si %xmm1, %rdx
subl %edx, %ecx
movl %ecx, (%rdi,%r8,4)
incq %r8
movaps %xmm2, %xmm1
jmp 0x1eeae
movl (%rsp), %ecx
cvtsi2ss %rcx, %xmm0
cvtsi2ss %rbx, %xmm1
divss %xmm1, %xmm0
xorps %xmm1, %xmm1
xorl %r8d, %r8d
cmpl %r8d, %ebx
je 0x1ef11
movaps %xmm0, %xmm2
addss %xmm1, %xmm2
cvttss2si %xmm2, %rcx
cvttss2si %xmm1, %rdx
subl %edx, %ecx
imull %ebp, %ecx
movl %ecx, (%r13,%r8,4)
incq %r8
movaps %xmm2, %xmm1
jmp 0x1eee9
andl $0x0, (%r13,%r8,4)
movq %r12, %r15
negq %r15
xorl %ebp, %ebp
movq %r13, (%rsp)
movq 0x8(%rsp), %rcx
movq %rsi, 0x18(%rsp)
movq %rdi, 0x10(%rsp)
cmpl 0x20(%rsp), %ebp
jae 0x1ef92
xorl %eax, %eax
movq %rcx, 0x8(%rsp)
cmpl %eax, %esi
je 0x1ef6a
movl (%rcx), %edx
movl %edx, (%r14)
addq $0x4, %r14
movl (%rdi,%rax,4), %edx
leaq (%rcx,%rdx,4), %rcx
incq %rax
jmp 0x1ef3f
leaq (%r14,%r15), %rsi
movq %r14, %rdi
movq %r12, %rdx
callq 0x4410
addq %r12, %r14
incl %ebp
addq $0x4, %r13
movl -0x4(%r13), %eax
testq %rax, %rax
jne 0x1ef7d
cmpl %ebx, %ebp
jb 0x1ef58
movq 0x8(%rsp), %rcx
leaq (%rcx,%rax,4), %rcx
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdi
jmp 0x1ef32
callq 0x4670
movq (%rsp), %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4670