// File: 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 %rbx
subq $0xe0, %rsp
movb %sil, %al
movq %rdi, 0xd0(%rsp)
movb %al, 0xcf(%rsp)
movq 0xd0(%rsp), %rdi
movq %rdi, 0x60(%rsp)
callq 0x10320
testb $0x1, %al
jne 0x75e82
jmp 0x75e94
movq 0x60(%rsp), %rax
movq %rax, 0xd8(%rsp)
jmp 0x766ae
movq $0x0, 0xb0(%rsp)
movsbl 0xcf(%rsp), %edi
callq 0x1e0a0
movsbl %al, %eax
addl $-0x63, %eax
movl %eax, %ecx
movq %rcx, 0x58(%rsp)
subl $0x17, %eax
ja 0x7659f
movq 0x58(%rsp), %rax
leaq 0x525b1(%rip), %rcx     # 0xc8480
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x60(%rsp), %rdi
movq 0x18(%rdi), %rax
movq %rax, 0xc0(%rsp)
movl (%rdi), %esi
subl $0x1, %esi
xorl %r8d, %r8d
movl %r8d, %edx
movl %r8d, %ecx
callq 0x5e180
movq %rax, %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0xb8(%rsp)
movl (%rax), %eax
shrl %eax
movl %eax, 0xac(%rsp)
movl $0x0, 0xa8(%rsp)
movq 0x60(%rsp), %rdx
movl 0xa8(%rsp), %eax
movl 0x4(%rdx), %ecx
imull 0x8(%rdx), %ecx
imull 0xc(%rdx), %ecx
cmpl %ecx, %eax
jae 0x76031
movl $0x0, 0xa4(%rsp)
movl 0xa4(%rsp), %eax
cmpl 0xac(%rsp), %eax
jae 0x75fd2
movq 0xc0(%rsp), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x98(%rsp)
movq 0xb8(%rsp), %rax
movsd (%rax), %xmm0
movq 0xc0(%rsp), %rax
movq %rax, %rcx
addq $0x8, %rcx
movq %rcx, 0xc0(%rsp)
movsd %xmm0, (%rax)
movsd 0x98(%rsp), %xmm0
movq 0xb8(%rsp), %rax
movq %rax, %rcx
addq $-0x8, %rcx
movq %rcx, 0xb8(%rsp)
movsd %xmm0, (%rax)
movl 0xa4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xa4(%rsp)
jmp 0x75f4c
movq 0x60(%rsp), %rax
movl (%rax), %edx
subl 0xac(%rsp), %edx
movq 0xc0(%rsp), %rcx
movl %edx, %edx
shlq $0x3, %rdx
addq %rdx, %rcx
movq %rcx, 0xc0(%rsp)
movl (%rax), %ecx
addl 0xac(%rsp), %ecx
movq 0xb8(%rsp), %rax
movl %ecx, %ecx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, 0xb8(%rsp)
movl 0xa8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xa8(%rsp)
jmp 0x75f22
jmp 0x76684
movq 0x60(%rsp), %rax
movl (%rax), %eax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x5040
movq 0x60(%rsp), %rdi
movq %rax, 0xb0(%rsp)
movq 0x18(%rdi), %rax
movq %rax, 0xc0(%rsp)
movl 0x4(%rdi), %edx
subl $0x1, %edx
xorl %r8d, %r8d
movl %r8d, %esi
movl %r8d, %ecx
callq 0x5e180
movq %rax, %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0xb8(%rsp)
movl 0x4(%rax), %eax
shrl %eax
movl %eax, 0x94(%rsp)
movl $0x0, 0x90(%rsp)
movq 0x60(%rsp), %rdx
movl 0x90(%rsp), %eax
movl 0x8(%rdx), %ecx
imull 0xc(%rdx), %ecx
cmpl %ecx, %eax
jae 0x76211
movl $0x0, 0x8c(%rsp)
movl 0x8c(%rsp), %eax
cmpl 0x94(%rsp), %eax
jae 0x761aa
movq 0x60(%rsp), %rax
movq 0xb0(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movl (%rax), %eax
movl %eax, %edx
shlq $0x3, %rdx
callq 0x5420
movq 0x60(%rsp), %rax
movq 0xc0(%rsp), %rdi
movq 0xb8(%rsp), %rsi
movl (%rax), %eax
movl %eax, %edx
shlq $0x3, %rdx
callq 0x5420
movq 0x60(%rsp), %rax
movq 0xb8(%rsp), %rdi
movq 0xb0(%rsp), %rsi
movl (%rax), %eax
movl %eax, %edx
shlq $0x3, %rdx
callq 0x5420
movq 0x60(%rsp), %rax
movl (%rax), %edx
movq 0xc0(%rsp), %rcx
movl %edx, %edx
shlq $0x3, %rdx
addq %rdx, %rcx
movq %rcx, 0xc0(%rsp)
movl (%rax), %ecx
movq 0xb8(%rsp), %rax
movl %ecx, %ecx
movl %ecx, %edx
xorl %ecx, %ecx
subq %rdx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, 0xb8(%rsp)
movl 0x8c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x8c(%rsp)
jmp 0x760d8
movq 0x60(%rsp), %rcx
movl (%rcx), %eax
movl 0x4(%rcx), %edx
subl 0x94(%rsp), %edx
movl %edx, %edx
imulq %rdx, %rax
shlq $0x3, %rax
addq 0xc0(%rsp), %rax
movq %rax, 0xc0(%rsp)
movl (%rcx), %eax
movl 0x4(%rcx), %ecx
addl 0x94(%rsp), %ecx
movl %ecx, %ecx
imulq %rcx, %rax
shlq $0x3, %rax
addq 0xb8(%rsp), %rax
movq %rax, 0xb8(%rsp)
movl 0x90(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x90(%rsp)
jmp 0x760b2
jmp 0x76684
movq 0x60(%rsp), %rcx
movl (%rcx), %eax
movl 0x4(%rcx), %ecx
imulq %rcx, %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x5040
movq 0x60(%rsp), %rdi
movq %rax, 0xb0(%rsp)
movq 0x18(%rdi), %rax
movq %rax, 0xc0(%rsp)
movl 0x8(%rdi), %ecx
subl $0x1, %ecx
xorl %r8d, %r8d
movl %r8d, %esi
movl %r8d, %edx
callq 0x5e180
movq %rax, %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0xb8(%rsp)
movl 0x8(%rax), %eax
shrl %eax
movl %eax, 0x88(%rsp)
movl $0x0, 0x84(%rsp)
movq 0x60(%rsp), %rcx
movl 0x84(%rsp), %eax
cmpl 0xc(%rcx), %eax
jge 0x76419
movl $0x0, 0x80(%rsp)
movl 0x80(%rsp), %eax
cmpl 0x88(%rsp), %eax
jae 0x763a4
movq 0x60(%rsp), %rcx
movq 0xb0(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movl (%rcx), %eax
imull 0x4(%rcx), %eax
movl %eax, %eax
movl %eax, %edx
shlq $0x3, %rdx
callq 0x5420
movq 0x60(%rsp), %rcx
movq 0xc0(%rsp), %rdi
movq 0xb8(%rsp), %rsi
movl (%rcx), %eax
imull 0x4(%rcx), %eax
movl %eax, %eax
movl %eax, %edx
shlq $0x3, %rdx
callq 0x5420
movq 0x60(%rsp), %rcx
movq 0xb8(%rsp), %rdi
movq 0xb0(%rsp), %rsi
movl (%rcx), %eax
imull 0x4(%rcx), %eax
movl %eax, %eax
movl %eax, %edx
shlq $0x3, %rdx
callq 0x5420
movq 0x60(%rsp), %rax
movl (%rax), %ecx
movl 0x4(%rax), %edx
imulq %rdx, %rcx
shlq $0x3, %rcx
addq 0xc0(%rsp), %rcx
movq %rcx, 0xc0(%rsp)
movl (%rax), %ecx
movl %ecx, %edx
movl 0x4(%rax), %eax
imulq %rax, %rdx
movq 0xb8(%rsp), %rax
xorl %ecx, %ecx
subq %rdx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, 0xb8(%rsp)
movl 0x80(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x80(%rsp)
jmp 0x762b9
movq 0x60(%rsp), %rcx
movl (%rcx), %eax
movl 0x4(%rcx), %edx
imulq %rdx, %rax
movl 0x8(%rcx), %edx
subl 0x88(%rsp), %edx
movl %edx, %edx
imulq %rdx, %rax
shlq $0x3, %rax
addq 0xc0(%rsp), %rax
movq %rax, 0xc0(%rsp)
movl (%rcx), %eax
movl 0x4(%rcx), %edx
imulq %rdx, %rax
movl 0x8(%rcx), %ecx
addl 0x88(%rsp), %ecx
movl %ecx, %ecx
imulq %rcx, %rax
shlq $0x3, %rax
addq 0xb8(%rsp), %rax
movq %rax, 0xb8(%rsp)
movl 0x84(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x84(%rsp)
jmp 0x76299
jmp 0x76684
movq 0x60(%rsp), %rcx
movl (%rcx), %eax
movl 0x4(%rcx), %edx
imulq %rdx, %rax
movl 0x8(%rcx), %ecx
imulq %rcx, %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x5040
movq 0x60(%rsp), %rdi
movq %rax, 0xb0(%rsp)
movq 0x18(%rdi), %rax
movq %rax, 0xc0(%rsp)
movl 0xc(%rdi), %r8d
subl $0x1, %r8d
xorl %ecx, %ecx
movl %ecx, %esi
movl %ecx, %edx
callq 0x5e180
movq %rax, %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0xb8(%rsp)
movl 0xc(%rax), %eax
shrl %eax
movl %eax, 0x7c(%rsp)
movl $0x0, 0x78(%rsp)
movl 0x78(%rsp), %eax
cmpl 0x7c(%rsp), %eax
jae 0x7659a
movq 0x60(%rsp), %rcx
movq 0xb0(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movl (%rcx), %eax
imull 0x4(%rcx), %eax
imull 0x8(%rcx), %eax
movl %eax, %eax
movl %eax, %edx
shlq $0x3, %rdx
callq 0x5420
movq 0x60(%rsp), %rcx
movq 0xc0(%rsp), %rdi
movq 0xb8(%rsp), %rsi
movl (%rcx), %eax
imull 0x4(%rcx), %eax
imull 0x8(%rcx), %eax
movl %eax, %eax
movl %eax, %edx
shlq $0x3, %rdx
callq 0x5420
movq 0x60(%rsp), %rcx
movq 0xb8(%rsp), %rdi
movq 0xb0(%rsp), %rsi
movl (%rcx), %eax
imull 0x4(%rcx), %eax
imull 0x8(%rcx), %eax
movl %eax, %eax
movl %eax, %edx
shlq $0x3, %rdx
callq 0x5420
movq 0x60(%rsp), %rax
movl (%rax), %ecx
movl 0x4(%rax), %edx
imulq %rdx, %rcx
movl 0x8(%rax), %edx
imulq %rdx, %rcx
shlq $0x3, %rcx
addq 0xc0(%rsp), %rcx
movq %rcx, 0xc0(%rsp)
movl (%rax), %ecx
movl %ecx, %edx
movl 0x4(%rax), %ecx
imulq %rcx, %rdx
movl 0x8(%rax), %eax
imulq %rax, %rdx
movq 0xb8(%rsp), %rax
xorl %ecx, %ecx
subq %rdx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, 0xb8(%rsp)
movl 0x78(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x78(%rsp)
jmp 0x764a1
jmp 0x76684
movl $0x4008, %edi           # imm = 0x4008
callq 0x5240
movq %rax, %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x28(%rsp)
movl (%rax), %ecx
movl %ecx, 0x30(%rsp)
movl 0x4(%rax), %ecx
movl %ecx, 0x34(%rsp)
movl 0x8(%rax), %ecx
movl %ecx, 0x38(%rsp)
movl 0xc(%rax), %ecx
movl %ecx, 0x3c(%rsp)
movq 0x18(%rax), %rcx
movq %rcx, 0x40(%rsp)
movb 0x10(%rax), %dl
leaq 0x723ee(%rip), %rcx     # 0xe89d2
leaq 0x534f6(%rip), %rax     # 0xc9ae1
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, 0x48(%rsp)
callq 0x118f0
movq %rax, 0x50(%rsp)
jmp 0x76603
movl 0x3c(%rsp), %r9d
movl 0x38(%rsp), %r8d
movl 0x34(%rsp), %ecx
movl 0x30(%rsp), %edx
movq 0x28(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %r10
movq 0x50(%rsp), %r11
movsbl 0xcf(%rsp), %ebx
movq %rsp, %rax
movl %ebx, 0x18(%rax)
movq %r11, 0x10(%rax)
movq %r10, 0x8(%rax)
movq %rsi, (%rax)
leaq 0x73126(%rip), %rsi     # 0xe976f
xorl %eax, %eax
callq 0x12220
jmp 0x76652
movq 0x28(%rsp), %rdi
leaq 0x89502(%rip), %rsi     # 0xffb60
leaq -0x64205(%rip), %rdx    # 0x12460
callq 0x5920
movq 0x28(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
callq 0x53a0
jmp 0x766bf
movq 0xb0(%rsp), %rax
movq %rax, 0x20(%rsp)
cmpq $0x0, %rax
je 0x766a1
movq 0x20(%rsp), %rdi
callq 0x5680
movq 0x60(%rsp), %rax
movq %rax, 0xd8(%rsp)
movq 0xd8(%rsp), %rax
addq $0xe0, %rsp
popq %rbx
retq
movq 0x70(%rsp), %rdi
callq 0x5970
nopl (%rax)