// File: manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>::CImg(cimg_library::CImg<double> const&)
CImg(const CImg<T>& img) {
      const unsigned long siz = img.size();
      if (img._data && siz) {
        _width = img._width; _height = img._height; _depth = img._depth; _spectrum = img._spectrum;
        _is_shared = img._is_shared;
        if (_is_shared) _data = const_cast<T*>(img._data);
        else {
          try { _data = new T[siz]; } catch (...) {
            _width = _height = _depth = _spectrum = 0; _data = 0;
            throw CImgInstanceException(_cimg_instance
                                        "CImg(): Failed to allocate memory (%s) for image (%u,%u,%u,%u).",
                                        cimg_instance,
                                        cimg::strbuffersize(sizeof(T)*img._width*img._height*img._depth*img._spectrum),
                                        img._width,img._height,img._depth,img._spectrum);

          }
          std::memcpy(_data,img._data,siz*sizeof(T));
        }
      } else { _width = _height = _depth = _spectrum = 0; _is_shared = false; _data = 0; }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xc0, %rsp
movq %rdi, 0xb8(%rsp)
movq %rsi, 0xb0(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0xb0(%rsp), %rdi
callq 0x117b0
movq %rax, 0xa8(%rsp)
movq 0xb0(%rsp), %rax
cmpq $0x0, 0x18(%rax)
je 0xb0b4
cmpq $0x0, 0xa8(%rsp)
je 0xb0b4
movq 0x90(%rsp), %rax
movq 0xb0(%rsp), %rcx
movl (%rcx), %ecx
movl %ecx, (%rax)
movq 0xb0(%rsp), %rcx
movl 0x4(%rcx), %ecx
movl %ecx, 0x4(%rax)
movq 0xb0(%rsp), %rcx
movl 0x8(%rcx), %ecx
movl %ecx, 0x8(%rax)
movq 0xb0(%rsp), %rcx
movl 0xc(%rcx), %ecx
movl %ecx, 0xc(%rax)
movq 0xb0(%rsp), %rcx
movb 0x10(%rcx), %cl
andb $0x1, %cl
movb %cl, 0x10(%rax)
testb $0x1, 0x10(%rax)
je 0xae88
movq 0x90(%rsp), %rax
movq 0xb0(%rsp), %rcx
movq 0x18(%rcx), %rcx
movq %rcx, 0x18(%rax)
jmp 0xb0b2
movq 0xa8(%rsp), %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
movq $-0x1, %rax
cmovoq %rax, %rdi
callq 0x5040
movq %rax, 0x88(%rsp)
jmp 0xaeb5
movq 0x90(%rsp), %rax
movq 0x88(%rsp), %rcx
movq %rcx, 0x18(%rax)
jmp 0xb089
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa0(%rsp)
movl %eax, 0x9c(%rsp)
movq 0xa0(%rsp), %rdi
callq 0x51e0
movq 0x90(%rsp), %rax
movl $0x0, 0xc(%rax)
movl $0x0, 0x8(%rax)
movl $0x0, 0x4(%rax)
movl $0x0, (%rax)
movq $0x0, 0x18(%rax)
movl $0x4008, %edi           # imm = 0x4008
callq 0x5240
movq %rax, %rcx
movq 0x90(%rsp), %rax
movq %rcx, 0x58(%rsp)
movl (%rax), %ecx
movl %ecx, 0x60(%rsp)
movl 0x4(%rax), %ecx
movl %ecx, 0x64(%rsp)
movl 0x8(%rax), %ecx
movl %ecx, 0x68(%rsp)
movl 0xc(%rax), %ecx
movl %ecx, 0x6c(%rsp)
movq 0x18(%rax), %rcx
movq %rcx, 0x70(%rsp)
movb 0x10(%rax), %dl
leaq 0xdda70(%rip), %rcx     # 0xe89d2
leaq 0xbeb78(%rip), %rax     # 0xc9ae1
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, 0x78(%rsp)
callq 0x118f0
movq %rax, 0x80(%rsp)
jmp 0xaf84
movq 0xb0(%rsp), %rax
movl (%rax), %edx
movl 0x4(%rax), %ecx
movl %edx, %edi
imulq %rcx, %rdi
movl 0x8(%rax), %ecx
imulq %rcx, %rdi
movl 0xc(%rax), %eax
imulq %rax, %rdi
shlq $0x3, %rdi
callq 0x11dc0
movq %rax, 0x50(%rsp)
jmp 0xafb5
movl 0x6c(%rsp), %r9d
movl 0x68(%rsp), %r8d
movl 0x64(%rsp), %ecx
movl 0x60(%rsp), %edx
movq 0x58(%rsp), %rdi
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %r10
movq 0x80(%rsp), %r11
movq 0x50(%rsp), %rbx
movq 0xb0(%rsp), %rax
movl (%rax), %ebp
movl 0x4(%rax), %r14d
movl 0x8(%rax), %r15d
movl 0xc(%rax), %r12d
movq %rsp, %rax
movq %rax, 0x48(%rsp)
movl %r12d, 0x38(%rax)
movl %r15d, 0x30(%rax)
movl %r14d, 0x28(%rax)
movl %ebp, 0x20(%rax)
movq %rbx, 0x18(%rax)
movq %r11, 0x10(%rax)
movq %r10, 0x8(%rax)
movq %rsi, (%rax)
leaq 0xdcff3(%rip), %rsi     # 0xe8019
xorl %eax, %eax
callq 0x11fd0
jmp 0xb02f
movq 0x58(%rsp), %rdi
leaq 0xf4b0d(%rip), %rsi     # 0xffb48
leaq 0x71ce(%rip), %rdx      # 0x12210
callq 0x5920
jmp 0xb108
movq 0x58(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa0(%rsp)
movl %eax, 0x9c(%rsp)
callq 0x53a0
jmp 0xb080
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa0(%rsp)
movl %eax, 0x9c(%rsp)
callq 0x58d0
jmp 0xb087
jmp 0xb0f3
movq 0x90(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0xb0(%rsp), %rax
movq 0x18(%rax), %rsi
movq 0xa8(%rsp), %rdx
shlq $0x3, %rdx
callq 0x5420
jmp 0xb0e3
movq 0x90(%rsp), %rax
movl $0x0, 0xc(%rax)
movl $0x0, 0x8(%rax)
movl $0x0, 0x4(%rax)
movl $0x0, (%rax)
movb $0x0, 0x10(%rax)
movq $0x0, 0x18(%rax)
addq $0xc0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0xa0(%rsp), %rdi
callq 0x5970
movq %rax, %rdi
callq 0xcb20
nopl (%rax,%rax)