// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<double>::_load_inr_header(_IO_FILE*, int*, float*)
static void _load_inr_header(std::FILE *file, int out[8], float *const voxel_size) {
      char item[1024] = { 0 }, tmp1[64] = { 0 }, tmp2[64] = { 0 };
      out[0] = std::fscanf(file,"%63s",item);
      out[0] = out[1] = out[2] = out[3] = out[5] = 1; out[4] = out[6] = out[7] = -1;
      if(cimg::strncasecmp(item,"#INRIMAGE-4#{",13)!=0)
        throw CImgIOException("CImg<%s>::load_inr(): INRIMAGE-4 header not found.",
                              pixel_type());

      while (std::fscanf(file," %63[^\n]%*c",item)!=EOF && std::strncmp(item,"##}",3)) {
        std::sscanf(item," XDIM%*[^0-9]%d",out);
        std::sscanf(item," YDIM%*[^0-9]%d",out+1);
        std::sscanf(item," ZDIM%*[^0-9]%d",out+2);
        std::sscanf(item," VDIM%*[^0-9]%d",out+3);
        std::sscanf(item," PIXSIZE%*[^0-9]%d",out+6);
        if (voxel_size) {
          std::sscanf(item," VX%*[^0-9.+-]%f",voxel_size);
          std::sscanf(item," VY%*[^0-9.+-]%f",voxel_size+1);
          std::sscanf(item," VZ%*[^0-9.+-]%f",voxel_size+2);
        }
        if (std::sscanf(item," CPU%*[ =]%s",tmp1)) out[7]=cimg::strncasecmp(tmp1,"sun",3)?0:1;
        switch (std::sscanf(item," TYPE%*[ =]%s %s",tmp1,tmp2)) {
        case 0 : break;
        case 2 : out[5] = cimg::strncasecmp(tmp1,"unsigned",8)?1:0; std::strncpy(tmp1,tmp2,sizeof(tmp1)-1);
        case 1 :
          if (!cimg::strncasecmp(tmp1,"int",3)   || !cimg::strncasecmp(tmp1,"fixed",5))  out[4] = 0;
          if (!cimg::strncasecmp(tmp1,"float",5) || !cimg::strncasecmp(tmp1,"double",6)) out[4] = 1;
          if (!cimg::strncasecmp(tmp1,"packed",6))                                       out[4] = 2;
          if (out[4]>=0) break;
        default :
          throw CImgIOException("CImg<%s>::load_inr(): Invalid pixel type '%s' defined in header.",
                                pixel_type(),
                                tmp2);
        }
      }
      if(out[0]<0 || out[1]<0 || out[2]<0 || out[3]<0)
        throw CImgIOException("CImg<%s>::load_inr(): Invalid dimensions (%d,%d,%d,%d) defined in header.",
                              pixel_type(),
                              out[0],out[1],out[2],out[3]);
      if(out[4]<0 || out[5]<0)
        throw CImgIOException("CImg<%s>::load_inr(): Incomplete pixel type defined in header.",
                              pixel_type());
      if(out[6]<0)
        throw CImgIOException("CImg<%s>::load_inr(): Incomplete PIXSIZE field defined in header.",
                              pixel_type());
      if(out[7]<0)
        throw CImgIOException("CImg<%s>::load_inr(): Big/Little Endian coding type undefined in header.",
                              pixel_type());
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4b8, %rsp            # imm = 0x4B8
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
leaq 0xb0(%rsp), %r15
movl $0x400, %edx            # imm = 0x400
movq %r15, %rdi
xorl %esi, %esi
callq 0x4280
xorps %xmm0, %xmm0
movaps %xmm0, 0xa0(%rsp)
movaps %xmm0, 0x90(%rsp)
movaps %xmm0, 0x80(%rsp)
movaps %xmm0, 0x70(%rsp)
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
leaq 0x39a4e(%rip), %rsi     # 0x7678c
movq %r12, 0x28(%rsp)
movq %r12, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x49d0
movaps 0x173f9(%rip), %xmm0    # 0x54150
movups %xmm0, (%rbx)
movaps 0x1743f(%rip), %xmm0    # 0x541a0
movups %xmm0, 0x10(%rbx)
leaq 0x39a25(%rip), %rsi     # 0x76791
pushq $0xd
popq %rdx
movq %r15, %rdi
callq 0x1b5ab
testl %eax, %eax
jne 0x3d0ab
leaq 0xc(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x8(%rbx), %rbp
leaq 0x4(%rbx), %r15
leaq 0x18(%rbx), %rax
movq %rax, 0x8(%rsp)
leaq 0x4(%r14), %rax
movq %rax, 0x20(%rsp)
leaq 0x8(%r14), %rax
movq %rax, 0x18(%rsp)
leaq 0xb0(%rsp), %r12
leaq 0x70(%rsp), %r13
movq 0x28(%rsp), %rdi
leaq 0x39a0e(%rip), %rsi     # 0x767d2
movq %r12, %rdx
xorl %eax, %eax
callq 0x49d0
cmpl $-0x1, %eax
je 0x3cfbe
movq %r12, %rdi
leaq 0x399fd(%rip), %rsi     # 0x767de
pushq $0x3
popq %rdx
callq 0x4550
testl %eax, %eax
je 0x3cfbe
movq %r12, %rdi
leaq 0x399e7(%rip), %rsi     # 0x767e2
movq %rbx, %rdx
xorl %eax, %eax
callq 0x4510
movq %r12, %rdi
leaq 0x399e3(%rip), %rsi     # 0x767f2
movq %r15, %rdx
xorl %eax, %eax
callq 0x4510
movq %r12, %rdi
leaq 0x399df(%rip), %rsi     # 0x76802
movq %rbp, %rdx
xorl %eax, %eax
callq 0x4510
movq %r12, %rdi
leaq 0x399db(%rip), %rsi     # 0x76812
movq 0x10(%rsp), %rdx
xorl %eax, %eax
callq 0x4510
movq %r12, %rdi
leaq 0x399d5(%rip), %rsi     # 0x76822
movq 0x8(%rsp), %rdx
xorl %eax, %eax
callq 0x4510
testq %r14, %r14
je 0x3ce9e
movq %r12, %rdi
leaq 0x399cd(%rip), %rsi     # 0x76835
movq %r14, %rdx
xorl %eax, %eax
callq 0x4510
movq %r12, %rdi
leaq 0x399ca(%rip), %rsi     # 0x76846
movq 0x20(%rsp), %rdx
xorl %eax, %eax
callq 0x4510
movq %r12, %rdi
leaq 0x399c5(%rip), %rsi     # 0x76857
movq 0x18(%rsp), %rdx
xorl %eax, %eax
callq 0x4510
movq %r12, %rdi
leaq 0x399c0(%rip), %rsi     # 0x76868
movq %r13, %rdx
xorl %eax, %eax
callq 0x4510
testl %eax, %eax
je 0x3ced2
movq %r13, %rdi
leaq 0x399b5(%rip), %rsi     # 0x76875
pushq $0x3
popq %rdx
callq 0x1b5ab
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
movl %ecx, 0x1c(%rbx)
movq %r12, %rdi
leaq 0x3999d(%rip), %rsi     # 0x76879
movq %r13, %rdx
leaq 0x30(%rsp), %rcx
xorl %eax, %eax
callq 0x4510
testl %eax, %eax
je 0x3cdb8
cmpl $0x1, %eax
je 0x3cf2d
cmpl $0x2, %eax
jne 0x3d01b
movq %r13, %rdi
leaq 0x3997f(%rip), %rsi     # 0x7688a
pushq $0x8
popq %rdx
callq 0x1b5ab
xorl %ecx, %ecx
testl %eax, %eax
setne %cl
movl %ecx, 0x14(%rbx)
movq %r13, %rdi
leaq 0x30(%rsp), %rsi
pushq $0x3f
popq %rdx
callq 0x4240
movq %r13, %rdi
leaq 0x37623(%rip), %rsi     # 0x7455a
pushq $0x3
popq %rdx
callq 0x1b5ab
testl %eax, %eax
je 0x3cf59
movq %r13, %rdi
leaq 0x39946(%rip), %rsi     # 0x76893
pushq $0x5
popq %rdx
callq 0x1b5ab
testl %eax, %eax
jne 0x3cf5d
andl $0x0, 0x10(%rbx)
movq %r13, %rdi
leaq 0x375e4(%rip), %rsi     # 0x7454b
pushq $0x5
popq %rdx
callq 0x1b5ab
testl %eax, %eax
je 0x3cf89
movq %r13, %rdi
leaq 0x38122(%rip), %rsi     # 0x7509f
pushq $0x6
popq %rdx
callq 0x1b5ab
testl %eax, %eax
jne 0x3cf90
movl $0x1, 0x10(%rbx)
movq %r13, %rdi
leaq 0x398ff(%rip), %rsi     # 0x76899
pushq $0x6
popq %rdx
callq 0x1b5ab
testl %eax, %eax
je 0x3cfb2
cmpl $0x0, 0x10(%rbx)
jns 0x3cdb8
jmp 0x3d01b
movl $0x2, 0x10(%rbx)
jmp 0x3cdb8
cmpl $0x0, (%rbx)
js 0x3d04a
cmpl $0x0, (%r15)
js 0x3d04a
cmpl $0x0, (%rbp)
js 0x3d04a
movq 0x10(%rsp), %rax
cmpl $0x0, (%rax)
js 0x3d04a
cmpl $0x0, 0x10(%rbx)
js 0x3d084
cmpl $0x0, 0x14(%rbx)
js 0x3d084
movq 0x8(%rsp), %rax
cmpl $0x0, (%rax)
js 0x3d0d2
cmpl $0x0, 0x1c(%rbx)
js 0x3d0f9
addq $0x4b8, %rsp            # imm = 0x4B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
leaq 0x39871(%rip), %rsi     # 0x768a0
leaq 0x38069(%rip), %rdx     # 0x7509f
leaq 0x30(%rsp), %rcx
movq %rax, %rdi
xorl %eax, %eax
callq 0x2a3de
jmp 0x3d11e
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
movl (%rbx), %ecx
movl 0x4(%rbx), %r8d
movl 0x8(%rbx), %r9d
movl 0xc(%rbx), %eax
movl %eax, (%rsp)
leaq 0x39873(%rip), %rsi     # 0x768e1
leaq 0x3802a(%rip), %rdx     # 0x7509f
movq %r14, %rdi
xorl %eax, %eax
callq 0x2a3de
jmp 0x3d11e
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
leaq 0x39893(%rip), %rsi     # 0x7692b
leaq 0x38000(%rip), %rdx     # 0x7509f
movq %rax, %rdi
xorl %eax, %eax
callq 0x2a3de
jmp 0x3d11e
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
leaq 0x396e0(%rip), %rsi     # 0x7679f
leaq 0x37fd9(%rip), %rdx     # 0x7509f
movq %rax, %rdi
xorl %eax, %eax
callq 0x2a3de
jmp 0x3d11e
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
leaq 0x39884(%rip), %rsi     # 0x7696a
leaq 0x37fb2(%rip), %rdx     # 0x7509f
movq %rax, %rdi
xorl %eax, %eax
callq 0x2a3de
jmp 0x3d11e
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
leaq 0x3989f(%rip), %rsi     # 0x769ac
leaq 0x37f8b(%rip), %rdx     # 0x7509f
movq %rax, %rdi
xorl %eax, %eax
callq 0x2a3de
leaq 0x52bdb(%rip), %rsi     # 0x8fd00
movq 0x52eac(%rip), %rdx     # 0x8ffd8
movq %r14, %rdi
callq 0x4910
jmp 0x3d13e
jmp 0x3d13e
jmp 0x3d13e
jmp 0x3d13e
jmp 0x3d13e
movq %rax, %rbx
movq %r14, %rdi
callq 0x4390
movq %rbx, %rdi
callq 0x4950