// File: /workspace/github_cpp_makefile_star2_O3/Lut99[P]RayTracer/src/lib/LodePNG.cpp
// Function: lodepng_compute_color_stats(LodePNGColorStats*, unsigned char const*, unsigned int, unsigned int, LodePNGColorMode const*)
void lodepng_compute_color_stats(LodePNGColorStats* stats,
                                 const unsigned char* in, unsigned w, unsigned h,
                                 const LodePNGColorMode* mode_in) {
  size_t i;
  ColorTree tree;
  size_t numpixels = (size_t)w * (size_t)h;

  /* mark things as done already if it would be impossible to have a more expensive case */
  unsigned colored_done = lodepng_is_greyscale_type(mode_in) ? 1 : 0;
  unsigned alpha_done = lodepng_can_have_alpha(mode_in) ? 0 : 1;
  unsigned numcolors_done = 0;
  unsigned bpp = lodepng_get_bpp(mode_in);
  unsigned bits_done = (stats->bits == 1 && bpp == 1) ? 1 : 0;
  unsigned sixteen = 0; /* whether the input image is 16 bit */
  unsigned maxnumcolors = 257;
  if(bpp <= 8) maxnumcolors = LODEPNG_MIN(257, stats->numcolors + (1u << bpp));

  stats->numpixels += numpixels;

  /*if palette not allowed, no need to compute numcolors*/
  if(!stats->allow_palette) numcolors_done = 1;

  color_tree_init(&tree);

  /*If the stats was already filled in from previous data, fill its palette in tree
  and mark things as done already if we know they are the most expensive case already*/
  if(stats->alpha) alpha_done = 1;
  if(stats->colored) colored_done = 1;
  if(stats->bits == 16) numcolors_done = 1;
  if(stats->bits >= bpp) bits_done = 1;
  if(stats->numcolors >= maxnumcolors) numcolors_done = 1;

  if(!numcolors_done) {
    for(i = 0; i < stats->numcolors; i++) {
      const unsigned char* color = &stats->palette[i * 4];
      color_tree_add(&tree, color[0], color[1], color[2], color[3], (unsigned int) i);
    }
  }

  /*Check if the 16-bit input is truly 16-bit*/
  if(mode_in->bitdepth == 16 && !sixteen) {
    unsigned short r, g, b, a;
    for(i = 0; i != numpixels; ++i) {
      getPixelColorRGBA16(&r, &g, &b, &a, in, i, mode_in);
      if((r & 255) != ((r >> 8) & 255) || (g & 255) != ((g >> 8) & 255) ||
         (b & 255) != ((b >> 8) & 255) || (a & 255) != ((a >> 8) & 255)) /*first and second byte differ*/ {
        stats->bits = 16;
        sixteen = 1;
        bits_done = 1;
        numcolors_done = 1; /*counting colors no longer useful, palette doesn't support 16-bit*/
        break;
      }
    }
  }

  if(sixteen) {
    unsigned short r = 0, g = 0, b = 0, a = 0;

    for(i = 0; i != numpixels; ++i) {
      getPixelColorRGBA16(&r, &g, &b, &a, in, i, mode_in);

      if(!colored_done && (r != g || r != b)) {
        stats->colored = 1;
        colored_done = 1;
      }

      if(!alpha_done) {
        unsigned matchkey = (r == stats->key_r && g == stats->key_g && b == stats->key_b);
        if(a != 65535 && (a != 0 || (stats->key && !matchkey))) {
          stats->alpha = 1;
          stats->key = 0;
          alpha_done = 1;
        } else if(a == 0 && !stats->alpha && !stats->key) {
          stats->key = 1;
          stats->key_r = r;
          stats->key_g = g;
          stats->key_b = b;
        } else if(a == 65535 && stats->key && matchkey) {
          /* Color key cannot be used if an opaque pixel also has that RGB color. */
          stats->alpha = 1;
          stats->key = 0;
          alpha_done = 1;
        }
      }
      if(alpha_done && numcolors_done && colored_done && bits_done) break;
    }

    if(stats->key && !stats->alpha) {
      for(i = 0; i != numpixels; ++i) {
        getPixelColorRGBA16(&r, &g, &b, &a, in, i, mode_in);
        if(a != 0 && r == stats->key_r && g == stats->key_g && b == stats->key_b) {
          /* Color key cannot be used if an opaque pixel also has that RGB color. */
          stats->alpha = 1;
          stats->key = 0;
          alpha_done = 1;
        }
      }
    }
  } else /* < 16-bit */ {
    unsigned char r = 0, g = 0, b = 0, a = 0;
    for(i = 0; i != numpixels; ++i) {
      getPixelColorRGBA8(&r, &g, &b, &a, in, i, mode_in);

      if(!bits_done && stats->bits < 8) {
        /*only r is checked, < 8 bits is only relevant for grayscale*/
        unsigned bits = getValueRequiredBits(r);
        if(bits > stats->bits) stats->bits = bits;
      }
      bits_done = (stats->bits >= bpp);

      if(!colored_done && (r != g || r != b)) {
        stats->colored = 1;
        colored_done = 1;
        if(stats->bits < 8) stats->bits = 8; /*PNG has no colored modes with less than 8-bit per channel*/
      }

      if(!alpha_done) {
        unsigned matchkey = (r == stats->key_r && g == stats->key_g && b == stats->key_b);
        if(a != 255 && (a != 0 || (stats->key && !matchkey))) {
          stats->alpha = 1;
          stats->key = 0;
          alpha_done = 1;
          if(stats->bits < 8) stats->bits = 8; /*PNG has no alphachannel modes with less than 8-bit per channel*/
        } else if(a == 0 && !stats->alpha && !stats->key) {
          stats->key = 1;
          stats->key_r = r;
          stats->key_g = g;
          stats->key_b = b;
        } else if(a == 255 && stats->key && matchkey) {
          /* Color key cannot be used if an opaque pixel also has that RGB color. */
          stats->alpha = 1;
          stats->key = 0;
          alpha_done = 1;
          if(stats->bits < 8) stats->bits = 8; /*PNG has no alphachannel modes with less than 8-bit per channel*/
        }
      }

      if(!numcolors_done) {
        if(!color_tree_has(&tree, r, g, b, a)) {
          color_tree_add(&tree, r, g, b, a, stats->numcolors);
          if(stats->numcolors < 256) {
            unsigned char* p = stats->palette;
            unsigned n = stats->numcolors;
            p[n * 4 + 0] = r;
            p[n * 4 + 1] = g;
            p[n * 4 + 2] = b;
            p[n * 4 + 3] = a;
          }
          ++stats->numcolors;
          numcolors_done = stats->numcolors >= maxnumcolors;
        }
      }

      if(alpha_done && numcolors_done && colored_done && bits_done) break;
    }

    if(stats->key && !stats->alpha) {
      for(i = 0; i != numpixels; ++i) {
        getPixelColorRGBA8(&r, &g, &b, &a, in, i, mode_in);
        if(a != 0 && r == stats->key_r && g == stats->key_g && b == stats->key_b) {
          /* Color key cannot be used if an opaque pixel also has that RGB color. */
          stats->alpha = 1;
          stats->key = 0;
          alpha_done = 1;
          if(stats->bits < 8) stats->bits = 8; /*PNG has no alphachannel modes with less than 8-bit per channel*/
        }
      }
    }

    /*make the stats's key always 16-bit for consistency - repeat each byte twice*/
    stats->key_r += (stats->key_r << 8);
    stats->key_g += (stats->key_g << 8);
    stats->key_b += (stats->key_b << 8);
  }

  color_tree_cleanup(&tree);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %r8, %r12
movq %rsi, 0x40(%rsp)
movq %rdi, %r15
movl %edx, %ebx
movl %ecx, %eax
movq %rax, 0x28(%rsp)
movl (%r8), %r14d
movq %r8, %rdi
callq 0x67e80
movq %r12, 0x38(%rsp)
movl 0x4(%r12), %edx
xorl %r8d, %r8d
cmpq $0x6, %r14
ja 0x69aab
leaq 0x1f3f5(%rip), %rcx     # 0x88e9c
movl (%rcx,%r14,4), %r8d
movq 0x28(%rsp), %rcx
imulq %rbx, %rcx
movq %rcx, 0x28(%rsp)
xorl $0x1, %eax
imull %edx, %r8d
movl 0x418(%r15), %esi
movl %esi, %ecx
xorl $0x1, %ecx
movl %r8d, %edi
xorl $0x1, %edi
orl %ecx, %edi
sete %bl
movl 0x14(%r15), %r10d
movl $0x101, %r9d            # imm = 0x101
cmpl $0x8, %r8d
ja 0x69b02
movl $0x1, %r9d
movl %r8d, %ecx
shll %cl, %r9d
addl %r10d, %r9d
movl $0x101, %ecx            # imm = 0x101
cmpl %ecx, %r9d
cmovael %ecx, %r9d
testl $0xfffffffb, %r14d      # imm = 0xFFFFFFFB
sete %cl
movq 0x28(%rsp), %rdi
addq %rdi, 0x420(%r15)
cmpl $0x0, 0x428(%r15)
sete %dil
pxor %xmm0, %xmm0
movdqa %xmm0, 0xe0(%rsp)
movdqa %xmm0, 0xd0(%rsp)
movdqa %xmm0, 0xc0(%rsp)
movdqa %xmm0, 0xb0(%rsp)
movdqa %xmm0, 0xa0(%rsp)
movdqa %xmm0, 0x90(%rsp)
movdqa %xmm0, 0x80(%rsp)
movdqa %xmm0, 0x70(%rsp)
movl $0xffffffff, 0xf0(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x10(%r15)
movl $0x1, %r11d
cmovel %eax, %r11d
cmpl $0x0, (%r15)
setne %r12b
orb %cl, %r12b
cmpl $0x10, %esi
sete %bpl
movl %r8d, 0x34(%rsp)
cmpl %r8d, %esi
setae 0x17(%rsp)
cmpl %r9d, %r10d
setae %al
orb %dil, %bpl
orb %al, %bpl
movl %r9d, 0x5c(%rsp)
movl %r11d, 0x18(%rsp)
je 0x69bc5
movq %r10, 0x50(%rsp)
jmp 0x69c1f
testl %r10d, %r10d
je 0x69c16
xorl %r14d, %r14d
movq %r15, %r13
leaq 0x70(%rsp), %r15
movzbl 0x18(%r13,%r14,4), %esi
movzbl 0x19(%r13,%r14,4), %edx
movzbl 0x1a(%r13,%r14,4), %ecx
movzbl 0x1b(%r13,%r14,4), %r8d
movq %r15, %rdi
movl %r14d, %r9d
callq 0x69362
incq %r14
movl 0x14(%r13), %eax
cmpq %rax, %r14
jb 0x69bd5
movq %rax, 0x50(%rsp)
movq 0x38(%rsp), %rax
movl 0x4(%rax), %edx
movq %r13, %r15
jmp 0x69c1f
movq $0x0, 0x50(%rsp)
movzbl %r12b, %r12d
cmpl $0x10, %edx
movq %r15, 0x20(%rsp)
movl 0x34(%rsp), %r14d
jne 0x69cc5
cmpq $0x0, 0x28(%rsp)
je 0x69cc5
xorl %r13d, %r13d
movq 0x38(%rsp), %rax
movq %rax, (%rsp)
leaq 0x12(%rsp), %rdi
leaq 0xe(%rsp), %rsi
leaq 0x10(%rsp), %rdx
leaq 0x14(%rsp), %rcx
movq 0x40(%rsp), %r8
movq %r13, %r9
callq 0x69429
movzwl 0x12(%rsp), %eax
movzbl %al, %ecx
shrl $0x8, %eax
cmpl %eax, %ecx
jne 0x6a14e
movzwl 0xe(%rsp), %eax
movzbl %al, %ecx
shrl $0x8, %eax
cmpl %eax, %ecx
jne 0x6a14e
movzwl 0x10(%rsp), %eax
movzbl %al, %ecx
shrl $0x8, %eax
cmpl %eax, %ecx
jne 0x6a14e
movzwl 0x14(%rsp), %eax
movzbl %al, %ecx
shrl $0x8, %eax
cmpl %eax, %ecx
jne 0x6a14e
incq %r13
cmpq %r13, 0x28(%rsp)
jne 0x69c45
xorl %eax, %eax
movb %al, 0x12(%rsp)
movb %al, 0xe(%rsp)
movb %al, 0x10(%rsp)
movb %al, 0x14(%rsp)
cmpq $0x0, 0x28(%rsp)
je 0x6a037
orb %bl, 0x17(%rsp)
movzbl %bpl, %ebp
xorl %r13d, %r13d
movq 0x38(%rsp), %rax
movq %rax, (%rsp)
leaq 0x12(%rsp), %rdi
leaq 0xe(%rsp), %rsi
leaq 0x10(%rsp), %rdx
leaq 0x14(%rsp), %rcx
movq 0x40(%rsp), %r8
movq %r13, %r9
callq 0x695a8
movl 0x418(%r15), %r9d
cmpl $0x8, %r9d
setae %al
orb 0x17(%rsp), %al
testb $0x1, %al
je 0x69d35
leaq 0x70(%rsp), %rdi
jmp 0x69d83
movb 0x12(%rsp), %cl
leal 0x1(%rcx), %edx
movl $0x1, %eax
cmpb $0x2, %dl
jb 0x69d6f
movzbl %cl, %ecx
movl %ecx, %eax
shll $0x4, %eax
movl %ecx, %edx
subl %eax, %edx
movl $0x8, %eax
cmpb $0xf, %dl
ja 0x69d6f
leal (%rcx,%rcx,2), %eax
negl %eax
xorl %ecx, %ecx
cmpb $0x4, %al
setae %cl
leal 0x2(,%rcx,2), %eax
cmpl %r9d, %eax
leaq 0x70(%rsp), %rdi
jbe 0x69d83
movl %eax, 0x418(%r15)
movl %eax, %r9d
cmpl %r14d, %r9d
setae 0x17(%rsp)
movb $0x1, %r11b
movl %r9d, %eax
movb $0x1, %r10b
testl %r12d, %r12d
movl $0x1, %r12d
jne 0x69de7
movb 0x12(%rsp), %cl
cmpb 0xe(%rsp), %cl
jne 0x69dbb
xorl %r10d, %r10d
movl %r9d, %eax
movl $0x0, %r12d
cmpb 0x10(%rsp), %cl
je 0x69de7
movl $0x1, (%r15)
movl %r9d, %eax
movb $0x1, %r10b
movl $0x1, %r12d
cmpl $0x7, %r9d
ja 0x69de7
movl $0x8, 0x418(%r15)
movl $0x8, %eax
movb $0x1, %r10b
cmpl $0x0, 0x18(%rsp)
je 0x69e20
movb $0x1, %r11b
movl $0x1, 0x18(%rsp)
movl $0x1, %ecx
testl %ebp, %ebp
je 0x69e4f
andb %cl, %r11b
andb %r11b, %r10b
cmpb $0x1, %r10b
jne 0x69eb6
cmpl %r14d, %r9d
jb 0x69eb6
jmp 0x6a037
movzbl 0x12(%rsp), %ecx
cmpw %cx, 0x8(%r15)
jne 0x69ecb
movzbl 0xe(%rsp), %edx
cmpw %dx, 0xa(%r15)
jne 0x69ecb
movzbl 0x10(%rsp), %edx
cmpw %dx, 0xc(%r15)
sete %dl
jmp 0x69ecd
movl %r11d, 0x64(%rsp)
movl %r10d, 0x68(%rsp)
movl %r9d, 0x6c(%rsp)
movl %r12d, 0x4c(%rsp)
movb 0x12(%rsp), %al
movb 0xe(%rsp), %cl
movb 0x10(%rsp), %bl
movb 0x14(%rsp), %bpl
movb %al, 0x1e(%rsp)
movzbl %al, %r14d
movb %cl, 0x1f(%rsp)
movzbl %cl, %r15d
movzbl %bl, %ecx
movzbl %bpl, %r12d
movl %r14d, %esi
movl %r15d, %edx
movl %ecx, 0x60(%rsp)
movl %r12d, %r8d
callq 0x7081d
xorl %ecx, %ecx
testl %eax, %eax
js 0x69f59
movq 0x20(%rsp), %r15
movl 0x34(%rsp), %r14d
movl 0x4c(%rsp), %r12d
incq %r13
movl %ecx, %ebp
cmpq %r13, 0x28(%rsp)
jne 0x69cee
jmp 0x6a037
xorl %edx, %edx
movzbl 0x14(%rsp), %esi
cmpl $0xff, %esi
je 0x69ff0
testl %esi, %esi
jne 0x69f3b
movl 0x4(%r15), %esi
testl %esi, %esi
sete %r8b
orb %dl, %r8b
testb $0x1, %r8b
je 0x69f3b
xorl %r11d, %r11d
orl 0x10(%r15), %esi
movl $0x0, 0x18(%rsp)
jne 0x69df9
movl $0x1, 0x4(%r15)
movw %cx, 0x8(%r15)
movzbl 0xe(%rsp), %eax
movw %ax, 0xa(%r15)
movzbl 0x10(%rsp), %eax
movw %ax, 0xc(%r15)
xorl %r11d, %r11d
movl $0x0, 0x18(%rsp)
jmp 0x69df9
movl $0x1, 0x10(%r15)
movl $0x0, 0x4(%r15)
cmpl $0x7, %eax
ja 0x69df1
jmp 0x6a027
movb %bpl, 0x1c(%rsp)
movb %bl, 0x1d(%rsp)
leaq 0x70(%rsp), %rdi
movl %r14d, %esi
movl %r15d, %edx
movl 0x60(%rsp), %ecx
movl %r12d, %r8d
movq 0x50(%rsp), %r9
callq 0x69362
movq 0x20(%rsp), %r15
movl 0x14(%r15), %ecx
cmpq $0xff, %rcx
ja 0x69fbb
leal (,%rcx,4), %eax
movb 0x1e(%rsp), %dl
movb %dl, 0x18(%r15,%rcx,4)
movb 0x1f(%rsp), %dl
movb %dl, 0x19(%r15,%rax)
movb 0x1d(%rsp), %dl
movb %dl, 0x1a(%r15,%rax)
movb 0x1c(%rsp), %dl
movb %dl, 0x1b(%r15,%rax)
incl %ecx
movl %ecx, 0x14(%r15)
movq %rcx, %rax
xorl %ecx, %ecx
movq %rax, 0x50(%rsp)
cmpl 0x5c(%rsp), %eax
setae %cl
movl 0x34(%rsp), %r14d
movl 0x4c(%rsp), %r12d
movl 0x6c(%rsp), %r9d
movl 0x68(%rsp), %r10d
movl 0x64(%rsp), %r11d
jmp 0x69e02
cmpl $0x0, 0x4(%r15)
setne %cl
andb %dl, %cl
xorl %r11d, %r11d
movl $0x0, 0x18(%rsp)
cmpb $0x1, %cl
jne 0x69df9
movl $0x1, 0x10(%r15)
movl $0x0, 0x4(%r15)
cmpl $0x7, %eax
ja 0x69dee
movl $0x8, 0x418(%r15)
jmp 0x69dee
cmpl $0x0, 0x4(%r15)
je 0x6a108
cmpq $0x0, 0x28(%rsp)
sete %al
movq 0x20(%rsp), %rcx
cmpl $0x0, 0x10(%rcx)
setne %cl
orb %al, %cl
jne 0x6a108
xorl %r12d, %r12d
leaq 0x12(%rsp), %r13
leaq 0xe(%rsp), %rbp
leaq 0x10(%rsp), %r15
leaq 0x14(%rsp), %r14
movq 0x38(%rsp), %rax
movq %rax, (%rsp)
movq %r13, %rdi
movq %rbp, %rsi
movq %r15, %rdx
movq %r14, %rcx
movq 0x40(%rsp), %r8
movq %r12, %r9
callq 0x695a8
cmpb $0x0, 0x14(%rsp)
je 0x6a0fa
movzbl 0x12(%rsp), %eax
movq 0x20(%rsp), %rcx
cmpw %ax, 0x8(%rcx)
jne 0x6a0fa
movzbl 0xe(%rsp), %eax
movq 0x20(%rsp), %rcx
cmpw %ax, 0xa(%rcx)
jne 0x6a0fa
movzbl 0x10(%rsp), %eax
movq 0x20(%rsp), %rcx
cmpw %ax, 0xc(%rcx)
jne 0x6a0fa
movq 0x20(%rsp), %rax
movl $0x1, 0x10(%rax)
movl $0x0, 0x4(%rax)
cmpl $0x7, 0x418(%rax)
ja 0x6a0fa
movq 0x20(%rsp), %rax
movl $0x8, 0x418(%rax)
incq %r12
cmpq %r12, 0x28(%rsp)
jne 0x6a076
movq 0x20(%rsp), %rdx
movq 0x8(%rdx), %xmm0
movdqa %xmm0, %xmm1
psllw $0x8, %xmm1
paddw %xmm0, %xmm1
movd %xmm1, 0x8(%rdx)
movl 0xc(%rdx), %eax
movl %eax, %ecx
shll $0x8, %ecx
addl %eax, %ecx
movw %cx, 0xc(%rdx)
leaq 0x70(%rsp), %rdi
callq 0x6987a
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r12d, %r8d
movl $0x10, 0x418(%r15)
xorl %r12d, %r12d
leaq 0x12(%rsp), %rax
movw %r12w, (%rax)
leaq 0xe(%rsp), %rax
movw %r12w, (%rax)
leaq 0x10(%rsp), %r13
movw %r12w, (%r13)
leaq 0x14(%rsp), %rbp
movw %r12w, (%rbp)
movl 0x18(%rsp), %r14d
movl %r8d, %ebx
movq 0x38(%rsp), %rax
movq %rax, (%rsp)
leaq 0x12(%rsp), %rdi
leaq 0xe(%rsp), %rsi
movq %r13, %rdx
movq %rbp, %rcx
movq 0x40(%rsp), %r8
movq %r12, %r9
callq 0x69429
movl $0x1, %r8d
movb $0x1, %al
testl %ebx, %ebx
jne 0x6a1e9
movzwl 0x12(%rsp), %ecx
cmpw 0xe(%rsp), %cx
jne 0x6a1da
xorl %eax, %eax
movl $0x0, %r8d
cmpw 0x10(%rsp), %cx
je 0x6a1e9
movl $0x1, (%r15)
movb $0x1, %al
movl $0x1, %r8d
testl %r14d, %r14d
jne 0x6a28d
movzwl 0x12(%rsp), %ecx
cmpw 0x8(%r15), %cx
jne 0x6a219
movzwl 0xe(%rsp), %edx
cmpw 0xa(%r15), %dx
jne 0x6a219
movzwl 0x10(%rsp), %edx
cmpw 0xc(%r15), %dx
sete %dl
jmp 0x6a21b
xorl %edx, %edx
movzwl 0x14(%rsp), %esi
cmpl $0xffff, %esi           # imm = 0xFFFF
je 0x6a26b
testl %esi, %esi
jne 0x6a27d
movl 0x4(%r15), %esi
testl %esi, %esi
sete %dil
orb %dl, %dil
testb $0x1, %dil
je 0x6a27d
xorl %r14d, %r14d
orl 0x10(%r15), %esi
jne 0x6a297
movl $0x1, 0x4(%r15)
movw %cx, 0x8(%r15)
movzwl 0xe(%rsp), %eax
movw %ax, 0xa(%r15)
movzwl 0x10(%rsp), %eax
movw %ax, 0xc(%r15)
jmp 0x6a297
cmpl $0x0, 0x4(%r15)
setne %cl
andb %dl, %cl
xorl %r14d, %r14d
cmpb $0x1, %cl
jne 0x6a297
movl $0x1, 0x10(%r15)
movl $0x0, 0x4(%r15)
movl $0x1, %r14d
testb %al, %al
jne 0x6a2a5
incq %r12
cmpq %r12, 0x28(%rsp)
jne 0x6a18a
cmpl $0x0, 0x4(%r15)
je 0x6a132
movq 0x20(%rsp), %rax
cmpl $0x0, 0x10(%rax)
jne 0x6a132
xorl %r14d, %r14d
leaq 0x12(%rsp), %r15
leaq 0xe(%rsp), %r12
leaq 0x10(%rsp), %r13
leaq 0x14(%rsp), %rbp
movq 0x38(%rsp), %rax
movq %rax, (%rsp)
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %rbp, %rcx
movq 0x40(%rsp), %r8
movq %r14, %r9
callq 0x69429
cmpw $0x0, 0x14(%rsp)
je 0x6a343
movzwl 0x12(%rsp), %eax
movq 0x20(%rsp), %rcx
cmpw 0x8(%rcx), %ax
jne 0x6a343
movzwl 0xe(%rsp), %eax
movq 0x20(%rsp), %rcx
cmpw 0xa(%rcx), %ax
jne 0x6a343
movzwl 0x10(%rsp), %eax
movq 0x20(%rsp), %rcx
cmpw 0xc(%rcx), %ax
jne 0x6a343
movq 0x20(%rsp), %rax
movl $0x1, 0x10(%rax)
movl $0x0, 0x4(%rax)
incq %r14
cmpq %r14, 0x28(%rsp)
jne 0x6a2d6
jmp 0x6a132