// File: /workspace/github_cpp_makefile_star2_O2/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
movl %r9d, 0x18(%rsp)
movl %r8d, 0x14(%rsp)
movl %ecx, %ebp
movl %edx, %r13d
movq %rdi, %r14
movq %rsi, 0x8(%rsp)
movq %rsi, %rdi
callq 0x263a6
testb %al, %al
jne 0x2664f
movl 0xa8(%rsp), %r15d
movl 0xa0(%rsp), %ebx
movl 0x98(%rsp), %r12d
movl 0x90(%rsp), %edx
cmpl %edx, %r13d
movl %edx, %ecx
cmovll %r13d, %ecx
movl %r13d, %eax
movl %edx, %r13d
movl %eax, 0x38(%rsp)
xorl %eax, %r13d
xorl %ecx, %r13d
cmpl %r12d, %ebp
movl %r12d, %eax
cmovll %ebp, %eax
xorl %ebp, %r12d
movl %ecx, %ebp
xorl %eax, %r12d
movl 0x14(%rsp), %ecx
cmpl %ebx, %ecx
movl %ebx, %edi
cmovll %ecx, %edi
xorl %ecx, %ebx
xorl %edi, %ebx
movl 0x18(%rsp), %ecx
cmpl %r15d, %ecx
movl %r15d, %r9d
cmovll %ecx, %r9d
xorl %ecx, %r15d
xorl %r9d, %r15d
movl %r13d, %esi
subl %ebp, %esi
incl %esi
movl %r12d, %edx
movq %rax, 0x30(%rsp)
subl %eax, %edx
incl %edx
movl %ebx, %ecx
movq %rdi, 0x28(%rsp)
subl %edi, %ecx
incl %ecx
movl %r15d, %r8d
movq %r9, 0x20(%rsp)
subl %r9d, %r8d
incl %r8d
movq %r14, %rdi
callq 0x17c34
testl %ebp, %ebp
js 0x264f6
cmpl $0x0, 0x30(%rsp)
js 0x264f6
movq 0x8(%rsp), %rax
cmpl (%rax), %r13d
jge 0x264f6
cmpl $0x0, 0x28(%rsp)
js 0x264f6
movq 0x8(%rsp), %rax
cmpl 0x4(%rax), %r12d
jge 0x264f6
cmpl $0x0, 0x20(%rsp)
js 0x264f6
movq 0x8(%rsp), %rax
cmpl 0x8(%rax), %ebx
jge 0x264f6
movq %r14, %rdi
movq 0x8(%rsp), %rax
cmpl 0xc(%rax), %r15d
jl 0x26611
cmpb $0x0, 0xb0(%rsp)
je 0x26604
movslq 0x90(%rsp), %rax
movslq 0x38(%rsp), %rcx
cmpq %rcx, %rax
cmovlq %rax, %rcx
movq %rcx, 0x38(%rsp)
movq $0x0, 0x18(%rsp)
xorl %ecx, %ecx
movslq 0xc(%r14), %rax
cmpq %rax, %rcx
jge 0x2663d
movq 0x20(%rsp), %rax
movq %rcx, 0x40(%rsp)
addl %ecx, %eax
movl %eax, 0x14(%rsp)
xorl %r15d, %r15d
xorl %ecx, %ecx
movslq 0x8(%r14), %rax
cmpq %rax, %rcx
jge 0x265f1
movq 0x28(%rsp), %rax
movq %rcx, 0x48(%rsp)
leal (%rax,%rcx), %r13d
xorl %ebx, %ebx
xorl %ecx, %ecx
movslq 0x4(%r14), %rax
cmpq %rax, %rcx
jge 0x265e0
movq 0x30(%rsp), %rax
movq %rcx, 0x50(%rsp)
leal (%rax,%rcx), %r12d
xorl %ebp, %ebp
movslq (%r14), %rax
cmpq %rax, %rbp
jge 0x265d2
movq 0x38(%rsp), %rax
leal (%rax,%rbp), %esi
movq 0x8(%rsp), %rdi
movl %r12d, %edx
movl %r13d, %ecx
movl 0x14(%rsp), %r8d
callq 0x26f26
movl (%r14), %ecx
movl 0x4(%r14), %edx
movl 0x8(%r14), %esi
imulq 0x18(%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
jmp 0x26582
movq 0x50(%rsp), %rcx
incq %rcx
addq $0x4, %rbx
jmp 0x26569
movq 0x48(%rsp), %rcx
incq %rcx
addq $0x4, %r15
jmp 0x2654a
movq 0x40(%rsp), %rcx
incq %rcx
addq $0x4, 0x18(%rsp)
jmp 0x26528
movq %r14, %rdi
xorl %esi, %esi
callq 0x26fa2
movq %rax, %rdi
negl %ebp
movq 0x30(%rsp), %rdx
negl %edx
movq 0x28(%rsp), %rcx
negl %ecx
movq 0x20(%rsp), %r8
negl %r8d
movss 0x2dbef(%rip), %xmm0    # 0x54220
movl %ebp, %esi
movq 0x8(%rsp), %r9
callq 0x2700a
movq %r14, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
movq 0x8(%rsp), %rbx
movl (%rbx), %edx
movl 0x4(%rbx), %ecx
movl 0x8(%rbx), %r8d
movl 0xc(%rbx), %r9d
leaq 0x2e173(%rip), %rax     # 0x547e8
leaq 0x2f546(%rip), %r10     # 0x55bc2
cmpb $0x0, 0x10(%rbx)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x4dec2(%rip), %r11     # 0x74551
leaq 0x4db43(%rip), %rsi     # 0x741d9
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x18(%rbx)
callq 0x9bf8
addq $0x20, %rsp
leaq 0x69596(%rip), %rsi     # 0x8fc48
movq 0x6991f(%rip), %rdx     # 0x8ffd8
movq %r14, %rdi
callq 0x4910
movq %rax, %rbx
movq %r14, %rdi
callq 0x4390
jmp 0x266db
jmp 0x266d0
movq %rax, %rbx
movq %r14, %rdi
callq 0x17f44
movq %rbx, %rdi
callq 0x4950
nop