// File: manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>::assign(unsigned int, unsigned int, unsigned int, unsigned int)
CImg<T>& assign(const unsigned int size_x, const unsigned int size_y=1,
                    const unsigned int size_z=1, const unsigned int size_c=1) {
      const unsigned long siz = (unsigned long)size_x*size_y*size_z*size_c;
      if (!siz) return assign();
      const unsigned long curr_siz = size();
      if (siz!=curr_siz) {
        if (_is_shared)
          throw CImgArgumentException(_cimg_instance
                                      "assign(): Invalid assignement request of shared instance from specified "
                                      "image (%u,%u,%u,%u).",
                                      cimg_instance,
                                      size_x,size_y,size_z,size_c);
        else {
          delete[] _data;
          try { _data = new T[siz]; } catch (...) {
            _width = _height = _depth = _spectrum = 0; _data = 0;
            throw CImgInstanceException(_cimg_instance
                                        "assign(): Failed to allocate memory (%s) for image (%u,%u,%u,%u).",
                                        cimg_instance,
                                        cimg::strbuffersize(sizeof(T)*size_x*size_y*size_z*size_c),
                                        size_x,size_y,size_z,size_c);
          }
        }
      }
      _width = size_x; _height = size_y; _depth = size_z; _spectrum = size_c;
      return *this;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x110, %rsp            # imm = 0x110
movq %rdi, 0x100(%rsp)
movl %esi, 0xfc(%rsp)
movl %edx, 0xf8(%rsp)
movl %ecx, 0xf4(%rsp)
movl %r8d, 0xf0(%rsp)
movq 0x100(%rsp), %rax
movq %rax, 0xc8(%rsp)
movl 0xfc(%rsp), %eax
movl 0xf8(%rsp), %ecx
imulq %rcx, %rax
movl 0xf4(%rsp), %ecx
imulq %rcx, %rax
movl 0xf0(%rsp), %ecx
imulq %rcx, %rax
movq %rax, 0xe8(%rsp)
cmpq $0x0, 0xe8(%rsp)
jne 0x11999
movq 0xc8(%rsp), %rdi
callq 0x11230
movq %rax, 0x108(%rsp)
jmp 0x11d93
movq 0xc8(%rsp), %rdi
callq 0x117b0
movq %rax, 0xe0(%rsp)
movq 0xe8(%rsp), %rax
cmpq 0xe0(%rsp), %rax
je 0x11d5c
movq 0xc8(%rsp), %rax
testb $0x1, 0x10(%rax)
je 0x11b1e
movl $0x4008, %edi           # imm = 0x4008
callq 0x5240
movq %rax, %rcx
movq 0xc8(%rsp), %rax
movq %rcx, 0x98(%rsp)
movl (%rax), %ecx
movl %ecx, 0xa0(%rsp)
movl 0x4(%rax), %ecx
movl %ecx, 0xa4(%rsp)
movl 0x8(%rax), %ecx
movl %ecx, 0xa8(%rsp)
movl 0xc(%rax), %ecx
movl %ecx, 0xac(%rsp)
movq 0x18(%rax), %rcx
movq %rcx, 0xb0(%rsp)
movb 0x10(%rax), %dl
leaq 0xd6fa2(%rip), %rcx     # 0xe89d2
leaq 0xb80aa(%rip), %rax     # 0xc9ae1
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, 0xb8(%rsp)
callq 0x118f0
movq %rax, 0xc0(%rsp)
jmp 0x11a55
movl 0xac(%rsp), %r9d
movl 0xa8(%rsp), %r8d
movl 0xa4(%rsp), %ecx
movl 0xa0(%rsp), %edx
movq 0x98(%rsp), %rdi
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %r10
movq 0xc0(%rsp), %r11
movl 0xfc(%rsp), %ebx
movl 0xf8(%rsp), %ebp
movl 0xf4(%rsp), %r14d
movl 0xf0(%rsp), %r15d
movq %rsp, %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 0xb8082(%rip), %rsi     # 0xc9b56
xorl %eax, %eax
callq 0x12220
jmp 0x11add
movq 0x98(%rsp), %rdi
leaq 0xee074(%rip), %rsi     # 0xffb60
leaq 0x96d(%rip), %rdx       # 0x12460
callq 0x5920
movq 0x98(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
callq 0x53a0
jmp 0x11dab
movq 0xc8(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x90(%rsp)
cmpq $0x0, %rax
je 0x11b45
movq 0x90(%rsp), %rdi
callq 0x5680
movq 0xe8(%rsp), %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
movq $-0x1, %rax
cmovoq %rax, %rdi
callq 0x5040
movq %rax, 0x88(%rsp)
jmp 0x11b72
movq 0xc8(%rsp), %rax
movq 0x88(%rsp), %rcx
movq %rcx, 0x18(%rax)
jmp 0x11d58
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
movq 0xd8(%rsp), %rdi
callq 0x51e0
movq 0xc8(%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 0xc8(%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 0xd6db3(%rip), %rcx     # 0xe89d2
leaq 0xb7ebb(%rip), %rax     # 0xc9ae1
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, 0x78(%rsp)
callq 0x118f0
movq %rax, 0x80(%rsp)
jmp 0x11c41
movl 0xfc(%rsp), %eax
movl %eax, %edi
movl 0xf8(%rsp), %eax
imulq %rax, %rdi
movl 0xf4(%rsp), %eax
imulq %rax, %rdi
movl 0xf0(%rsp), %eax
imulq %rax, %rdi
shlq $0x3, %rdi
callq 0x11dc0
movq %rax, 0x50(%rsp)
jmp 0x11c7b
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
movl 0xfc(%rsp), %ebp
movl 0xf8(%rsp), %r14d
movl 0xf4(%rsp), %r15d
movl 0xf0(%rsp), %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 0xb7df1(%rip), %rsi     # 0xc9ae6
xorl %eax, %eax
callq 0x11fd0
jmp 0x11cfe
movq 0x58(%rsp), %rdi
leaq 0xede3e(%rip), %rsi     # 0xffb48
leaq 0x4ff(%rip), %rdx       # 0x12210
callq 0x5920
jmp 0x11dc0
movq 0x58(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
callq 0x53a0
jmp 0x11d4f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
callq 0x58d0
jmp 0x11d56
jmp 0x11dab
jmp 0x11d5a
jmp 0x11d5c
movq 0xc8(%rsp), %rax
movl 0xfc(%rsp), %ecx
movl %ecx, (%rax)
movl 0xf8(%rsp), %ecx
movl %ecx, 0x4(%rax)
movl 0xf4(%rsp), %ecx
movl %ecx, 0x8(%rax)
movl 0xf0(%rsp), %ecx
movl %ecx, 0xc(%rax)
movq %rax, 0x108(%rsp)
movq 0x108(%rsp), %rax
addq $0x110, %rsp            # imm = 0x110
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0xd8(%rsp), %rdi
callq 0x5970
movq %rax, %rdi
callq 0xcb20