// File: /workspace/github_cpp_makefile_star2_O3/lunasorcery[P]brailify/./stb/stb_image.h
// Function: stbi__create_png_image_raw(stbi__png*, unsigned char*, unsigned int, int, unsigned int, unsigned int, int, int)
static int stbi__create_png_image_raw(stbi__png *a, stbi_uc *raw, stbi__uint32 raw_len, int out_n, stbi__uint32 x, stbi__uint32 y, int depth, int color)
{
   int bytes = (depth == 16? 2 : 1);
   stbi__context *s = a->s;
   stbi__uint32 i,j,stride = x*out_n*bytes;
   stbi__uint32 img_len, img_width_bytes;
   int k;
   int img_n = s->img_n; // copy it into a local for later

   int output_bytes = out_n*bytes;
   int filter_bytes = img_n*bytes;
   int width = x;

   STBI_ASSERT(out_n == s->img_n || out_n == s->img_n+1);
   a->out = (stbi_uc *) stbi__malloc_mad3(x, y, output_bytes, 0); // extra bytes to write off the end into
   if (!a->out) return stbi__err("outofmem", "Out of memory");

   img_width_bytes = (((img_n * x * depth) + 7) >> 3);
   img_len = (img_width_bytes + 1) * y;
   if (s->img_x == x && s->img_y == y) {
      if (raw_len != img_len) return stbi__err("not enough pixels","Corrupt PNG");
   } else { // interlaced:
      if (raw_len < img_len) return stbi__err("not enough pixels","Corrupt PNG");
   }

   for (j=0; j < y; ++j) {
      stbi_uc *cur = a->out + stride*j;
      stbi_uc *prior = cur - stride;
      int filter = *raw++;

      if (filter > 4)
         return stbi__err("invalid filter","Corrupt PNG");

      if (depth < 8) {
         STBI_ASSERT(img_width_bytes <= x);
         cur += x*out_n - img_width_bytes; // store output to the rightmost img_len bytes, so we can decode in place
         filter_bytes = 1;
         width = img_width_bytes;
      }

      // if first row, use special filter that doesn't sample previous row
      if (j == 0) filter = first_row_filter[filter];

      // handle first byte explicitly
      for (k=0; k < filter_bytes; ++k) {
         switch (filter) {
            case STBI__F_none       : cur[k] = raw[k]; break;
            case STBI__F_sub        : cur[k] = raw[k]; break;
            case STBI__F_up         : cur[k] = STBI__BYTECAST(raw[k] + prior[k]); break;
            case STBI__F_avg        : cur[k] = STBI__BYTECAST(raw[k] + (prior[k]>>1)); break;
            case STBI__F_paeth      : cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(0,prior[k],0)); break;
            case STBI__F_avg_first  : cur[k] = raw[k]; break;
            case STBI__F_paeth_first: cur[k] = raw[k]; break;
         }
      }

      if (depth == 8) {
         if (img_n != out_n)
            cur[img_n] = 255; // first pixel
         raw += img_n;
         cur += out_n;
         prior += out_n;
      } else if (depth == 16) {
         if (img_n != out_n) {
            cur[filter_bytes]   = 255; // first pixel top byte
            cur[filter_bytes+1] = 255; // first pixel bottom byte
         }
         raw += filter_bytes;
         cur += output_bytes;
         prior += output_bytes;
      } else {
         raw += 1;
         cur += 1;
         prior += 1;
      }

      // this is a little gross, so that we don't switch per-pixel or per-component
      if (depth < 8 || img_n == out_n) {
         int nk = (width - 1)*filter_bytes;
         #define STBI__CASE(f) \
             case f:     \
                for (k=0; k < nk; ++k)
         switch (filter) {
            // "none" filter turns into a memcpy here; make that explicit.
            case STBI__F_none:         memcpy(cur, raw, nk); break;
            STBI__CASE(STBI__F_sub)          { cur[k] = STBI__BYTECAST(raw[k] + cur[k-filter_bytes]); } break;
            STBI__CASE(STBI__F_up)           { cur[k] = STBI__BYTECAST(raw[k] + prior[k]); } break;
            STBI__CASE(STBI__F_avg)          { cur[k] = STBI__BYTECAST(raw[k] + ((prior[k] + cur[k-filter_bytes])>>1)); } break;
            STBI__CASE(STBI__F_paeth)        { cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-filter_bytes],prior[k],prior[k-filter_bytes])); } break;
            STBI__CASE(STBI__F_avg_first)    { cur[k] = STBI__BYTECAST(raw[k] + (cur[k-filter_bytes] >> 1)); } break;
            STBI__CASE(STBI__F_paeth_first)  { cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-filter_bytes],0,0)); } break;
         }
         #undef STBI__CASE
         raw += nk;
      } else {
         STBI_ASSERT(img_n+1 == out_n);
         #define STBI__CASE(f) \
             case f:     \
                for (i=x-1; i >= 1; --i, cur[filter_bytes]=255,raw+=filter_bytes,cur+=output_bytes,prior+=output_bytes) \
                   for (k=0; k < filter_bytes; ++k)
         switch (filter) {
            STBI__CASE(STBI__F_none)         { cur[k] = raw[k]; } break;
            STBI__CASE(STBI__F_sub)          { cur[k] = STBI__BYTECAST(raw[k] + cur[k- output_bytes]); } break;
            STBI__CASE(STBI__F_up)           { cur[k] = STBI__BYTECAST(raw[k] + prior[k]); } break;
            STBI__CASE(STBI__F_avg)          { cur[k] = STBI__BYTECAST(raw[k] + ((prior[k] + cur[k- output_bytes])>>1)); } break;
            STBI__CASE(STBI__F_paeth)        { cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k- output_bytes],prior[k],prior[k- output_bytes])); } break;
            STBI__CASE(STBI__F_avg_first)    { cur[k] = STBI__BYTECAST(raw[k] + (cur[k- output_bytes] >> 1)); } break;
            STBI__CASE(STBI__F_paeth_first)  { cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k- output_bytes],0,0)); } break;
         }
         #undef STBI__CASE

         // the loop above sets the high byte of the pixels' alpha, but for
         // 16 bit png files we also need the low byte set. we'll do that here.
         if (depth == 16) {
            cur = a->out + stride*j; // start at the beginning of the row again
            for (i=0; i < x; ++i,cur+=output_bytes) {
               cur[filter_bytes+1] = 255;
            }
         }
      }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movl %ecx, %r10d
