// File: /workspace/github_cpp_makefile_star2_O2/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 $0x18, %rsp
movl %esi, %r14d
movq %rdi, %rbx
callq 0x8dc8
testb %al, %al
jne 0x36857
leal -0x5b(%r14), %eax
leal 0x20(%r14), %ecx
cmpb $-0x1a, %al
movzbl %r14b, %edx
movzbl %cl, %eax
cmovbl %edx, %eax
cmpb $0x63, %al
movq %rbx, (%rsp)
je 0x3667d
movzbl %al, %eax
cmpl $0x7a, %eax
je 0x3674a
cmpl $0x79, %eax
je 0x365b6
cmpl $0x78, %eax
jne 0x36869
movq 0x18(%rbx), %rax
movl (%rbx), %ecx
movl 0x8(%rbx), %edx
leal -0x1(%rcx), %esi
leaq (%rax,%rsi,8), %rsi
movl %ecx, %edi
imull 0x4(%rbx), %edx
shrl %edi
imull 0xc(%rbx), %edx
leal (%rdi,%rcx), %r8d
subl %edi, %ecx
shlq $0x3, %r8
shlq $0x3, %rcx
xorl %r9d, %r9d
cmpl %edx, %r9d
je 0x36857
xorl %r10d, %r10d
xorl %r11d, %r11d
cmpl %r11d, %edi
je 0x365a5
movsd (%rax,%r11,8), %xmm0
movsd (%rsi,%r10), %xmm1
movsd %xmm1, (%rax,%r11,8)
movsd %xmm0, (%rsi,%r10)
incq %r11
addq $-0x8, %r10
jmp 0x3657f
addq %rcx, %rax
subq %r10, %rax
addq %r8, %rsi
addq %r10, %rsi
incl %r9d
jmp 0x36570
movl (%rbx), %ebp
leaq (,%rbp,8), %rdi
callq 0x4040
movq %rax, %r14
movq 0x18(%rbx), %r15
movl 0x4(%rbx), %ecx
leal -0x1(%rcx), %eax
imulq %rbp, %rax
leaq (%r15,%rax,8), %r12
shrl %ecx
movq %rcx, 0x8(%rsp)
xorl %ecx, %ecx
movl 0xc(%rbx), %eax
imull 0x8(%rbx), %eax
cmpl %eax, %ecx
jae 0x3684f
movl %ecx, 0x10(%rsp)
movq 0x8(%rsp), %rax
movl %eax, %ebx
movl %ebp, %r13d
subl $0x1, %ebx
jb 0x36650
shlq $0x3, %r13
movq %r14, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x4410
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x4410
movq (%rsp), %r13
movl (%r13), %edx
shlq $0x3, %rdx
movq %r12, %rdi
movq %r14, %rsi
callq 0x4410
movl (%r13), %ebp
leaq (%r15,%rbp,8), %r15
movq %rbp, %rax
shlq $0x3, %rax
subq %rax, %r12
jmp 0x365fd
movq (%rsp), %rbx
movl 0x4(%rbx), %eax
movl %eax, %ecx
movq 0x8(%rsp), %rdx
subl %edx, %ecx
imulq %r13, %rcx
leaq (%r15,%rcx,8), %r15
addl %edx, %eax
imulq %r13, %rax
leaq (%r12,%rax,8), %r12
movl 0x10(%rsp), %ecx
incl %ecx
jmp 0x365e3
movl (%rbx), %r14d
movl 0x4(%rbx), %r15d
movq %r15, %rbx
imulq %r14, %rbx
movq (%rsp), %rax
movl 0x8(%rax), %r12d
imulq %r12, %rbx
movq %rbx, %rax
shrq $0x3d, %rax
leaq (,%rbx,8), %rcx
xorl %edi, %edi
negq %rax
sbbq %rdi, %rdi
orq %rcx, %rdi
callq 0x4040
movq %r12, %rdx
movq %r14, %rcx
movq %rax, %r14
movq (%rsp), %rax
movq 0x18(%rax), %r12
movq (%rsp), %rax
movl 0xc(%rax), %ebp
leal -0x1(%rbp), %eax
imulq %rbx, %rax
movq (%rsp), %rbx
leaq (%r12,%rax,8), %r13
shrl %ebp
subl $0x1, %ebp
jb 0x3684f
imull %ecx, %r15d
imull %edx, %r15d
shlq $0x3, %r15
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x4410
movq %r12, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x4410
movl 0x4(%rbx), %edx
imull (%rbx), %edx
imull 0x8(%rbx), %edx
shlq $0x3, %rdx
movq %r13, %rdi
movq %r14, %rsi
callq 0x4410
movl (%rbx), %ecx
movl 0x4(%rbx), %r15d
movq %r15, %rax
imulq %rcx, %rax
movl 0x8(%rbx), %edx
imulq %rdx, %rax
leaq (%r12,%rax,8), %r12
shlq $0x3, %rax
subq %rax, %r13
jmp 0x366df
movl (%rbx), %ebp
movl 0x4(%rbx), %r15d
movq %r15, %rbx
imulq %rbp, %rbx
movq %rbx, %rax
shrq $0x3d, %rax
leaq (,%rbx,8), %rcx
negq %rax
movl $0x0, %edi
sbbq %rdi, %rdi
orq %rcx, %rdi
callq 0x4040
movq %rax, %r14
movq (%rsp), %rax
movq 0x18(%rax), %r12
movq (%rsp), %rax
movl 0x8(%rax), %ecx
leal -0x1(%rcx), %eax
imulq %rbx, %rax
movq (%rsp), %rbx
leaq (%r12,%rax,8), %r13
xorl %eax, %eax
shrl %ecx
movq %rcx, 0x8(%rsp)
cmpl 0xc(%rbx), %eax
jge 0x3684f
movq %rax, 0x10(%rsp)
movq 0x8(%rsp), %rax
movl %eax, %ebx
subl $0x1, %ebx
jb 0x36817
imull %ebp, %r15d
shlq $0x3, %r15
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x4410
movq %r12, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x4410
movq (%rsp), %r15
movl 0x4(%r15), %edx
imull (%r15), %edx
shlq $0x3, %rdx
movq %r13, %rdi
movq %r14, %rsi
callq 0x4410
movl (%r15), %ebp
movl 0x4(%r15), %r15d
movq %r15, %rax
imulq %rbp, %rax
leaq (%r12,%rax,8), %r12
shlq $0x3, %rax
subq %rax, %r13
jmp 0x367b8
movl %ebp, %eax
movl %r15d, %ecx
imulq %rax, %rcx
movq (%rsp), %rbx
movl 0x8(%rbx), %eax
movl %eax, %edx
movq 0x8(%rsp), %rsi
subl %esi, %edx
imulq %rcx, %rdx
leaq (%r12,%rdx,8), %r12
addl %esi, %eax
imulq %rcx, %rax
leaq (%r13,%rax,8), %r13
movq 0x10(%rsp), %rax
incl %eax
jmp 0x367a3
movq %r14, %rdi
callq 0x4670
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r15
movl (%rbx), %edx
movl 0x4(%rbx), %ecx
movl 0x8(%rbx), %r8d
movl 0xc(%rbx), %r9d
leaq 0x1df5e(%rip), %rax     # 0x547e8
cmpb $0x0, 0x10(%rbx)
leaq 0x1f32d(%rip), %r10     # 0x55bc2
cmovneq %rax, %r10
movsbl %r14b, %r11d
movq %rbx, %r14
leaq 0x3e7f8(%rip), %rbx     # 0x7509f
leaq 0x3ef9e(%rip), %rsi     # 0x7584c
movq %r15, %rdi
xorl %eax, %eax
pushq %r11
pushq %rbx
pushq %r10
pushq 0x18(%r14)
callq 0x9d52
addq $0x20, %rsp
leaq 0x59394(%rip), %rsi     # 0x8fc60
movq 0x59705(%rip), %rdx     # 0x8ffd8
movq %r15, %rdi
callq 0x4910
movq %rax, %rbx
movq %r15, %rdi
callq 0x4390
movq %rbx, %rdi
callq 0x4950