// File: /workspace/github_cpp_makefile_star2_O3/lvandeve[P]lodepng/lodepng_util.cpp
// Function: lodepng::parseICC(lodepng::LodePNGICC*, unsigned char const*, unsigned long)
static unsigned parseICC(LodePNGICC* icc, const unsigned char* data, size_t size) {
  size_t i, j;
  size_t pos = 0;
  unsigned version;
  unsigned inputspace;
  size_t numtags;

  if(size < 132) return 1; /* Too small to be a valid icc profile. */

  icc->has_chromaticity = 0;
  icc->has_whitepoint = 0;
  icc->has_trc = 0;
  icc->has_chad = 0;

  icc->trc[0].type = icc->trc[1].type = icc->trc[2].type = 0;
  icc->white[0] = icc->white[1] = icc->white[2] = 0;
  icc->red[0] = icc->red[1] = icc->red[2] = 0;
  icc->green[0] = icc->green[1] = icc->green[2] = 0;
  icc->blue[0] = icc->blue[1] = icc->blue[2] = 0;

  pos = 8;
  version = decodeICCUint32(data, size, &pos);
  if(pos >= size) return 1;
  icc->version_major = (int)((version >> 24) & 255);
  icc->version_minor = (int)((version >> 20) & 15);
  icc->version_bugfix = (int)((version >> 16) & 15);

  pos = 16;
  inputspace = decodeICCUint32(data, size, &pos);
  if(pos >= size) return 1;
  if(inputspace == 0x47524159) {
    /* The string  "GRAY" as unsigned 32-bit int. */
    icc->inputspace = 1;
  } else if(inputspace == 0x52474220) {
    /* The string  "RGB " as unsigned 32-bit int. */
    icc->inputspace = 2;
  } else {
    /* unsupported by PNG (CMYK, YCbCr, Lab, HSV, ...) */
    icc->inputspace = 0;
  }

  /* Should always be 0.9642, 1.0, 0.8249 */
  pos = 68;
  icc->illuminant[0] = decodeICC15Fixed16(data, size, &pos);
  icc->illuminant[1] = decodeICC15Fixed16(data, size, &pos);
  icc->illuminant[2] = decodeICC15Fixed16(data, size, &pos);

  pos = 128;
  numtags = decodeICCUint32(data, size, &pos);
  if(pos >= size) return 1;
  /* scan for tags we want to handle */
  for(i = 0; i < numtags; i++) {
    size_t offset;
    unsigned tagsize;
    size_t namepos = pos;
    pos += 4;
    offset = decodeICCUint32(data, size, &pos);
    tagsize = decodeICCUint32(data, size, &pos);
    if(pos >= size || offset >= size) return 1;
    if(offset + tagsize > size) return 1;
    if(tagsize < 8) return 1;

    if(isICCword(data, size, namepos, "wtpt")) {
      offset += 8; /* skip tag and reserved */
      icc->white[0] = decodeICC15Fixed16(data, size, &offset);
      icc->white[1] = decodeICC15Fixed16(data, size, &offset);
      icc->white[2] = decodeICC15Fixed16(data, size, &offset);
      icc->has_whitepoint = 1;
    } else if(isICCword(data, size, namepos, "rXYZ")) {
      offset += 8; /* skip tag and reserved */
      icc->red[0] = decodeICC15Fixed16(data, size, &offset);
      icc->red[1] = decodeICC15Fixed16(data, size, &offset);
      icc->red[2] = decodeICC15Fixed16(data, size, &offset);
      icc->has_chromaticity = 1;
    } else if(isICCword(data, size, namepos, "gXYZ")) {
      offset += 8; /* skip tag and reserved */
      icc->green[0] = decodeICC15Fixed16(data, size, &offset);
      icc->green[1] = decodeICC15Fixed16(data, size, &offset);
      icc->green[2] = decodeICC15Fixed16(data, size, &offset);
      icc->has_chromaticity = 1;
    } else if(isICCword(data, size, namepos, "bXYZ")) {
      offset += 8; /* skip tag and reserved */
      icc->blue[0] = decodeICC15Fixed16(data, size, &offset);
      icc->blue[1] = decodeICC15Fixed16(data, size, &offset);
      icc->blue[2] = decodeICC15Fixed16(data, size, &offset);
      icc->has_chromaticity = 1;
    } else if(isICCword(data, size, namepos, "chad")) {
      offset += 8; /* skip datatype keyword "sf32" and reserved */
      for(j = 0; j < 9; j++) {
        icc->chad[j] = decodeICC15Fixed16(data, size, &offset);
      }
      icc->has_chad = 1;
    } else if(isICCword(data, size, namepos, "rTRC") ||
              isICCword(data, size, namepos, "gTRC") ||
              isICCword(data, size, namepos, "bTRC") ||
              isICCword(data, size, namepos, "kTRC")) {
      char c = (char)data[namepos];
      /* both 'k' and 'r' are stored in channel 0 */
      int channel = (c == 'b') ? 2 : (c == 'g' ? 1 : 0);
      /* "curv": linear, gamma power or LUT */
      if(isICCword(data, size, offset, "curv")) {
        size_t count;
        LodePNGICCCurve* trc = &icc->trc[channel];
        icc->has_trc = 1;
        offset += 8; /* skip tag "curv" and reserved */
        count = decodeICCUint32(data, size, &offset);
        if(count == 0) {
          trc->type = 0; /* linear */
        } else if(count == 1) {
          trc->type = 2; /* gamma */
          trc->gamma = decodeICCUint16(data, size, &offset) / 256.0f;
        } else {
          trc->type = 1; /* LUT */
          if(offset + count * 2 > size || count > 16777216) return 1; /* also avoid crazy count */
          trc->lut_size = count;
          trc->lut = (float*)lodepng_malloc(count * sizeof(float));
          for(j = 0; j < count; j++) {
            trc->lut[j] = decodeICCUint16(data, size, &offset) * (1.0f / 65535.0f);
          }
        }
      }
      /* "para": parametric formula with gamma power, multipliers, biases and comparison point */
      /* TODO: test this on a realistic sample */
      if(isICCword(data, size, offset, "para")) {
        unsigned type;
        LodePNGICCCurve* trc = &icc->trc[channel];
        icc->has_trc = 1;
        offset += 8; /* skip tag "para" and reserved */
        type = decodeICCUint16(data, size, &offset);
        offset += 2;
        if(type > 4) return 1; /* unknown parametric curve type */
        trc->type = type + 2;
        trc->gamma = decodeICC15Fixed16(data, size, &offset);
        if(type >= 1) {
          trc->a = decodeICC15Fixed16(data, size, &offset);
          trc->b = decodeICC15Fixed16(data, size, &offset);
        }
        if(type >= 2) {
          trc->c = decodeICC15Fixed16(data, size, &offset);
        }
        if(type >= 3) {
          trc->d = decodeICC15Fixed16(data, size, &offset);
        }
        if(type == 4) {
          trc->e = decodeICC15Fixed16(data, size, &offset);
          trc->f = decodeICC15Fixed16(data, size, &offset);
        }
      }
      /* TODO: verify: does the "chrm" tag participate in computation so should be parsed? */
    }
    /* Return error if any parse went beyond the filesize. Note that the
    parsing itself was always safe since it bound-checks inside. */
    if(offset > size) return 1;
  }

  return 0;
}

