// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<unsigned short>::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 0x37b47
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 0x37b16
cmpb $0x1, 0x10(%r13)
je 0x37b5d
movq 0x18(%r13), %rdi
testq %rdi, %rdi
je 0x37aff
callq 0x4670
leaq (%rbx,%rbx), %rax
testq %rbx, %rbx
pushq $-0x1
popq %rdi
cmovnsq %rax, %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)
movq %r13, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, %rdi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x38190
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 0x1cc67(%rip), %rax     # 0x547e8
leaq 0x1e03a(%rip), %r10     # 0x55bc2
cmpb $0x0, 0x10(%r13)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x3e0bb(%rip), %r11     # 0x75c57
leaq 0x1e094(%rip), %rsi     # 0x55c37
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 0x9d52
addq $0x40, %rsp
leaq 0x58092(%rip), %rsi     # 0x8fc60
movq 0x58403(%rip), %rdx     # 0x8ffd8
movq %rbp, %rdi
callq 0x4910
movq %rax, %rbx
movq %rbp, %rdi
callq 0x4390
jmp 0x37cda
movq %rax, %rdi
callq 0x41d0
andq $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
addq %rbp, %rbp
movq %rbp, %rdi
callq 0x9afd
movq %rax, %r10
leaq 0x1cb8e(%rip), %rax     # 0x547e8
leaq 0x1df61(%rip), %r11     # 0x55bc2
testb %bl, %bl
cmovneq %rax, %r11
leaq 0x3dfe9(%rip), %rbx     # 0x75c57
leaq 0x1df52(%rip), %rsi     # 0x55bc7
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 0x9bf8
addq $0x40, %rsp
leaq 0x57f94(%rip), %rsi     # 0x8fc48
movq 0x5831d(%rip), %rdx     # 0x8ffd8
movq (%rsp), %rdi
callq 0x4910
movq %rax, %rbx
jmp 0x37cd5
movq %rax, %rbx
movq (%rsp), %rdi
callq 0x4390
callq 0x48d0
movq %rbx, %rdi
callq 0x4950
movq %rax, %rdi
callq 0x7f6f