// File: /workspace/github_cpp_makefile_star2_O3/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 0x107a7
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 0x107cb
movq %rbx, 0x18(%r13)
jmp 0x107bc
movq $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 0x4440
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), %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 0xbe84
movq %rax, %r10
leaq 0x5e014(%rip), %rax     # 0x6e868
leaq 0x5f3e7(%rip), %r11     # 0x6fc42
testb %r13b, %r13b
cmovneq %rax, %r11
leaq 0x69fa7(%rip), %r13     # 0x7a810
leaq 0x7d90a(%rip), %rsi     # 0x8e17a
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 0xbfac
addq $0x40, %rsp
leaq 0x9738e(%rip), %rsi     # 0xa7c38
movq 0x9771f(%rip), %rdx     # 0xa7fd0
movq (%rsp), %rdi
callq 0x4910
movq %rax, %rbx
jmp 0x108cb
movq %rax, %rbx
movq (%rsp), %rdi
callq 0x43c0
callq 0x48d0
movq %rbx, %rdi
callq 0x4960
movq %rax, %rdi
callq 0xa02c