// File: /workspace/github_cpp_makefile_star2_O3/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>::get_crop(int, int, int, int, int, int, int, int, bool) const
CImg<T> get_crop(const int x0, const int y0, const int z0, const int c0,
                     const int x1, const int y1, const int z1, const int c1,
                     const bool boundary_conditions=false) const {
      if (is_empty())
        throw CImgInstanceException(_cimg_instance
                                    "crop(): Empty instance.",
                                    cimg_instance);
      const int
        nx0 = x0<x1?x0:x1, nx1 = x0^x1^nx0,
        ny0 = y0<y1?y0:y1, ny1 = y0^y1^ny0,
        nz0 = z0<z1?z0:z1, nz1 = z0^z1^nz0,
        nc0 = c0<c1?c0:c1, nc1 = c0^c1^nc0;
      CImg<T> res(1U + nx1 - nx0,1U + ny1 - ny0,1U + nz1 - nz0,1U + nc1 - nc0);
      if (nx0<0 || nx1>=width() || ny0<0 || ny1>=height() || nz0<0 || nz1>=depth() || nc0<0 || nc1>=spectrum()) {
        if (boundary_conditions) cimg_forXYZC(res,x,y,z,c) res(x,y,z,c) = _atXYZC(nx0+x,ny0+y,nz0+z,nc0+c);
        else res.fill(0).draw_image(-nx0,-ny0,-nz0,-nc0,*this);
      } else res.draw_image(-nx0,-ny0,-nz0,-nc0,*this);
      return res;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %r10
cmpq $0x0, 0x18(%rsi)
je 0x44f87
movdqu (%r10), %xmm0
pxor %xmm1, %xmm1
pcmpeqd %xmm0, %xmm1
movmskps %xmm1, %eax
testb %al, %al
jne 0x44f87
movq %rdi, %r14
movl 0xa8(%rsp), %r15d
movl 0xa0(%rsp), %r12d
movl 0x98(%rsp), %r13d
movl 0x90(%rsp), %ebx
cmpl %ebx, %edx
movl %ebx, %ebp
cmovll %edx, %ebp
movl %edx, 0x8(%rsp)
xorl %edx, %ebx
xorl %ebp, %ebx
cmpl %r13d, %ecx
movl %r13d, %eax
cmovll %ecx, %eax
xorl %ecx, %r13d
xorl %eax, %r13d
cmpl %r12d, %r8d
movl %r12d, %edi
cmovll %r8d, %edi
xorl %r8d, %r12d
xorl %edi, %r12d
cmpl %r15d, %r9d
movl %r15d, %r11d
cmovll %r9d, %r11d
xorl %r9d, %r15d
xorl %r11d, %r15d
movl %ebx, %esi
subl %ebp, %esi
incl %esi
movl %r13d, %edx
movq %rax, 0x20(%rsp)
subl %eax, %edx
incl %edx
movl %r12d, %ecx
movq %rdi, 0x18(%rsp)
subl %edi, %ecx
incl %ecx
movl %r15d, %r8d
movq %r11, 0x10(%rsp)
subl %r11d, %r8d
incl %r8d
movq %r14, %rdi
movq %r10, 0x28(%rsp)
callq 0x8666
movq 0x28(%rsp), %r9
testl %ebp, %ebp
js 0x44e05
cmpl $0x0, 0x20(%rsp)
js 0x44e05
cmpl (%r9), %ebx
jge 0x44e05
cmpl $0x0, 0x18(%rsp)
js 0x44e05
cmpl 0x4(%r9), %r13d
jge 0x44e05
cmpl $0x0, 0x10(%rsp)
js 0x44e05
cmpl 0x8(%r9), %r12d
jge 0x44e05
movq %r14, %rdi
cmpl 0xc(%r9), %r15d
jl 0x44f4e
cmpb $0x0, 0xb0(%rsp)
je 0x44f3a
movl 0xc(%r14), %ecx
testl %ecx, %ecx
jle 0x44f75
movl 0x8(%r14), %eax
movslq 0x90(%rsp), %rdx
movslq 0x8(%rsp), %rsi
cmpq %rsi, %rdx
cmovlq %rdx, %rsi
movq %rsi, 0x50(%rsp)
movq $0x0, 0x8(%rsp)
xorl %esi, %esi
testl %eax, %eax
jle 0x44f23
movl 0x4(%r14), %ecx
movq 0x10(%rsp), %rdx
movq %rsi, 0x38(%rsp)
addl %esi, %edx
movl %edx, 0x34(%rsp)
xorl %r15d, %r15d
xorl %edi, %edi
testl %ecx, %ecx
movq %rdi, 0x40(%rsp)
jle 0x44f02
movl (%r14), %edx
movq 0x18(%rsp), %rsi
leal (%rsi,%rdi), %r13d
xorl %ebx, %ebx
xorl %edi, %edi
testl %edx, %edx
jle 0x44ef3
movq 0x20(%rsp), %rax
movq %rdi, 0x48(%rsp)
leal (%rax,%rdi), %r12d
xorl %ebp, %ebp
movq 0x50(%rsp), %rax
leal (%rax,%rbp), %esi
movq %r9, %rdi
movl %r12d, %edx
movl %r13d, %ecx
movl 0x34(%rsp), %r8d
callq 0x45026
movslq (%r14), %rdx
movl %edx, %esi
movl 0x4(%r14), %ecx
movl 0x8(%r14), %eax
movq 0x8(%rsp), %rdi
imulq %rax, %rdi
addq %r15, %rdi
imulq %rcx, %rdi
addq %rbx, %rdi
imulq %rsi, %rdi
addq 0x18(%r14), %rdi
movq %xmm0, (%rdi,%rbp,8)
incq %rbp
cmpq %rdx, %rbp
movq 0x28(%rsp), %r9
jl 0x44e99
movq 0x48(%rsp), %rdi
incq %rdi
movslq %ecx, %rsi
addq $0x8, %rbx
cmpq %rsi, %rdi
jl 0x44e85
movq 0x40(%rsp), %rdi
incq %rdi
movslq %eax, %rdx
addq $0x8, %r15
cmpq %rdx, %rdi
jl 0x44e68
movl 0xc(%r14), %ecx
movq 0x38(%rsp), %rsi
incq %rsi
movslq %ecx, %rdx
addq $0x8, 0x8(%rsp)
cmpq %rdx, %rsi
jl 0x44e47
jmp 0x44f75
pxor %xmm0, %xmm0
movq %r14, %rdi
callq 0x37330
movq 0x28(%rsp), %r9
movq %rax, %rdi
negl %ebp
movq 0x20(%rsp), %rdx
negl %edx
movq 0x18(%rsp), %rcx
negl %ecx
movq 0x10(%rsp), %r8
negl %r8d
movd 0x29342(%rip), %xmm0    # 0x6e2b0
movl %ebp, %esi
callq 0x36c40
movq %r14, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x4008, %edi           # imm = 0x4008
movq %r10, %rbx
callq 0x4210
movq %rax, %r14
movl (%rbx), %edx
movl 0x4(%rbx), %ecx
movl 0x8(%rbx), %r8d
movl 0xc(%rbx), %r9d
leaq 0x298bd(%rip), %rax     # 0x6e868
leaq 0x2ac90(%rip), %r10     # 0x6fc42
cmpb $0x0, 0x10(%rbx)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x4a15a(%rip), %r11     # 0x8f11f
leaq 0x4928d(%rip), %rsi     # 0x8e259
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x18(%rbx)
callq 0xbfac
addq $0x20, %rsp
leaq 0x62c50(%rip), %rsi     # 0xa7c38
movq 0x62fe1(%rip), %rdx     # 0xa7fd0
movq %r14, %rdi
callq 0x4910
movq %rax, %rbx
movq %r14, %rdi
callq 0x43c0
jmp 0x4501e
jmp 0x45006
movq %rax, %rbx
cmpb $0x0, 0x10(%r14)
jne 0x4501e
movq 0x18(%r14), %rdi
testq %rdi, %rdi
je 0x4501e
callq 0x4690
movq %rbx, %rdi
callq 0x4960