LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>::normalize(double, double)
CImg<T>& normalize(const T min_value, const T max_value) {
      if (is_empty()) return *this;
      const T a = min_value<max_value?min_value:max_value, b = min_value<max_value?max_value:min_value;
      T m, M = max_min(m);
      const Tfloat fm = (Tfloat)m, fM = (Tfloat)M;
      if (m==M) return fill(min_value);
      if (m!=a || M!=b)
#ifdef cimg_use_openmp
#pragma omp parallel for if (size()>=65536)
#endif
        cimg_rof(*this,ptrd,T) *ptrd = (T)((*ptrd-fm)/(fM-fm)*(b-a)+a);
      return *this;
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movsd %xmm1, 0x8(%rsp)
movsd %xmm0, (%rsp)
movq %rdi, %rbx
callq 0x8dc8
testb %al, %al
jne 0x44d7a
leaq 0x10(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x44dd4
movsd (%rax), %xmm0
movsd (%r14), %xmm1
ucomisd %xmm0, %xmm1
jne 0x44d53
jp 0x44d53
movq %rbx, %rdi
movsd (%rsp), %xmm0
callq 0x2aca6
movq %rax, %rbx
jmp 0x44d7a
movsd (%rsp), %xmm3
movapd %xmm3, %xmm2
movsd 0x8(%rsp), %xmm4
minsd %xmm4, %xmm2
maxsd %xmm3, %xmm4
ucomisd %xmm4, %xmm0
jne 0x44d85
jp 0x44d85
ucomisd %xmm2, %xmm1
jne 0x44d85
jp 0x44d85
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movq 0x18(%rbx), %rax
movl (%rbx), %ecx
movl 0x4(%rbx), %edx
imulq %rcx, %rdx
movl 0x8(%rbx), %ecx
movl 0xc(%rbx), %esi
imulq %rcx, %rsi
subsd %xmm1, %xmm0
subsd %xmm2, %xmm4
imulq %rdx, %rsi
leaq (%rax,%rsi,8), %rcx
addq $-0x8, %rcx
cmpq %rax, %rcx
jb 0x44d7a
movsd (%rcx), %xmm3
subsd %xmm1, %xmm3
divsd %xmm0, %xmm3
mulsd %xmm4, %xmm3
addsd %xmm2, %xmm3
movsd %xmm3, (%rcx)
addq $-0x8, %rcx
jmp 0x44db0
nop
// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: double& cimg_library::CImg<double>::max_min<double>(double&)
T& max_min(t& min_val) {
      if (is_empty())
        throw CImgInstanceException(_cimg_instance
                                    "max_min(): Empty instance.",
                                    cimg_instance);
      T *ptr_max = _data;
      T max_value = *ptr_max, min_value = max_value;
      cimg_for(*this,ptrs,T) {
        const T val = *ptrs;
        if (val>max_value) { max_value = val; ptr_max = ptrs; }
        if (val<min_value) min_value = val;
      }
      min_val = (t)min_value;
      return *ptr_max;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x8dc8
testb %al, %al
jne 0x44e4c
movq 0x18(%r14), %rcx
movsd (%rcx), %xmm0
movl (%r14), %eax
movl 0x4(%r14), %edx
imulq %rax, %rdx
movl 0x8(%r14), %eax
movl 0xc(%r14), %esi
imulq %rax, %rsi
imulq %rdx, %rsi
leaq (%rcx,%rsi,8), %rdx
movapd %xmm0, %xmm1
movq %rcx, %rax
cmpq %rdx, %rcx
jae 0x44e40
movsd (%rcx), %xmm2
ucomisd %xmm1, %xmm2
movapd %xmm2, %xmm3
maxsd %xmm1, %xmm3
cmovaq %rcx, %rax
minsd %xmm0, %xmm2
addq $0x8, %rcx
movapd %xmm2, %xmm0
movapd %xmm3, %xmm1
jmp 0x44e15
movsd %xmm0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %rbx
movl (%r14), %edx
movl 0x4(%r14), %ecx
movl 0x8(%r14), %r8d
movl 0xc(%r14), %r9d
leaq 0xf979(%rip), %rax      # 0x547e8
leaq 0x10d4c(%rip), %r10     # 0x55bc2
cmpb $0x0, 0x10(%r14)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x30215(%rip), %r11     # 0x7509f
leaq 0x2face(%rip), %rsi     # 0x7495f
movq %rbx, %rdi
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x18(%r14)
callq 0x9bf8
addq $0x20, %rsp
leaq 0x4ad9a(%rip), %rsi     # 0x8fc48
movq 0x4b123(%rip), %rdx     # 0x8ffd8
movq %rbx, %rdi
callq 0x4910
movq %rax, %r14
movq %rbx, %rdi
callq 0x4390
movq %r14, %rdi
callq 0x4950
// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::cimg::number_filename(char const*, int, unsigned int, char*)
inline char* number_filename(const char *const filename, const int number,
                                 const unsigned int digits, char *const str) {
      if (!filename) { if (str) *str = 0; return 0; }
      char format[1024] = { 0 }, body[1024] = { 0 };
      const char *const ext = cimg::split_filename(filename,body);
      if (*ext) cimg_snprintf(format,sizeof(format),"%%s_%%.%ud.%%s",digits);
      else cimg_snprintf(format,sizeof(format),"%%s_%%.%ud",digits);
      std::sprintf(str,format,body,number,ext);
      return str;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x808, %rsp            # imm = 0x808
movq %rcx, %rbx
testq %rdi, %rdi
je 0x44f66
movl %edx, %r14d
movl %esi, %ebp
movq %rdi, %r13
leaq 0x400(%rsp), %r15
movl $0x400, %edx            # imm = 0x400
movq %r15, %rdi
xorl %esi, %esi
callq 0x4280
movq %rsp, %r12
movl $0x400, %edx            # imm = 0x400
movq %r12, %rdi
xorl %esi, %esi
callq 0x4280
movq %r13, %rdi
movq %r12, %rsi
callq 0x2cc28
movq %rax, %r13
cmpb $0x0, (%rax)
leaq 0x327c2(%rip), %rax     # 0x776f4
leaq 0x327ac(%rip), %rdx     # 0x776e5
cmoveq %rax, %rdx
movl $0x400, %esi            # imm = 0x400
movq %r15, %rdi
movl %r14d, %ecx
xorl %eax, %eax
callq 0x4890
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movl %ebp, %ecx
movq %r13, %r8
xorl %eax, %eax
callq 0x4090
jmp 0x44f70
testq %rbx, %rbx
je 0x44f6e
movb $0x0, (%rbx)
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x808, %rsp            # imm = 0x808
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>::save_tiff(char const*, unsigned int, float const*, char const*) const
const CImg<T>& save_tiff(const char *const filename, const unsigned int compression_type=0,
                             const float *const voxel_size=0, const char *const description=0) const {
      if (!filename)
        throw CImgArgumentException(_cimg_instance
                                    "save_tiff(): Specified filename is (null).",
                                    cimg_instance);
      if (is_empty()) { cimg::fempty(0,filename); return *this; }

#ifdef cimg_use_tiff
      TIFF *tif = TIFFOpen(filename,"w");
      if (tif) {
        cimg_forZ(*this,z) get_slice(z)._save_tiff(tif,z,compression_type,voxel_size,description);
        TIFFClose(tif);
      } else throw CImgIOException(_cimg_instance
                                   "save_tiff(): Failed to open file '%s' for writing.",
                                   cimg_instance,
                                   filename);
      return *this;
#else
      cimg::unused(compression_type,voxel_size,description);
      return save_other(filename);
#endif
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rsi, %rsi
je 0x451a3
movq %rsi, %r14
movq %rbx, %rdi
callq 0x8dc8
testb %al, %al
je 0x4518e
xorl %edi, %edi
movq %r14, %rsi
callq 0x465c3
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
pushq $0x64
popq %rdx
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4600e
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 0xf624(%rip), %rax      # 0x547e8
leaq 0x109f7(%rip), %r10     # 0x55bc2
cmpb $0x0, 0x10(%rbx)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x2fec1(%rip), %r11     # 0x7509f
leaq 0x33308(%rip), %rsi     # 0x784ed
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x18(%rbx)
callq 0x9d52
addq $0x20, %rsp
leaq 0x4aa5f(%rip), %rsi     # 0x8fc60
movq 0x4add0(%rip), %rdx     # 0x8ffd8
movq %r14, %rdi
callq 0x4910
movq %rax, %rbx
movq %r14, %rdi
callq 0x4390
movq %rbx, %rdi
callq 0x4950
nop
// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>::save_minc2(char const*, char const*) const
const CImg<T>& save_minc2(const char *const filename,
                              const char *const imitate_file=0) const {
      if (!filename)
        throw CImgArgumentException(_cimg_instance
                                   "save_minc2(): Specified filename is (null).",
                                   cimg_instance);
      if (is_empty()) { cimg::fempty(0,filename); return *this; }

#ifndef cimg_use_minc2
     cimg::unused(imitate_file);
     return save_other(filename);
#else
     minc::minc_1_writer wtr;
     if (imitate_file)
       wtr.open(filename, imitate_file);
     else {
       minc::minc_info di;
       if(width()) di.push_back(minc::dim_info(width(), width()*0.5, -1, minc::dim_info::DIM_X));
       if(height()) di.push_back(minc::dim_info(height(), height()*0.5, -1, minc::dim_info::DIM_Y));
       if(depth()) di.push_back(minc::dim_info(depth(), depth()*0.5, -1, minc::dim_info::DIM_Z));
       if(spectrum()) di.push_back(minc::dim_info(spectrum(), spectrum()*0.5, -1, minc::dim_info::DIM_TIME));
       wtr.open(filename, di, 1, NC_FLOAT, 0);
     }
     if(typeid(T)==typeid(unsigned char))
       wtr.setup_write_byte();
     else if(typeid(T)==typeid(int))
       wtr.setup_write_int();
     else if(typeid(T)==typeid(double))
       wtr.setup_write_double();
     else
       wtr.setup_write_float();
     minc::save_standard_volume(wtr, this->_data);
     return *this;
#endif
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rsi, %rsi
je 0x45ae5
movq %rsi, %r14
movq %rbx, %rdi
callq 0x8dc8
testb %al, %al
je 0x45ad0
xorl %edi, %edi
movq %r14, %rsi
callq 0x465c3
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
pushq $0x64
popq %rdx
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4600e
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 0xece2(%rip), %rax      # 0x547e8
leaq 0x100b5(%rip), %r10     # 0x55bc2
cmpb $0x0, 0x10(%rbx)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x2f57f(%rip), %r11     # 0x7509f
leaq 0x32e97(%rip), %rsi     # 0x789be
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x18(%rbx)
callq 0x9d52
addq $0x20, %rsp
leaq 0x4a11d(%rip), %rsi     # 0x8fc60
movq 0x4a48e(%rip), %rdx     # 0x8ffd8
movq %r14, %rdi
callq 0x4910
movq %rax, %rbx
movq %r14, %rdi
callq 0x4390
movq %rbx, %rdi
callq 0x4950
nop
// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>::save_video(char const*, unsigned int, char const*, bool) const
const CImg<T>& save_video(const char *const filename, const unsigned int fps=25,
                              const char *codec=0, const bool keep_open=false) const {
      if (is_empty()) { CImgList<T>().save_video(filename,fps,codec,keep_open); return *this; }
      CImgList<T> list;
      get_split('z').move_to(list);
      list.save_video(filename,fps,codec,keep_open);
      return *this;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
callq 0x8dc8
xorps %xmm0, %xmm0
testb %al, %al
je 0x45f90
movq %rsp, %rdi
movaps %xmm0, (%rdi)
movq %r14, %rsi
movl %ebp, %edx
xorl %ecx, %ecx
movl $0x800, %r8d            # imm = 0x800
callq 0x4b2e4
jmp 0x45fd3
movaps %xmm0, (%rsp)
leaq 0x10(%rsp), %rdi
pushq $0x7a
popq %rdx
pushq $-0x1
popq %rcx
movq %rbx, %rsi
callq 0x49c74
leaq 0x10(%rsp), %rdi
movq %rsp, %rsi
callq 0x4b230
leaq 0x10(%rsp), %rdi
callq 0x9394
movq %rsp, %rdi
movq %r14, %rsi
movl %ebp, %edx
xorl %ecx, %ecx
movl $0x800, %r8d            # imm = 0x800
callq 0x4b2e4
movq %rsp, %rdi
callq 0x9394
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x45ffa
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x9394
jmp 0x45ffd
jmp 0x45ffa
movq %rax, %rbx
movq %rsp, %rdi
callq 0x9394
movq %rbx, %rdi
callq 0x4950
nop
// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>::_save_ascii(_IO_FILE*, char const*) const
const CImg<T>& _save_ascii(std::FILE *const file, const char *const filename) const {
      if (!file && !filename)
        throw CImgArgumentException(_cimg_instance
                                    "save_ascii(): Specified filename is (null).",
                                    cimg_instance);
      std::FILE *const nfile = file?file:cimg::fopen(filename,"w");
      std::fprintf(nfile,"%u %u %u %u\n",_width,_height,_depth,_spectrum);
      const T* ptrs = _data;
      cimg_forYZC(*this,y,z,c) {
        cimg_forX(*this,x) std::fprintf(nfile,"%.16g ",(double)*(ptrs++));
        std::fputc('\n',nfile);
      }
      if (!file) cimg::fclose(nfile);
      return *this;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq %rsi, %rax
orq %rdx, %rax
je 0x462e6
movq %rsi, %r15
movq %rsi, 0x10(%rsp)
testq %rsi, %rsi
jne 0x4623c
leaq 0x2fe1b(%rip), %rsi     # 0x7604c
movq %rdx, %rdi
callq 0x2dca5
movq %rax, %r15
movl (%rbx), %edx
movl 0x4(%rbx), %ecx
movl 0x8(%rbx), %r8d
movl 0xc(%rbx), %r9d
leaq 0x31509(%rip), %rsi     # 0x77759
xorl %ebp, %ebp
movq %r15, %rdi
xorl %eax, %eax
callq 0x4750
movq 0x18(%rbx), %r14
leaq 0x314ff(%rip), %r12     # 0x77766
cmpl 0xc(%rbx), %ebp
jge 0x462c4
xorl %eax, %eax
movl %ebp, 0x8(%rsp)
cmpl 0x8(%rbx), %eax
jge 0x462c0
movl %eax, 0xc(%rsp)
xorl %r13d, %r13d
cmpl 0x4(%rbx), %r13d
jge 0x462b4
xorl %ebp, %ebp
cmpl (%rbx), %ebp
jge 0x462a4
movsd (%r14), %xmm0
addq $0x8, %r14
movq %r15, %rdi
movq %r12, %rsi
movb $0x1, %al
callq 0x4750
incl %ebp
jmp 0x46286
pushq $0xa
popq %rdi
movq %r15, %rsi
callq 0x4620
incl %r13d
jmp 0x4627e
movl 0xc(%rsp), %eax
incl %eax
movl 0x8(%rsp), %ebp
jmp 0x46272
incl %ebp
jmp 0x46267
cmpq $0x0, 0x10(%rsp)
jne 0x462d4
movq %r15, %rdi
callq 0x2a2f8
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, %r14
movl (%rbx), %edx
movl 0x4(%rbx), %ecx
movl 0x8(%rbx), %r8d
movl 0xc(%rbx), %r9d
leaq 0xe4e1(%rip), %rax      # 0x547e8
leaq 0xf8b4(%rip), %r10      # 0x55bc2
cmpb $0x0, 0x10(%rbx)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x2ed7e(%rip), %r11     # 0x7509f
leaq 0x313d7(%rip), %rsi     # 0x776ff
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x18(%rbx)
callq 0x9d52
addq $0x20, %rsp
leaq 0x4991c(%rip), %rsi     # 0x8fc60
movq 0x49c8d(%rip), %rdx     # 0x8ffd8
movq %r14, %rdi
callq 0x4910
movq %rax, %rbx
movq %r14, %rdi
callq 0x4390
movq %rbx, %rdi
callq 0x4950
// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::cimg::fempty(_IO_FILE*, char const*)
inline void fempty(std::FILE *const file, const char *const filename) {
      if (!file && !filename)
        throw CImgArgumentException("cimg::file_type(): Specified filename is (null).");
      std::FILE *const nfile = file?file:cimg::fopen(filename,"wb");
      if (!file) cimg::fclose(nfile);
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rax
orq %rsi, %rax
je 0x465fd
testq %rdi, %rdi
je 0x465dc
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x2e9fa(%rip), %rax     # 0x74fdd
movq %rsi, %rdi
movq %rax, %rsi
callq 0x2dca5
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2a2f8
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %rbx
leaq 0x30aff(%rip), %rsi     # 0x77110
movq %rax, %rdi
xorl %eax, %eax
callq 0x9d52
leaq 0x4963e(%rip), %rsi     # 0x8fc60
movq 0x499af(%rip), %rdx     # 0x8ffd8
movq %rbx, %rdi
callq 0x4910
movq %rax, %r14
movq %rbx, %rdi
callq 0x4390
movq %r14, %rdi
callq 0x4950
// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: int cimg_library::cimg::fwrite<unsigned char>(unsigned char const*, unsigned long, _IO_FILE*)
inline int fwrite(const T *ptr, const unsigned long nmemb, std::FILE *stream) {
      if (!ptr || !stream)
        throw CImgArgumentException("cimg::fwrite(): Invalid writing request of %u %s%s from buffer %p to file %p.",
                                    nmemb,cimg::type<T>::string(),nmemb>1?"s":"",ptr,stream);
      if (nmemb<=0) return 0;
      const unsigned long wlimitT = 63*1024*1024, wlimit = wlimitT/sizeof(T);
      unsigned long to_write = nmemb, al_write = 0, l_to_write = 0, l_al_write = 0;
      do {
        l_to_write = (to_write*sizeof(T))<wlimitT?to_write:wlimit;
        l_al_write = (unsigned long)std::fwrite((void*)(ptr+al_write),sizeof(T),l_to_write,stream);
        al_write+=l_al_write;
        to_write-=l_al_write;
      } while (l_to_write==l_al_write && to_write>0);
      if (to_write>0)
        warn("cimg::fwrite(): Only %u/%u elements could be written in file.",
             al_write,nmemb);
      return al_write;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
testq %rdi, %rdi
je 0x46db7
testq %r15, %r15
je 0x46db7
xorl %r12d, %r12d
testq %rbx, %rbx
je 0x46da5
pushq $0x1
popq %r13
movq %rbx, 0x10(%rsp)
movl $0x3f00000, %eax        # imm = 0x3F00000
cmpq %rax, %rbx
movl $0x3f00000, %ebp        # imm = 0x3F00000
cmovbq %rbx, %rbp
leaq (%r14,%r12), %rdi
movq %r13, %rsi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x4a50
addq %rax, %r12
subq %rax, %rbx
cmpq %rax, %rbp
jne 0x46d8a
testq %rbx, %rbx
jne 0x46d57
testq %rbx, %rbx
je 0x46da5
leaq 0x30dc5(%rip), %rdi     # 0x77b5b
movq %r12, %rsi
movq 0x10(%rsp), %rdx
xorl %eax, %eax
callq 0x97a7
movl %r12d, %eax
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, %r12
cmpq $0x2, %rbx
leaq 0x2fab9(%rip), %rax     # 0x76888
leaq 0xda12(%rip), %r8       # 0x547e8
cmovaeq %rax, %r8
movq %r15, (%rsp)
leaq 0x30d28(%rip), %rsi     # 0x77b0d
leaq 0x1999b(%rip), %rcx     # 0x60787
movq %r12, %rdi
movq %rbx, %rdx
movq %r14, %r9
xorl %eax, %eax
callq 0x9d52
leaq 0x48e5d(%rip), %rsi     # 0x8fc60
movq 0x491ce(%rip), %rdx     # 0x8ffd8
movq %r12, %rdi
callq 0x4910
movq %rax, %rbx
movq %r12, %rdi
callq 0x4390
movq %rbx, %rdi
callq 0x4950
nop
// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>::max() const
const T& max() const {
      if (is_empty())
        throw CImgInstanceException(_cimg_instance
                                    "max(): Empty instance.",
                                    cimg_instance);
      const T *ptr_max = _data;
      T max_value = *ptr_max;
      cimg_for(*this,ptrs,T) if (*ptrs>max_value) max_value = *(ptr_max=ptrs);
      return *ptr_max;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x8dc8
testb %al, %al
jne 0x481c3
movq 0x18(%rbx), %rcx
movsd (%rcx), %xmm0
movl (%rbx), %eax
movl 0x4(%rbx), %edx
imulq %rax, %rdx
movl 0x8(%rbx), %eax
movl 0xc(%rbx), %esi
imulq %rax, %rsi
imulq %rdx, %rsi
leaq (%rcx,%rsi,8), %rdx
movq %rcx, %rax
cmpq %rdx, %rcx
jae 0x481bb
movsd (%rcx), %xmm1
ucomisd %xmm0, %xmm1
cmovaq %rcx, %rax
maxsd %xmm0, %xmm1
addq $0x8, %rcx
movapd %xmm1, %xmm0
jmp 0x4819c
addq $0x8, %rsp
popq %rbx
popq %r14
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 0xc604(%rip), %rax      # 0x547e8
leaq 0xd9d7(%rip), %r10      # 0x55bc2
cmpb $0x0, 0x10(%rbx)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x2cea1(%rip), %r11     # 0x7509f
leaq 0x30049(%rip), %rsi     # 0x7824e
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x18(%rbx)
callq 0x9bf8
addq $0x20, %rsp
leaq 0x47a27(%rip), %rsi     # 0x8fc48
movq 0x47db0(%rip), %rdx     # 0x8ffd8
movq %r14, %rdi
callq 0x4910
movq %rax, %rbx
movq %r14, %rdi
callq 0x4390
movq %rbx, %rdi
callq 0x4950
// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::cimg::gzip_path(char const*, bool)
inline const char *gzip_path(const char *const user_path=0, const bool reinit_path=false) {
      static char *s_path = 0;
      cimg::mutex(7);
      if (reinit_path) { delete[] s_path; s_path = 0; }
      if (user_path) {
        if (!s_path) s_path = new char[1024];
        std::memset(s_path,0,1024);
        std::strncpy(s_path,user_path,1023);
      } else if (!s_path) {
        s_path = new char[1024];
        std::memset(s_path,0,1024);
        bool path_found = false;
        std::FILE *file = 0;
#if cimg_OS==2
        if (!path_found) {
          std::strcpy(s_path,".\\gzip.exe");
          if ((file=std::fopen(s_path,"r"))!=0) { cimg::fclose(file); path_found = true; }
        }
        if (!path_found) std::strcpy(s_path,"gzip.exe");
#else
        if (!path_found) {
          std::strcpy(s_path,"./gzip");
          if ((file=std::fopen(s_path,"r"))!=0) { cimg::fclose(file); path_found = true; }
        }
        if (!path_found) std::strcpy(s_path,"gzip");
#endif
        winformat_string(s_path);
      }
      cimg::mutex(7,0);
      return s_path;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
pushq $0x7
popq %rdi
pushq $0x1
popq %rsi
callq 0xa419
testl %ebp, %ebp
je 0x49bb3
movq 0x49337(%rip), %rdi     # 0x92ed8
testq %rdi, %rdi
je 0x49bab
callq 0x4670
andq $0x0, 0x49325(%rip)     # 0x92ed8
movq 0x4931e(%rip), %r14     # 0x92ed8
testq %rbx, %rbx
je 0x49bf9
testq %r14, %r14
jne 0x49bd8
movl $0x400, %edi            # imm = 0x400
callq 0x4040
movq %rax, %r14
movq %rax, 0x49300(%rip)     # 0x92ed8
movl $0x400, %edx            # imm = 0x400
movq %r14, %rdi
xorl %esi, %esi
callq 0x4280
movl $0x3ff, %edx            # imm = 0x3FF
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4240
jmp 0x49c5e
testq %r14, %r14
jne 0x49c5e
movl $0x400, %edi            # imm = 0x400
callq 0x4040
movq %rax, %rbx
movq %rax, 0x492c6(%rip)     # 0x92ed8
leaq 0x7(%rax), %rdi
movl $0x3f9, %edx            # imm = 0x3F9
xorl %esi, %esi
callq 0x4280
movl $0x7a672f2e, (%rbx)     # imm = 0x7A672F2E
movl $0x70697a, 0x3(%rbx)    # imm = 0x70697A
leaq 0x16b5d(%rip), %rsi     # 0x60793
movq %rbx, %rdi
callq 0x45b0
testq %rax, %rax
je 0x49c4d
movq %rax, %rdi
callq 0x2a2f8
jmp 0x49c5e
movq 0x49284(%rip), %rax     # 0x92ed8
movb $0x0, 0x4(%rax)
movl $0x70697a67, (%rax)     # imm = 0x70697A67
pushq $0x7
popq %rdi
xorl %esi, %esi
callq 0xa419
movq 0x49269(%rip), %rax     # 0x92ed8
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>& cimg_library::CImg<double>::_solve<double, double>(cimg_library::CImg<double> const&, cimg_library::CImg<double> const&)
CImg<T>& _solve(const CImg<t>& A, const CImg<ti>& indx) {
      typedef _cimg_Ttfloat Ttfloat;
      const int N = size();
      int ii = -1;
      Ttfloat sum;
      for (int i = 0; i<N; ++i) {
        const int ip = (int)indx[i];
        Ttfloat sum = (*this)(ip);
        (*this)(ip) = (*this)(i);
        if (ii>=0) for (int j = ii; j<=i-1; ++j) sum-=A(j,i)*(*this)(j);
        else if (sum!=0) ii = i;
        (*this)(i) = (T)sum;
      }
      for (int i = N - 1; i>=0; --i) {
        sum = (*this)(i);
        for (int j = i + 1; j<N; ++j) sum-=A(j,i)*(*this)(j);
        (*this)(i) = (T)(sum/A(i,i));
      }
      return *this;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rax
movl 0x4(%rdi), %ecx
imull (%rdi), %ecx
imull 0x8(%rdi), %ecx
imull 0xc(%rdi), %ecx
movq 0x18(%rdx), %rdx
xorl %edi, %edi
testl %ecx, %ecx
movl $0x0, %r8d
cmovgl %ecx, %r8d
movq 0x18(%rax), %r9
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
movabsq $0x100000000, %r10      # imm = 0x100000000
xorpd %xmm0, %xmm0
cmpq %r8, %rdi
je 0x4c79a
cvttsd2si (%rdx,%rdi,8), %ebx
movsd (%r9,%rbx,8), %xmm1
movsd (%r9,%rdi,8), %xmm2
movsd %xmm2, (%r9,%rbx,8)
testl %r11d, %r11d
js 0x4c784
movq 0x18(%rsi), %rbx
movl %r11d, %r14d
leaq (%r9,%r14,8), %r15
shlq $0x20, %r14
movl (%rsi), %ebp
imull %edi, %ebp
addl %r11d, %ebp
movq %r14, %r12
sarq $0x20, %r12
cmpq %rdi, %r12
jge 0x4c78f
movl %ebp, %r12d
movsd (%rbx,%r12,8), %xmm2
mulsd (%r15), %xmm2
subsd %xmm2, %xmm1
addq %r10, %r14
addq $0x8, %r15
incl %ebp
jmp 0x4c75b
ucomisd %xmm0, %xmm1
jne 0x4c78c
jnp 0x4c78f
movl %edi, %r11d
movsd %xmm1, (%r9,%rdi,8)
incq %rdi
jmp 0x4c723
movq 0x18(%rax), %rdx
movq 0x18(%rsi), %rdi
movl (%rsi), %r8d
incl %r8d
movl %ecx, %r11d
leaq (%rdx,%r11,8), %r9
leal -0x1(%rcx), %r10d
testl %r11d, %r11d
jle 0x4c816
leaq -0x1(%r11), %rbx
movl %ebx, %r14d
movsd (%rdx,%r14,8), %xmm0
movq 0x18(%rsi), %r15
movl (%rsi), %r12d
imull %r10d, %r12d
addl %r11d, %r12d
xorl %r13d, %r13d
leal (%r11,%r13), %ebp
cmpl %ebp, %ecx
jle 0x4c7f7
leal (%r12,%r13), %ebp
movsd (%r15,%rbp,8), %xmm1
mulsd (%r9,%r13,8), %xmm1
subsd %xmm1, %xmm0
incq %r13
jmp 0x4c7d6
movl %r8d, %r11d
imull %ebx, %r11d
divsd (%rdi,%r11,8), %xmm0
movsd %xmm0, (%rdx,%r14,8)
addq $-0x8, %r9
decl %r10d
movq %rbx, %r11
jmp 0x4c7b3
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>::transpose()
CImg<T>& transpose() {
      if (_width==1) { _width = _height; _height = 1; return *this; }
      if (_height==1) { _height = _width; _width = 1; return *this; }
      if (_width==_height) {
        cimg_forYZC(*this,y,z,c) for (int x = y; x<width(); ++x) cimg::swap((*this)(x,y,z,c),(*this)(y,x,z,c));
        return *this;
      }
      return get_transpose().move_to(*this);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movl (%rdi), %eax
movl 0x4(%rdi), %ecx
cmpq $0x1, %rax
jne 0x4db02
movl %ecx, (%rbx)
movl $0x1, 0x4(%rbx)
jmp 0x4dc26
cmpl $0x1, %ecx
jne 0x4db15
movl %eax, 0x4(%rbx)
movl $0x1, (%rbx)
jmp 0x4dc26
cmpl %ecx, %eax
jne 0x4dbfe
movl 0x8(%rbx), %ecx
movl 0xc(%rbx), %edx
xorl %r15d, %r15d
testl %eax, %eax
movl $0x0, %edi
cmovgl %eax, %edi
testl %ecx, %ecx
movl $0x0, %esi
cmovgl %ecx, %esi
movq %rsi, 0x20(%rsp)
testl %edx, %edx
cmovlel %r15d, %edx
movq %rdx, 0x8(%rsp)
movq %rax, %r9
imulq %rax, %r9
imulq %r9, %rcx
shlq $0x3, %rcx
movq %rcx, (%rsp)
shlq $0x3, %r9
leaq 0x8(,%rax,8), %r10
movq %rax, %r11
shlq $0x3, %r11
xorl %ecx, %ecx
cmpq 0x8(%rsp), %rcx
je 0x4dc26
movq %rcx, 0x10(%rsp)
movq %r15, 0x18(%rsp)
xorl %r12d, %r12d
cmpq 0x20(%rsp), %r12
je 0x4dbe8
movq %r15, %r13
xorl %ebp, %ebp
xorl %ecx, %ecx
cmpl %ecx, %eax
movl %ecx, %edx
cmovgl %eax, %edx
cmpq %rdi, %rcx
je 0x4dbe0
addq %rbp, %rdx
movq 0x18(%rbx), %r14
addq %r13, %r14
movq %r14, %rsi
xorl %r8d, %r8d
cmpq %r8, %rdx
je 0x4dbd5
movsd (%r14,%r8,8), %xmm0
movsd (%rsi), %xmm1
movsd %xmm1, (%r14,%r8,8)
movsd %xmm0, (%rsi)
incq %r8
addq %r11, %rsi
jmp 0x4dbb4
incq %rcx
decq %rbp
addq %r10, %r13
jmp 0x4db98
incq %r12
addq %r9, %r15
jmp 0x4db8a
movq 0x10(%rsp), %rcx
incq %rcx
movq 0x18(%rsp), %r15
addq (%rsp), %r15
jmp 0x4db72
leaq 0x28(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4e53e
movq %r14, %rdi
movq %rbx, %rsi
callq 0x9352
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x6c96
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x6c96
movq %rbx, %rdi
callq 0x4950
nop
// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>& cimg_library::CImg<double>::sort<int>(cimg_library::CImg<int>&, bool)
CImg<T>& sort(CImg<t>& permutations, const bool is_increasing=true) {
      permutations.assign(_width,_height,_depth,_spectrum);
      if (is_empty()) return *this;
      cimg_foroff(permutations,off) permutations[off] = (t)off;
      return _quicksort(0,size()-1,permutations,is_increasing,true);
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
movl (%rdi), %esi
movl 0x4(%rdi), %edx
movl 0x8(%rdi), %ecx
movl 0xc(%rdi), %r8d
movq %rbx, %rdi
callq 0x36172
movq %r14, %rdi
callq 0x8dc8
testb %al, %al
je 0x4e24e
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
movl (%rbx), %eax
movl 0x4(%rbx), %ecx
imulq %rax, %rcx
movl 0x8(%rbx), %edx
movl 0xc(%rbx), %eax
imulq %rdx, %rax
imulq %rcx, %rax
movq 0x18(%rbx), %rcx
xorl %edx, %edx
cmpq %rdx, %rax
je 0x4e278
movl %edx, (%rcx,%rdx,4)
incq %rdx
jmp 0x4e26b
movl 0x4(%r14), %edx
imull (%r14), %edx
imull 0x8(%r14), %edx
imull 0xc(%r14), %edx
decl %edx
movzbl %bpl, %r8d
pushq $0x1
popq %r9
movq %r14, %rdi
xorl %esi, %esi
movq %rbx, %rcx
popq %rbx
popq %r14
popq %rbp
jmp 0x4e2a6
nop
// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>::get_diagonal() const
CImg<T> get_diagonal() const {
      if (is_empty()) return *this;
      CImg<T> res(size(),size(),1,1,0);
      cimg_foroff(*this,off) res(off,off) = (*this)(off);
      return res;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x8dc8
testb %al, %al
je 0x50072
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7064
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl 0x4(%r14), %edx
imull (%r14), %edx
imull 0x8(%r14), %edx
imull 0xc(%r14), %edx
pushq $0x1
popq %rcx
xorps %xmm0, %xmm0
movq %rbx, %rdi
movl %edx, %esi
movl %ecx, %r8d
callq 0x5dbe
movl (%r14), %eax
movl 0x4(%r14), %ecx
imulq %rax, %rcx
movl 0x8(%r14), %edx
movl 0xc(%r14), %eax
imulq %rdx, %rax
imulq %rcx, %rax
movq 0x18(%r14), %rcx
movq 0x18(%rbx), %rdx
movl (%rbx), %esi
incl %esi
xorl %edi, %edi
xorl %r8d, %r8d
cmpq %r8, %rax
je 0x50067
movl %r8d, %r9d
movsd (%rcx,%r9,8), %xmm0
movl %edi, %r9d
movsd %xmm0, (%rdx,%r9,8)
incq %r8
addl %esi, %edi
jmp 0x500c3
nop
// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>::get_pseudoinvert() const
CImg<Tfloat> get_pseudoinvert() const {
      CImg<Tfloat> U, S, V;
      SVD(U,S,V);
      const Tfloat tolerance = (sizeof(Tfloat)<=4?5.96e-8f:1.11e-16f)*cimg::max(_width,_height)*S.max();
      cimg_forX(V,x) {
        const Tfloat s = S(x), invs = s>tolerance?1/s:(Tfloat)0;
        cimg_forY(V,y) V(x,y)*=invs;
      }
      return V*U.transpose();
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x60, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x40(%rsp), %rsi
andq $0x0, 0x18(%rsi)
xorpd %xmm0, %xmm0
movapd %xmm0, (%rsi)
xorl %eax, %eax
movb %al, 0x10(%rsi)
leaq 0x20(%rsp), %rdx
andq $0x0, 0x18(%rdx)
movq %rsp, %rcx
andq $0x0, 0x18(%rcx)
movapd %xmm0, (%rdx)
movb %al, 0x10(%rdx)
movapd %xmm0, (%rcx)
movb %al, 0x10(%rcx)
pushq $0x1
popq %r8
pushq $0x28
popq %r9
xorpd %xmm0, %xmm0
movq %r14, %rdi
callq 0x4c822
movl (%r14), %ebp
movl 0x4(%r14), %r14d
leaq 0x20(%rsp), %rdi
callq 0x5032e
cmpl %r14d, %ebp
cmoval %ebp, %r14d
cvtsi2ss %r14, %xmm0
mulss 0x406a(%rip), %xmm0     # 0x542b4
cvtss2sd %xmm0, %xmm0
mulsd (%rax), %xmm0
movl (%rsp), %eax
movl 0x4(%rsp), %ecx
movq 0x38(%rsp), %rdx
xorl %esi, %esi
testl %ecx, %ecx
cmovlel %esi, %ecx
testl %eax, %eax
movl $0x0, %edi
cmovgl %eax, %edi
movsd 0x3d99(%rip), %xmm1     # 0x54010
cmpq %rdi, %rsi
je 0x502c4
movsd (%rdx,%rsi,8), %xmm3
movapd %xmm1, %xmm4
divsd %xmm3, %xmm4
movapd %xmm0, %xmm2
cmpltsd %xmm3, %xmm2
andpd %xmm4, %xmm2
movq 0x18(%rsp), %r8
movl %esi, %r9d
movq %rcx, %r10
subq $0x1, %r10
jb 0x502bf
movl %r9d, %r11d
movsd (%r8,%r11,8), %xmm3
mulsd %xmm2, %xmm3
movsd %xmm3, (%r8,%r11,8)
addl %eax, %r9d
jmp 0x502a1
incq %rsi
jmp 0x50277
leaq 0x40(%rsp), %rdi
callq 0x4dad8
movq %rsp, %rsi
movq %rbx, %rdi
movq %rax, %rdx
callq 0x4dca0
movq %rsp, %rdi
callq 0x6c96
leaq 0x20(%rsp), %rdi
callq 0x6c96
leaq 0x40(%rsp), %rdi
callq 0x6c96
movq %rbx, %rax
addq $0x60, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x50306
movq %rax, %rbx
movq %rsp, %rdi
callq 0x6c96
leaq 0x20(%rsp), %rdi
callq 0x6c96
leaq 0x40(%rsp), %rdi
callq 0x6c96
movq %rbx, %rdi
callq 0x4950
nop
// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>::max()
T& max() {
      if (is_empty())
        throw CImgInstanceException(_cimg_instance
                                    "max(): Empty instance.",
                                    cimg_instance);
      T *ptr_max = _data;
      T max_value = *ptr_max;
      cimg_for(*this,ptrs,T) if (*ptrs>max_value) max_value = *(ptr_max=ptrs);
      return *ptr_max;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x8dc8
testb %al, %al
jne 0x5038b
movq 0x18(%rbx), %rcx
movsd (%rcx), %xmm0
movl (%rbx), %eax
movl 0x4(%rbx), %edx
imulq %rax, %rdx
movl 0x8(%rbx), %eax
movl 0xc(%rbx), %esi
imulq %rax, %rsi
imulq %rdx, %rsi
leaq (%rcx,%rsi,8), %rdx
movq %rcx, %rax
cmpq %rdx, %rcx
jae 0x50383
movsd (%rcx), %xmm1
ucomisd %xmm0, %xmm1
cmovaq %rcx, %rax
maxsd %xmm0, %xmm1
addq $0x8, %rcx
movapd %xmm1, %xmm0
jmp 0x50364
addq $0x8, %rsp
popq %rbx
popq %r14
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 0x443c(%rip), %rax      # 0x547e8
leaq 0x580f(%rip), %r10      # 0x55bc2
cmpb $0x0, 0x10(%rbx)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x24cd9(%rip), %r11     # 0x7509f
leaq 0x27e81(%rip), %rsi     # 0x7824e
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x18(%rbx)
callq 0x9bf8
addq $0x20, %rsp
leaq 0x3f85f(%rip), %rsi     # 0x8fc48
movq 0x3fbe8(%rip), %rdx     # 0x8ffd8
movq %r14, %rdi
callq 0x4910
movq %rax, %rbx
movq %r14, %rdi
callq 0x4390
movq %rbx, %rdi
callq 0x4950
nop
// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/siftpp/sift.cpp
// Function: VL::Detail::operator>>(std::istream&, VL::Detail::_cmnt&)
std::istream& 
operator>>(std::istream& is, _cmnt& manip)
{
  char c ;
  char b [1024] ; 
  is>>c ;
  if( c != '#' ) 
    return is.putback(c) ;
  is.getline(b,1024) ;
  return is ;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x418, %rsp            # imm = 0x418
movq %rdi, %rbx
leaq 0xf(%rsp), %r14
movq %r14, %rsi
callq 0x4690
movb (%r14), %al
cmpb $0x23, %al
jne 0x50441
leaq 0x10(%rsp), %rsi
movl $0x400, %edx            # imm = 0x400
movq %rbx, %rdi
callq 0x4140
jmp 0x5044f
movsbl %al, %esi
movq %rbx, %rdi
callq 0x49f0
movq %rax, %rbx
movq %rbx, %rax
addq $0x418, %rsp            # imm = 0x418
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/siftpp/sift.cpp
// Function: VL::insertPgm(std::ostream&, float const*, int, int)
std::ostream& 
insertPgm(std::ostream& os, pixel_t const* im, int width, int height)
{
  os<< "P5"   << "\n"
    << width  << " "
    << height << "\n"
    << "255"  << "\n" ;
  for(int y = 0 ; y < height ; ++y) {
    for(int x = 0 ; x < width ; ++x) {
      unsigned char v = 
        (unsigned char)
        (std::max(std::min(*im++, 1.0f),0.f) * 255.0f) ;
      os << v ;
    }
  }
  return os ;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %r14
leaq 0x2910f(%rip), %rsi     # 0x79588
callq 0x4520
leaq 0x2462d(%rip), %r12     # 0x74ab2
movq %rax, %rdi
movq %r12, %rsi
callq 0x4520
movq %rax, %rdi
movl %ebp, %esi
callq 0x4930
leaq 0x274f7(%rip), %rsi     # 0x77998
movq %rax, %rdi
callq 0x4520
movq %rax, %rdi
movl %ebx, %esi
callq 0x4930
movq %rax, %rdi
movq %r12, %rsi
callq 0x4520
leaq 0x290c6(%rip), %rsi     # 0x7958b
movq %rax, %rdi
callq 0x4520
movq %rax, %rdi
movq %r12, %rsi
callq 0x4520
xorl %r12d, %r12d
testl %ebp, %ebp
cmovlel %r12d, %ebp
testl %ebx, %ebx
cmovlel %r12d, %ebx
movl %ebp, %r13d
cmpl %ebx, %r12d
je 0x5052b
subl $0x1, %r13d
jb 0x50526
movss 0x3d23(%rip), %xmm0     # 0x54220
minss (%r15), %xmm0
addq $0x4, %r15
xorps %xmm1, %xmm1
maxss %xmm0, %xmm1
mulss 0x3d1f(%rip), %xmm1     # 0x54234
cvttss2si %xmm1, %eax
movsbl %al, %esi
movq %r14, %rdi
callq 0x4590
jmp 0x504ef
incl %r12d
jmp 0x504e7
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/siftpp/sift.cpp
// Function: VL::Detail::copyAndUpsampleRows(float*, float const*, int, int)
void 
copyAndUpsampleRows
(pixel_t* dst, pixel_t const* src, int width, int height)
{
  for(int y = 0 ; y < height ; ++y) {
    pixel_t b, a ;
    b = a = *src++ ;
    for(int x = 0 ; x < width-1 ; ++x) {
      b = *src++ ;
      *dst = a ;         dst += height ;
      *dst = 0.5*(a+b) ; dst += height ;
      a = b ;
    }
    *dst = b ; dst += height ;
    *dst = b ; dst += height ;
    dst += 1 - width * 2 * height ;
  }  
}

// Assembly:
movl %edx, %r10d
imull %ecx, %r10d
decl %edx
movslq %ecx, %rax
addl %r10d, %r10d
xorl %ecx, %ecx
testl %edx, %edx
cmovlel %ecx, %edx
testl %eax, %eax
movl $0x0, %r8d
cmovgl %eax, %r8d
leaq (,%rax,8), %r9
movslq %r10d, %r11
shlq $0x2, %r11
movq %r9, %r10
subq %r11, %r10
orq $0x4, %r10
movss 0x3648(%rip), %xmm0     # 0x54230
cmpl %r8d, %ecx
je 0x50c2f
movss (%rsi), %xmm1
addq $0x4, %rsi
movl %edx, %r11d
subl $0x1, %r11d
jb 0x50c1f
movss (%rsi), %xmm2
movss %xmm1, (%rdi)
addss %xmm2, %xmm1
mulss %xmm0, %xmm1
movss %xmm1, (%rdi,%rax,4)
addq $0x4, %rsi
addq %r9, %rdi
movaps %xmm2, %xmm1
jmp 0x50bf8
movss %xmm1, (%rdi)
movss %xmm1, (%rdi,%rax,4)
addq %r10, %rdi
incl %ecx
jmp 0x50be8
retq
// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/siftpp/sift.cpp
// Function: VL::Detail::copyAndDownsample(float*, float const*, int, int, int)
void 
copyAndDownsample(pixel_t* dst, pixel_t const* src, 
                  int width, int height, int d)
{
  if(width < d || height < d)
    throw std::string("in siftpp: image too small");

  for(int y = 0 ; y < height ; y+=d) {
    pixel_t const * srcrowp = src + y * width ;    
    for(int x = 0 ; x < width - (d-1) ; x+=d) {     
      *dst++ = *srcrowp ;
      srcrowp += d ;
    }
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %eax
subl %r8d, %eax
jl 0x50c86
cmpl %r8d, %ecx
jl 0x50c86
incl %eax
movslq %r8d, %r8
movslq %ecx, %rcx
movslq %edx, %rdx
imulq %r8, %rdx
shlq $0x2, %rdx
xorl %r9d, %r9d
cmpq %rcx, %r9
jge 0x50c7e
xorl %r10d, %r10d
cmpl %eax, %r10d
jge 0x50c76
movss (%rsi,%r10,4), %xmm0
movss %xmm0, (%rdi)
addq $0x4, %rdi
addq %r8, %r10
jmp 0x50c5e
addq %r8, %r9
addq %rdx, %rsi
jmp 0x50c56
addq $0x8, %rsp
popq %rbx
popq %r14
retq
pushq $0x20
popq %rdi
callq 0x4210
movq %rax, %rbx
leaq 0x28998(%rip), %rsi     # 0x79630
leaq 0x7(%rsp), %rdx
movq %rax, %rdi
callq 0x41c0
leaq 0x3ef74(%rip), %rsi     # 0x8fc20
movq 0x3f2f5(%rip), %rdx     # 0x8ffa8
movq %rbx, %rdi
callq 0x4910
movq %rax, %r14
movq %rbx, %rdi
callq 0x4390
movq %r14, %rdi
callq 0x4950
// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/siftpp/sift.cpp
// Function: VL::Sift::smooth(float*, float*, float const*, int, int, float)
void
Sift::smooth
(pixel_t* dst, pixel_t* temp, 
 pixel_t const* src, int width, int height, 
 VL::float_t s)
{
  // make sure a buffer larege enough has been allocated
  // to hold the filter
  int W = int( ceil( VL::float_t(4.0) * s ) ) ;
  if( ! filter ) {
    filterReserved = 0 ;
  }
  
  if( filterReserved < W ) {
    filterReserved = W ;
    if( filter ) delete [] filter ;
    filter = new pixel_t [ 2* filterReserved + 1 ] ;
  }
  
  // pre-compute filter
  for(int j = 0 ; j < 2*W+1 ; ++j) 
    filter[j] = VL::pixel_t
      (std::exp
       (VL::float_t
        (-0.5 * (j-W) * (j-W) / (s*s) ))) ;
  
  // normalize to one
  normalize(filter, W) ;
  
  // convolve
  econvolve(temp, src, width, height, filter, W) ;
  econvolve(dst, temp, height, width, filter, W) ;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movaps %xmm0, %xmm1
movl %r9d, 0x8(%rsp)
movl %r8d, 0xc(%rsp)
movq %rcx, 0x10(%rsp)
movq %rdx, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdi, %r12
movss 0x3545(%rip), %xmm0     # 0x54248
movss %xmm1, (%rsp)
mulss %xmm1, %xmm0
callq 0x4290
cvttss2si %xmm0, %r14d
movq 0x50(%r12), %r15
testq %r15, %r15
je 0x50d3b
cmpl %r14d, 0x58(%r12)
jge 0x50d77
movl %r14d, 0x58(%r12)
movq %r15, %rdi
callq 0x4670
movl 0x58(%r12), %eax
jmp 0x50d4e
andl $0x0, 0x58(%r12)
testl %r14d, %r14d
jle 0x50d74
movl %r14d, 0x58(%r12)
movl %r14d, %eax
leal 0x1(,%rax,2), %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
testl %eax, %eax
pushq $-0x1
popq %rdi
cmovnsq %rcx, %rdi
callq 0x4040
movq %rax, %r15
movq %rax, 0x50(%r12)
jmp 0x50d77
xorl %r15d, %r15d
movss (%rsp), %xmm0
mulss %xmm0, %xmm0
leal 0x1(,%r14,2), %ebx
xorl %ebp, %ebp
testl %ebx, %ebx
cmovlel %ebp, %ebx
cvtss2sd %xmm0, %xmm0
movsd %xmm0, (%rsp)
movl %r14d, %r13d
negl %r13d
cmpq %rbp, %rbx
je 0x50dd5
leal (%r13,%rbp), %eax
cvtsi2sd %eax, %xmm0
movapd %xmm0, %xmm1
mulsd 0x28740(%rip), %xmm1    # 0x794f8
mulsd %xmm0, %xmm1
divsd (%rsp), %xmm1
cvtsd2ss %xmm1, %xmm0
callq 0x48f0
movss %xmm0, (%r15,%rbp,4)
incq %rbp
jmp 0x50d9e
movq 0x50(%r12), %rdi
movl %r14d, %esi
callq 0x53111
movq 0x50(%r12), %r8
movq 0x20(%rsp), %r15
movq %r15, %rdi
movq 0x10(%rsp), %rsi
movl 0xc(%rsp), %ebx
movl %ebx, %edx
movl 0x8(%rsp), %ebp
movl %ebp, %ecx
movl %r14d, %r9d
callq 0x5314f
movq 0x50(%r12), %r8
movq 0x18(%rsp), %rdi
movq %r15, %rsi
movl %ebp, %edx
movl %ebx, %ecx
movl %r14d, %r9d
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5314f
nop
// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/siftpp/sift.cpp
// Function: VL::Detail::normalize_histogram(float*, float*)
void
normalize_histogram(VL::float_t* L_begin, VL::float_t* L_end)
{
  VL::float_t* L_iter ;
  VL::float_t norm = 0.0 ;

  for(L_iter = L_begin; L_iter != L_end ; ++L_iter)
    norm += (*L_iter) * (*L_iter) ;

  norm = fast_sqrt(norm) ;

  for(L_iter = L_begin; L_iter != L_end ; ++L_iter)
    *L_iter /= (norm + std::numeric_limits<VL::float_t>::epsilon() ) ;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorps %xmm0, %xmm0
movq %rdi, %rax
cmpq %rbx, %rax
je 0x52a67
movss (%rax), %xmm1
mulss %xmm1, %xmm1
addss %xmm1, %xmm0
addq $0x4, %rax
jmp 0x52a50
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jb 0x52a75
sqrtss %xmm0, %xmm0
jmp 0x52a7a
callq 0x49b0
addss 0x26a62(%rip), %xmm0    # 0x794e4
cmpq %rbx, %r14
je 0x52a9b
movss (%r14), %xmm1
divss %xmm0, %xmm1
movss %xmm1, (%r14)
addq $0x4, %r14
jmp 0x52a82
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/CMU-SAFARI[P]optimal-seed-solver/KmerHashMain.cc
// Function: main
int main() {
	KmerHash kmer;

	while (1) {
		string Kmer;
		int hash;
		char input;
		cout << "1: get kmer, 2 get hash, q quit: ";
		cin >> input;
		switch (input) {
		case '1':
			cout << "set KmerLengh" << endl;
			cin >> hash;
			kmer.setKmerSize(hash);
			cout << "Input hash: " << endl;
			cin >> hash;
			kmer.setHashVal(hash);

			cout << "Kmer: " << kmer.getKmer() << endl;
			break;

		case '2':
			cout << "Input Kmer" << endl;
			cin >> Kmer;
			kmer.calculateHash(Kmer, Kmer.size() );

			cout << "Hash: " << kmer.getHash() << endl;
			break;

		case 'q':
			return 0;

		default:
			break;
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x142c
movq 0x2d62(%rip), %r14      # 0x3fd0
movq 0x2d6b(%rip), %r12      # 0x3fe0
leaq 0x38(%rsp), %rbp
leaq 0x18(%rsp), %r15
leaq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
andq $0x0, 0x20(%rsp)
movb $0x0, 0x28(%rsp)
movq %r14, %rdi
leaq 0xd66(%rip), %rsi       # 0x2004
callq 0x10a0
movq %r12, %rdi
leaq 0xb(%rsp), %rsi
callq 0x10d0
movzbl 0xb(%rsp), %eax
cmpl $0x31, %eax
je 0x132f
cmpl $0x32, %eax
je 0x12cd
cmpl $0x71, %eax
jne 0x13c7
jmp 0x13d4
movq %r14, %rdi
leaq 0xd71(%rip), %rsi       # 0x2048
callq 0x10a0
movq %rax, %rdi
callq 0x1040
movq %r12, %rdi
movq %r15, %rsi
callq 0x10c0
movl 0x20(%rsp), %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1442
movq %r14, %rdi
leaq 0xd4b(%rip), %rsi       # 0x2053
callq 0x10a0
movq %rax, %r13
movq %rbx, %rdi
callq 0x155a
movl %eax, %esi
movq %r13, %rdi
callq 0x1070
movq %rax, %rdi
callq 0x1040
jmp 0x13c7
movq %r14, %rdi
leaq 0xced(%rip), %rsi       # 0x2026
callq 0x10a0
movq %rax, %rdi
callq 0x1040
movq %r12, %rdi
leaq 0xc(%rsp), %rsi
callq 0x1050
movl 0xc(%rsp), %esi
movq %rbx, %rdi
callq 0x14c0
movq %r14, %rdi
leaq 0xccb(%rip), %rsi       # 0x2034
callq 0x10a0
movq %rax, %rdi
callq 0x1040
movq %r12, %rdi
leaq 0xc(%rsp), %rsi
callq 0x1050
movl 0xc(%rsp), %esi
movq %rbx, %rdi
callq 0x14c4
movq %r14, %rdi
leaq 0xca8(%rip), %rsi       # 0x2041
callq 0x10a0
movq %rax, %r13
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x14c8
movq %r13, %rdi
movq %rbp, %rsi
callq 0x1090
movq %rax, %rdi
callq 0x1040
movq %rbp, %rdi
callq 0x1030
movq %r15, %rdi
callq 0x1030
jmp 0x127f
leaq 0x18(%rsp), %rdi
callq 0x1030
leaq 0x10(%rsp), %rdi
callq 0x14b6
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x140a
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x1030
jmp 0x140d
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x1030
leaq 0x10(%rsp), %rdi
callq 0x14b6
movq %rbx, %rdi
callq 0x10f0
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O2/CMU-SAFARI[P]optimal-seed-solver/KmerHash.cc
// Function: KmerHash::calculateHash(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned int)
unsigned int KmerHash::calculateHash(const string& Kmer, unsigned int KmerSize) {
	assert (KmerSize <= Kmer.size() );
	
	//Clear hashVal
	hashVal = 0;
	//Fill different Lv of the hash
	unsigned long bpVal = 0;
	this->KmerSize = KmerSize;

	unsigned int tempHashVal = 0;

	for (int i = 0; i < this->KmerSize; i++) {

		//cout << Kmer[i];

		switch (Kmer[i]) {
		case 'A':
			bpVal = 0;
			break;
		case 'C':
			bpVal = 1;
			break;
		case 'G':
			bpVal = 2;
			break;
		case 'T':
			bpVal = 3;
			break;
		case 'N':
		default:
			bpVal = 0;
		}

		hashVal = (hashVal << 2) | bpVal;
	}
	return hashVal;
}

// Assembly:
pushq %rbx
movl %edx, %ecx
cmpq %rcx, 0x8(%rsi)
jb 0x1499
andl $0x0, (%rdi)
movl %edx, 0x4(%rdi)
movq (%rsi), %rdx
xorl %esi, %esi
pushq $0x3
popq %r8
pushq $0x2
popq %r9
pushq $0x1
popq %r10
xorl %eax, %eax
cmpq %rsi, %rcx
je 0x1497
movzbl (%rdx,%rsi), %ebx
cmpl $0x54, %ebx
je 0x1489
cmpl $0x47, %ebx
je 0x1484
xorl %r11d, %r11d
cmpl $0x43, %ebx
jne 0x148c
movl %r10d, %r11d
jmp 0x148c
movl %r9d, %r11d
jmp 0x148c
movl %r8d, %r11d
leal (%r11,%rax,4), %eax
movl %eax, (%rdi)
incq %rsi
jmp 0x1464
popq %rbx
retq
leaq 0xbc6(%rip), %rdi       # 0x2066
leaq 0xbd7(%rip), %rsi       # 0x207e
leaq 0xbdc(%rip), %rcx       # 0x208a
pushq $0x40
popq %rdx
callq 0x1060
// File: /workspace/github_cpp_makefile_star2_O2/CMU-SAFARI[P]optimal-seed-solver/KmerHash.cc
// Function: KmerHash::getKmer[abi:cxx11]() const
string KmerHash::getKmer() const {
	string Kmer(KmerSize, 'N');

	cout << "kmer size: " << KmerSize << endl;

	for (int i = 0; i < KmerSize; i++) {

		unsigned int bpVal = (hashVal >> (2 * (KmerSize - i) ) ) & 3;
		switch (bpVal) {
		case 0:
			Kmer[i] = 'A';
			break;
		case 1:
			Kmer[i] = 'C';
			break;
		case 2:
			Kmer[i] = 'G';
			break;
		case 3:
			Kmer[i] = 'T';
			break;
		default:
			cerr << "unrecognized character: " << Kmer[i] << endl;
			break;
		}

	}
	return Kmer;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl 0x4(%rsi), %esi
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
pushq $0x4e
popq %rdx
callq 0x10b0
movq 0x2ae5(%rip), %rdi      # 0x3fd0
leaq 0xb68(%rip), %rsi       # 0x205a
callq 0x10a0
movl 0x4(%r14), %esi
movq %rax, %rdi
callq 0x1070
movq %rax, %rdi
callq 0x1040
xorl %edx, %edx
xorl %esi, %esi
movl 0x4(%r14), %ecx
cmpq %rcx, %rsi
jae 0x153b
movl (%r14), %eax
addl %edx, %ecx
addl %ecx, %ecx
shrl %cl, %eax
shll $0x3, %eax
movl $0x54474341, %edi       # imm = 0x54474341
movl %eax, %ecx
shrl %cl, %edi
movq (%rbx), %rax
movb %dil, (%rax,%rsi)
incq %rsi
decl %edx
jmp 0x150f
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x1030
movq %r14, %rdi
callq 0x10f0
nop