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

      std::FILE *const nfile = file?file:cimg::fopen(filename,"rb");
      unsigned int ppm_type, W, H, D = 1, colormax = 255;
      CImg<charT> item(16384,1,1,1,0);
      int err, rval, gval, bval;
      const long cimg_iobuffer = 12*1024*1024;
      while ((err=std::fscanf(nfile,"%16383[^\n]",item.data()))!=EOF && (*item=='#' || !err)) std::fgetc(nfile);
      if (std::sscanf(item," P%u",&ppm_type)!=1) {
        if (!file) cimg::fclose(nfile);
        throw CImgIOException(_cimg_instance
                              "load_pnm(): PNM header not found in file '%s'.",
                              cimg_instance,
                              filename?filename:"(FILE*)");
      }
      while ((err=std::fscanf(nfile," %16383[^\n]",item.data()))!=EOF && (*item=='#' || !err)) std::fgetc(nfile);
      if ((err=std::sscanf(item," %u %u %u %u",&W,&H,&D,&colormax))<2) {
        if (!file) cimg::fclose(nfile);
        throw CImgIOException(_cimg_instance
                              "load_pnm(): WIDTH and HEIGHT fields undefined in file '%s'.",
                              cimg_instance,
                              filename?filename:"(FILE*)");
      }
      if (ppm_type!=1 && ppm_type!=4) {
        if (err==2 || (err==3 && (ppm_type==5 || ppm_type==7 || ppm_type==8 || ppm_type==9))) {
          while ((err=std::fscanf(nfile," %16383[^\n]",item.data()))!=EOF && (*item=='#' || !err)) std::fgetc(nfile);
          if (std::sscanf(item,"%u",&colormax)!=1)
            cimg::warn(_cimg_instance
                       "load_pnm(): COLORMAX field is undefined in file '%s'.",
                       cimg_instance,
                       filename?filename:"(FILE*)");
        } else { colormax = D; D = 1; }
      }
      std::fgetc(nfile);

      switch (ppm_type) {
      case 1 : { // 2d b&w ascii.
        assign(W,H,1,1);
        T* ptrd = _data;
        cimg_foroff(*this,off) { if (std::fscanf(nfile,"%d",&rval)>0) *(ptrd++) = (T)(rval?0:255); else break; }
      } break;
      case 2 : { // 2d grey ascii.
        assign(W,H,1,1);
        T* ptrd = _data;
        cimg_foroff(*this,off) { if (std::fscanf(nfile,"%d",&rval)>0) *(ptrd++) = (T)rval; else break; }
      } break;
      case 3 : { // 2d color ascii.
        assign(W,H,1,3);
        T *ptrd = data(0,0,0,0), *ptr_g = data(0,0,0,1), *ptr_b = data(0,0,0,2);
        cimg_forXY(*this,x,y) {
          if (std::fscanf(nfile,"%d %d %d",&rval,&gval,&bval)==3) {
            *(ptrd++) = (T)rval; *(ptr_g++) = (T)gval; *(ptr_b++) = (T)bval;
          } else break;
        }
      } break;
      case 4 : { // 2d b&w binary (support 3D PINK extension).
        CImg<ucharT> raw;
        assign(W,H,D,1);
        T *ptrd = data(0,0,0,0);
        unsigned int w = 0, h = 0, d = 0;
        for (long to_read = (long)((W/8 + (W%8?1:0))*H*D); to_read>0; ) {
          raw.assign(cimg::min(to_read,cimg_iobuffer));
          cimg::fread(raw._data,raw._width,nfile);
          to_read-=raw._width;
          const unsigned char *ptrs = raw._data;
          unsigned char mask = 0, val = 0;
          for (unsigned long off = (unsigned long)raw._width; off || mask; mask>>=1) {
            if (!mask) { if (off--) val = *(ptrs++); mask = 128; }
            *(ptrd++) = (T)((val&mask)?0:255);
            if (++w==W) { w = 0; mask = 0; if (++h==H) { h = 0; if (++d==D) break; }}
          }
        }
      } break;
      case 5 : case 7 : { // 2d/3d grey binary (support 3D PINK extension).
        if (colormax<256) { // 8 bits.
          CImg<ucharT> raw;
          assign(W,H,D,1);
          T *ptrd = data(0,0,0,0);
          for (long to_read = (long)size(); to_read>0; ) {
            raw.assign(cimg::min(to_read,cimg_iobuffer));
            cimg::fread(raw._data,raw._width,nfile);
            to_read-=raw._width;
            const unsigned char *ptrs = raw._data;
            for (unsigned long off = (unsigned long)raw._width; off; --off) *(ptrd++) = (T)*(ptrs++);
          }
        } else { // 16 bits.
          CImg<ushortT> raw;
          assign(W,H,D,1);
          T *ptrd = data(0,0,0,0);
          for (long to_read = (long)size(); to_read>0; ) {
            raw.assign(cimg::min(to_read,cimg_iobuffer/2));
            cimg::fread(raw._data,raw._width,nfile);
            if (!cimg::endianness()) cimg::invert_endianness(raw._data,raw._width);
            to_read-=raw._width;
            const unsigned short *ptrs = raw._data;
            for (unsigned long off = (unsigned long)raw._width; off; --off) *(ptrd++) = (T)*(ptrs++);
          }
        }
      } break;
      case 6 : { // 2d color binary.
        if (colormax<256) { // 8 bits.
          CImg<ucharT> raw;
          assign(W,H,1,3);
          T
            *ptr_r = data(0,0,0,0),
            *ptr_g = data(0,0,0,1),
            *ptr_b = data(0,0,0,2);
          for (long to_read = (long)size(); to_read>0; ) {
            raw.assign(cimg::min(to_read,cimg_iobuffer));
            cimg::fread(raw._data,raw._width,nfile);
            to_read-=raw._width;
            const unsigned char *ptrs = raw._data;
            for (unsigned long off = (unsigned long)raw._width/3; off; --off) {
              *(ptr_r++) = (T)*(ptrs++);
              *(ptr_g++) = (T)*(ptrs++);
              *(ptr_b++) = (T)*(ptrs++);
            }
          }
        } else { // 16 bits.
          CImg<ushortT> raw;
          assign(W,H,1,3);
          T
            *ptr_r = data(0,0,0,0),
            *ptr_g = data(0,0,0,1),
            *ptr_b = data(0,0,0,2);
          for (long to_read = (int)size(); to_read>0; ) {
            raw.assign(cimg::min(to_read,cimg_iobuffer/2));
            cimg::fread(raw._data,raw._width,nfile);
            if (!cimg::endianness()) cimg::invert_endianness(raw._data,raw._width);
            to_read-=raw._width;
            const unsigned short *ptrs = raw._data;
            for (unsigned long off = (unsigned long)raw._width/3; off; --off) {
              *(ptr_r++) = (T)*(ptrs++);
              *(ptr_g++) = (T)*(ptrs++);
              *(ptr_b++) = (T)*(ptrs++);
            }
          }
        }
      } break;
      case 8 : { // 2d/3d grey binary with int32 integers (PINK extension).
        CImg<intT> raw;
        assign(W,H,D,1);
        T *ptrd = data(0,0,0,0);
        for (long to_read = (long)size(); to_read>0; ) {
          raw.assign(cimg::min(to_read,cimg_iobuffer));
          cimg::fread(raw._data,raw._width,nfile);
          to_read-=raw._width;
          const int *ptrs = raw._data;
          for (unsigned long off = (unsigned long)raw._width; off; --off) *(ptrd++) = (T)*(ptrs++);
        }
      } break;
      case 9 : { // 2d/3d grey binary with float values (PINK extension).
        CImg<floatT> raw;
        assign(W,H,D,1);
        T *ptrd = data(0,0,0,0);
        for (long to_read = (long)size(); to_read>0; ) {
          raw.assign(cimg::min(to_read,cimg_iobuffer));
          cimg::fread(raw._data,raw._width,nfile);
          to_read-=raw._width;
          const float *ptrs = raw._data;
          for (unsigned long off = (unsigned long)raw._width; off; --off) *(ptrd++) = (T)*(ptrs++);
        }
      } break;
      default :
        assign();
        if (!file) cimg::fclose(nfile);
        throw CImgIOException(_cimg_instance
                              "load_pnm(): PNM type 'P%d' found, but type is not supported.",
                              cimg_instance,
                              filename?filename:"(FILE*)",ppm_type);
      }
      if (!file) cimg::fclose(nfile);
      return *this;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, %rax
