// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<char>::CImg(char const*, unsigned int, unsigned int, unsigned int, unsigned int, bool)
CImg(const T *const values, const unsigned int size_x, const unsigned int size_y=1,
         const unsigned int size_z=1, const unsigned int size_c=1, const bool is_shared=false) {
      const unsigned long siz = (unsigned long)size_x*size_y*size_z*size_c;
      if (values && siz) {
        _width = size_x; _height = size_y; _depth = size_z; _spectrum = size_c; _is_shared = is_shared;
        if (_is_shared) _data = const_cast<T*>(values);
        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)*size_x*size_y*size_z*size_c),
                                        size_x,size_y,size_z,size_c);
          }
          std::memcpy(_data,values,siz*sizeof(T)); }
      } else { _width = _height = _depth = _spectrum = 0; _is_shared = false; _data = 0; }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, %r14d
movq %rdi, %r13
movl %edx, %eax
movl %ecx, %ecx
imulq %rax, %rcx
movl %r8d, %eax
movl %r9d, %ebp
imulq %rax, %rbp
imulq %rcx, %rbp
testq %rsi, %rsi
setne %al
testq %rbp, %rbp
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xda0d
movl %r9d, %r12d
movl %r8d, %r15d
movq %rsi, %rbx
movb 0x60(%rsp), %al
movq %rdx, 0x20(%rsp)
movl %edx, (%r13)
movl %r14d, 0x4(%r13)
movl %r8d, 0x8(%r13)
movl %r9d, 0xc(%r13)
movb %al, 0x10(%r13)
testb %al, %al
je 0xda2e
movq %rbx, 0x18(%r13)
jmp 0xda1f
andq $0x0, 0x18(%r13)
xorps %xmm0, %xmm0
movups %xmm0, (%r13)
movb $0x0, 0x10(%r13)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbp, %rdi
callq 0x4040
movq %rax, 0x18(%r13)
movq %rax, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4410
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), %ebx
movl 0x4(%r13), %eax
movl %eax, 0x14(%rsp)
movl 0x8(%r13), %eax
movl %eax, 0x10(%rsp)
movl 0xc(%r13), %eax
movl %eax, 0xc(%rsp)
movq 0x18(%r13), %rax
movq %rax, 0x18(%rsp)
movb 0x10(%r13), %r13b
movq %rbp, %rdi
callq 0x9afd
movq %rax, %r10
leaq 0x46d34(%rip), %rax     # 0x547e8
leaq 0x48107(%rip), %r11     # 0x55bc2
testb %r13b, %r13b
cmovneq %rax, %r11
leaq 0x52cc7(%rip), %r13     # 0x60790
leaq 0x6662a(%rip), %rsi     # 0x740fa
movq (%rsp), %rdi
movl %ebx, %edx
movl 0x14(%rsp), %ecx
movl 0x10(%rsp), %r8d
movl 0xc(%rsp), %r9d
xorl %eax, %eax
pushq %r12
pushq %r15
pushq %r14
pushq 0x38(%rsp)
pushq %r10
pushq %r13
pushq %r11
pushq 0x50(%rsp)
callq 0x9bf8
addq $0x40, %rsp
leaq 0x8213e(%rip), %rsi     # 0x8fc48
movq 0x824c7(%rip), %rdx     # 0x8ffd8
movq (%rsp), %rdi
callq 0x4910
movq %rax, %rbx
jmp 0xdb2b
movq %rax, %rbx
movq (%rsp), %rdi
callq 0x4390
callq 0x48d0
movq %rbx, %rdi
callq 0x4950
movq %rax, %rdi
callq 0x7f6f