// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<char>::assign(char const*, unsigned int, unsigned int, unsigned int, unsigned int)
CImg<T>& assign(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 unsigned long siz = (unsigned long)size_x*size_y*size_z*size_c;
      if (!values || !siz) return assign();
      const unsigned long curr_siz = size();
      if (values==_data && siz==curr_siz) return assign(size_x,size_y,size_z,size_c);
      if (_is_shared || values+siz<_data || values>=_data+size()) {
        assign(size_x,size_y,size_z,size_c);
        if (_is_shared) std::memmove(_data,values,siz*sizeof(T));
        else std::memcpy(_data,values,siz*sizeof(T));
      } else {
        T *new_data = 0;
        try { new_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);
        }
        std::memcpy(new_data,values,siz*sizeof(T));
        delete[] _data; _data = new_data; _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
movq %rdi, %r13
movl %edx, %eax
movl %ecx, %ecx
imulq %rax, %rcx
movq %r8, 0x8(%rsp)
movl %r8d, %eax
movq %r9, 0x10(%rsp)
movl %r9d, %ebp
imulq %rax, %rbp
imulq %rcx, %rbp
testq %rsi, %rsi
setne %al
testq %rbp, %rbp
setne %cl
testb %cl, %al
je 0xed6e
movl %edx, %r12d
movq %rsi, %rbx
movl (%r13), %eax
movl 0x4(%r13), %ecx
imulq %rax, %rcx
movl 0x8(%r13), %edx
movl 0xc(%r13), %eax
imulq %rdx, %rax
imulq %rcx, %rax
movq 0x18(%r13), %r14
cmpq %rsi, %r14
jne 0xed84
cmpq %rax, %rbp
jne 0xed84
movq %r13, %rdi
movl %r12d, %esi
movl %r15d, %edx
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xef1c
movq %r13, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xeca8
cmpb $0x0, 0x10(%r13)
jne 0xede7
leaq (%rbx,%rbp), %rcx
cmpq %r14, %rcx
jb 0xede7
addq %r14, %rax
cmpq %rbx, %rax
jbe 0xede7
movq %rbp, %rdi
callq 0x4040
movq %rax, (%rsp)
movq %rax, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0x4410
testq %r14, %r14
je 0xedc3
movq %r14, %rdi
callq 0x4670
movq (%rsp), %rax
movq %rax, 0x18(%r13)
movl %r12d, (%r13)
movl %r15d, 0x4(%r13)
movq 0x8(%rsp), %rax
movl %eax, 0x8(%r13)
movq 0x10(%rsp), %rax
movl %eax, 0xc(%r13)
jmp 0xee22
movq %r13, %rdi
movl %r12d, %esi
movl %r15d, %edx
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
callq 0xef1c
movq 0x18(%r13), %rdi
cmpb $0x1, 0x10(%r13)
jne 0xee17
movq %rbx, %rsi
movq %rbp, %rdx
callq 0x48c0
jmp 0xee22
movq %rbx, %rsi
movq %rbp, %rdx
callq 0x4410
movq %r13, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
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), %r14d
movl 0x4(%r13), %ebx
movl 0x8(%r13), %eax
movl %eax, 0x1c(%rsp)
movl 0xc(%r13), %eax
movl %eax, 0x18(%rsp)
movq 0x18(%r13), %rax
movq %rax, 0x20(%rsp)
movb 0x10(%r13), %r13b
movq %rbp, %rdi
callq 0x9afd
movq %rax, %r10
leaq 0x4595a(%rip), %rax     # 0x547e8
leaq 0x46d2d(%rip), %r11     # 0x55bc2
testb %r13b, %r13b
cmovneq %rax, %r11
leaq 0x518ed(%rip), %r13     # 0x60790
leaq 0x46d1d(%rip), %rsi     # 0x55bc7
movq (%rsp), %rdi
movl %r14d, %edx
movl %ebx, %ecx
movl 0x1c(%rsp), %r8d
movl 0x18(%rsp), %r9d
xorl %eax, %eax
pushq 0x10(%rsp)
pushq 0x10(%rsp)
pushq %r15
pushq %r12
pushq %r10
pushq %r13
pushq %r11
pushq 0x58(%rsp)
callq 0x9bf8
addq $0x40, %rsp
leaq 0x80d63(%rip), %rsi     # 0x8fc48
movq 0x810ec(%rip), %rdx     # 0x8ffd8
movq (%rsp), %rdi
callq 0x4910
movq %rax, %rbx
jmp 0xef06
movq %rax, %rbx
movq (%rsp), %rdi
callq 0x4390
callq 0x48d0
movq %rbx, %rdi
callq 0x4950
movq %rax, %rdi
callq 0x7f6f
nop