// File: /workspace/github_cpp_makefile_star2_O1/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 0x444fb(%rip), %rsi     # 0x95306
movq %r13, 0x38(%rsp)
movq %r13, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x49e0
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 0x203e1(%rip), %xmm0    # 0x71220
movups %xmm0, (%rbx)
leaq 0x18(%rbx), %rax
movq %rax, 0x18(%rsp)
movaps 0x203de(%rip), %xmm0    # 0x71230
movups %xmm0, 0x10(%rbx)
leaq 0x444ae(%rip), %rax     # 0x9530b
movzbl 0xd0(%rsp,%r14), %edx
leal -0x5b(%rdx), %ecx
leal 0x20(%rdx), %esi
cmpb $-0x1a, %cl
movzbl %sil, %ecx
cmovbl %edx, %ecx
movzbl (%r14,%rax), %esi
leal -0x5b(%rsi), %edx
leal 0x20(%rsi), %edi
cmpb $-0x1a, %dl
movzbl %dil, %edx
cmovbl %esi, %edx
cmpb %dl, %cl
jne 0x50e9e
incq %r14
cmpl $0xd, %r14d
jne 0x50e5d
movl $0xd, %r14d
movq %r15, 0x10(%rsp)
cmpl $0xd, %r14d
setne %al
cmpb %dl, %cl
setne %cl
testb %al, %cl
jne 0x513cc
leaq 0x4448e(%rip), %rsi     # 0x9534c
leaq 0xd0(%rsp), %rdx
movq 0x38(%rsp), %rdi
xorl %eax, %eax
callq 0x49e0
cmpl $-0x1, %eax
je 0x512d0
movq 0x10(%rsp), %rax
leaq 0x4(%rax), %rcx
movq %rcx, 0x48(%rsp)
addq $0x8, %rax
movq %rax, 0x40(%rsp)
leaq 0xd0(%rsp), %r13
leaq 0x421a9(%rip), %r12     # 0x930aa
leaq 0x42193(%rip), %r15     # 0x9309b
leaq 0x44504(%rip), %rbp     # 0x95413
leaq 0x444d9(%rip), %r14     # 0x953ef
movl 0xd0(%rsp), %eax
movl $0x2323, %ecx           # imm = 0x2323
xorl %ecx, %eax
movzbl 0xd2(%rsp), %ecx
xorl $0x7d, %ecx
orw %ax, %cx
je 0x512d0
movq %r13, %rdi
leaq 0x4441a(%rip), %rsi     # 0x9535c
movq %rbx, %rdx
xorl %eax, %eax
callq 0x4530
movq %r13, %rdi
leaq 0x44416(%rip), %rsi     # 0x9536c
movq 0x30(%rsp), %rdx
xorl %eax, %eax
callq 0x4530
movq %r13, %rdi
leaq 0x44410(%rip), %rsi     # 0x9537c
movq 0x28(%rsp), %rdx
xorl %eax, %eax
callq 0x4530
movq %r13, %rdi
leaq 0x4440a(%rip), %rsi     # 0x9538c
movq 0x20(%rsp), %rdx
xorl %eax, %eax
callq 0x4530
movq %r13, %rdi
leaq 0x44404(%rip), %rsi     # 0x9539c
movq 0x18(%rsp), %rdx
xorl %eax, %eax
callq 0x4530
movq 0x10(%rsp), %rdx
testq %rdx, %rdx
je 0x50feb
movq %r13, %rdi
leaq 0x443f7(%rip), %rsi     # 0x953af
xorl %eax, %eax
callq 0x4530
movq %r13, %rdi
leaq 0x443f7(%rip), %rsi     # 0x953c0
movq 0x48(%rsp), %rdx
xorl %eax, %eax
callq 0x4530
movq %r13, %rdi
leaq 0x443f2(%rip), %rsi     # 0x953d1
movq 0x40(%rsp), %rdx
xorl %eax, %eax
callq 0x4530
movq %r13, %rdi
leaq 0x443ed(%rip), %rsi     # 0x953e2
leaq 0x50(%rsp), %rdx
xorl %eax, %eax
callq 0x4530
testl %eax, %eax
je 0x51055
xorl %eax, %eax
movzbl 0x50(%rsp,%rax), %edx
leal -0x5b(%rdx), %ecx
leal 0x20(%rdx), %esi
cmpb $-0x1a, %cl
movzbl %sil, %ecx
cmovbl %edx, %ecx
movzbl (%rax,%r14), %esi
leal -0x5b(%rsi), %edx
leal 0x20(%rsi), %edi
cmpb $-0x1a, %dl
movzbl %dil, %edx
cmovbl %esi, %edx
cmpb %dl, %cl
jne 0x51042
incq %rax
cmpl $0x3, %eax
jne 0x51007
movl $0x3, %eax
cmpl $0x3, %eax
sete %al
cmpb %dl, %cl
sete %cl
orb %al, %cl
movzbl %cl, %eax
movl %eax, 0x1c(%rbx)
movq %r13, %rdi
leaq 0x44394(%rip), %rsi     # 0x953f3
leaq 0x50(%rsp), %rdx
leaq 0x90(%rsp), %rcx
xorl %eax, %eax
callq 0x4530
testl %eax, %eax
je 0x512b1
cmpl $0x1, %eax
leaq 0x42b6a(%rip), %r8      # 0x93bef
leaq 0x44381(%rip), %r9      # 0x9540d
je 0x51117
cmpl $0x2, %eax
jne 0x51339
xorl %eax, %eax
leaq 0x44360(%rip), %r8      # 0x95404
movzbl 0x50(%rsp,%rax), %edx
leal -0x5b(%rdx), %ecx
leal 0x20(%rdx), %esi
cmpb $-0x1a, %cl
movzbl %sil, %ecx
cmovbl %edx, %ecx
movzbl (%rax,%r8), %esi
leal -0x5b(%rsi), %edx
leal 0x20(%rsi), %edi
cmpb $-0x1a, %dl
movzbl %dil, %edx
cmovbl %esi, %edx
cmpb %dl, %cl
jne 0x510df
incq %rax
cmpl $0x8, %eax
jne 0x510a4
movl $0x8, %eax
cmpl $0x8, %eax
setne %al
cmpb %dl, %cl
setne %cl
andb %al, %cl
movzbl %cl, %eax
movl %eax, 0x14(%rbx)
movl $0x3f, %edx
leaq 0x50(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x4240
leaq 0x42adf(%rip), %r8      # 0x93bef
leaq 0x442f6(%rip), %r9      # 0x9540d
xorl %eax, %eax
movzbl 0x50(%rsp,%rax), %edx
leal -0x5b(%rdx), %ecx
leal 0x20(%rdx), %esi
cmpb $-0x1a, %cl
movzbl %sil, %ecx
cmovbl %edx, %ecx
movzbl (%rax,%r12), %esi
leal -0x5b(%rsi), %edx
leal 0x20(%rsi), %edi
cmpb $-0x1a, %dl
movzbl %dil, %edx
cmovbl %esi, %edx
cmpb %dl, %cl
jne 0x51154
incq %rax
cmpl $0x3, %eax
jne 0x51119
movl $0x3, %eax
cmpl $0x3, %eax
sete %al
cmpb %dl, %cl
sete %cl
orb %al, %cl
jne 0x511af
xorl %eax, %eax
movzbl 0x50(%rsp,%rax), %edx
leal -0x5b(%rdx), %ecx
leal 0x20(%rdx), %esi
cmpb $-0x1a, %cl
movzbl %sil, %ecx
cmovbl %edx, %ecx
movzbl (%rax,%r9), %esi
leal -0x5b(%rsi), %edx
leal 0x20(%rsi), %edi
cmpb $-0x1a, %dl
movzbl %dil, %edx
cmovbl %esi, %edx
cmpb %dl, %cl
jne 0x511a0
incq %rax
cmpl $0x5, %eax
jne 0x51165
movl $0x5, %eax
cmpl $0x5, %eax
setne %al
cmpb %dl, %cl
setne %cl
testb %al, %cl
jne 0x511b6
movl $0x0, 0x10(%rbx)
xorl %eax, %eax
movzbl 0x50(%rsp,%rax), %edx
leal -0x5b(%rdx), %ecx
leal 0x20(%rdx), %esi
cmpb $-0x1a, %cl
movzbl %sil, %ecx
cmovbl %edx, %ecx
movzbl (%rax,%r15), %esi
leal -0x5b(%rsi), %edx
leal 0x20(%rsi), %edi
cmpb $-0x1a, %dl
movzbl %dil, %edx
cmovbl %esi, %edx
cmpb %dl, %cl
jne 0x511f3
incq %rax
cmpl $0x5, %eax
jne 0x511b8
movl $0x5, %eax
cmpl $0x5, %eax
sete %al
cmpb %dl, %cl
sete %cl
orb %al, %cl
jne 0x5124e
xorl %eax, %eax
movzbl 0x50(%rsp,%rax), %edx
leal -0x5b(%rdx), %ecx
leal 0x20(%rdx), %esi
cmpb $-0x1a, %cl
movzbl %sil, %ecx
cmovbl %edx, %ecx
movzbl (%rax,%r8), %esi
leal -0x5b(%rsi), %edx
leal 0x20(%rsi), %edi
cmpb $-0x1a, %dl
movzbl %dil, %edx
cmovbl %esi, %edx
cmpb %dl, %cl
jne 0x5123f
incq %rax
cmpl $0x6, %eax
jne 0x51204
movl $0x6, %eax
cmpl $0x6, %eax
setne %al
cmpb %dl, %cl
setne %cl
testb %al, %cl
jne 0x51255
movl $0x1, 0x10(%rbx)
xorl %eax, %eax
movzbl 0x50(%rsp,%rax), %edx
leal -0x5b(%rdx), %ecx
leal 0x20(%rdx), %esi
cmpb $-0x1a, %cl
movzbl %sil, %ecx
cmovbl %edx, %ecx
movzbl (%rax,%rbp), %esi
leal -0x5b(%rsi), %edx
leal 0x20(%rsi), %edi
cmpb $-0x1a, %dl
movzbl %dil, %edx
cmovbl %esi, %edx
cmpb %dl, %cl
jne 0x51291
incq %rax
cmpl $0x6, %eax
jne 0x51257
movl $0x6, %eax
cmpl $0x6, %eax
setne %al
cmpb %dl, %cl
setne %cl
testb %al, %cl
jne 0x512a7
movl $0x2, 0x10(%rbx)
cmpl $0x0, 0x10(%rbx)
js 0x51339
movq 0x38(%rsp), %rdi
leaq 0x4408f(%rip), %rsi     # 0x9534c
movq %r13, %rdx
xorl %eax, %eax
callq 0x49e0
cmpl $-0x1, %eax
jne 0x50f16
cmpl $0x0, (%rbx)
js 0x5136b
movq 0x30(%rsp), %rax
cmpl $0x0, (%rax)
js 0x5136b
movq 0x28(%rsp), %rax
cmpl $0x0, (%rax)
js 0x5136b
movq 0x20(%rsp), %rax
cmpl $0x0, (%rax)
js 0x5136b
cmpl $0x0, 0x10(%rbx)
js 0x513a5
cmpl $0x0, 0x14(%rbx)
js 0x513a5
movq 0x18(%rsp), %rax
cmpl $0x0, (%rax)
js 0x513f3
cmpl $0x0, 0x1c(%rbx)
js 0x5141a
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 0x440cd(%rip), %rsi     # 0x9541a
leaq 0x4289b(%rip), %rdx     # 0x93bef
leaq 0x90(%rsp), %rcx
movq %rax, %rdi
xorl %eax, %eax
callq 0x385b4
jmp 0x5143f
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 0x440cc(%rip), %rsi     # 0x9545b
leaq 0x42859(%rip), %rdx     # 0x93bef
movq %r14, %rdi
xorl %eax, %eax
callq 0x385b4
jmp 0x5143f
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
leaq 0x440ec(%rip), %rsi     # 0x954a5
leaq 0x4282f(%rip), %rdx     # 0x93bef
movq %rax, %rdi
xorl %eax, %eax
callq 0x385b4
jmp 0x5143f
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
leaq 0x43f39(%rip), %rsi     # 0x95319
leaq 0x42808(%rip), %rdx     # 0x93bef
movq %rax, %rdi
xorl %eax, %eax
callq 0x385b4
jmp 0x5143f
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
leaq 0x440dd(%rip), %rsi     # 0x954e4
leaq 0x427e1(%rip), %rdx     # 0x93bef
movq %rax, %rdi
xorl %eax, %eax
callq 0x385b4
jmp 0x5143f
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
leaq 0x440f8(%rip), %rsi     # 0x95526
leaq 0x427ba(%rip), %rdx     # 0x93bef
movq %rax, %rdi
xorl %eax, %eax
callq 0x385b4
leaq 0x5b8aa(%rip), %rsi     # 0xaccf0
movq 0x5bb83(%rip), %rdx     # 0xacfd0
movq %r14, %rdi
callq 0x4900
jmp 0x5145f
jmp 0x5145f
jmp 0x5145f
jmp 0x5145f
jmp 0x5145f
movq %rax, %rbx
movq %r14, %rdi
callq 0x43b0
movq %rbx, %rdi
callq 0x4950