// File: /workspace/github_cpp_makefile_star2_O1/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 $0x228, %rsp            # imm = 0x228
movq %rdi, %rbx
movq %rsi, %rax
orq %rdx, %rax
je 0x3e01e
movq %rdx, %r15
movq %rsi, %r14
movq %rsi, 0x8(%rsp)
testq %rsi, %rsi
jne 0x3de04
leaq 0x414ea(%rip), %rsi     # 0x7f2e3
movq %r15, %rdi
callq 0x3ceb3
movq %rax, %r14
movq %r15, 0x18(%rsp)
leaq 0x120(%rsp), %r15
xorl %ebp, %ebp
movl $0x100, %edx            # imm = 0x100
movq %r15, %rdi
xorl %esi, %esi
callq 0x4290
leaq 0x20(%rsp), %rdi
movl $0x100, %edx            # imm = 0x100
xorl %esi, %esi
callq 0x4290
movq %rbx, %rdi
movl $0x100, %esi            # imm = 0x100
movl $0x100, %edx            # imm = 0x100
movl $0x1, %ecx
movl $0x1, %r8d
callq 0xbc3e
leaq 0x56360(%rip), %rsi     # 0x941b7
leaq 0x10(%rsp), %rdx
movq %r14, %rdi
movq %r15, %rcx
xorl %eax, %eax
callq 0x49e0
movl $0x0, %r13d
testl %eax, %eax
jle 0x3df74
leaq 0x120(%rsp), %r12
xorl %r13d, %r13d
xorl %ebp, %ebp
xorl %r15d, %r15d
movsd 0x10(%rsp), %xmm0
movq 0x18(%rbx), %rcx
movl (%rbx), %eax
movl %eax, %edx
imull %r13d, %edx
addl %r15d, %edx
incl %r15d
movsd %xmm0, (%rcx,%rdx,8)
cmpl %eax, %r15d
jb 0x3dedd
leal (%rax,%rax,2), %esi
shrl %esi
movl 0x4(%rbx), %edx
subq $0x8, %rsp
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
xorps %xmm3, %xmm3
movq %rbx, %rdi
movl $0x1, %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
pushq $0x0
callq 0x3e122
addq $0x10, %rsp
movb $0x0, 0x7(%rsp)
movq %r12, %rdi
leaq 0x562dc(%rip), %rsi     # 0x941c8
leaq 0x20(%rsp), %rdx
leaq 0x7(%rsp), %rcx
xorl %eax, %eax
callq 0x4530
testl %eax, %eax
je 0x3df08
cmpb $0xa, 0x7(%rsp)
jne 0x3df53
cmpl %ebp, %r15d
cmoval %r15d, %ebp
incl %r13d
movl 0x4(%rbx), %eax
xorl %r15d, %r15d
cmpl %eax, %r13d
jb 0x3df53
movl (%rbx), %esi
leal (%rax,%rax,2), %edx
shrl %edx
subq $0x8, %rsp
xorl %r15d, %r15d
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
xorps %xmm3, %xmm3
movq %rbx, %rdi
movl $0x1, %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
pushq $0x0
callq 0x3e122
addq $0x10, %rsp
movq %r14, %rdi
leaq 0x5625a(%rip), %rsi     # 0x941b7
leaq 0x10(%rsp), %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0x49e0
testl %eax, %eax
jg 0x3de87
testl %ebp, %ebp
je 0x3e07e
testl %r13d, %r13d
je 0x3e07e
subq $0x8, %rsp
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
xorps %xmm3, %xmm3
movq %rbx, %rdi
movl %ebp, %esi
movl %r13d, %edx
movl $0x1, %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
pushq $0x0
callq 0x3e122
addq $0x10, %rsp
cmpq $0x0, 0x8(%rsp)
je 0x3dfd3
movq %rbx, %rax
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testq %r14, %r14
je 0x3e00e
movq 0x6efc9(%rip), %rax     # 0xacfa8
cmpq %r14, (%rax)
je 0x3dfbe
movq 0x6ef9d(%rip), %rax     # 0xacf88
cmpq %r14, (%rax)
je 0x3dfbe
movq %r14, %rdi
callq 0x4540
testl %eax, %eax
je 0x3dfbe
leaq 0x55ac9(%rip), %rdi     # 0x93acc
movl %eax, %esi
xorl %eax, %eax
callq 0xbb52
jmp 0x3dfbe
leaq 0x55a8d(%rip), %rdi     # 0x93aa2
xorl %eax, %eax
callq 0xbb52
jmp 0x3dfbe
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 0x352f9(%rip), %rax     # 0x73338
leaq 0x366cc(%rip), %r10     # 0x74712
cmpb $0x0, 0x10(%rbx)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x55b96(%rip), %r11     # 0x93bef
leaq 0x560ff(%rip), %rsi     # 0x9415f
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x18(%rbx)
callq 0xc196
addq $0x20, %rsp
leaq 0x6eba4(%rip), %rsi     # 0xacc20
jmp 0x3e0fd
cmpq $0x0, 0x8(%rsp)
jne 0x3e08e
movq %r14, %rdi
callq 0x3845e
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
leaq 0x35296(%rip), %rax     # 0x73338
leaq 0x36669(%rip), %r10     # 0x74712
cmpb $0x0, 0x10(%rbx)
cmovneq %rax, %r10
movq 0x18(%rsp), %rax
testq %rax, %rax
movl (%rbx), %edx
movl 0x4(%rbx), %ecx
movl 0x8(%rbx), %r8d
movl 0xc(%rbx), %r9d
leaq 0x56014(%rip), %r11     # 0x940e1
cmovneq %rax, %r11
leaq 0x55b17(%rip), %r15     # 0x93bef
leaq 0x560f4(%rip), %rsi     # 0x941d3
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r15
pushq %r10
pushq 0x18(%rbx)
callq 0x385b4
addq $0x20, %rsp
leaq 0x6ebf3(%rip), %rsi     # 0xaccf0
movq 0x6eecc(%rip), %rdx     # 0xacfd0
movq %r14, %rdi
callq 0x4900
jmp 0x3e10e
movq %rax, %rbx
movq %r14, %rdi
callq 0x43b0
movq %rbx, %rdi
callq 0x4950
nop