// File: manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>::_load_dlm(_IO_FILE*, char const*)
CImg<T>& _load_dlm(std::FILE *const file, const char *const filename) {
      if (!file && !filename)
        throw CImgArgumentException(_cimg_instance
                                    "load_dlm(): Specified filename is (null).",
                                    cimg_instance);

      std::FILE *const nfile = file?file:cimg::fopen(filename,"r");
      char delimiter[256] = { 0 }, tmp[256] = { 0 };
      unsigned int cdx = 0, dx = 0, dy = 0;
      int err = 0;
      double val;
      assign(256,256);
      while ((err = std::fscanf(nfile,"%lf%255[^0-9.+-]",&val,delimiter))>0) {
        if (err>0) (*this)(cdx++,dy) = (T)val;
        if (cdx>=_width) resize(3*_width/2,_height,1,1,0);
        char c = 0;
        if (!std::sscanf(delimiter,"%255[^\n]%c",tmp,&c) || c=='\n') {
          dx = cimg::max(cdx,dx);
          if (++dy>=_height) resize(_width,3*_height/2,1,1,0);
          cdx = 0;
        }
      }
      if (cdx && err==1) { dx = cdx; ++dy; }
      if (!dx || !dy) {
        if (!file) cimg::fclose(nfile);
        throw CImgIOException(_cimg_instance
                              "load_dlm(): Invalid DLM file '%s'.",
                              cimg_instance,
                              filename?filename:"(FILE*)");
      }
      resize(dx,dy,1,1,0);
      if (!file) cimg::fclose(nfile);
      return *this;
    }