// Assembly:
movl $0x1, %eax
cmpq $0x84, %rdx
jb 0x12665
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
xorl %eax, %eax
movl %eax, 0x1c(%rdi)
movl %eax, 0xf0(%rdi)
movl %eax, 0xb8(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x44(%rdi)
movups %xmm0, 0x54(%rdi)
movups %xmm0, 0x64(%rdi)
movups %xmm0, 0x74(%rdi)
movzbl 0x8(%rsi), %ecx
movzbl 0x9(%rsi), %edx
movl %ecx, 0x4(%rdi)
movl %edx, %ecx
shrl $0x4, %ecx
movl %ecx, 0x8(%rdi)
andl $0xf, %edx
movl %edx, 0xc(%rdi)
movl 0x10(%rsi), %ecx
bswapl %ecx
xorl %edx, %edx
cmpl $0x52474220, %ecx       # imm = 0x52474220
sete %dl
addl %edx, %edx
cmpl $0x47524159, %ecx       # imm = 0x47524159
movl $0x1, %ecx
cmovel %ecx, %edx
movl %edx, (%rdi)
movl 0x44(%rsi), %ecx
bswapl %ecx
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
movss 0x640e7(%rip), %xmm1    # 0x75fa0
mulss %xmm1, %xmm0
movss %xmm0, 0x10(%rdi)
movl 0x48(%rsi), %ecx
bswapl %ecx
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
mulss %xmm1, %xmm0
movss %xmm0, 0x14(%rdi)
movl 0x4c(%rsi), %ecx
bswapl %ecx
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
mulss %xmm1, %xmm0
movss %xmm0, 0x18(%rdi)
cmpq $0x84, %rbx
jne 0x11eff
movl $0x1, %eax
jmp 0x12657
movzbl 0x80(%r14), %ecx
shll $0x18, %ecx
movzbl 0x81(%r14), %r12d
shll $0x10, %r12d
orq %rcx, %r12
movzbl 0x82(%r14), %ecx
shll $0x8, %ecx
movzbl 0x83(%r14), %edx
movq %r12, %rsi
orq %rcx, %rsi
orq %rdx, %rsi
je 0x12657
leaq 0x80(%r15), %rax
movq %rax, 0x28(%rsp)
leaq 0x20(%r15), %rax
movq %rax, 0x30(%rsp)
orq %rdx, %rcx
orq %rcx, %r12
movl $0x84, %r13d
xorl %edx, %edx
movq %r15, 0x20(%rsp)
movq %r12, 0x18(%rsp)
leaq 0x8(%r13), %rax
cmpq %rbx, %rax
jbe 0x11f75
xorl %ebp, %ebp
jmp 0x11f7c
movl 0x4(%r14,%r13), %ebp
bswapl %ebp
leaq 0xc(%r13), %rsi
xorl %ecx, %ecx
cmpq %rbx, %rsi
ja 0x11f8d
movl (%r14,%rax), %ecx
bswapl %ecx
cmpq %rbx, %rsi
jae 0x11ef5
cmpl $0x8, %ecx
jb 0x11ef5
cmpq %rbx, %rbp
jae 0x11ef5
movl %ecx, %eax
addq %rbp, %rax
cmpq %rbx, %rax
ja 0x11ef5
movzbl (%r14,%r13), %eax
cmpl $0x71, %eax
movq %rdx, 0x8(%rsp)
movq %rsi, 0x10(%rsp)
jg 0x12085
cmpl $0x62, %eax
je 0x12144
cmpl $0x67, %eax
jne 0x12293
cmpb $0x58, 0x1(%r14,%r13)
jne 0x12293
cmpb $0x59, 0x2(%r14,%r13)
jne 0x12293
cmpb $0x5a, 0x3(%r14,%r13)
jne 0x12293
leaq 0xc(%rbp), %rax
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
cmpq %rbx, %rax
movss 0x63f87(%rip), %xmm2    # 0x75fa0
ja 0x1202d
movl 0x8(%r14,%rbp), %ecx
bswapl %ecx
xorps %xmm1, %xmm1
cvtsi2ss %ecx, %xmm1
mulss %xmm2, %xmm1
movss %xmm1, 0x64(%r15)
leaq 0x10(%rbp), %rcx
cmpq %rbx, %rcx
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rdi
ja 0x12057
movl (%r14,%rax), %eax
bswapl %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
mulss %xmm2, %xmm0
movss %xmm0, 0x68(%r15)
addq $0x14, %rbp
xorps %xmm0, %xmm0
cmpq %rbx, %rbp
ja 0x1207a
movl (%r14,%rcx), %eax
bswapl %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
mulss %xmm2, %xmm0
movss %xmm0, 0x6c(%r15)
jmp 0x12289
cmpl $0x72, %eax
je 0x121e9
cmpl $0x77, %eax
jne 0x12293
cmpb $0x74, 0x1(%r14,%r13)
jne 0x12293
cmpb $0x70, 0x2(%r14,%r13)
jne 0x12293
cmpb $0x74, 0x3(%r14,%r13)
jne 0x12293
leaq 0xc(%rbp), %rax
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
cmpq %rbx, %rax
movss 0x63ed0(%rip), %xmm2    # 0x75fa0
ja 0x120e4
movl 0x8(%r14,%rbp), %ecx
bswapl %ecx
xorps %xmm1, %xmm1
cvtsi2ss %ecx, %xmm1
mulss %xmm2, %xmm1
movss %xmm1, 0x48(%r15)
leaq 0x10(%rbp), %rcx
cmpq %rbx, %rcx
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rdi
ja 0x1210e
movl (%r14,%rax), %eax
bswapl %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
mulss %xmm2, %xmm0
movss %xmm0, 0x4c(%r15)
addq $0x14, %rbp
xorps %xmm0, %xmm0
cmpq %rbx, %rbp
ja 0x12131
movl (%r14,%rcx), %eax
bswapl %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
mulss %xmm2, %xmm0
movss %xmm0, 0x50(%r15)
movl $0x1, 0x44(%r15)
jmp 0x12304
cmpb $0x58, 0x1(%r14,%r13)
jne 0x12293
cmpb $0x59, 0x2(%r14,%r13)
jne 0x12293
cmpb $0x5a, 0x3(%r14,%r13)
jne 0x12293
leaq 0xc(%rbp), %rax
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
cmpq %rbx, %rax
movss 0x63e23(%rip), %xmm2    # 0x75fa0
ja 0x12191
movl 0x8(%r14,%rbp), %ecx
bswapl %ecx
xorps %xmm1, %xmm1
cvtsi2ss %ecx, %xmm1
mulss %xmm2, %xmm1
movss %xmm1, 0x70(%r15)
leaq 0x10(%rbp), %rcx
cmpq %rbx, %rcx
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rdi
ja 0x121bb
movl (%r14,%rax), %eax
bswapl %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
mulss %xmm2, %xmm0
movss %xmm0, 0x74(%r15)
addq $0x14, %rbp
xorps %xmm0, %xmm0
cmpq %rbx, %rbp
ja 0x121de
movl (%r14,%rcx), %eax
bswapl %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
mulss %xmm2, %xmm0
movss %xmm0, 0x78(%r15)
jmp 0x12289
cmpb $0x58, 0x1(%r14,%r13)
jne 0x12293
cmpb $0x59, 0x2(%r14,%r13)
jne 0x12293
cmpb $0x5a, 0x3(%r14,%r13)
jne 0x12293
leaq 0xc(%rbp), %rax
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
cmpq %rbx, %rax
movss 0x63d7e(%rip), %xmm2    # 0x75fa0
ja 0x12236
movl 0x8(%r14,%rbp), %ecx
bswapl %ecx
xorps %xmm1, %xmm1
cvtsi2ss %ecx, %xmm1
mulss %xmm2, %xmm1
movss %xmm1, 0x58(%r15)
leaq 0x10(%rbp), %rcx
cmpq %rbx, %rcx
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rdi
ja 0x12260
movl (%r14,%rax), %eax
bswapl %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
mulss %xmm2, %xmm0
movss %xmm0, 0x5c(%r15)
addq $0x14, %rbp
xorps %xmm0, %xmm0
cmpq %rbx, %rbp
ja 0x12283
movl (%r14,%rcx), %eax
bswapl %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
mulss %xmm2, %xmm0
movss %xmm0, 0x60(%r15)
movl $0x1, 0x54(%r15)
jmp 0x12304
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
leaq 0x63d9d(%rip), %rcx     # 0x76040
callq 0x13a12
testl %eax, %eax
je 0x12321
addq $0x8, %rbp
movl $0x9, %eax
movq 0x30(%rsp), %rcx
movq %rbp, %rdx
movss 0x63cdb(%rip), %xmm1    # 0x75fa0
movq 0x10(%rsp), %rdi
leaq 0x4(%rdx), %rbp
xorps %xmm0, %xmm0
cmpq %rbx, %rbp
ja 0x122e7
movl (%r14,%rdx), %edx
bswapl %edx
xorps %xmm0, %xmm0
cvtsi2ss %edx, %xmm0
mulss %xmm1, %xmm0
movss %xmm0, (%rcx)
addq $0x4, %rcx
movq %rbp, %rdx
decq %rax
jne 0x122ca
movl $0x1, 0x1c(%r15)
movq 0x8(%rsp), %rdx
cmpq %rbx, %rbp
ja 0x11ef5
incq %rdx
movq %rdi, %r13
cmpq %r12, %rdx
jne 0x11f68
jmp 0x12655
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
leaq 0x63d14(%rip), %rcx     # 0x76045
callq 0x13a12
testl %eax, %eax
jne 0x12389
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
leaq 0x63d00(%rip), %rcx     # 0x7604a
callq 0x13a12
testl %eax, %eax
jne 0x12389
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
leaq 0x63cec(%rip), %rcx     # 0x7604f
callq 0x13a12
testl %eax, %eax
jne 0x12389
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
leaq 0x63cd8(%rip), %rcx     # 0x76054
callq 0x13a12
testl %eax, %eax
je 0x125c0
movb (%r14,%r13), %al
xorl %r12d, %r12d
cmpb $0x67, %al
sete %r12b
cmpb $0x62, %al
movl $0x2, %eax
cmoveq %rax, %r12
movq %r14, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
leaq 0x63ca8(%rip), %rcx     # 0x76059
callq 0x13a12
testl %eax, %eax
je 0x12425
imulq $0x38, %r12, %rcx
addq 0x28(%rsp), %rcx
movl $0x1, 0x7c(%r15)
leaq 0xc(%rbp), %r13
cmpq %rbx, %r13
ja 0x123eb
movl 0x8(%r14,%rbp), %r15d
bswapl %r15d
cmpl $0x1, %r15d
je 0x123f3
testl %r15d, %r15d
jne 0x125cf
movl $0x0, (%rcx)
jmp 0x12428
movl $0x2, (%rcx)
addq $0xe, %rbp
xorps %xmm0, %xmm0
cmpq %rbx, %rbp
ja 0x12420
movzwl (%r14,%r13), %eax
rolw $0x8, %ax
movzwl %ax, %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
mulss 0x63b84(%rip), %xmm0    # 0x75fa4
movss %xmm0, 0x18(%rcx)
movq %rbp, %r13
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
leaq 0x63c26(%rip), %rcx     # 0x7605e
callq 0x13a12
testl %eax, %eax
je 0x125b3
movq 0x20(%rsp), %r15
movl $0x1, 0x7c(%r15)
leaq 0xa(%r13), %rax
xorl %ecx, %ecx
cmpq %rbx, %rax
movss 0x63b3d(%rip), %xmm2    # 0x75fa0
movq 0x10(%rsp), %rdi
ja 0x12481
movzwl 0x8(%r14,%r13), %eax
rolw $0x8, %ax
cmpw $0x4, %ax
ja 0x11ef5
movzwl %ax, %ecx
imulq $0x38, %r12, %rax
addq 0x28(%rsp), %rax
leal 0x2(%rcx), %edx
movl %edx, (%rax)
leaq 0x10(%r13), %rbp
xorps %xmm0, %xmm0
cmpq %rbx, %rbp
ja 0x124ad
movl 0xc(%r14,%r13), %edx
bswapl %edx
xorps %xmm0, %xmm0
cvtsi2ss %edx, %xmm0
mulss %xmm2, %xmm0
movss %xmm0, 0x18(%rax)
testl %ecx, %ecx
movq 0x18(%rsp), %r12
je 0x122ff
leaq 0x14(%r13), %rdx
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
cmpq %rbx, %rdx
ja 0x124df
movl (%r14,%rbp), %esi
bswapl %esi
xorps %xmm1, %xmm1
cvtsi2ss %esi, %xmm1
mulss %xmm2, %xmm1
movss %xmm1, 0x1c(%rax)
leaq 0x18(%r13), %rbp
cmpq %rbx, %rbp
ja 0x124fe
movl (%r14,%rdx), %edx
bswapl %edx
xorps %xmm0, %xmm0
cvtsi2ss %edx, %xmm0
mulss %xmm2, %xmm0
movss %xmm0, 0x20(%rax)
cmpl $0x1, %ecx
je 0x122ff
leaq 0x1c(%r13), %rdx
xorps %xmm0, %xmm0
cmpq %rbx, %rdx
ja 0x12529
movl (%r14,%rbp), %esi
bswapl %esi
xorps %xmm0, %xmm0
cvtsi2ss %esi, %xmm0
mulss %xmm2, %xmm0
movss %xmm0, 0x24(%rax)
cmpl $0x3, %ecx
jb 0x1264d
leaq 0x20(%r13), %rbp
xorps %xmm0, %xmm0
cmpq %rbx, %rbp
ja 0x12554
movl (%r14,%rdx), %edx
bswapl %edx
xorps %xmm0, %xmm0
cvtsi2ss %edx, %xmm0
mulss %xmm2, %xmm0
movss %xmm0, 0x28(%rax)
cmpl $0x4, %ecx
jne 0x122ff
leaq 0x24(%r13), %rcx
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
cmpq %rbx, %rcx
ja 0x12582
movl (%r14,%rbp), %edx
bswapl %edx
xorps %xmm1, %xmm1
cvtsi2ss %edx, %xmm1
mulss %xmm2, %xmm1
movss %xmm1, 0x2c(%rax)
addq $0x28, %r13
cmpq %rbx, %r13
movq 0x8(%rsp), %rdx
ja 0x125a6
movl (%r14,%rcx), %ecx
bswapl %ecx
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
mulss %xmm2, %xmm0
movss %xmm0, 0x30(%rax)
movq %r13, %rbp
jmp 0x12304
movq %r13, %rbp
movq 0x20(%rsp), %r15
movq 0x18(%rsp), %r12
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rdi
jmp 0x12304
movl $0x1, (%rcx)
cmpl $0x1000000, %r15d       # imm = 0x1000000
ja 0x11ef5
leaq (,%r15,2), %rax
addq %r13, %rax
cmpq %rbx, %rax
ja 0x11ef5
movq %r15, 0x10(%rcx)
leaq (,%r15,4), %rdi
movq %rcx, %rbp
callq 0x22b0
movq %rax, 0x8(%rbp)
movq %r13, %rcx
leaq 0x2(%rcx), %r13
xorps %xmm0, %xmm0
cmpq %rbx, %r13
ja 0x12638
movzwl (%r14,%rcx), %ecx
rolw $0x8, %cx
movzwl %cx, %ecx
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
mulss 0x63964(%rip), %xmm0    # 0x75f9c
movss %xmm0, (%rax)
addq $0x4, %rax
movq %r13, %rcx
decq %r15
jne 0x12611
jmp 0x12428
movq %rdx, %rbp
jmp 0x122ff
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq