// File: /workspace/github_cpp_makefile_star2_O1/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<unsigned int>::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 0x33496
movdqu (%r10), %xmm0
pxor %xmm1, %xmm1
pcmpeqd %xmm0, %xmm1
movmskps %xmm1, %eax
testb %al, %al
jne 0x33496
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, 0x30(%rsp)
subl %eax, %edx
incl %edx
movl %r12d, %ecx
movq %rdi, 0x20(%rsp)
subl %edi, %ecx
incl %ecx
movl %r15d, %r8d
movq %r11, 0x10(%rsp)
subl %r11d, %r8d
incl %r8d
movq %r14, %rdi
movq %r10, 0x40(%rsp)
callq 0x1dcd4
movq 0x40(%rsp), %r9
testl %ebp, %ebp
js 0x332f7
cmpl $0x0, 0x30(%rsp)
js 0x332f7
cmpl (%r9), %ebx
jge 0x332f7
cmpl $0x0, 0x20(%rsp)
js 0x332f7
cmpl 0x4(%r9), %r13d
jge 0x332f7
cmpl $0x0, 0x10(%rsp)
js 0x332f7
cmpl 0x8(%r9), %r12d
jge 0x332f7
movq %r14, %rdi
cmpl 0xc(%r9), %r15d
jl 0x3345d
cmpb $0x0, 0xb0(%rsp)
je 0x3344b
cmpl $0x0, 0xc(%r14)
jle 0x33484
movslq 0x90(%rsp), %rax
movslq 0x8(%rsp), %rcx
cmpq %rcx, %rax
cmovlq %rax, %rcx
movq %rcx, 0x50(%rsp)
movq $0x0, 0x8(%rsp)
movq $0x0, 0x18(%rsp)
cmpl $0x0, 0x8(%r14)
jle 0x33429
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
addl %ecx, %eax
movl %eax, 0x4c(%rsp)
xorl %r15d, %r15d
movq $0x0, 0x28(%rsp)
cmpl $0x0, 0x4(%r14)
jle 0x3340b
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
leal (%rax,%rcx), %r13d
xorl %ebx, %ebx
movq $0x0, 0x38(%rsp)
cmpl $0x0, (%r14)
jle 0x333ed
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
leal (%rax,%rcx), %r12d
xorl %ebp, %ebp
movq 0x50(%rsp), %rax
leal (%rax,%rbp), %esi
movq %r9, %rdi
movl %r12d, %edx
movl %r13d, %ecx
movl 0x4c(%rsp), %r8d
callq 0x33dfa
movl (%r14), %ecx
movl 0x4(%r14), %edx
movl 0x8(%r14), %esi
imulq 0x8(%rsp), %rsi
addq %r15, %rsi
imulq %rdx, %rsi
addq %rbx, %rsi
imulq %rcx, %rsi
addq 0x18(%r14), %rsi
movl %eax, (%rsi,%rbp,4)
incq %rbp
movslq (%r14), %rax
cmpq %rax, %rbp
movq 0x40(%rsp), %r9
jl 0x3339c
movq 0x38(%rsp), %rdx
incq %rdx
movslq 0x4(%r14), %rax
addq $0x4, %rbx
movq %rdx, 0x38(%rsp)
cmpq %rax, %rdx
jl 0x33386
movq 0x28(%rsp), %rdx
incq %rdx
movslq 0x8(%r14), %rax
addq $0x4, %r15
movq %rdx, 0x28(%rsp)
cmpq %rax, %rdx
jl 0x33362
movq 0x18(%rsp), %rdx
incq %rdx
movslq 0xc(%r14), %rax
addq $0x4, 0x8(%rsp)
movq %rdx, 0x18(%rsp)
cmpq %rax, %rdx
jl 0x3333b
jmp 0x33484
movq %r14, %rdi
xorl %esi, %esi
callq 0x33e76
movq 0x40(%rsp), %r9
movq %rax, %rdi
movq 0x10(%rsp), %r8
negl %r8d
movq 0x20(%rsp), %rcx
negl %ecx
movq 0x30(%rsp), %rdx
negl %edx
negl %ebp
movd 0x3de33(%rip), %xmm0    # 0x712b0
movl %ebp, %esi
callq 0x33ffe
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 0x3fe7e(%rip), %rax     # 0x73338
leaq 0x41251(%rip), %r10     # 0x74712
cmpb $0x0, 0x10(%rbx)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x5fbcd(%rip), %r11     # 0x930a1
leaq 0x5f84e(%rip), %rsi     # 0x92d29
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x18(%rbx)
callq 0xbfd8
addq $0x20, %rsp
leaq 0x79711(%rip), %rsi     # 0xacc08
movq 0x79ad2(%rip), %rdx     # 0xacfd0
movq %r14, %rdi
callq 0x4900
movq %rax, %rbx
movq %r14, %rdi
callq 0x43b0
jmp 0x3352d
jmp 0x33515
movq %rax, %rbx
cmpb $0x0, 0x10(%r14)
jne 0x3352d
movq 0x18(%r14), %rdi
testq %rdi, %rdi
je 0x3352d
callq 0x4680
movq %rbx, %rdi
callq 0x4950
nop