// File: /workspace/github_cpp_makefile_star2_O3/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 $0x38, %rsp
movq %rdi, %r13
movq %rsi, 0x18(%rsp)
movl %esi, %r15d
movq %rdx, 0x10(%rsp)
movl %edx, %eax
movq %rcx, 0x8(%rsp)
movl %ecx, %ebp
imulq %rax, %rbp
movl %r8d, %r14d
movq %r15, %rbx
imulq %r14, %rbx
imulq %rbp, %rbx
testq %rbx, %rbx
je 0xbcb7
movl %r8d, %r12d
movl (%r13), %eax
movl 0x4(%r13), %ecx
imulq %rax, %rcx
movl 0x8(%r13), %eax
movl 0xc(%r13), %edx
imulq %rax, %rdx
imulq %rcx, %rdx
cmpq %rdx, %rbx
je 0xbc96
cmpb $0x1, 0x10(%r13)
je 0xbcf3
movq 0x18(%r13), %rdi
testq %rdi, %rdi
je 0xbc77
callq 0x4690
movq %rbx, %rax
shrq $0x3d, %rax
shlq $0x3, %rbx
xorl %edi, %edi
negq %rax
sbbq %rdi, %rdi
orq %rbx, %rdi
callq 0x4040
movq %rax, 0x18(%r13)
movq 0x18(%rsp), %rax
movl %eax, (%r13)
movq 0x10(%rsp), %rax
movl %eax, 0x4(%r13)
movq 0x8(%rsp), %rax
movl %eax, 0x8(%r13)
movl %r12d, 0xc(%r13)
jmp 0xbce1
cmpb $0x0, 0x10(%r13)
jne 0xbccc
movq 0x18(%r13), %rdi
testq %rdi, %rdi
je 0xbccc
callq 0x4690
movq $0x0, 0x18(%r13)
xorps %xmm0, %xmm0
movups %xmm0, (%r13)
movb $0x0, 0x10(%r13)
movq %r13, %rax
addq $0x38, %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 (%r13), %edx
movl 0x4(%r13), %ecx
movl 0x8(%r13), %r8d
movl 0xc(%r13), %r9d
leaq 0x62b51(%rip), %rax     # 0x6e868
leaq 0x63f24(%rip), %r10     # 0x6fc42
cmpb $0x0, 0x10(%r13)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x833ed(%rip), %r11     # 0x8f11f
leaq 0x63f7e(%rip), %rsi     # 0x6fcb7
movq %rbp, %rdi
xorl %eax, %eax
pushq %r12
pushq 0x18(%rsp)
pushq 0x28(%rsp)
pushq 0x38(%rsp)
pushq %r11
pushq %r10
pushq 0x18(%r13)
callq 0xc16a
addq $0x40, %rsp
leaq 0x9beec(%rip), %rsi     # 0xa7c50
movq 0x9c265(%rip), %rdx     # 0xa7fd0
movq %rbp, %rdi
callq 0x4910
movq %rax, %rbx
movq %rbp, %rdi
callq 0x43c0
jmp 0xbe74
movq %rax, %rdi
callq 0x41d0
movq $0x0, 0x18(%r13)
xorps %xmm0, %xmm0
movups %xmm0, (%r13)
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, (%rsp)
movl (%r13), %eax
movl %eax, 0x2c(%rsp)
movl 0x4(%r13), %eax
movl %eax, 0x28(%rsp)
movl 0x8(%r13), %eax
movl %eax, 0x24(%rsp)
movl 0xc(%r13), %eax
movl %eax, 0x20(%rsp)
movq 0x18(%r13), %rax
movq %rax, 0x30(%rsp)
movb 0x10(%r13), %bl
imulq %r15, %rbp
imulq %r14, %rbp
shlq $0x3, %rbp
movq %rbp, %rdi
callq 0xbe84
movq %rax, %r10
leaq 0x62a74(%rip), %rax     # 0x6e868
leaq 0x63e47(%rip), %r11     # 0x6fc42
testb %bl, %bl
cmovneq %rax, %r11
leaq 0x83317(%rip), %rbx     # 0x8f11f
leaq 0x63e38(%rip), %rsi     # 0x6fc47
movq (%rsp), %rdi
movl 0x2c(%rsp), %edx
movl 0x28(%rsp), %ecx
movl 0x24(%rsp), %r8d
movl 0x20(%rsp), %r9d
xorl %eax, %eax
pushq %r12
pushq 0x10(%rsp)
pushq 0x20(%rsp)
pushq 0x30(%rsp)
pushq %r10
pushq %rbx
pushq %r11
pushq 0x68(%rsp)
callq 0xbfac
addq $0x40, %rsp
leaq 0x9bdea(%rip), %rsi     # 0xa7c38
movq 0x9c17b(%rip), %rdx     # 0xa7fd0
movq (%rsp), %rdi
callq 0x4910
movq %rax, %rbx
jmp 0xbe6f
movq %rax, %rbx
movq (%rsp), %rdi
callq 0x43c0
callq 0x48d0
movq %rbx, %rdi
callq 0x4960
movq %rax, %rdi
callq 0xa02c