// File: /workspace/github_cpp_makefile_star2_O3/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 $0x4d8, %rsp            # imm = 0x4D8
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r13
leaq 0xd0(%rsp), %r12
xorl %r14d, %r14d
movl $0x400, %edx            # imm = 0x400
movq %r12, %rdi
xorl %esi, %esi
callq 0x4290
xorps %xmm0, %xmm0
movaps %xmm0, 0x80(%rsp)
movaps %xmm0, 0x70(%rsp)
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0xc0(%rsp)
movaps %xmm0, 0xb0(%rsp)
movaps %xmm0, 0xa0(%rsp)
movaps %xmm0, 0x90(%rsp)
leaq 0x417d1(%rip), %rsi     # 0x90836
movq %r13, 0x38(%rsp)
movq %r13, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x49f0
leaq 0xc(%rbx), %rax
movq %rax, 0x20(%rsp)
leaq 0x8(%rbx), %rax
movq %rax, 0x28(%rsp)
leaq 0x4(%rbx), %rax
movq %rax, 0x30(%rsp)
movaps 0x1f0b7(%rip), %xmm0    # 0x6e150
movups %xmm0, (%rbx)
leaq 0x18(%rbx), %rax
movq %rax, 0x18(%rsp)
movaps 0x1f184(%rip), %xmm0    # 0x6e230
movups %xmm0, 0x10(%rbx)
leaq 0x41784(%rip), %rax     # 0x9083b
movzbl 0xd0(%rsp,%r14), %ecx
leal -0x5b(%rcx), %edx
leal 0x20(%rcx), %esi
cmpb $-0x1a, %dl
movzbl %sil, %edx
cmovbl %ecx, %edx
movzbl (%r14,%rax), %ecx
leal -0x5b(%rcx), %esi
leal 0x20(%rcx), %edi
cmpb $-0x1a, %sil
movzbl %dil, %esi
cmovbl %ecx, %esi
cmpb %sil, %dl
jne 0x4f0f6
incq %r14
cmpl $0xd, %r14d
jne 0x4f0b7
jmp 0x4f100
cmpl $0xd, %r14d
jne 0x4f617
movq %r15, 0x10(%rsp)
leaq 0x41770(%rip), %rsi     # 0x9087c
leaq 0xd0(%rsp), %rdx
movq 0x38(%rsp), %rdi
xorl %eax, %eax
callq 0x49f0
cmpl $-0x1, %eax
je 0x4f4cd
movq 0x10(%rsp), %rax
leaq 0x4(%rax), %rcx
movq %rcx, 0x48(%rsp)
addq $0x8, %rax
movq %rax, 0x40(%rsp)
leaq 0xd0(%rsp), %r13
leaq 0x3f48b(%rip), %r12     # 0x8e5da
leaq 0x3f475(%rip), %r15     # 0x8e5cb
leaq 0x417e6(%rip), %rbp     # 0x90943
leaq 0x417bb(%rip), %r14     # 0x9091f
movl 0xd0(%rsp), %eax
movl $0x2323, %ecx           # imm = 0x2323
xorl %ecx, %eax
movzbl 0xd2(%rsp), %ecx
xorl $0x7d, %ecx
orw %ax, %cx
je 0x4f4cd
movq %r13, %rdi
leaq 0x416fc(%rip), %rsi     # 0x9088c
movq %rbx, %rdx
xorl %eax, %eax
callq 0x4540
movq %r13, %rdi
leaq 0x416f8(%rip), %rsi     # 0x9089c
movq 0x30(%rsp), %rdx
xorl %eax, %eax
callq 0x4540
movq %r13, %rdi
leaq 0x416f2(%rip), %rsi     # 0x908ac
movq 0x28(%rsp), %rdx
xorl %eax, %eax
callq 0x4540
movq %r13, %rdi
leaq 0x416ec(%rip), %rsi     # 0x908bc
movq 0x20(%rsp), %rdx
xorl %eax, %eax
callq 0x4540
movq %r13, %rdi
leaq 0x416e6(%rip), %rsi     # 0x908cc
movq 0x18(%rsp), %rdx
xorl %eax, %eax
callq 0x4540
movq 0x10(%rsp), %rdx
testq %rdx, %rdx
je 0x4f239
movq %r13, %rdi
leaq 0x416d9(%rip), %rsi     # 0x908df
xorl %eax, %eax
callq 0x4540
movq %r13, %rdi
leaq 0x416d9(%rip), %rsi     # 0x908f0
movq 0x48(%rsp), %rdx
xorl %eax, %eax
callq 0x4540
movq %r13, %rdi
leaq 0x416d4(%rip), %rsi     # 0x90901
movq 0x40(%rsp), %rdx
xorl %eax, %eax
callq 0x4540
movq %r13, %rdi
leaq 0x416cf(%rip), %rsi     # 0x90912
leaq 0x50(%rsp), %rdx
xorl %eax, %eax
callq 0x4540
testl %eax, %eax
je 0x4f29e
xorl %eax, %eax
movzbl 0x50(%rsp,%rax), %ecx
leal -0x5b(%rcx), %edx
leal 0x20(%rcx), %esi
cmpb $-0x1a, %dl
movzbl %sil, %edx
cmovbl %ecx, %edx
movzbl (%rax,%r14), %ecx
leal -0x5b(%rcx), %esi
leal 0x20(%rcx), %edi
cmpb $-0x1a, %sil
movzbl %dil, %esi
cmovbl %ecx, %esi
cmpb %sil, %dl
jne 0x4f28f
incq %rax
cmpl $0x3, %eax
jne 0x4f255
jmp 0x4f296
xorl %ecx, %ecx
cmpl $0x3, %eax
jne 0x4f29b
movl $0x1, %ecx
movl %ecx, 0x1c(%rbx)
movq %r13, %rdi
leaq 0x4167b(%rip), %rsi     # 0x90923
leaq 0x50(%rsp), %rdx
leaq 0x90(%rsp), %rcx
xorl %eax, %eax
callq 0x4540
testl %eax, %eax
je 0x4f4ae
cmpl $0x1, %eax
je 0x4f33b
cmpl $0x2, %eax
jne 0x4f536
xorl %eax, %eax
leaq 0x41659(%rip), %r8      # 0x90934
movzbl 0x50(%rsp,%rax), %ecx
leal -0x5b(%rcx), %edx
leal 0x20(%rcx), %esi
cmpb $-0x1a, %dl
movzbl %sil, %edx
cmovbl %ecx, %edx
movzbl (%rax,%r8), %ecx
leal -0x5b(%rcx), %esi
leal 0x20(%rcx), %edi
cmpb $-0x1a, %sil
movzbl %dil, %esi
cmovbl %ecx, %esi
cmpb %sil, %dl
jne 0x4f315
incq %rax
cmpl $0x8, %eax
jne 0x4f2db
jmp 0x4f31f
movl $0x1, %ecx
cmpl $0x8, %eax
jne 0x4f321
xorl %ecx, %ecx
movl %ecx, 0x14(%rbx)
movl $0x3f, %edx
leaq 0x50(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x4240
xorl %eax, %eax
leaq 0x3fddb(%rip), %r8      # 0x8f11f
leaq 0x415f2(%rip), %r9      # 0x9093d
movzbl 0x50(%rsp,%rax), %ecx
leal -0x5b(%rcx), %edx
leal 0x20(%rcx), %esi
cmpb $-0x1a, %dl
movzbl %sil, %edx
cmovbl %ecx, %edx
movzbl (%rax,%r12), %ecx
leal -0x5b(%rcx), %esi
leal 0x20(%rcx), %edi
cmpb $-0x1a, %sil
movzbl %dil, %esi
cmovbl %ecx, %esi
cmpb %sil, %dl
jne 0x4f385
incq %rax
cmpl $0x3, %eax
jne 0x4f34b
jmp 0x4f3cb
cmpl $0x3, %eax
je 0x4f3cb
xorl %eax, %eax
movzbl 0x50(%rsp,%rax), %ecx
leal -0x5b(%rcx), %edx
leal 0x20(%rcx), %esi
cmpb $-0x1a, %dl
movzbl %sil, %edx
cmovbl %ecx, %edx
movzbl (%rax,%r9), %ecx
leal -0x5b(%rcx), %esi
leal 0x20(%rcx), %edi
cmpb $-0x1a, %sil
movzbl %dil, %esi
cmovbl %ecx, %esi
cmpb %sil, %dl
jne 0x4f3c6
incq %rax
cmpl $0x5, %eax
jne 0x4f38c
jmp 0x4f3cb
cmpl $0x5, %eax
jne 0x4f3d2
movl $0x0, 0x10(%rbx)
xorl %eax, %eax
movzbl 0x50(%rsp,%rax), %ecx
leal -0x5b(%rcx), %edx
leal 0x20(%rcx), %esi
cmpb $-0x1a, %dl
movzbl %sil, %edx
cmovbl %ecx, %edx
movzbl (%rax,%r15), %ecx
leal -0x5b(%rcx), %esi
leal 0x20(%rcx), %edi
cmpb $-0x1a, %sil
movzbl %dil, %esi
cmovbl %ecx, %esi
cmpb %sil, %dl
jne 0x4f40e
incq %rax
cmpl $0x5, %eax
jne 0x4f3d4
jmp 0x4f454
cmpl $0x5, %eax
je 0x4f454
xorl %eax, %eax
movzbl 0x50(%rsp,%rax), %ecx
leal -0x5b(%rcx), %edx
leal 0x20(%rcx), %esi
cmpb $-0x1a, %dl
movzbl %sil, %edx
cmovbl %ecx, %edx
movzbl (%rax,%r8), %ecx
leal -0x5b(%rcx), %esi
leal 0x20(%rcx), %edi
cmpb $-0x1a, %sil
movzbl %dil, %esi
cmovbl %ecx, %esi
cmpb %sil, %dl
jne 0x4f44f
incq %rax
cmpl $0x6, %eax
jne 0x4f415
jmp 0x4f454
cmpl $0x6, %eax
jne 0x4f45b
movl $0x1, 0x10(%rbx)
xorl %eax, %eax
movzbl 0x50(%rsp,%rax), %ecx
leal -0x5b(%rcx), %edx
leal 0x20(%rcx), %esi
cmpb $-0x1a, %dl
movzbl %sil, %edx
cmovbl %ecx, %edx
movzbl (%rax,%rbp), %ecx
leal -0x5b(%rcx), %esi
leal 0x20(%rcx), %edi
cmpb $-0x1a, %sil
movzbl %dil, %esi
cmovbl %ecx, %esi
cmpb %sil, %dl
jne 0x4f496
incq %rax
cmpl $0x6, %eax
jne 0x4f45d
jmp 0x4f49b
cmpl $0x6, %eax
jne 0x4f4a4
movl $0x2, 0x10(%rbx)
jmp 0x4f4ae
cmpl $0x0, 0x10(%rbx)
js 0x4f536
movq 0x38(%rsp), %rdi
leaq 0x413c2(%rip), %rsi     # 0x9087c
movq %r13, %rdx
xorl %eax, %eax
callq 0x49f0
cmpl $-0x1, %eax
jne 0x4f164
cmpl $0x0, (%rbx)
js 0x4f568
movq 0x30(%rsp), %rax
cmpl $0x0, (%rax)
js 0x4f568
movq 0x28(%rsp), %rax
cmpl $0x0, (%rax)
js 0x4f568
movq 0x20(%rsp), %rax
cmpl $0x0, (%rax)
js 0x4f568
cmpl $0x0, 0x10(%rbx)
js 0x4f5a2
cmpl $0x0, 0x14(%rbx)
js 0x4f5a2
movq 0x18(%rsp), %rax
cmpl $0x0, (%rax)
js 0x4f5c9
cmpl $0x0, 0x1c(%rbx)
js 0x4f5f0
addq $0x4d8, %rsp            # imm = 0x4D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
leaq 0x41400(%rip), %rsi     # 0x9094a
leaq 0x3fbce(%rip), %rdx     # 0x8f11f
leaq 0x90(%rsp), %rcx
movq %rax, %rdi
xorl %eax, %eax
callq 0x36908
jmp 0x4f63c
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 0x413ff(%rip), %rsi     # 0x9098b
leaq 0x3fb8c(%rip), %rdx     # 0x8f11f
movq %r14, %rdi
xorl %eax, %eax
callq 0x36908
jmp 0x4f63c
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
leaq 0x4141f(%rip), %rsi     # 0x909d5
leaq 0x3fb62(%rip), %rdx     # 0x8f11f
movq %rax, %rdi
xorl %eax, %eax
callq 0x36908
jmp 0x4f63c
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
leaq 0x41437(%rip), %rsi     # 0x90a14
leaq 0x3fb3b(%rip), %rdx     # 0x8f11f
movq %rax, %rdi
xorl %eax, %eax
callq 0x36908
jmp 0x4f63c
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
leaq 0x41452(%rip), %rsi     # 0x90a56
leaq 0x3fb14(%rip), %rdx     # 0x8f11f
movq %rax, %rdi
xorl %eax, %eax
callq 0x36908
jmp 0x4f63c
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
leaq 0x4121e(%rip), %rsi     # 0x90849
leaq 0x3faed(%rip), %rdx     # 0x8f11f
movq %rax, %rdi
xorl %eax, %eax
callq 0x36908
leaq 0x586ad(%rip), %rsi     # 0xa7cf0
movq 0x58986(%rip), %rdx     # 0xa7fd0
movq %r14, %rdi
callq 0x4910
jmp 0x4f65c
jmp 0x4f65c
jmp 0x4f65c
jmp 0x4f65c
jmp 0x4f65c
movq %rax, %rbx
movq %r14, %rdi
callq 0x43c0
movq %rbx, %rdi
callq 0x4960
nop