// File: /workspace/github_cpp_makefile_star2_O1/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 %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, %r15d
movl %edx, %r14d
movq %rdi, %r12
movl %esi, %eax
movl %edx, %ecx
movl %r15d, %edx
imulq %rcx, %rdx
movl %r8d, %ebp
imulq %rax, %rbp
imulq %rdx, %rbp
testq %rbp, %rbp
je 0xbce9
movl %r8d, %r13d
movl %esi, %ebx
movl (%r12), %eax
movl 0x4(%r12), %ecx
imulq %rax, %rcx
movl 0x8(%r12), %eax
movl 0xc(%r12), %edx
imulq %rax, %rdx
imulq %rcx, %rdx
cmpq %rdx, %rbp
je 0xbcd4
cmpb $0x1, 0x10(%r12)
je 0xbd29
movq 0x18(%r12), %rdi
testq %rdi, %rdi
je 0xbcb4
callq 0x4680
movq %rbp, %rax
shrq $0x3d, %rax
shlq $0x3, %rbp
xorl %edi, %edi
negq %rax
sbbq %rdi, %rdi
orq %rbp, %rdi
callq 0x4040
movq %rax, 0x18(%r12)
movl %ebx, (%r12)
movl %r14d, 0x4(%r12)
movl %r15d, 0x8(%r12)
movl %r13d, 0xc(%r12)
jmp 0xbd17
cmpb $0x0, 0x10(%r12)
jne 0xbd00
movq 0x18(%r12), %rdi
testq %rdi, %rdi
je 0xbd00
callq 0x4680
movq $0x0, 0x18(%r12)
xorps %xmm0, %xmm0
movups %xmm0, (%r12)
movb $0x0, 0x10(%r12)
movq %r12, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %rbp
movl (%r12), %edx
movl 0x4(%r12), %ecx
movl 0x8(%r12), %r8d
movl 0xc(%r12), %r9d
leaq 0x675e8(%rip), %rax     # 0x73338
leaq 0x689bb(%rip), %r10     # 0x74712
cmpb $0x0, 0x10(%r12)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x87e83(%rip), %r11     # 0x93bef
leaq 0x68a14(%rip), %rsi     # 0x74787
movq %rbp, %rdi
xorl %eax, %eax
pushq %r13
pushq %r15
pushq %r14
pushq %rbx
pushq %r11
pushq %r10
pushq 0x18(%r12)
callq 0xc196
addq $0x40, %rsp
leaq 0xa0e88(%rip), %rsi     # 0xacc20
movq 0xa1231(%rip), %rdx     # 0xacfd0
movq %rbp, %rdi
callq 0x4900
movq %rax, %rbx
movq %rbp, %rdi
callq 0x43b0
jmp 0xbea1
movq %rax, %rdi
callq 0x41d0
movq $0x0, 0x18(%r12)
xorps %xmm0, %xmm0
movups %xmm0, (%r12)
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, 0x8(%rsp)
movl (%r12), %eax
movl %eax, 0x1c(%rsp)
movl 0x4(%r12), %eax
movl %eax, 0x18(%rsp)
movl 0x8(%r12), %eax
movl %eax, 0x14(%rsp)
movl 0xc(%r12), %eax
movl %eax, 0x10(%rsp)
movq 0x18(%r12), %rax
movq %rax, 0x20(%rsp)
movb 0x10(%r12), %r12b
movq %rbp, %rdi
callq 0xbeb1
movq %rax, %r10
leaq 0x67515(%rip), %rax     # 0x73338
leaq 0x688e8(%rip), %r11     # 0x74712
testb %r12b, %r12b
cmovneq %rax, %r11
leaq 0x87db7(%rip), %r12     # 0x93bef
leaq 0x688d8(%rip), %rsi     # 0x74717
movq 0x8(%rsp), %rdi
movl 0x1c(%rsp), %edx
movl 0x18(%rsp), %ecx
movl 0x14(%rsp), %r8d
movl 0x10(%rsp), %r9d
xorl %eax, %eax
pushq %r13
pushq %r15
pushq %r14
pushq %rbx
pushq %r10
pushq %r12
pushq %r11
pushq 0x58(%rsp)
callq 0xbfd8
addq $0x40, %rsp
leaq 0xa0d8f(%rip), %rsi     # 0xacc08
movq 0xa1150(%rip), %rdx     # 0xacfd0
movq 0x8(%rsp), %rdi
callq 0x4900
movq %rax, %rbx
jmp 0xbe9c
movq %rax, %rbx
movq 0x8(%rsp), %rdi
callq 0x43b0
callq 0x48c0
movq %rbx, %rdi
callq 0x4950
movq %rax, %rdi
callq 0xa08f