// Assembly:
pushq %rbx
subq $0x2f0, %rsp            # imm = 0x2F0
movq %rdi, 0x2e8(%rsp)
movq %rsi, 0x2e0(%rsp)
movq %rdx, 0x2d8(%rsp)
movq 0x2e8(%rsp), %rax
movq %rax, 0x98(%rsp)
cmpq $0x0, 0x2e0(%rsp)
jne 0x66f06
cmpq $0x0, 0x2d8(%rsp)
jne 0x66f06
movl $0x4008, %edi           # imm = 0x4008
callq 0x5240
movq %rax, %rcx
movq 0x98(%rsp), %rax
movq %rcx, 0x68(%rsp)
movl (%rax), %ecx
movl %ecx, 0x70(%rsp)
movl 0x4(%rax), %ecx
movl %ecx, 0x74(%rsp)
movl 0x8(%rax), %ecx
movl %ecx, 0x78(%rsp)
movl 0xc(%rax), %ecx
movl %ecx, 0x7c(%rsp)
movq 0x18(%rax), %rcx
movq %rcx, 0x80(%rsp)
movb 0x10(%rax), %dl
leaq 0x81b79(%rip), %rcx     # 0xe89d2
leaq 0x62c81(%rip), %rax     # 0xc9ae1
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, 0x88(%rsp)
callq 0x118f0
movq %rax, 0x90(%rsp)
jmp 0x66e7e
movl 0x7c(%rsp), %r9d
movl 0x78(%rsp), %r8d
movl 0x74(%rsp), %ecx
movl 0x70(%rsp), %edx
movq 0x68(%rsp), %rdi
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %r10
movq 0x90(%rsp), %r11
movq %rsp, %rax
movq %r11, 0x10(%rax)
movq %r10, 0x8(%rax)
movq %rsi, (%rax)
leaq 0x82646(%rip), %rsi     # 0xe9508
xorl %eax, %eax
callq 0x12220
jmp 0x66ecb
movq 0x68(%rsp), %rdi
leaq 0x98c89(%rip), %rsi     # 0xffb60
leaq -0x54a7e(%rip), %rdx    # 0x12460
callq 0x5920
movq 0x68(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2d0(%rsp)
movl %eax, 0x2cc(%rsp)
callq 0x53a0
jmp 0x67316
cmpq $0x0, 0x2e0(%rsp)
je 0x66f20
movq 0x2e0(%rsp), %rax
movq %rax, 0x60(%rsp)
jmp 0x66f39
movq 0x2d8(%rsp), %rdi
leaq 0x6d783(%rip), %rsi     # 0xd46b2
callq 0x654a0
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x2c0(%rsp)
leaq 0x1c0(%rsp), %rdi
xorl %esi, %esi
movl $0x100, %edx            # imm = 0x100
callq 0x52a0
leaq 0xc0(%rsp), %rdi
xorl %esi, %esi
movl $0x100, %edx            # imm = 0x100
callq 0x52a0
movq 0x98(%rsp), %rdi
movl $0x0, 0xbc(%rsp)
movl $0x0, 0xb8(%rsp)
movl $0x0, 0xb4(%rsp)
movl $0x0, 0xb0(%rsp)
movl $0x100, %edx            # imm = 0x100
movl $0x1, %r8d
movl %edx, %esi
movl %r8d, %ecx
callq 0x11900
movq 0x2c0(%rsp), %rdi
leaq 0x1c0(%rsp), %rcx
leaq 0x82592(%rip), %rsi     # 0xe9560
leaq 0xa8(%rsp), %rdx
movb $0x0, %al
callq 0x5a10
movl %eax, 0xb0(%rsp)
cmpl $0x0, %eax
jle 0x6713c
cmpl $0x0, 0xb0(%rsp)
jle 0x67037
movq 0x98(%rsp), %rdi
movsd 0xa8(%rsp), %xmm0
movsd %xmm0, 0x58(%rsp)
movl 0xbc(%rsp), %esi
movl %esi, %eax
addl $0x1, %eax
movl %eax, 0xbc(%rsp)
movl 0xb4(%rsp), %edx
callq 0x9850
movsd 0x58(%rsp), %xmm0
movsd %xmm0, (%rax)
movq 0x98(%rsp), %rcx
movl 0xbc(%rsp), %eax
cmpl (%rcx), %eax
jb 0x6707e
movq 0x98(%rsp), %rdi
imull $0x3, (%rdi), %esi
shrl %esi
movl 0x4(%rdi), %edx
movl $0x1, %r8d
xorl %r9d, %r9d
xorps %xmm3, %xmm3
movl %r8d, %ecx
movl $0x0, (%rsp)
movaps %xmm3, %xmm0
movaps %xmm3, %xmm1
movaps %xmm3, %xmm2
callq 0x67330
movb $0x0, 0xa7(%rsp)
leaq 0x1c0(%rsp), %rdi
leaq 0xc0(%rsp), %rdx
leaq 0x824d4(%rip), %rsi     # 0xe9571
leaq 0xa7(%rsp), %rcx
movb $0x0, %al
callq 0x5510
cmpl $0x0, %eax
je 0x670be
movsbl 0xa7(%rsp), %eax
cmpl $0xa, %eax
jne 0x67137
leaq 0xbc(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
callq 0x15db0
movq 0x98(%rsp), %rcx
movl %eax, 0xb8(%rsp)
movl 0xb4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xb4(%rsp)
cmpl 0x4(%rcx), %eax
jb 0x6712c
movq 0x98(%rsp), %rdi
movl (%rdi), %esi
imull $0x3, 0x4(%rdi), %edx
shrl %edx
movl $0x1, %r8d
xorl %r9d, %r9d
xorps %xmm3, %xmm3
movl %r8d, %ecx
movl $0x0, (%rsp)
movaps %xmm3, %xmm0
movaps %xmm3, %xmm1
movaps %xmm3, %xmm2
callq 0x67330
movl $0x0, 0xbc(%rsp)
jmp 0x66fb7
cmpl $0x0, 0xbc(%rsp)
je 0x6716f
cmpl $0x1, 0xb0(%rsp)
jne 0x6716f
movl 0xbc(%rsp), %eax
movl %eax, 0xb8(%rsp)
movl 0xb4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xb4(%rsp)
cmpl $0x0, 0xb8(%rsp)
je 0x67187
cmpl $0x0, 0xb4(%rsp)
jne 0x672b3
cmpq $0x0, 0x2e0(%rsp)
jne 0x6719f
movq 0x2c0(%rsp), %rdi
callq 0x5c6f0
movl $0x4008, %edi           # imm = 0x4008
callq 0x5240
movq %rax, %rcx
movq 0x98(%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 0x817eb(%rip), %rcx     # 0xe89d2
leaq 0x628f3(%rip), %rax     # 0xc9ae1
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, 0x48(%rsp)
callq 0x118f0
movq %rax, 0x50(%rsp)
jmp 0x67206
cmpq $0x0, 0x2d8(%rsp)
je 0x67220
movq 0x2d8(%rsp), %rax
movq %rax, 0x20(%rsp)
jmp 0x6722e
leaq 0x82263(%rip), %rax     # 0xe948a
movq %rax, 0x20(%rsp)
jmp 0x6722e
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
movq 0x20(%rsp), %rbx
movq %rsp, %rax
movq %rbx, 0x18(%rax)
movq %r11, 0x10(%rax)
movq %r10, 0x8(%rax)
movq %rsi, (%rax)
leaq 0x8230a(%rip), %rsi     # 0xe957c
xorl %eax, %eax
callq 0x5c880
jmp 0x6727b
movq 0x28(%rsp), %rdi
leaq 0x989e9(%rip), %rsi     # 0xffc70
leaq -0xa7ce(%rip), %rdx     # 0x5cac0
callq 0x5920
movq 0x28(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2d0(%rsp)
movl %eax, 0x2cc(%rsp)
callq 0x53a0
jmp 0x67316
movq 0x98(%rsp), %rdi
movl 0xb8(%rsp), %esi
movl 0xb4(%rsp), %edx
movl $0x1, %r8d
xorl %r9d, %r9d
xorps %xmm3, %xmm3
movl %r8d, %ecx
movl $0x0, (%rsp)
movaps %xmm3, %xmm0
movaps %xmm3, %xmm1
movaps %xmm3, %xmm2
callq 0x67330
cmpq $0x0, 0x2e0(%rsp)
jne 0x67305
movq 0x2c0(%rsp), %rdi
callq 0x5c6f0
movq 0x98(%rsp), %rax
addq $0x2f0, %rsp            # imm = 0x2F0
popq %rbx
retq
movq 0x2d0(%rsp), %rdi
callq 0x5970
nopw %cs:(%rax,%rax)
nopl (%rax)