movq %rdi, %r15
cmpl $0x10, 0x10(%rbp)
sete %cl
movl %r8d, %eax
imull %r10d, %eax
movl %eax, -0x58(%rbp)
shll %cl, %eax
movl %eax, -0x48(%rbp)
movq (%rdi), %rax
movq %rax, -0x78(%rbp)
movl 0x8(%rax), %edi
movl %r10d, %r13d
shll %cl, %r13d
movl %edi, %eax
shll %cl, %eax
movl %eax, -0x40(%rbp)
movl %edx, -0x50(%rbp)
cmpl %r10d, %edi
sete %al
movq %rdi, -0x70(%rbp)
leal 0x1(%rdi), %ecx
movl %r10d, -0x38(%rbp)
movl %ecx, -0x9c(%rbp)
cmpl %r10d, %ecx
sete %cl
orb %al, %cl
je 0xfd2c
movl %r8d, %r14d
movq %rsi, %rbx
movl $0x0, -0x44(%rbp)
movl %r8d, %edi
movl %r9d, %esi
movl %r13d, %edx
xorl %ecx, %ecx
movl %r9d, %r12d
callq 0xcc5a
movq %rax, 0x18(%r15)
testq %rax, %rax
je 0xf907
movq -0x70(%rbp), %rdx
movl %edx, %esi
imull %r14d, %esi
movl %esi, %eax
imull 0x10(%rbp), %eax
addl $0x7, %eax
shrl $0x3, %eax
movq %rax, -0x80(%rbp)
incl %eax
imull %r12d, %eax
movq -0x78(%rbp), %rcx
cmpl %r14d, (%rcx)
movq %r14, %rdi
jne 0xf238
cmpl %r12d, 0x4(%rcx)
jne 0xf238
cmpl -0x50(%rbp), %eax
movl -0x38(%rbp), %ecx
je 0xf240
leaq 0x8017(%rip), %r9       # 0x1724a
jmp 0xf90e
cmpl -0x50(%rbp), %eax
movl -0x38(%rbp), %ecx
ja 0xf22c
movl %r12d, -0x54(%rbp)
testl %r12d, %r12d
je 0xf92a
cmpl %ecx, %edx
sete %al
movl 0x10(%rbp), %r14d
cmpl $0x8, %r14d
setl %r10b
movb (%rbx), %r8b
leaq 0x7ff4(%rip), %r9       # 0x1725c
cmpb $0x4, %r8b
ja 0xf90e
movl %esi, -0x34(%rbp)
movslq %edx, %rdx
movq %rdx, -0xa8(%rbp)
movl -0x48(%rbp), %r9d
movl -0x58(%rbp), %edx
subl -0x80(%rbp), %edx
movq %rdx, -0xc0(%rbp)
movslq %r13d, %r13
movslq %ecx, %rcx
movq %rcx, -0xc8(%rbp)
orb %al, %r10b
movb %r10b, -0x2d(%rbp)
leal -0x1(%rdi), %eax
movl %eax, -0x2c(%rbp)
movl -0x54(%rbp), %eax
movq %rax, -0x90(%rbp)
movq 0x18(%r15), %rsi
movq %r13, %rax
negq %rax
movq %rax, -0x60(%rbp)
subq %r9, %rax
movq %rax, -0xb8(%rbp)
negq %r9
movq %r9, -0xd0(%rbp)
xorl %r9d, %r9d
movl %edi, %eax
movq %rax, -0xb0(%rbp)
xorl %edx, %edx
movq %r15, -0x68(%rbp)
movq %rdi, -0x88(%rbp)
movl -0x40(%rbp), %r12d
movq %r13, -0x78(%rbp)
movq %rsi, %rax
cmpl $0x7, %r14d
jg 0xf323
movq -0x80(%rbp), %rcx
cmpl %edi, %ecx
ja 0xfd6a
movq -0xc0(%rbp), %rax
addq %rsi, %rax
movl $0x1, %r12d
movq %rcx, -0xb0(%rbp)
movq %rdx, -0x98(%rbp)
testq %rdx, %rdx
movq %r9, -0xd8(%rbp)
jne 0xf345
movzbl %r8b, %ecx
leaq 0x721b(%rip), %rdx      # 0x1655c
movb (%rcx,%rdx), %r8b
movq -0xd0(%rbp), %rcx
leaq (%rsi,%rcx), %r9
leaq 0x1(%rbx), %rdx
movzbl %r8b, %r11d
testl %r12d, %r12d
jle 0xf39c
movl %r12d, %edi
xorl %r10d, %r10d
cmpb $0x6, %r8b
ja 0xf394
leaq 0x6ed8(%rip), %r15      # 0x16248
movslq (%r15,%r11,4), %rcx
addq %r15, %rcx
jmpq *%rcx
movb (%rdx,%r10), %r15b
jmp 0xf390
movb (%r9,%r10), %r15b
jmp 0xf38c
movb (%r9,%r10), %r15b
shrb %r15b
addb (%rdx,%r10), %r15b
movb %r15b, (%rax,%r10)
incq %r10
cmpq %r10, %rdi
jne 0xf363
cmpl $0x8, %r14d
jne 0xf3c6
movq -0x70(%rbp), %rcx
cmpl -0x38(%rbp), %ecx
je 0xf3b6
movq -0xa8(%rbp), %rcx
movb $-0x1, (%rax,%rcx)
addq -0xa8(%rbp), %rdx
movq -0xc8(%rbp), %r10
jmp 0xf3ea
cmpl $0x10, %r14d
jne 0xf3ef
movslq %r12d, %rcx
movq -0x70(%rbp), %rdi
cmpl -0x38(%rbp), %edi
je 0xf3e4
movb $-0x1, %dil
movb %dil, (%rax,%rcx)
movb %dil, 0x1(%rcx,%rax)
addq %rcx, %rdx
movq %r13, %r10
movq %rdx, %rbx
jmp 0xf3f9
addq $0x2, %rbx
movl $0x1, %r10d
leaq (%rax,%r10), %rdi
leaq (%r9,%r10), %rdx
cmpb $0x0, -0x2d(%rbp)
movl %r12d, -0x40(%rbp)
je 0xf44a
movq -0xb0(%rbp), %rcx
decl %ecx
imull %r12d, %ecx
movslq %ecx, %rsi
movq %rsi, -0x50(%rbp)
cmpb $0x6, %r8b
ja 0xf60f
leaq 0x6e50(%rip), %r8       # 0x16280
movslq (%r8,%r11,4), %rsi
addq %r8, %rsi
jmpq *%rsi
movq %rbx, %rsi
movq -0x50(%rbp), %rdx
callq 0x10a0
jmp 0xf60f
movl -0x9c(%rbp), %ecx
cmpl -0x38(%rbp), %ecx
jne 0xfd4b
cmpb $0x6, %r8b
ja 0xf879
leaq 0x6dfa(%rip), %r8       # 0x16264
movslq (%r8,%r11,4), %rcx
addq %r8, %rcx
jmpq *%rcx
movl -0x2c(%rbp), %esi
testl %esi, %esi
je 0xf879
movslq %r12d, %rax
movl %r12d, %edx
testl %r12d, %r12d
jle 0xf49b
xorl %ecx, %ecx
movb (%rbx,%rcx), %r8b
movb %r8b, (%rdi,%rcx)
incq %rcx
cmpq %rcx, %rdx
jne 0xf48b
movb $-0x1, (%rdi,%rax)
addq %rax, %rbx
addq %r13, %rdi
decl %esi
jne 0xf484
jmp 0xf879
testl %ecx, %ecx
jle 0xf60f
movslq -0x40(%rbp), %rsi
movl %ecx, %ecx
subq %rsi, %r10
addq %r10, %rax
addq %r10, %r9
xorl %esi, %esi
movzbl (%rax,%rsi), %r8d
movzbl (%rdx,%rsi), %r11d
movzbl (%r9,%rsi), %r10d
leal (%r11,%r8), %r13d
subl %r10d, %r13d
movl %r13d, %r14d
subl %r8d, %r14d
movl %r14d, %r15d
negl %r15d
cmovsl %r14d, %r15d
movl %r13d, %r14d
subl %r11d, %r14d
movl %r14d, %r12d
negl %r12d
cmovsl %r14d, %r12d
subl %r10d, %r13d
movl %r13d, %r14d
negl %r14d
cmovsl %r13d, %r14d
cmpl %r14d, %r12d
ja 0xf512
movl %r11d, %r10d
cmpl %r14d, %r15d
cmoval %r10d, %r8d
cmpl %r12d, %r15d
cmoval %r10d, %r8d
addb (%rbx,%rsi), %r8b
movb %r8b, (%rdi,%rsi)
incq %rsi
cmpq %rsi, %rcx
movq -0x78(%rbp), %r13
jne 0xf4c7
jmp 0xf60f
testl %ecx, %ecx
jle 0xf60f
movl %ecx, %eax
xorl %ecx, %ecx
movb (%rdx,%rcx), %sil
addb (%rbx,%rcx), %sil
movb %sil, (%rdi,%rcx)
incq %rcx
cmpq %rcx, %rax
jne 0xf545
jmp 0xf60f
testl %ecx, %ecx
jle 0xf60f
movslq -0x40(%rbp), %rsi
movl %ecx, %ecx
subq %rsi, %r10
addq %r10, %rax
xorl %esi, %esi
movzbl (%rdx,%rsi), %r8d
movzbl (%rax,%rsi), %r9d
addl %r8d, %r9d
shrl %r9d
addb (%rbx,%rsi), %r9b
movb %r9b, (%rdi,%rsi)
incq %rsi
cmpq %rsi, %rcx
jne 0xf574
jmp 0xf60f
testl %ecx, %ecx
jle 0xf60f
movslq -0x40(%rbp), %rdx
movl %ecx, %ecx
subq %rdx, %r10
addq %r10, %rax
xorl %edx, %edx
movb (%rax,%rdx), %sil
addb (%rbx,%rdx), %sil
movb %sil, (%rdi,%rdx)
incq %rdx
cmpq %rdx, %rcx
jne 0xf5a8
jmp 0xf60f
testl %ecx, %ecx
jle 0xf60f
movslq -0x40(%rbp), %rdx
movl %ecx, %ecx
subq %rdx, %r10
addq %r10, %rax
xorl %edx, %edx
movb (%rax,%rdx), %sil
shrb %sil
addb (%rbx,%rdx), %sil
movb %sil, (%rdi,%rdx)
incq %rdx
cmpq %rdx, %rcx
jne 0xf5d0
jmp 0xf60f
testl %ecx, %ecx
jle 0xf60f
movslq -0x40(%rbp), %rdx
movl %ecx, %ecx
subq %rdx, %r10
addq %r10, %rax
xorl %edx, %edx
movb (%rax,%rdx), %sil
addb (%rbx,%rdx), %sil
movb %sil, (%rdi,%rdx)
incq %rdx
cmpq %rdx, %rcx
jne 0xf5fb
addq -0x50(%rbp), %rbx
movq -0x68(%rbp), %r15
movq -0x88(%rbp), %rdi
movl 0x10(%rbp), %r14d
movl -0x40(%rbp), %r12d
jmp 0xf8c2
movl -0x2c(%rbp), %ecx
testl %ecx, %ecx
je 0xf879
movslq %r12d, %r8
movq %r8, -0xe0(%rbp)
movl %r12d, %r9d
addq -0x60(%rbp), %rax
addq %r10, %rax
addq -0xb8(%rbp), %rsi
addq %r10, %rsi
movl %ecx, -0x50(%rbp)
testl %r12d, %r12d
jle 0xf6c8
xorl %r11d, %r11d
movzbl (%rax,%r11), %r13d
movzbl (%rdx,%r11), %ecx
movzbl (%rsi,%r11), %r15d
leal (%rcx,%r13), %r14d
subl %r15d, %r14d
movl %r14d, %r8d
subl %r13d, %r8d
movl %r8d, %r12d
negl %r12d
cmovsl %r8d, %r12d
movl %r14d, %r10d
subl %ecx, %r10d
movl %r10d, %r8d
negl %r8d
cmovsl %r10d, %r8d
subl %r15d, %r14d
movl %r14d, %r10d
negl %r10d
cmovsl %r14d, %r10d
cmpl %r10d, %r8d
ja 0xf6aa
movl %ecx, %r15d
cmpl %r10d, %r12d
cmoval %r15d, %r13d
cmpl %r8d, %r12d
cmoval %r15d, %r13d
addb (%rbx,%r11), %r13b
movb %r13b, (%rdi,%r11)
incq %r11
cmpq %r11, %r9
jne 0xf65f
movq -0xe0(%rbp), %rcx
movb $-0x1, (%rdi,%rcx)
addq %rcx, %rbx
movq -0x78(%rbp), %r13
addq %r13, %rdi
addq %r13, %rdx
addq %r13, %rax
addq %r13, %rsi
movl -0x50(%rbp), %ecx
decl %ecx
movl 0x10(%rbp), %r14d
movl -0x40(%rbp), %r12d
jne 0xf654
jmp 0xf879
movl -0x2c(%rbp), %r8d
testl %r8d, %r8d
je 0xf879
movslq %r12d, %rax
movl %r12d, %esi
testl %r12d, %r12d
jle 0xf72c
xorl %ecx, %ecx
movb (%rdx,%rcx), %r9b
addb (%rbx,%rcx), %r9b
movb %r9b, (%rdi,%rcx)
incq %rcx
cmpq %rcx, %rsi
jne 0xf718
movb $-0x1, (%rdi,%rax)
addq %rax, %rbx
addq %r13, %rdi
addq %r13, %rdx
decl %r8d
jne 0xf711
jmp 0xf879
movl -0x2c(%rbp), %r9d
testl %r9d, %r9d
je 0xf879
movslq %r12d, %rsi
movl %r12d, %r8d
addq -0x60(%rbp), %rax
addq %r10, %rax
testl %r12d, %r12d
jle 0xf784
xorl %ecx, %ecx
movzbl (%rdx,%rcx), %r10d
movzbl (%rax,%rcx), %r11d
addl %r10d, %r11d
shrl %r11d
addb (%rbx,%rcx), %r11b
movb %r11b, (%rdi,%rcx)
incq %rcx
cmpq %rcx, %r8
jne 0xf764
movb $-0x1, (%rdi,%rsi)
addq %rsi, %rbx
addq %r13, %rdi
addq %r13, %rdx
addq %r13, %rax
decl %r9d
jne 0xf75d
jmp 0xf879
movl -0x2c(%rbp), %r8d
testl %r8d, %r8d
je 0xf879
movslq %r12d, %rdx
movl %r12d, %esi
addq -0x60(%rbp), %rax
addq %r10, %rax
testl %r12d, %r12d
jle 0xf7d3
xorl %ecx, %ecx
movb (%rax,%rcx), %r9b
addb (%rbx,%rcx), %r9b
movb %r9b, (%rdi,%rcx)
incq %rcx
cmpq %rcx, %rsi
jne 0xf7bf
movb $-0x1, (%rdi,%rdx)
addq %rdx, %rbx
addq %r13, %rdi
addq %r13, %rax
decl %r8d
jne 0xf7b8
jmp 0xf879
movl -0x2c(%rbp), %r8d
testl %r8d, %r8d
je 0xf879
movslq %r12d, %rdx
movl %r12d, %esi
addq -0x60(%rbp), %rax
addq %r10, %rax
testl %r12d, %r12d
jle 0xf822
xorl %ecx, %ecx
movb (%rax,%rcx), %r9b
shrb %r9b
addb (%rbx,%rcx), %r9b
movb %r9b, (%rdi,%rcx)
incq %rcx
cmpq %rcx, %rsi
jne 0xf80b
movb $-0x1, (%rdi,%rdx)
addq %rdx, %rbx
addq %r13, %rdi
addq %r13, %rax
decl %r8d
jne 0xf804
jmp 0xf879
movl -0x2c(%rbp), %r8d
testl %r8d, %r8d
je 0xf879
movslq %r12d, %rdx
movl %r12d, %esi
addq -0x60(%rbp), %rax
addq %r10, %rax
testl %r12d, %r12d
jle 0xf867
xorl %ecx, %ecx
movb (%rax,%rcx), %r9b
addb (%rbx,%rcx), %r9b
movb %r9b, (%rdi,%rcx)
incq %rcx
cmpq %rcx, %rsi
jne 0xf853
movb $-0x1, (%rdi,%rdx)
addq %rdx, %rbx
addq %r13, %rdi
addq %r13, %rax
decl %r8d
jne 0xf84c
cmpl $0x10, %r14d
jne 0xf8b7
movq -0x88(%rbp), %rdi
testl %edi, %edi
movq -0x68(%rbp), %r15
movq -0x98(%rbp), %rdx
je 0xf8f9
movq 0x18(%r15), %rax
movslq %r12d, %rcx
addq -0xd8(%rbp), %rcx
addq %rcx, %rax
incq %rax
movl %edi, %ecx
movb $-0x1, (%rax)
addq %r13, %rax
decl %ecx
jne 0xf8ab
jmp 0xf8c9
movq -0x68(%rbp), %r15
movq -0x88(%rbp), %rdi
movq -0x98(%rbp), %rdx
incq %rdx
cmpq -0x90(%rbp), %rdx
je 0xf968
movl -0x48(%rbp), %eax
movl %eax, %r9d
imull %edx, %r9d
movq 0x18(%r15), %rsi
addq %r9, %rsi
movb (%rbx), %r8b
cmpb $0x5, %r8b
jb 0xf2f7
jmp 0xf95f
incq %rdx
cmpq -0x90(%rbp), %rdx
jne 0xf8d9
jmp 0xf937
leaq 0x761a(%rip), %r9       # 0x16f28
movq %r9, 0xc8ab(%rip)       # 0x1c1c0
movl -0x44(%rbp), %eax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, -0x44(%rbp)
cmpl $0x10, 0x10(%rbp)
jne 0xf915
movl -0x58(%rbp), %ecx
imull -0x54(%rbp), %ecx
movl $0x1, -0x44(%rbp)
testl %ecx, %ecx
je 0xf915
movq 0x18(%r15), %rax
movl %ecx, %ecx
xorl %edx, %edx
rolw $0x8, (%rax,%rdx,2)
incq %rdx
cmpl %edx, %ecx
jne 0xf951
jmp 0xf915
leaq 0x78f6(%rip), %r9       # 0x1725c
jmp 0xf90e
cmpl $0x8, %r14d
jge 0xfd16
movl $0x1, -0x44(%rbp)
cmpl $0x0, -0x54(%rbp)
je 0xf915
movl -0x58(%rbp), %eax
movl -0x80(%rbp), %ecx
movslq %r14d, %rdx
decl %edi
movq %rax, %rsi
subq %rcx, %rsi
negq %rcx
leaq (%rdi,%rdi,2), %r8
addq $0x2, %r8
movq %r8, -0x40(%rbp)
movq %rdi, %r10
leaq 0x1(%rdi), %r8
xorl %r9d, %r9d
addq %rax, %rcx
xorl %r11d, %r11d
xorl %ebx, %ebx
movb $0x1, %r14b
cmpl $0x0, 0x18(%rbp)
jne 0xf9c5
leaq 0x6b0f(%rip), %rax      # 0x164d0
movb (%rdx,%rax), %r14b
movq 0x18(%r15), %r12
movl -0x48(%rbp), %eax
movl %eax, %r13d
imull %ebx, %r13d
addq %r12, %r13
leaq (%rcx,%r13), %r15
movl %r11d, %r11d
movl 0x10(%rbp), %eax
cmpl $0x4, %eax
je 0xfc21
cmpl $0x2, %eax
je 0xfb76
cmpl $0x1, %eax
jne 0xfc7a
movl -0x34(%rbp), %edi
movl %edi, %eax
cmpl $0x8, %edi
jl 0xfabc
leaq (%r12,%rsi), %r15
movl -0x34(%rbp), %eax
movl %eax, %r13d
movb (%r15,%r11), %al
sarb $0x7, %al
andb %r14b, %al
movb %al, (%r12,%r11)
movb (%r15,%r11), %al
addb %al, %al
sarb $0x7, %al
andb %r14b, %al
movb %al, 0x1(%r12,%r11)
movb (%r15,%r11), %al
shlb $0x2, %al
sarb $0x7, %al
andb %r14b, %al
movb %al, 0x2(%r12,%r11)
movb (%r15,%r11), %al
shlb $0x3, %al
sarb $0x7, %al
andb %r14b, %al
movb %al, 0x3(%r12,%r11)
movb (%r15,%r11), %al
shlb $0x4, %al
sarb $0x7, %al
andb %r14b, %al
movb %al, 0x4(%r12,%r11)
movb (%r15,%r11), %al
shlb $0x5, %al
sarb $0x7, %al
andb %r14b, %al
movb %al, 0x5(%r12,%r11)
movb (%r15,%r11), %al
shlb $0x6, %al
sarb $0x7, %al
andb %r14b, %al
movb %al, 0x6(%r12,%r11)
testb $0x1, (%r15,%r11)
movzbl %r14b, %eax
cmovel %r9d, %eax
movb %al, 0x7(%r12,%r11)
leal -0x8(%r13), %eax
incq %r15
addq $0x8, %r12
cmpl $0xf, %r13d
ja 0xfa10
addq %r11, %r15
addq %r11, %r12
movq %r12, %r13
testl %eax, %eax
jle 0xfc7a
movb (%r15), %dil
sarb $0x7, %dil
andb %r14b, %dil
movb %dil, (%r13)
cmpl $0x1, %eax
je 0xfc7a
movb (%r15), %dil
addb %dil, %dil
sarb $0x7, %dil
andb %r14b, %dil
movb %dil, 0x1(%r13)
cmpl $0x3, %eax
jb 0xfc7a
movb (%r15), %dil
shlb $0x2, %dil
sarb $0x7, %dil
andb %r14b, %dil
movb %dil, 0x2(%r13)
cmpl $0x3, %eax
je 0xfc7a
movb (%r15), %dil
shlb $0x3, %dil
sarb $0x7, %dil
andb %r14b, %dil
movb %dil, 0x3(%r13)
cmpl $0x5, %eax
jb 0xfc7a
movb (%r15), %dil
shlb $0x4, %dil
sarb $0x7, %dil
andb %r14b, %dil
movb %dil, 0x4(%r13)
cmpl $0x5, %eax
je 0xfc7a
movb (%r15), %dil
shlb $0x5, %dil
sarb $0x7, %dil
andb %r14b, %dil
movb %dil, 0x5(%r13)
cmpl $0x7, %eax
jne 0xfc7a
movb (%r15), %al
shlb $0x6, %al
sarb $0x7, %al
andb %r14b, %al
movb %al, 0x6(%r13)
jmp 0xfc7a
movl -0x34(%rbp), %eax
movl %eax, %edi
cmpl $0x4, %eax
jl 0xfbe2
leaq (%r12,%rsi), %r15
movl -0x34(%rbp), %edi
movl %edi, %r13d
movb (%r15,%r11), %al
shrb $0x6, %al
mulb %r14b
movb %al, (%r12,%r11)
movb (%r15,%r11), %al
shrb $0x4, %al
andb $0x3, %al
mulb %r14b
movb %al, 0x1(%r12,%r11)
movb (%r15,%r11), %al
shrb $0x2, %al
andb $0x3, %al
mulb %r14b
movb %al, 0x2(%r12,%r11)
movb (%r15,%r11), %al
andb $0x3, %al
mulb %r14b
movb %al, 0x3(%r12,%r11)
leal -0x4(%r13), %edi
incq %r15
addq $0x4, %r12
cmpl $0x7, %r13d
ja 0xfb87
addq %r11, %r15
addq %r11, %r12
movq %r12, %r13
testl %edi, %edi
jle 0xfc7a
movb (%r15), %al
shrb $0x6, %al
mulb %r14b
movb %al, (%r13)
cmpl $0x1, %edi
je 0xfc7a
movb (%r15), %al
shrb $0x4, %al
andb $0x3, %al
mulb %r14b
movb %al, 0x1(%r13)
cmpl $0x3, %edi
jne 0xfc7a
movb (%r15), %al
shrb $0x2, %al
andb $0x3, %al
mulb %r14b
movb %al, 0x2(%r13)
jmp 0xfc7a
movl -0x34(%rbp), %edi
movl %edi, %eax
cmpl $0x2, %edi
jl 0xfc68
leaq (%r12,%rsi), %r15
movl -0x34(%rbp), %eax
movl %eax, %edi
movb (%r15,%r11), %al
shrb $0x4, %al
mulb %r14b
movb %al, (%r12,%r11)
movb (%r15,%r11), %al
andb $0xf, %al
mulb %r14b
movb %al, 0x1(%r12,%r11)
leal -0x2(%rdi), %eax
incq %r15
addq $0x2, %r12
cmpl $0x3, %edi
ja 0xfc32
addq %r11, %r15
addq %r11, %r12
movq %r12, %r13
cmpl $0x1, %eax
jne 0xfc7a
movb (%r15), %al
shrb $0x4, %al
mulb %r14b
movb %al, (%r13)
movq -0x70(%rbp), %rax
cmpl -0x38(%rbp), %eax
je 0xfcf9
movq -0x68(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x70(%rbp), %rdi
cmpl $0x1, %edi
je 0xfcda
cmpl $0x3, %edi
jne 0xfd89
testl %r10d, %r10d
js 0xfcf9
addq %r11, %rax
movq -0x40(%rbp), %rdi
addq %rax, %rdi
movq %r8, %r14
movb $-0x1, -0x1(%rax,%r14,4)
movb (%rdi), %r15b
movb %r15b, -0x2(%rax,%r14,4)
movb -0x1(%rdi), %r15b
movb %r15b, -0x3(%rax,%r14,4)
movb -0x2(%rdi), %r15b
movb %r15b, -0x4(%rax,%r14,4)
addq $-0x3, %rdi
decq %r14
jg 0xfcaf
jmp 0xfcf9
testl %r10d, %r10d
js 0xfcf9
addq %r11, %rax
movq %r8, %rdi
movb $-0x1, -0x1(%rax,%rdi,2)
movb -0x1(%rax,%rdi), %r14b
movb %r14b, -0x2(%rax,%rdi,2)
decq %rdi
jg 0xfce5
incq %rbx
addl -0x48(%rbp), %r11d
cmpq -0x90(%rbp), %rbx
movq -0x68(%rbp), %r15
jne 0xf9b1
jmp 0xf915
movl $0x1, -0x44(%rbp)
cmpl $0x10, %r14d
jne 0xf915
jmp 0xf937
leaq 0x747e(%rip), %rdi      # 0x171b1
leaq 0x7098(%rip), %rsi      # 0x16dd2
leaq 0x7499(%rip), %rcx      # 0x171da
movl $0x10be, %edx           # imm = 0x10BE
callq 0x1080
leaq 0x752e(%rip), %rdi      # 0x17280
leaq 0x7079(%rip), %rsi      # 0x16dd2
leaq 0x747a(%rip), %rcx      # 0x171da
movl $0x1110, %edx           # imm = 0x1110
callq 0x1080
leaq 0x74fa(%rip), %rdi      # 0x1726b
leaq 0x705a(%rip), %rsi      # 0x16dd2
leaq 0x745b(%rip), %rcx      # 0x171da
movl $0x10d3, %edx           # imm = 0x10D3
callq 0x1080
leaq 0x7501(%rip), %rdi      # 0x17291
leaq 0x703b(%rip), %rsi      # 0x16dd2
leaq 0x743c(%rip), %rcx      # 0x171da
movl $0x1169, %edx           # imm = 0x1169
callq 0x1080