// File: kallaballa[P]PixelStencil/./CImg.h
// Function: cimg_library::CImg<unsigned char>::assign(unsigned char const*, unsigned int, unsigned int, unsigned int, unsigned int, bool)
CImg<T>& assign(const T *const values, const unsigned int size_x, const unsigned int size_y,
                    const unsigned int size_z, const unsigned int size_c, const bool is_shared) {
      const unsigned long siz = (unsigned long)size_x*size_y*size_z*size_c;
      if (!values || !siz) {
        if (is_shared)
          throw CImgArgumentException(_cimg_instance
                                      "assign(): Invalid assignment request of shared instance from (null) or empty buffer.",
                                      cimg_instance);
        else return assign();
      }
      if (!is_shared) { if (_is_shared) assign(); assign(values,size_x,size_y,size_z,size_c); }
      else {
        if (!_is_shared) {
          if (values+siz<_data || values>=_data+size()) assign();
          else cimg::warn(_cimg_instance
                          "assign(): Shared image instance has overlapping memory.",
                          cimg_instance);
        }
        _width = size_x; _height = size_y; _depth = size_z; _spectrum = size_c; _is_shared = true;
        _data = const_cast<T*>(values);
      }
      return *this;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movb 0x10(%rbp), %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movl %ecx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movl %r9d, -0x28(%rbp)
andb $0x1, %al
movb %al, -0x29(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
movl -0x1c(%rbp), %eax
movl -0x20(%rbp), %ecx
imulq %rcx, %rax
movl -0x24(%rbp), %ecx
imulq %rcx, %rax
movl -0x28(%rbp), %ecx
imulq %rcx, %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x1c3ff
cmpq $0x0, -0x38(%rbp)
jne 0x1c4e3
testb $0x1, -0x29(%rbp)
je 0x1c4d1
movl $0x4008, %edi           # imm = 0x4008
callq 0x4190
movq %rax, %rcx
movq -0x50(%rbp), %rax
movq %rcx, -0x80(%rbp)
movl (%rax), %ecx
movl %ecx, -0x78(%rbp)
movl 0x4(%rax), %ecx
movl %ecx, -0x74(%rbp)
movl 0x8(%rax), %ecx
movl %ecx, -0x70(%rbp)
movl 0xc(%rax), %ecx
movl %ecx, -0x6c(%rbp)
movq 0x18(%rax), %rcx
movq %rcx, -0x68(%rbp)
movb 0x10(%rax), %dl
leaq 0x26319(%rip), %rcx     # 0x42760
leaq 0x260cb(%rip), %rax     # 0x42519
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, -0x60(%rbp)
callq 0x8cc0
movq %rax, -0x58(%rbp)
jmp 0x1c464
movl -0x6c(%rbp), %r9d
movl -0x70(%rbp), %r8d
movl -0x74(%rbp), %ecx
movl -0x78(%rbp), %edx
movq -0x80(%rbp), %rdi
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %r10
movq -0x58(%rbp), %r11
movq %rsp, %rax
movq %r11, 0x10(%rax)
movq %r10, 0x8(%rax)
movq %rsi, (%rax)
leaq 0x26f48(%rip), %rsi     # 0x433df
xorl %eax, %eax
callq 0x8cd0
jmp 0x1c4a0
movq -0x80(%rbp), %rdi
leaq 0x3373d(%rip), %rsi     # 0x4fbe8
leaq -0x13672(%rip), %rdx    # 0x8e40
callq 0x4600
movq -0x80(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
callq 0x4270
jmp 0x1c654
movq -0x50(%rbp), %rdi
callq 0xe230
movq %rax, -0x8(%rbp)
jmp 0x1c647
testb $0x1, -0x29(%rbp)
jne 0x1c51c
movq -0x50(%rbp), %rax
testb $0x1, 0x10(%rax)
je 0x1c4fc
movq -0x50(%rbp), %rdi
callq 0xe230
movq -0x50(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
movl -0x20(%rbp), %ecx
movl -0x24(%rbp), %r8d
movl -0x28(%rbp), %r9d
callq 0x1c660
jmp 0x1c63f
movq -0x50(%rbp), %rax
testb $0x1, 0x10(%rax)
jne 0x1c618
movq -0x50(%rbp), %rcx
movq -0x18(%rbp), %rax
addq -0x38(%rbp), %rax
cmpq 0x18(%rcx), %rax
jb 0x1c574
movq -0x50(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0x88(%rbp)
movq 0x18(%rdi), %rax
movq %rax, -0x90(%rbp)
callq 0xe200
movq -0x90(%rbp), %rcx
movq %rax, %rdx
movq -0x88(%rbp), %rax
addq %rdx, %rcx
cmpq %rcx, %rax
jb 0x1c582
movq -0x50(%rbp), %rdi
callq 0xe230
jmp 0x1c616
movq -0x50(%rbp), %rax
movl (%rax), %ecx
movl %ecx, -0xb0(%rbp)
movl 0x4(%rax), %ecx
movl %ecx, -0xac(%rbp)
movl 0x8(%rax), %ecx
movl %ecx, -0xa8(%rbp)
movl 0xc(%rax), %ecx
movl %ecx, -0xa4(%rbp)
movq 0x18(%rax), %rcx
movq %rcx, -0xa0(%rbp)
movb 0x10(%rax), %dl
leaq 0x25f5b(%rip), %rax     # 0x42519
leaq 0x2619b(%rip), %rcx     # 0x42760
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, -0x98(%rbp)
callq 0x8cc0
movl -0xb0(%rbp), %esi
movl -0xac(%rbp), %edx
movl -0xa8(%rbp), %ecx
movl -0xa4(%rbp), %r8d
movq -0xa0(%rbp), %r9
movq -0x98(%rbp), %r10
leaq 0x26e5c(%rip), %rdi     # 0x43462
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
movb $0x0, %al
callq 0xd150
jmp 0x1c618
movq -0x50(%rbp), %rax
movl -0x1c(%rbp), %ecx
movl %ecx, (%rax)
movl -0x20(%rbp), %ecx
movl %ecx, 0x4(%rax)
movl -0x24(%rbp), %ecx
movl %ecx, 0x8(%rax)
movl -0x28(%rbp), %ecx
movl %ecx, 0xc(%rax)
movb $0x1, 0x10(%rax)
movq -0x18(%rbp), %rcx
movq %rcx, 0x18(%rax)
movq -0x50(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xd0, %rsp
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0x4620
nopl (%rax)