orq %rdx, %rax
je 0x37668
movq %rdx, %r12
movq %rsi, %r13
movq %rsi, 0x60(%rsp)
testq %rsi, %rsi
jne 0x36b92
leaq 0x3e6b4(%rip), %rsi     # 0x7523b
movq %r12, %rdi
callq 0x2dca5
movq %rax, %r13
movl $0x1, 0x14(%rsp)
movl $0xff, 0x4c(%rsp)
leaq 0x78(%rsp), %rdi
pushq $0x1
popq %rcx
movl $0x4000, %esi           # imm = 0x4000
movl %ecx, %edx
movl %ecx, %r8d
xorl %r9d, %r9d
callq 0x37910
leaq 0x3ef3a(%rip), %r15     # 0x75afd
movq 0x90(%rsp), %rdx
movq %r13, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x49d0
movq 0x90(%rsp), %rdi
cmpl $-0x1, %eax
je 0x36c00
cmpb $0x23, (%rdi)
sete %cl
testl %eax, %eax
sete %al
orb %cl, %al
cmpb $0x1, %al
jne 0x36c00
movq %r13, %rdi
callq 0x4850
jmp 0x36bc3
leaq 0x3ee93(%rip), %rsi     # 0x75a9a
leaq 0x5c(%rsp), %rdx
xorl %eax, %eax
callq 0x4510
cmpl $0x1, %eax
jne 0x376da
leaq 0x3eed9(%rip), %r15     # 0x75afc
movq 0x90(%rsp), %rdx
movq %r13, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x49d0
movq 0x90(%rsp), %rdi
cmpl $-0x1, %eax
je 0x36c60
cmpb $0x23, (%rdi)
sete %cl
testl %eax, %eax
sete %al
orb %cl, %al
cmpb $0x1, %al
jne 0x36c60
movq %r13, %rdi
callq 0x4850
jmp 0x36c23
leaq 0x3eea1(%rip), %rsi     # 0x75b08
leaq 0x10(%rsp), %rdx
leaq 0xc(%rsp), %rcx
leaq 0x14(%rsp), %r8
leaq 0x4c(%rsp), %r9
xorl %eax, %eax
callq 0x4510
cmpl $0x1, %eax
jle 0x37757
movl 0x5c(%rsp), %ecx
cmpl $0x1, %ecx
je 0x36d8f
cmpl $0x4, %ecx
je 0x36d8f
cmpl $0x2, %eax
je 0x36cc6
cmpl $0x3, %eax
jne 0x36d7f
cmpl $0x9, %ecx
ja 0x36d7f
movl $0x3a0, %eax            # imm = 0x3A0
btl %ecx, %eax
jae 0x36d7f
leaq 0x3ee2f(%rip), %r15     # 0x75afc
movq 0x90(%rsp), %rdx
movq %r13, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x49d0
movq 0x90(%rsp), %rdi
cmpl $-0x1, %eax
je 0x36d0a
cmpb $0x23, (%rdi)
sete %cl
testl %eax, %eax
sete %al
orb %cl, %al
cmpb $0x1, %al
jne 0x36d0a
movq %r13, %rdi
callq 0x4850
jmp 0x36ccd
leaq 0x3ee01(%rip), %rsi     # 0x75b12
leaq 0x4c(%rsp), %rdx
xorl %eax, %eax
callq 0x4510
cmpl $0x1, %eax
je 0x36d8f
leaq 0x1dabf(%rip), %rax     # 0x547e8
movq 0x18(%rsp), %rdi
cmpb $0x0, 0x10(%rdi)
leaq 0x1ee89(%rip), %r10     # 0x55bc2
cmovneq %rax, %r10
testq %r12, %r12
movl (%rdi), %esi
movl 0x4(%rdi), %edx
movl 0x8(%rdi), %ecx
movl 0xc(%rdi), %r8d
movq 0x18(%rdi), %r9
leaq 0x3e810(%rip), %r11     # 0x75567
cmovneq %r12, %r11
subq $0x8, %rsp
leaq 0x3e339(%rip), %rbx     # 0x7509f
leaq 0x3ee12(%rip), %rdi     # 0x75b7f
xorl %eax, %eax
pushq %r11
pushq %rbx
pushq %r10
callq 0x97a7
addq $0x20, %rsp
jmp 0x36d8f
movl 0x14(%rsp), %eax
movl %eax, 0x4c(%rsp)
movl $0x1, 0x14(%rsp)
movq %r13, %rdi
callq 0x4850
movl 0x5c(%rsp), %eax
decl %eax
cmpl $0x8, %eax
ja 0x377e8
leaq 0x1d937(%rip), %rcx     # 0x546e4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
movq %r13, 0x50(%rsp)
jmpq *%rax
cmpl $0xff, 0x4c(%rsp)
movq 0x18(%rsp), %r14
ja 0x36e87
andq $0x0, 0x38(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x20(%rsp)
movb $0x0, 0x30(%rsp)
movl 0x10(%rsp), %esi
movl 0xc(%rsp), %edx
movl 0x14(%rsp), %ecx
pushq $0x1
popq %r8
movq %r14, %rdi
callq 0x988e
movq 0x18(%r14), %rbx
movl (%r14), %eax
movl 0x4(%r14), %ecx
imulq %rax, %rcx
movl 0x8(%r14), %eax
movl 0xc(%r14), %r14d
imulq %rax, %r14
imulq %rcx, %r14
movl $0xc00000, %r12d        # imm = 0xC00000
leaq 0x20(%rsp), %r15
pushq $0x1
popq %rbp
testq %r14, %r14
jle 0x374e6
cmpq %r12, %r14
movl $0xc00000, %esi         # imm = 0xC00000
cmovbq %r14, %rsi
movq %r15, %rdi
movl %ebp, %edx
movl %ebp, %ecx
movl %ebp, %r8d
callq 0xd758
movq 0x38(%rsp), %rdi
movl 0x20(%rsp), %esi
movq %r13, %rdx
callq 0x36072
movl 0x20(%rsp), %eax
movq 0x38(%rsp), %rcx
xorl %edx, %edx
cmpq %rdx, %rax
je 0x36e82
movzbl (%rcx,%rdx), %esi
cvtsi2sd %esi, %xmm0
movsd %xmm0, (%rbx)
addq $0x8, %rbx
incq %rdx
jmp 0x36e68
subq %rax, %r14
jmp 0x36e28
andq $0x0, 0x38(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x20(%rsp)
movb $0x0, 0x30(%rsp)
movl 0x10(%rsp), %esi
movl 0xc(%rsp), %edx
movl 0x14(%rsp), %ecx
pushq $0x1
popq %r8
movq %r14, %rdi
callq 0x988e
movq 0x18(%r14), %rbx
movl (%r14), %eax
movl 0x4(%r14), %ecx
imulq %rax, %rcx
movl 0x8(%r14), %eax
movl 0xc(%r14), %r14d
imulq %rax, %r14
imulq %rcx, %r14
movl $0x600000, %r12d        # imm = 0x600000
leaq 0x20(%rsp), %r15
pushq $0x1
popq %rbp
testq %r14, %r14
jle 0x374eb
cmpq %r12, %r14
movl $0x600000, %esi         # imm = 0x600000
cmovbq %r14, %rsi
movq %r15, %rdi
movl %ebp, %edx
movl %ebp, %ecx
movl %ebp, %r8d
callq 0x37a84
movq 0x38(%rsp), %rdi
movl 0x20(%rsp), %esi
movq %r13, %rdx
callq 0x37cea
movq 0x38(%rsp), %rdi
movl 0x20(%rsp), %esi
callq 0x37dec
movl 0x20(%rsp), %eax
movq 0x38(%rsp), %rcx
xorl %edx, %edx
cmpq %rdx, %rax
je 0x36f49
movzwl (%rcx,%rdx,2), %esi
cvtsi2sd %esi, %xmm0
movsd %xmm0, (%rbx)
addq $0x8, %rbx
incq %rdx
jmp 0x36f2f
subq %rax, %r14
jmp 0x36ee1
movl 0x10(%rsp), %esi
movl 0xc(%rsp), %edx
pushq $0x1
popq %rcx
pushq $0x3
popq %r8
movq 0x18(%rsp), %rdi
callq 0x988e
movq 0x18(%rsp), %rcx
movq 0x18(%rcx), %rbx
movl (%rcx), %r14d
movl 0x4(%rcx), %eax
movl 0x8(%rcx), %ecx
imulq %rax, %r14
imulq %rcx, %r14
leaq (%rbx,%r14,8), %r12
shlq $0x4, %r14
addq %rbx, %r14
leaq 0x74(%rsp), %rbp
leaq 0x70(%rsp), %r15
xorl %ecx, %ecx
movl %ecx, 0x6c(%rsp)
cmpl %eax, %ecx
jge 0x37635
xorl %r13d, %r13d
movq 0x18(%rsp), %rax
cmpl (%rax), %r13d
jge 0x37006
movq 0x50(%rsp), %rdi
leaq 0x3ec26(%rip), %rsi     # 0x75be3
leaq 0x48(%rsp), %rdx
movq %rbp, %rcx
movq %r15, %r8
xorl %eax, %eax
callq 0x49d0
cmpl $0x3, %eax
jne 0x37006
cvtsi2sdl 0x48(%rsp), %xmm0
movsd %xmm0, (%rbx)
cvtsi2sdl 0x74(%rsp), %xmm0
addq $0x8, %rbx
movsd %xmm0, (%r12)
cvtsi2sdl 0x70(%rsp), %xmm0
addq $0x8, %r12
movsd %xmm0, (%r14)
addq $0x8, %r14
incl %r13d
jmp 0x36fa7
movl 0x6c(%rsp), %ecx
incl %ecx
movq 0x18(%rsp), %rax
movl 0x4(%rax), %eax
jmp 0x36f98
andq $0x0, 0x38(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x20(%rsp)
movb $0x0, 0x30(%rsp)
movl 0x10(%rsp), %esi
movl 0xc(%rsp), %edx
movl 0x14(%rsp), %ecx
pushq $0x1
popq %r8
movq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x988e
movq 0x18(%r14), %rbx
movl (%r14), %eax
movl 0x4(%r14), %ecx
imulq %rax, %rcx
movl 0x8(%r14), %eax
movl 0xc(%r14), %r14d
imulq %rax, %r14
imulq %rcx, %r14
movl $0xc00000, %r12d        # imm = 0xC00000
leaq 0x20(%rsp), %r15
pushq $0x1
popq %rbp
testq %r14, %r14
jle 0x374f0
cmpq %r12, %r14
movl $0xc00000, %esi         # imm = 0xC00000
cmovbq %r14, %rsi
movq %r15, %rdi
movl %ebp, %edx
movl %ebp, %ecx
movl %ebp, %r8d
callq 0x36172
movq 0x38(%rsp), %rdi
movl 0x20(%rsp), %esi
movq %r13, %rdx
callq 0x363e1
movl 0x20(%rsp), %eax
movq 0x38(%rsp), %rcx
xorl %edx, %edx
cmpq %rdx, %rax
je 0x370cc
cvtsi2sdl (%rcx,%rdx,4), %xmm0
movsd %xmm0, (%rbx)
addq $0x8, %rbx
incq %rdx
jmp 0x370b5
subq %rax, %r14
jmp 0x37075
andq $0x0, 0x38(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x20(%rsp)
movb $0x0, 0x30(%rsp)
movl 0x10(%rsp), %esi
movl 0xc(%rsp), %edx
movl 0x14(%rsp), %ecx
pushq $0x1
popq %r8
movq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x988e
movq 0x18(%rbx), %r15
movl 0x10(%rsp), %eax
movl %eax, %ecx
shrl $0x3, %ecx
andl $0x7, %eax
cmpl $0x1, %eax
sbbl $-0x1, %ecx
movl 0x14(%rsp), %r13d
imull 0xc(%rsp), %r13d
imull %ecx, %r13d
xorl %ebp, %ebp
pushq $0x1
popq %r14
xorl %ebx, %ebx
xorl %r12d, %r12d
testq %r13, %r13
jle 0x374ff
movl $0xc00000, %eax         # imm = 0xC00000
cmpq %rax, %r13
movl $0xc00000, %esi         # imm = 0xC00000
cmovbq %r13, %rsi
leaq 0x20(%rsp), %rdi
movl %r14d, %ecx
movl %r14d, %edx
movl %r14d, %r8d
callq 0xd758
movq 0x38(%rsp), %rdi
movl 0x20(%rsp), %esi
movq 0x50(%rsp), %rdx
callq 0x36072
movl 0x20(%rsp), %edx
subq %rdx, %r13
movq 0x38(%rsp), %rcx
movl 0x10(%rsp), %esi
movl 0xc(%rsp), %edi
movl 0x14(%rsp), %eax
xorl %r9d, %r9d
xorl %r8d, %r8d
movsd 0x1ce6f(%rip), %xmm1    # 0x54008
testq %rdx, %rdx
setne %r10b
testb %r9b, %r9b
setne %r11b
orb %r10b, %r11b
je 0x37133
testb %r9b, %r9b
jne 0x371c7
movb $-0x80, %r9b
testq %rdx, %rdx
je 0x371c4
decq %rdx
movb (%rcx), %r8b
incq %rcx
jmp 0x371c7
pushq $-0x1
popq %rdx
movapd %xmm1, %xmm0
testb %r9b, %r8b
je 0x371d4
xorpd %xmm0, %xmm0
movsd %xmm0, (%r15)
incl %ebp
cmpl %esi, %ebp
jne 0x37201
incl %ebx
xorl %ebp, %ebp
cmpl %edi, %ebx
jne 0x371fe
incl %r12d
xorl %ebp, %ebp
movl $0x0, %ebx
movl $0x0, %r9d
cmpl %eax, %r12d
jne 0x37201
jmp 0x3720a
xorl %r9d, %r9d
addq $0x8, %r15
shrb %r9b
jmp 0x37199
addq $0x8, %r15
xorl %ebp, %ebp
xorl %ebx, %ebx
movl %eax, %r12d
jmp 0x37133
movl 0x10(%rsp), %esi
movl 0xc(%rsp), %edx
pushq $0x1
popq %rcx
movq 0x18(%rsp), %rdi
movl %ecx, %r8d
callq 0x988e
movq 0x18(%rsp), %rdx
movq 0x18(%rdx), %rbx
movl (%rdx), %eax
movl 0x4(%rdx), %ecx
imulq %rax, %rcx
movl 0x8(%rdx), %eax
movl 0xc(%rdx), %r14d
imulq %rax, %r14
imulq %rcx, %r14
leaq 0x3e98f(%rip), %r15     # 0x75be9
leaq 0x48(%rsp), %r12
movl $0xff, %ebp
xorl %r13d, %r13d
cmpq %r13, %r14
je 0x37635
movq 0x50(%rsp), %rdi
movq %r15, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x49d0
testl %eax, %eax
jle 0x37635
cmpl $0x0, 0x48(%rsp)
movl $0x0, %eax
cmovel %ebp, %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, (%rbx,%r13,8)
incq %r13
jmp 0x37267
movl 0x10(%rsp), %esi
movl 0xc(%rsp), %edx
pushq $0x1
popq %rcx
movq 0x18(%rsp), %rdi
movl %ecx, %r8d
callq 0x988e
movq 0x18(%rsp), %rdx
movq 0x18(%rdx), %rbx
movl (%rdx), %eax
movl 0x4(%rdx), %ecx
imulq %rax, %rcx
movl 0x8(%rdx), %eax
movl 0xc(%rdx), %r14d
imulq %rax, %r14
imulq %rcx, %r14
leaq 0x3e903(%rip), %r15     # 0x75be9
leaq 0x48(%rsp), %r12
xorl %r13d, %r13d
cmpq %r13, %r14
je 0x37635
movq 0x50(%rsp), %rdi
movq %r15, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x49d0
testl %eax, %eax
jle 0x37635
cvtsi2sdl 0x48(%rsp), %xmm0
movsd %xmm0, (%rbx,%r13,8)
incq %r13
jmp 0x372ee
cmpl $0xff, 0x4c(%rsp)
movq 0x18(%rsp), %r14
ja 0x37513
andq $0x0, 0x38(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x20(%rsp)
movb $0x0, 0x30(%rsp)
movl 0x10(%rsp), %esi
movl 0xc(%rsp), %edx
pushq $0x1
popq %rcx
pushq $0x3
popq %r8
movq %r14, %rdi
callq 0x988e
movq 0x18(%r14), %rbx
movl (%r14), %eax
movl 0x4(%r14), %ecx
imulq %rax, %rcx
movl 0x8(%r14), %r12d
imulq %rcx, %r12
leaq (%rbx,%r12,8), %r15
movl 0xc(%r14), %ebp
imulq %r12, %rbp
shlq $0x4, %r12
addq %rbx, %r12
pushq $0x1
popq %r13
pushq $0x3
popq %r14
testq %rbp, %rbp
jle 0x3761f
movl $0xc00000, %eax         # imm = 0xC00000
cmpq %rax, %rbp
movl $0xc00000, %esi         # imm = 0xC00000
cmovbq %rbp, %rsi
leaq 0x20(%rsp), %rdi
movl %r13d, %edx
movl %r13d, %ecx
movl %r13d, %r8d
callq 0xd758
movq 0x38(%rsp), %rdi
movl 0x20(%rsp), %esi
movq 0x50(%rsp), %rdx
callq 0x36072
movl 0x20(%rsp), %ecx
movq 0x38(%rsp), %rsi
movl %ecx, %eax
xorl %edx, %edx
divl %r14d
leaq (%rax,%rax,2), %rax
xorl %edx, %edx
cmpq %rdx, %rax
je 0x37429
movzbl (%rsi,%rdx), %edi
cvtsi2sd %edi, %xmm0
movsd %xmm0, (%rbx)
addq $0x8, %rbx
movzbl 0x1(%rsi,%rdx), %edi
cvtsi2sd %edi, %xmm0
movsd %xmm0, (%r15)
movzbl 0x2(%rsi,%rdx), %edi
cvtsi2sd %edi, %xmm0
addq $0x8, %r15
movsd %xmm0, (%r12)
addq $0x8, %r12
addq $0x3, %rdx
jmp 0x373e9
subq %rcx, %rbp
jmp 0x37393
andq $0x0, 0x38(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movb $0x0, 0x30(%rsp)
movl 0x10(%rsp), %esi
movl 0xc(%rsp), %edx
movl 0x14(%rsp), %ecx
pushq $0x1
popq %r8
movq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x988e
movq 0x18(%r14), %rbx
movl (%r14), %eax
movl 0x4(%r14), %ecx
imulq %rax, %rcx
movl 0x8(%r14), %eax
movl 0xc(%r14), %r14d
imulq %rax, %r14
imulq %rcx, %r14
movl $0xc00000, %r12d        # imm = 0xC00000
leaq 0x20(%rsp), %r15
pushq $0x1
popq %rbp
testq %r14, %r14
jle 0x37504
cmpq %r12, %r14
movl $0xc00000, %esi         # imm = 0xC00000
cmovbq %r14, %rsi
movq %r15, %rdi
movl %ebp, %edx
movl %ebp, %ecx
movl %ebp, %r8d
callq 0x37e1a
movq 0x38(%rsp), %rdi
movl 0x20(%rsp), %esi
movq %r13, %rdx
callq 0x38089
movl 0x20(%rsp), %eax
movq 0x38(%rsp), %rcx
xorl %edx, %edx
cmpq %rdx, %rax
je 0x374e1
cvtss2sd (%rcx,%rdx,4), %xmm0
movsd %xmm0, (%rbx)
addq $0x8, %rbx
incq %rdx
jmp 0x374ca
subq %rax, %r14
jmp 0x3748e
jmp 0x3761f
jmp 0x3762b
leaq 0x20(%rsp), %rdi
callq 0x368ee
jmp 0x37635
jmp 0x3761f
leaq 0x20(%rsp), %rdi
callq 0x17c20
jmp 0x37635
andq $0x0, 0x38(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x20(%rsp)
movb $0x0, 0x30(%rsp)
movl 0x10(%rsp), %esi
movl 0xc(%rsp), %edx
pushq $0x1
popq %rcx
pushq $0x3
popq %r8
movq %r14, %rdi
callq 0x988e
movq 0x18(%r14), %rbx
movl (%r14), %eax
movl 0x4(%r14), %ecx
imulq %rax, %rcx
movl 0x8(%r14), %eax
imulq %rcx, %rax
leaq (%rbx,%rax,8), %r15
movq %rax, %rbp
shlq $0x4, %rbp
addq %rbx, %rbp
imull 0xc(%r14), %eax
movslq %eax, %r12
pushq $0x1
popq %r13
pushq $0x3
popq %r14
testq %r12, %r12
jle 0x3762b
movl $0x600000, %eax         # imm = 0x600000
cmpq %rax, %r12
movl $0x600000, %esi         # imm = 0x600000
cmovbq %r12, %rsi
leaq 0x20(%rsp), %rdi
movl %r13d, %edx
movl %r13d, %ecx
movl %r13d, %r8d
callq 0x37a84
movq 0x38(%rsp), %rdi
movl 0x20(%rsp), %esi
movq 0x50(%rsp), %rdx
callq 0x37cea
movq 0x38(%rsp), %rdi
movl 0x20(%rsp), %esi
callq 0x37dec
movl 0x20(%rsp), %ecx
movq 0x38(%rsp), %rsi
movl %ecx, %eax
xorl %edx, %edx
divl %r14d
imulq $0x6, %rax, %rax
xorl %edx, %edx
cmpq %rdx, %rax
je 0x37617
movzwl (%rsi,%rdx), %edi
cvtsi2sd %edi, %xmm0
movsd %xmm0, (%rbx)
addq $0x8, %rbx
movzwl 0x2(%rsi,%rdx), %edi
cvtsi2sd %edi, %xmm0
movsd %xmm0, (%r15)
movzwl 0x4(%rsi,%rdx), %edi
cvtsi2sd %edi, %xmm0
addq $0x8, %r15
movsd %xmm0, (%rbp)
addq $0x8, %rbp
addq $0x6, %rdx
jmp 0x375d8
subq %rcx, %r12
jmp 0x37574
leaq 0x20(%rsp), %rdi
callq 0xb8ae
jmp 0x37635
leaq 0x20(%rsp), %rdi
callq 0x37e06
cmpq $0x0, 0x60(%rsp)
movq 0x50(%rsp), %rdi
jne 0x37647
callq 0x2a2f8
leaq 0x78(%rsp), %rdi
callq 0xdba4
movq 0x18(%rsp), %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
movq 0x18(%rsp), %rbx
movl (%rbx), %edx
movl 0x4(%rbx), %ecx
movl 0x8(%rbx), %r8d
movl 0xc(%rbx), %r9d
leaq 0x1d15a(%rip), %rax     # 0x547e8
leaq 0x1e52d(%rip), %r10     # 0x55bc2
cmpb $0x0, 0x10(%rbx)
cmovneq %rax, %r10
subq $0x8, %rsp
leaq 0x3d9f7(%rip), %r11     # 0x7509f
leaq 0x3e393(%rip), %rsi     # 0x75a42
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x18(%rbx)
callq 0x9d52
addq $0x20, %rsp
leaq 0x58595(%rip), %rsi     # 0x8fc60
movq 0x58906(%rip), %rdx     # 0x8ffd8
movq %r14, %rdi
callq 0x4910
cmpq $0x0, 0x60(%rsp)
jne 0x376ea
movq %r13, %rdi
callq 0x2a2f8
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
leaq 0x1d0ea(%rip), %rax     # 0x547e8
leaq 0x1e4bd(%rip), %r10     # 0x55bc2
movq 0x18(%rsp), %r15
cmpb $0x0, 0x10(%r15)
cmovneq %rax, %r10
testq %r12, %r12
movl (%r15), %edx
movl 0x4(%r15), %ecx
movl 0x8(%r15), %r8d
movl 0xc(%r15), %r9d
leaq 0x3de3b(%rip), %r11     # 0x75567
cmovneq %r12, %r11
leaq 0x3d968(%rip), %rbx     # 0x7509f
leaq 0x3e361(%rip), %rsi     # 0x75a9f
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %rbx
pushq %r10
pushq 0x18(%r15)
callq 0x2a3de
addq $0x20, %rsp
jmp 0x377d2
cmpq $0x0, 0x60(%rsp)
jne 0x37767
movq %r13, %rdi
callq 0x2a2f8
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
leaq 0x1d06d(%rip), %rax     # 0x547e8
leaq 0x1e440(%rip), %r10     # 0x55bc2
movq 0x18(%rsp), %r15
cmpb $0x0, 0x10(%r15)
cmovneq %rax, %r10
testq %r12, %r12
movl (%r15), %edx
movl 0x4(%r15), %ecx
movl 0x8(%r15), %r8d
movl 0xc(%r15), %r9d
leaq 0x3ddbe(%rip), %r11     # 0x75567
cmovneq %r12, %r11
leaq 0x3d8eb(%rip), %rbx     # 0x7509f
leaq 0x3e35a(%rip), %rsi     # 0x75b15
movq %r14, %rdi
xorl %eax, %eax
pushq %r11
pushq %rbx
pushq %r10
pushq 0x18(%r15)
callq 0x2a3de
addq $0x20, %rsp
leaq 0x58527(%rip), %rsi     # 0x8fd00
movq 0x587f8(%rip), %rdx     # 0x8ffd8
movq %r14, %rdi
callq 0x4910
movq 0x18(%rsp), %rdi
callq 0x94f6
cmpq $0x0, 0x60(%rsp)
jne 0x37802
movq %r13, %rdi
callq 0x2a2f8
movl $0x4008, %edi           # imm = 0x4008
callq 0x4210
movq %rax, %r14
leaq 0x1cfd2(%rip), %rax     # 0x547e8
movq 0x18(%rsp), %r13
cmpb $0x0, 0x10(%r13)
leaq 0x1e39b(%rip), %r10     # 0x55bc2
cmovneq %rax, %r10
testq %r12, %r12
movl (%r13), %edx
movl 0x4(%r13), %ecx
movl 0x8(%r13), %r8d
movl 0xc(%r13), %r9d
leaq 0x3dd22(%rip), %r11     # 0x75567
cmovneq %r12, %r11
movl 0x5c(%rsp), %ebx
subq $0x8, %rsp
leaq 0x3d847(%rip), %r15     # 0x7509f
leaq 0x3e38d(%rip), %rsi     # 0x75bec
movq %r14, %rdi
xorl %eax, %eax
pushq %rbx
pushq %r11
pushq %r15
pushq %r10
pushq 0x18(%r13)
callq 0x2a3de
addq $0x30, %rsp
jmp 0x377d2
jmp 0x3788f
jmp 0x378b9
jmp 0x378e8
jmp 0x378c8
jmp 0x378e8
jmp 0x378d9
jmp 0x378b9
jmp 0x378e8
jmp 0x3788f
movq %rax, %rbx
movq %r14, %rdi
callq 0x4390
jmp 0x378fe
movq %rax, %rbx
movq %r14, %rdi
callq 0x4390
jmp 0x37908
jmp 0x378b9
jmp 0x378b9
jmp 0x378fb
jmp 0x378fb
jmp 0x378fb
jmp 0x378fb
jmp 0x378e8
jmp 0x378b9
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x37e06
jmp 0x378fe
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x17c20
jmp 0x378fe
jmp 0x378e8
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x368ee
jmp 0x378fe
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xb8ae
jmp 0x378fe
jmp 0x378fb
jmp 0x378fb
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0xdba4
movq %rbx, %rdi
callq 0x4950