// File: /workspace/github_cpp_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x258, %rsp            # imm = 0x258
movq %rdi, %rbx
movq %rsi, %rax
orq %rdx, %rax
je 0x2ebe5
movq %rdx, %r14
movq %rsi, 0x30(%rsp)
movq %rsi, 0x38(%rsp)
testq %rsi, %rsi
jne 0x2ea50
leaq 0x31d50(%rip), %rsi     # 0x60793
movq %r14, %rdi
callq 0x2dca5
movq %rax, 0x30(%rsp)
movq %r14, 0x40(%rsp)
leaq 0x150(%rsp), %r13
movl $0x100, %edx            # imm = 0x100
movq %r13, %rdi
xorl %esi, %esi
callq 0x4280
leaq 0x50(%rsp), %rdi
movl $0x100, %edx            # imm = 0x100
xorl %esi, %esi
callq 0x4280
pushq $0x1
popq %r15
movq %rbx, %rdi
movl $0x100, %esi            # imm = 0x100
movl $0x100, %edx            # imm = 0x100
movl %r15d, %ecx
movl %r15d, %r8d
callq 0x988e
xorl %r12d, %r12d
xorl %ebp, %ebp
xorl %r14d, %r14d
movq 0x30(%rsp), %rdi
leaq 0x46b90(%rip), %rsi     # 0x7563d
leaq 0x48(%rsp), %rdx
movq %r13, %rcx
xorl %eax, %eax
callq 0x49d0
testl %eax, %eax
jle 0x2eb87
movsd 0x48(%rsp), %xmm0
movq 0x18(%rbx), %rcx
movl (%rbx), %eax
movl %eax, %edx
imull %r14d, %edx
addl %r12d, %edx
incl %r12d
movsd %xmm0, (%rcx,%rdx,8)
cmpl %eax, %r12d
jb 0x2eb0f
leal (%rax,%rax,2), %esi
shrl %esi
movl 0x4(%rbx), %edx
andl $0x0, (%rsp)
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
xorps %xmm3, %xmm3
movq %rbx, %rdi
movl %r15d, %ecx
movl %r15d, %r8d
xorl %r9d, %r9d
callq 0x2ecfa
movb $0x0, 0x2f(%rsp)
movq %r13, %rdi
leaq 0x46b30(%rip), %rsi     # 0x7564e
leaq 0x50(%rsp), %rdx
leaq 0x2f(%rsp), %rcx
xorl %eax, %eax
callq 0x4510
testl %eax, %eax
je 0x2eb3e
cmpb $0xa, 0x2f(%rsp)
jne 0x2eaa1
cmpl %ebp, %r12d
cmoval %r12d, %ebp
incl %r14d
movl 0x4(%rbx), %eax
xorl %r12d, %r12d
cmpl %eax, %r14d
jb 0x2eaa1
movl (%rbx), %esi
leal (%rax,%rax,2), %edx
shrl %edx
andl $0x0, (%rsp)
xorl %r12d, %r12d
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
xorps %xmm3, %xmm3
movq %rbx, %rdi
movl %r15d, %ecx
movl %r15d, %r8d
xorl %r9d, %r9d
callq 0x2ecfa
jmp 0x2eaa1
testl %ebp, %ebp
je 0x2ec4b
testl %r14d, %r14d
je 0x2ec4b
andl $0x0, (%rsp)
pushq $0x1
popq %rcx
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
xorps %xmm3, %xmm3
movq %rbx, %rdi
movl %ebp, %esi
movl %r14d, %edx
movl %ecx, %r8d
xorl %r9d, %r9d
callq 0x2ecfa
cmpq $0x0, 0x38(%rsp)
jne 0x2ebd0
movq 0x30(%rsp), %rdi
callq 0x2a2f8
movq %rbx, %rax
addq $0x258, %rsp            # imm = 0x258
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
movq 0x18(%rbx), %rax
leaq 0x25bde(%rip), %rsi     # 0x547e8
leaq 0x26fb1(%rip), %rdi     # 0x55bc2
cmpb $0x0, 0x10(%rbx)
cmovneq %rsi, %rdi
leaq 0x4647f(%rip), %rsi     # 0x7509f
movq %rsi, 0x10(%rsp)
movq %rdi, 0x8(%rsp)
movq %rax, (%rsp)
leaq 0x469b0(%rip), %rsi     # 0x755e5
movq %r14, %rdi
xorl %eax, %eax
callq 0x9d52
leaq 0x6101a(%rip), %rsi     # 0x8fc60
jmp 0x2ecd6
cmpq $0x0, 0x38(%rsp)
jne 0x2ec5d
movq 0x30(%rsp), %rdi
callq 0x2a2f8
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
leaq 0x25b77(%rip), %rax     # 0x547e8
cmpb $0x0, 0x10(%rbx)
leaq 0x26f46(%rip), %rsi     # 0x55bc2
cmovneq %rax, %rsi
movq 0x40(%rsp), %r10
testq %r10, %r10
movl (%rbx), %edx
movl 0x4(%rbx), %ecx
movl 0x8(%rbx), %r8d
movl 0xc(%rbx), %r9d
movq 0x18(%rbx), %rax
leaq 0x468c7(%rip), %rdi     # 0x75567
cmovneq %r10, %rdi
movq %rdi, 0x18(%rsp)
leaq 0x463ef(%rip), %rdi     # 0x7509f
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq %rax, (%rsp)
leaq 0x46994(%rip), %rsi     # 0x75659
movq %r14, %rdi
xorl %eax, %eax
callq 0x2a3de
leaq 0x6102a(%rip), %rsi     # 0x8fd00
movq 0x612fb(%rip), %rdx     # 0x8ffd8
movq %r14, %rdi
callq 0x4910
jmp 0x2ece7
movq %rax, %rbx
movq %r14, %rdi
callq 0x4390
movq %rbx, %rdi
callq 0x4950