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

      std::FILE *const nfile = file?file:cimg::fopen(filename,"rb");
      char line[256] = { 0 };
      int err = std::fscanf(nfile,"%255[^\n]",line);
      unsigned int dx = 0, dy = 1, dz = 1, dc = 1;
      std::sscanf(line,"%u%*c%u%*c%u%*c%u",&dx,&dy,&dz,&dc);
      err = std::fscanf(nfile,"%*[^0-9.eE+-]");
      if (!dx || !dy || !dz || !dc) {
        if (!file) cimg::fclose(nfile);
        throw CImgIOException(_cimg_instance
                              "load_ascii(): Invalid ascii header in file '%s', image dimensions are set "
                              "to (%u,%u,%u,%u).",
                              cimg_instance,
                              filename?filename:"(FILE*)",dx,dy,dz,dc);
      }
      assign(dx,dy,dz,dc);
      const unsigned long siz = size();
      unsigned long off = 0;
      double val;
      T *ptr = _data;
      for (err = 1, off = 0; off<siz && err==1; ++off) {
        err = std::fscanf(nfile,"%lf%*[^0-9.eE+-]",&val);
        *(ptr++) = (T)val;
      }
      if (err!=1)
        cimg::warn(_cimg_instance
                   "load_ascii(): Only %lu/%lu values read from file '%s'.",
                   cimg_instance,
                   off-1,siz,filename?filename:"(FILE*)");

      if (!file) cimg::fclose(nfile);
      return *this;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %rdi, %rbx
