// File: manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<unsigned char>::get_shared_channels(unsigned int, unsigned int)
CImg<T> get_shared_channels(const unsigned int c0, const unsigned int c1) {
      const unsigned int beg = offset(0,0,0,c0), end = offset(0,0,0,c1);
      if (beg>end || beg>=size() || end>=size())
        throw CImgArgumentException(_cimg_instance
                                    "get_shared_channels(): Invalid request of a shared-memory subset "
                                    "(0->%u,0->%u,0->%u,%u->%u).",
                                    cimg_instance,
                                    _width-1,_height-1,_depth-1,c0,c1);

      return CImg<T>(_data+beg,_width,_height,_depth,c1-c0+1,true);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xd0, %rsp
movq %rdi, 0x88(%rsp)
movq %rdi, %rax
movq %rax, 0x90(%rsp)
movq %rdi, 0xc8(%rsp)
movq %rsi, 0xc0(%rsp)
movl %edx, 0xbc(%rsp)
movl %ecx, 0xb8(%rsp)
movq 0xc0(%rsp), %rdi
movq %rdi, 0x98(%rsp)
movl 0xbc(%rsp), %r8d
xorl %ecx, %ecx
movl %ecx, %esi
movl %ecx, %edx
callq 0x24830
movq 0x98(%rsp), %rdi
movl %eax, 0xb4(%rsp)
movl 0xb8(%rsp), %r8d
xorl %ecx, %ecx
movl %ecx, %esi
movl %ecx, %edx
callq 0x24830
movl %eax, 0xb0(%rsp)
movl 0xb4(%rsp), %eax
cmpl 0xb0(%rsp), %eax
ja 0x246a2
movq 0x98(%rsp), %rdi
movl 0xb4(%rsp), %eax
movq %rax, 0x80(%rsp)
callq 0x1c2b0
movq %rax, %rcx
movq 0x80(%rsp), %rax
cmpq %rcx, %rax
jae 0x246a2
movq 0x98(%rsp), %rdi
movl 0xb0(%rsp), %eax
movq %rax, 0x78(%rsp)
callq 0x1c2b0
movq %rax, %rcx
movq 0x78(%rsp), %rax
cmpq %rcx, %rax
jb 0x247c4
movl $0x4008, %edi           # imm = 0x4008
callq 0x5240
movq %rax, %rcx
movq 0x98(%rsp), %rax
movq %rcx, 0x48(%rsp)
movl (%rax), %ecx
movl %ecx, 0x50(%rsp)
movl 0x4(%rax), %ecx
movl %ecx, 0x54(%rsp)
movl 0x8(%rax), %ecx
movl %ecx, 0x58(%rsp)
movl 0xc(%rax), %ecx
movl %ecx, 0x5c(%rsp)
movq 0x18(%rax), %rcx
movq %rcx, 0x60(%rsp)
movb 0x10(%rax), %dl
leaq 0xc42e8(%rip), %rcx     # 0xe89d2
leaq 0xa53f0(%rip), %rax     # 0xc9ae1
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, 0x68(%rsp)
callq 0x1c2e0
movq %rax, 0x70(%rsp)
jmp 0x24709
movl 0x5c(%rsp), %r9d
movl 0x58(%rsp), %r8d
movl 0x54(%rsp), %ecx
movl 0x50(%rsp), %edx
movq 0x48(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %r10
movq 0x70(%rsp), %r11
movq 0x98(%rsp), %rax
movl (%rax), %ebx
movl 0x4(%rax), %ebp
decl %ebx
decl %ebp
movl 0x8(%rax), %r14d
decl %r14d
movl 0xbc(%rsp), %r15d
movl 0xb8(%rsp), %r12d
movq %rsp, %rax
movq %rax, 0x40(%rsp)
movl %r12d, 0x38(%rax)
movl %r15d, 0x30(%rax)
movl %r14d, 0x28(%rax)
movl %ebp, 0x20(%rax)
movl %ebx, 0x18(%rax)
movq %r11, 0x10(%rax)
movq %r10, 0x8(%rax)
movq %rsi, (%rax)
leaq 0xc3a87(%rip), %rsi     # 0xe820a
xorl %eax, %eax
callq 0x12220
jmp 0x2478c
movq 0x48(%rsp), %rdi
leaq 0xdb3c8(%rip), %rsi     # 0xffb60
leaq -0x1233f(%rip), %rdx    # 0x12460
callq 0x5920
movq 0x48(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa8(%rsp)
movl %eax, 0xa4(%rsp)
callq 0x53a0
jmp 0x24823
movq 0x88(%rsp), %rdi
movq 0x98(%rsp), %rax
movq 0x18(%rax), %rsi
movl 0xb4(%rsp), %ecx
addq %rcx, %rsi
movl (%rax), %edx
movl 0x4(%rax), %ecx
movl 0x8(%rax), %r8d
movl 0xb8(%rsp), %r9d
subl 0xbc(%rsp), %r9d
addl $0x1, %r9d
movl $0x1, (%rsp)
callq 0x20370
movq 0x90(%rsp), %rax
addq $0xd0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0xa8(%rsp), %rdi
callq 0x5970