// File: /workspace/github_cpp_makefile_star2_O3/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>::mirror(char)
CImg<T>& mirror(const char axis) {
      if (is_empty()) return *this;
      T *pf, *pb, *buf = 0;
      switch (cimg::uncase(axis)) {
      case 'x' : {
        pf = _data; pb = data(_width-1);
        const unsigned int width2 = _width/2;
        for (unsigned int yzv = 0; yzv<_height*_depth*_spectrum; ++yzv) {
          for (unsigned int x = 0; x<width2; ++x) { const T val = *pf; *(pf++) = *pb; *(pb--) = val; }
          pf+=_width - width2;
          pb+=_width + width2;
        }
      } break;
      case 'y' : {
        buf = new T[_width];
        pf = _data; pb = data(0,_height-1);
        const unsigned int height2 = _height/2;
        for (unsigned int zv = 0; zv<_depth*_spectrum; ++zv) {
          for (unsigned int y = 0; y<height2; ++y) {
            std::memcpy(buf,pf,_width*sizeof(T));
            std::memcpy(pf,pb,_width*sizeof(T));
            std::memcpy(pb,buf,_width*sizeof(T));
            pf+=_width;
            pb-=_width;
          }
          pf+=(unsigned long)_width*(_height - height2);
          pb+=(unsigned long)_width*(_height + height2);
        }
      } break;
      case 'z' : {
        buf = new T[(unsigned long)_width*_height];
        pf = _data; pb = data(0,0,_depth-1);
        const unsigned int depth2 = _depth/2;
        cimg_forC(*this,c) {
          for (unsigned int z = 0; z<depth2; ++z) {
            std::memcpy(buf,pf,_width*_height*sizeof(T));
            std::memcpy(pf,pb,_width*_height*sizeof(T));
            std::memcpy(pb,buf,_width*_height*sizeof(T));
            pf+=(unsigned long)_width*_height;
            pb-=(unsigned long)_width*_height;
          }
          pf+=(unsigned long)_width*_height*(_depth - depth2);
          pb+=(unsigned long)_width*_height*(_depth + depth2);
        }
      } break;
      case 'c' : {
        buf = new T[(unsigned long)_width*_height*_depth];
        pf = _data; pb = data(0,0,0,_spectrum-1);
        const unsigned int _spectrum2 = _spectrum/2;
        for (unsigned int v = 0; v<_spectrum2; ++v) {
          std::memcpy(buf,pf,_width*_height*_depth*sizeof(T));
          std::memcpy(pf,pb,_width*_height*_depth*sizeof(T));
          std::memcpy(pb,buf,_width*_height*_depth*sizeof(T));
          pf+=(unsigned long)_width*_height*_depth;
          pb-=(unsigned long)_width*_height*_depth;
        }
      } break;
      default :
        throw CImgArgumentException(_cimg_instance
                                    "mirror(): Invalid specified axis '%c'.",
                                    cimg_instance,
                                    axis);
      }
      delete[] buf;
      return *this;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x18(%rdi), %r14
testq %r14, %r14
sete %al
movl (%rdi), %r10d
movl 0x4(%rdi), %r15d
testl %r10d, %r10d
sete %cl
orb %al, %cl
testl %r15d, %r15d
sete %al
movl 0x8(%rdi), %r9d
testl %r9d, %r9d
sete %dl
orb %al, %dl
orb %cl, %dl
movl 0xc(%rdi), %ebp
testl %ebp, %ebp
sete %al
orb %dl, %al
jne 0x46cd6
movl %esi, %r12d
movl %r10d, %edx
movl %r15d, %r13d
leal -0x5b(%r12), %eax
leal 0x20(%r12), %ecx
cmpb $-0x1a, %al
movzbl %r12b, %eax
movzbl %cl, %ecx
cmovbl %eax, %ecx
movzbl %cl, %eax
cmpl $0x78, %eax
movq %r9, 0x8(%rsp)
jg 0x469e5
cmpl $0x63, %eax
je 0x46b05
cmpl $0x78, %eax
jne 0x46ce8
imull %r15d, %r9d
imull %ebp, %r9d
testl %r9d, %r9d
je 0x46cd6
movl %r10d, %eax
shrl %eax
leal -0x1(%r10), %ecx
leaq (%r14,%rcx,8), %rcx
movl %r10d, %edx
subl %eax, %edx
leal (%rax,%r10), %esi
xorl %edi, %edi
movl %eax, %r8d
cmpl $0x2, %r10d
jb 0x469d1
movsd (%r14), %xmm0
movsd (%rcx), %xmm1
movsd %xmm1, (%r14)
addq $0x8, %r14
movsd %xmm0, (%rcx)
addq $-0x8, %rcx
decl %r8d
jne 0x469b2
leaq (%r14,%rdx,8), %r14
leaq (%rcx,%rsi,8), %rcx
incl %edi
cmpl %r9d, %edi
jne 0x469a9
jmp 0x46cd6
cmpl $0x79, %eax
je 0x46b47
cmpl $0x7a, %eax
jne 0x46ce8
movq %r10, %r12
imulq %rdx, %r13
movq %r13, %rax
shrq $0x3d, %rax
leaq (,%r13,8), %rcx
negq %rax
movl $0x0, %edi
sbbq %rdi, %rdi
orq %rcx, %rdi
callq 0x4040
movq %rax, (%rsp)
testl %ebp, %ebp
jle 0x46c45
movq 0x8(%rsp), %rsi
movl %esi, %r9d
shrl %r9d
leal -0x1(%rsi), %eax
imulq %rax, %r13
leaq (%r14,%r13,8), %r13
movl %esi, %eax
movq %r12, %rdi
xorl %r8d, %r8d
movq %r9, 0x10(%rsp)
cmpl $0x2, %esi
jae 0x46a5f
movl %edi, %edx
movl %r15d, %ecx
imulq %rdx, %rcx
jmp 0x46ada
movq %r8, 0x18(%rsp)
movl %r9d, %r12d
movq (%rsp), %rbp
imull %edi, %r15d
shlq $0x3, %r15
movq %rbp, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x4440
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x4440
movl 0x4(%rbx), %edx
imull (%rbx), %edx
shlq $0x3, %rdx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x4440
movl (%rbx), %edi
movl 0x4(%rbx), %r15d
movq %r15, %rcx
imulq %rdi, %rcx
leaq (%r14,%rcx,8), %r14
leaq (,%rcx,8), %rax
subq %rax, %r13
decl %r12d
jne 0x46a6b
movl 0x8(%rbx), %eax
movl 0xc(%rbx), %ebp
movq 0x8(%rsp), %rsi
movq 0x18(%rsp), %r8
movq 0x10(%rsp), %r9
movl %eax, %edx
subl %r9d, %edx
imulq %rcx, %rdx
leaq (%r14,%rdx,8), %r14
leal (%rax,%r9), %edx
imulq %rcx, %rdx
leaq (%r13,%rdx,8), %r13
incl %r8d
cmpl %ebp, %r8d
jl 0x46a4f
jmp 0x46c45
movq %rbp, %r12
movq %r10, %rbp
movl %r9d, %eax
imulq %rdx, %r13
imulq %rax, %r13
movq %r13, %rax
shrq $0x3d, %rax
leaq (,%r13,8), %rcx
xorl %edi, %edi
negq %rax
sbbq %rdi, %rdi
orq %rcx, %rdi
callq 0x4040
cmpl $0x2, %r12d
jae 0x46c4e
movq %rax, %rdi
jmp 0x46cd1
movq %r10, %r12
leaq (,%rdx,8), %rdi
movq %rdx, %r13
callq 0x4040
movq 0x8(%rsp), %rsi
movq %rax, %rdi
movl %ebp, %eax
imull %esi, %eax
testl %eax, %eax
je 0x46cd1
movq %rdi, (%rsp)
movl %r15d, %r8d
shrl %r8d
leal -0x1(%r15), %eax
imulq %r13, %rax
leaq (%r14,%rax,8), %r13
xorl %r9d, %r9d
movl %r15d, %eax
movq %r12, %rdi
movq %r8, 0x10(%rsp)
movq %rbx, 0x20(%rsp)
cmpl $0x2, %r15d
jae 0x46ba2
movl %edi, %ecx
jmp 0x46c1a
movl %r9d, 0x18(%rsp)
movl %r8d, %r12d
movl %edi, %ecx
movq (%rsp), %rbx
movl %ecx, %ebp
shlq $0x3, %rbp
movq %rbx, %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0x4440
movq %r14, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x4440
movq 0x20(%rsp), %rbp
movl (%rbp), %edx
shlq $0x3, %rdx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x4440
movl (%rbp), %ecx
leaq (%r14,%rcx,8), %r14
leaq (,%rcx,8), %rax
subq %rax, %r13
decl %r12d
jne 0x46bb0
movq 0x20(%rsp), %rbx
movl 0x4(%rbx), %eax
movl 0x8(%rbx), %esi
movl 0xc(%rbx), %ebp
movl %ecx, %edi
movq 0x10(%rsp), %r8
movl 0x18(%rsp), %r9d
movl %eax, %edx
subl %r8d, %edx
imulq %rcx, %rdx
leaq (%r14,%rdx,8), %r14
leal (%rax,%r8), %edx
imulq %rcx, %rdx
leaq (%r13,%rdx,8), %r13
incl %r9d
movl %ebp, %ecx
imull %esi, %ecx
cmpl %ecx, %r9d
jb 0x46b98
movq (%rsp), %rdi
jmp 0x46cd1
movl %r12d, %edx
shrl %edx
decl %r12d
imulq %r12, %r13
leaq (%r14,%r13,8), %r13
movq 0x8(%rsp), %rcx
movq %rax, %r12
imull %ebp, %r15d
imull %ecx, %r15d
shlq $0x3, %r15
movq %r12, %rdi
movq %r14, %rsi
movl %edx, %ebp
movq %r15, %rdx
callq 0x4440
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x4440
movl 0x4(%rbx), %edx
imull (%rbx), %edx
imull 0x8(%rbx), %edx
shlq $0x3, %rdx
movq %r13, %rdi
movq %r12, %rsi
callq 0x4440
movl %ebp, %edx
movl (%rbx), %ebp
movl 0x4(%rbx), %r15d
movq %r15, %rax
imulq %rbp, %rax
movl 0x8(%rbx), %ecx
imulq %rcx, %rax
leaq (%r14,%rax,8), %r14
shlq $0x3, %rax
subq %rax, %r13
decl %edx
jne 0x46c66
movq %r12, %rdi
callq 0x4690
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
movl (%rbx), %edx
movl 0x4(%rbx), %ecx
movl 0x8(%rbx), %r8d
movl 0xc(%rbx), %r9d
leaq 0x27b5f(%rip), %rax     # 0x6e868
cmpb $0x0, 0x10(%rbx)
leaq 0x28f2e(%rip), %r10     # 0x6fc42
cmovneq %rax, %r10
movsbl %r12b, %r11d
leaq 0x483fc(%rip), %r15     # 0x8f11f
leaq 0x48bcc(%rip), %rsi     # 0x8f8f6
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r15
pushq %r10
pushq 0x18(%rbx)
callq 0xc16a
addq $0x20, %rsp
leaq 0x60f08(%rip), %rsi     # 0xa7c50
movq 0x61281(%rip), %rdx     # 0xa7fd0
movq %r14, %rdi
callq 0x4910
movq %rax, %rbx
movq %r14, %rdi
callq 0x43c0
movq %rbx, %rdi
callq 0x4960