movq %rsi, %rax
orq %rdx, %rax
je 0x3bec6
movq %rdx, %r12
movq %rsi, %r14
movq %rsi, 0x18(%rsp)
testq %rsi, %rsi
jne 0x3bcd2
leaq 0x5361e(%rip), %rsi     # 0x8f2e5
movq %r12, %rdi
callq 0x3b111
movq %rax, %r14
leaq 0x30(%rsp), %r13
movl $0x100, %edx            # imm = 0x100
movq %r13, %rdi
xorl %esi, %esi
callq 0x4290
leaq 0x5387f(%rip), %rsi     # 0x8f56c
movq %r14, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x49f0
leaq 0xc(%rsp), %rbp
movl $0x0, (%rbp)
movl $0x1, %eax
leaq 0x8(%rsp), %rcx
movl %eax, (%rcx)
leaq 0x4(%rsp), %r8
movl %eax, (%r8)
movq %rsp, %r9
movl %eax, (%r9)
leaq 0x5384e(%rip), %rsi     # 0x8f575
movq %r13, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x4540
leaq 0x538e1(%rip), %rsi     # 0x8f61c
movq %r14, %rdi
xorl %eax, %eax
callq 0x49f0
movl (%rbp), %esi
testl %esi, %esi
je 0x3bf29
movl 0x8(%rsp), %edx
testl %edx, %edx
je 0x3bf29
movl 0x4(%rsp), %ecx
testl %ecx, %ecx
je 0x3bf29
movl (%rsp), %r8d
testl %r8d, %r8d
je 0x3bf29
movq %rbx, %rdi
callq 0xbbfc
movl (%rbx), %eax
movl 0x4(%rbx), %ecx
imulq %rax, %rcx
movl 0x8(%rbx), %eax
movl 0xc(%rbx), %r15d
imulq %rax, %r15
imulq %rcx, %r15
testq %r15, %r15
je 0x3be5e
movq %r12, 0x20(%rsp)
movq %rbx, 0x10(%rsp)
movq 0x18(%rbx), %r12
movl $0x1, %r10d
leaq 0x53860(%rip), %r13     # 0x8f619
leaq 0x28(%rsp), %rbp
movq %r10, %rbx
movq %r14, %rdi
movq %r13, %rsi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x49f0
movsd 0x28(%rsp), %xmm0
movsd %xmm0, -0x8(%r12,%rbx,8)
leaq 0x1(%rbx), %r10
cmpq %r15, %rbx
jae 0x3bdec
cmpl $0x1, %eax
je 0x3bdbe
cmpl $0x1, %eax
movq 0x10(%rsp), %rbx
movq 0x20(%rsp), %rdi
je 0x3be5e
addq $-0x2, %r10
leaq 0x32a62(%rip), %rax     # 0x6e868
cmpb $0x0, 0x10(%rbx)
leaq 0x33e31(%rip), %r11     # 0x6fc42
cmovneq %rax, %r11
testq %rdi, %rdi
movl (%rbx), %esi
movl 0x4(%rbx), %edx
movl 0x8(%rbx), %ecx
movl 0xc(%rbx), %r8d
movq 0x18(%rbx), %r9
leaq 0x537e2(%rip), %rbx     # 0x8f611
cmovneq %rdi, %rbx
subq $0x8, %rsp
leaq 0x532e1(%rip), %r12     # 0x8f11f
leaq 0x537e5(%rip), %rdi     # 0x8f62a
xorl %eax, %eax
pushq %rbx
movq 0x20(%rsp), %rbx
pushq %r15
pushq %r10
pushq %r12
pushq %r11
callq 0xbb10
addq $0x30, %rsp
cmpq $0x0, 0x18(%rsp)
je 0x3be7b
movq %rbx, %rax
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testq %r14, %r14
je 0x3beb6
movq 0x6c121(%rip), %rax     # 0xa7fa8
cmpq %r14, (%rax)
je 0x3be66
movq 0x6c0f5(%rip), %rax     # 0xa7f88
cmpq %r14, (%rax)
je 0x3be66
movq %r14, %rdi
callq 0x4550
testl %eax, %eax
je 0x3be66
leaq 0x53151(%rip), %rdi     # 0x8effc
movl %eax, %esi
xorl %eax, %eax
callq 0xbb10
jmp 0x3be66
leaq 0x53115(%rip), %rdi     # 0x8efd2
xorl %eax, %eax
callq 0xbb10
jmp 0x3be66
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 0x32981(%rip), %rax     # 0x6e868
leaq 0x33d54(%rip), %r10     # 0x6fc42
cmpb $0x0, 0x10(%rbx)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x5321e(%rip), %r11     # 0x8f11f
leaq 0x5360a(%rip), %rsi     # 0x8f512
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x18(%rbx)
callq 0xc16a
addq $0x20, %rsp
leaq 0x6bd2c(%rip), %rsi     # 0xa7c50
jmp 0x3bfbc
cmpq $0x0, 0x18(%rsp)
jne 0x3bf39
movq %r14, %rdi
callq 0x367a9
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
leaq 0x3291b(%rip), %rax     # 0x6e868
leaq 0x33cee(%rip), %r10     # 0x6fc42
cmpb $0x0, 0x10(%rbx)
cmovneq %rax, %r10
testq %r12, %r12
movl (%rbx), %edx
movl 0x4(%rbx), %ecx
movl 0x8(%rbx), %r8d
movl 0xc(%rbx), %r9d
leaq 0x5369e(%rip), %r11     # 0x8f611
cmovneq %r12, %r11
movl 0xc(%rsp), %r15d
movl 0x8(%rsp), %r12d
movl 0x4(%rsp), %r13d
movl (%rsp), %ebp
leaq 0x535f7(%rip), %rsi     # 0x8f587
movq %r14, %rdi
xorl %eax, %eax
pushq %rbp
pushq %r13
pushq %r12
pushq %r15
pushq %r11
leaq 0x5317a(%rip), %r11     # 0x8f11f
pushq %r11
pushq %r10
pushq 0x18(%rbx)
callq 0x36908
addq $0x40, %rsp
leaq 0x6bd34(%rip), %rsi     # 0xa7cf0
movq 0x6c00d(%rip), %rdx     # 0xa7fd0
movq %r14, %rdi
callq 0x4910
jmp 0x3bfcd
movq %rax, %rbx
movq %r14, %rdi
callq 0x43c0
movq %rbx, %rdi
callq 0x4960