// File: /workspace/github_cpp_makefile_star2_O1/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 $0xc8, %rsp
movl %ecx, %r10d
movq %rdi, %r14
cmpl $0x10, 0x10(%rbp)
sete %cl
movl %r8d, %eax
imull %r10d, %eax
movl %eax, -0x6c(%rbp)
shll %cl, %eax
movl %eax, -0x3c(%rbp)
movq (%rdi), %rbx
movl 0x8(%rbx), %edi
movl %r10d, %r15d
shll %cl, %r15d
movl %edi, %eax
shll %cl, %eax
movl %eax, -0x60(%rbp)
movl %edx, -0x48(%rbp)
cmpl %r10d, %edi
sete %al
movq %rdi, -0x98(%rbp)
leal 0x1(%rdi), %ecx
movl %r10d, -0x38(%rbp)
movl %ecx, -0xbc(%rbp)
cmpl %r10d, %ecx
sete %cl
orb %al, %cl
je 0x107c4
movl %r8d, %r12d
movq %rsi, %r13
movl %r8d, %edi
movl %r9d, -0x4c(%rbp)
movl %r9d, %esi
movl %r15d, %edx
xorl %ecx, %ecx
callq 0xd29e
movq %r14, -0x88(%rbp)
movq %rax, 0x18(%r14)
testq %rax, %rax
je 0x10773
movq -0x98(%rbp), %rax
imull %r12d, %eax
movl %eax, -0x34(%rbp)
movl %eax, %r8d
imull 0x10(%rbp), %r8d
addl $0x7, %r8d
shrl $0x3, %r8d
leal 0x1(%r8), %eax
movl -0x4c(%rbp), %ecx
imull %ecx, %eax
cmpl %r12d, (%rbx)
movq %r12, %r9
jne 0xfc3d
cmpl %ecx, 0x4(%rbx)
jne 0xfc3d
cmpl -0x48(%rbp), %eax
movl -0x60(%rbp), %r12d
je 0xfc46
leaq 0x8612(%rip), %rax      # 0x1824a
jmp 0x1077a
cmpl -0x48(%rbp), %eax
movl -0x60(%rbp), %r12d
ja 0xfc31
movslq -0x98(%rbp), %rax
movq %rax, -0xb8(%rbp)
testl %ecx, %ecx
je 0x10393
movl -0x38(%rbp), %esi
cmpl %esi, -0x98(%rbp)
sete %al
movl 0x10(%rbp), %edi
cmpl $0x10, %edi
sete %cl
movl -0x3c(%rbp), %edx
movq %rdx, %r10
negq %r10
movq %r10, -0x80(%rbp)
cmpl $0x8, %edi
setl %r10b
movl -0x6c(%rbp), %edi
subl %r8d, %edi
movq %rdi, -0xe0(%rbp)
movslq %r15d, %r15
movslq %esi, %rsi
movq %rsi, -0xe8(%rbp)
orb %al, %r10b
movb %r10b, -0x2e(%rbp)
leal -0x1(%r9), %eax
movl %eax, -0x2c(%rbp)
testl %r9d, %r9d
setne %al
movl -0x4c(%rbp), %esi
andb %cl, %al
movb %al, -0x2d(%rbp)
movq %r15, %rax
negq %rax
movq %rax, -0x78(%rbp)
subq %rdx, %rax
movq %rax, -0xd8(%rbp)
xorl %edx, %edx
movq $0x0, -0x48(%rbp)
movl %r9d, %eax
movq %rax, -0xc8(%rbp)
movq %r15, -0xd0(%rbp)
movq %r9, -0xb0(%rbp)
movq %r8, -0xa8(%rbp)
movq %rsi, -0xa0(%rbp)
movl %edx, %edx
leaq 0x1(%r13), %rdi
movzbl (%r13), %ecx
cmpq $0x5, %rcx
jae 0xfdf3
movq %rcx, -0x68(%rbp)
movq -0x88(%rbp), %rax
movq 0x18(%rax), %rsi
movl -0x3c(%rbp), %eax
movl %eax, %ecx
imull -0x48(%rbp), %ecx
addq %rsi, %rcx
movq %rcx, %rax
cmpl $0x7, 0x10(%rbp)
jg 0xfd5b
cmpl %r9d, %r8d
ja 0x10802
movq -0xe0(%rbp), %rax
addq %rcx, %rax
movl $0x1, %r12d
movl %r8d, %r10d
movq %r10, -0xc8(%rbp)
movq %rdx, -0x58(%rbp)
movq -0x68(%rbp), %rdx
movl %edx, %r9d
cmpq $0x0, -0x48(%rbp)
jne 0xfd7c
leaq 0x77e8(%rip), %rdx      # 0x1755c
movq -0x68(%rbp), %r8
movb (%r8,%rdx), %r9b
movzbl %r9b, %r8d
testl %r12d, %r12d
jle 0xfdcf
movl %r12d, %edx
movq -0x80(%rbp), %r10
addq %rsi, %r10
addq -0x58(%rbp), %r10
xorl %r11d, %r11d
cmpb $0x6, %r9b
ja 0xfdc7
leaq 0x74a5(%rip), %r14      # 0x17248
movslq (%r14,%r8,4), %rbx
addq %r14, %rbx
jmpq *%rbx
movb (%rdi,%r11), %r14b
jmp 0xfdc3
movb (%r10,%r11), %r14b
jmp 0xfdbf
movb (%r10,%r11), %r14b
shrb %r14b
addb (%rdi,%r11), %r14b
movb %r14b, (%rax,%r11)
incq %r11
cmpq %r11, %rdx
jne 0xfd96
movl 0x10(%rbp), %edx
cmpl $0x8, %edx
jne 0xfe09
movq -0xb8(%rbp), %rdx
cmpl -0x38(%rbp), %edx
je 0xfde7
movb $-0x1, (%rax,%rdx)
addq %rdx, %rdi
movq -0xe8(%rbp), %rdx
jmp 0xfe2a
leaq 0x8462(%rip), %rax      # 0x1825c
movq %rax, 0xd3df(%rip)      # 0x1d1e0
movq %rdi, %r13
jmp 0x10373
cmpl $0x10, %edx
jne 0xfe2f
movslq %r12d, %rdx
movq -0xb8(%rbp), %r10
cmpl -0x38(%rbp), %r10d
je 0xfe24
movw $0xffff, (%rax,%rdx)    # imm = 0xFFFF
addq %rdx, %rdi
movq %r15, %rdx
movq %rdi, %r13
jmp 0xfe38
addq $0x2, %r13
movl $0x1, %edx
leaq (%rax,%rdx), %rdi
cmpb $0x0, -0x2e(%rbp)
movl %r12d, -0x60(%rbp)
je 0xfe8c
movq -0xc8(%rbp), %rcx
decl %ecx
imull %r12d, %ecx
movslq %ecx, %r10
movq %r10, -0x90(%rbp)
cmpb $0x6, %r9b
ja 0x10089
leaq 0x7412(%rip), %r9       # 0x17280
movslq (%r9,%r8,4), %r8
addq %r9, %r8
jmpq *%r8
movq %r13, %rsi
movq -0x90(%rbp), %rdx
callq 0x10a0
jmp 0x10089
movl -0xbc(%rbp), %r10d
cmpl -0x38(%rbp), %r10d
jne 0x107e3
cmpb $0x6, %r9b
ja 0x10311
addq -0x80(%rbp), %rcx
addq %rdx, %rcx
leaq 0x73af(%rip), %r9       # 0x17264
movslq (%r9,%r8,4), %r8
addq %r9, %r8
jmpq *%r8
movl -0x2c(%rbp), %edx
testl %edx, %edx
je 0x10311
movslq %r12d, %rax
movl %r12d, %ecx
testl %r12d, %r12d
jle 0xfee8
xorl %esi, %esi
movb (%r13,%rsi), %r8b
movb %r8b, (%rdi,%rsi)
incq %rsi
cmpq %rsi, %rcx
jne 0xfed7
movb $-0x1, (%rdi,%rax)
addq %rax, %r13
addq %r15, %rdi
decl %edx
jne 0xfed0
jmp 0x10311
testl %ecx, %ecx
jle 0x10089
movslq %r12d, %r9
movl %ecx, %ecx
movq %rdx, %r8
subq %r9, %r8
addq %r8, %rax
addq -0x80(%rbp), %rsi
addq -0x58(%rbp), %rdx
movq %rdx, %r8
subq %r9, %r8
addq %rsi, %r8
addq %rsi, %rdx
xorl %esi, %esi
movzbl (%rax,%rsi), %r9d
movzbl (%rdx,%rsi), %r11d
movzbl (%r8,%rsi), %r10d
leal (%r11,%r9), %r12d
subl %r10d, %r12d
movl %r12d, %r14d
subl %r9d, %r14d
movl %r14d, %ebx
negl %ebx
cmovsl %r14d, %ebx
movl %r12d, %r15d
subl %r11d, %r15d
movl %r15d, %r14d
negl %r14d
cmovsl %r15d, %r14d
subl %r10d, %r12d
movl %r12d, %r15d
negl %r15d
cmovsl %r12d, %r15d
cmpl %r15d, %r14d
ja 0xff71
movl %r11d, %r10d
cmpl %r15d, %ebx
cmoval %r10d, %r9d
cmpl %r14d, %ebx
cmoval %r10d, %r9d
addb (%r13,%rsi), %r9b
movb %r9b, (%rdi,%rsi)
incq %rsi
cmpq %rsi, %rcx
movl -0x60(%rbp), %r12d
jne 0xff27
jmp 0x10089
testl %ecx, %ecx
jle 0x10089
movl %ecx, %eax
addq -0x80(%rbp), %rsi
addq -0x58(%rbp), %rdx
addq %rsi, %rdx
xorl %ecx, %ecx
movb (%rdx,%rcx), %sil
addb (%r13,%rcx), %sil
movb %sil, (%rdi,%rcx)
incq %rcx
cmpq %rcx, %rax
jne 0xffb0
jmp 0x10089
testl %ecx, %ecx
jle 0x10089
movslq %r12d, %r8
movl %ecx, %ecx
movq %rdx, %r9
subq %r8, %r9
addq %r9, %rax
addq -0x80(%rbp), %rsi
addq -0x58(%rbp), %rdx
addq %rsi, %rdx
xorl %esi, %esi
movzbl (%rdx,%rsi), %r8d
movzbl (%rax,%rsi), %r9d
addl %r8d, %r9d
shrl %r9d
addb (%r13,%rsi), %r9b
movb %r9b, (%rdi,%rsi)
incq %rsi
cmpq %rsi, %rcx
jne 0xffed
jmp 0x10089
testl %ecx, %ecx
jle 0x10089
movslq %r12d, %rsi
movl %ecx, %ecx
subq %rsi, %rdx
addq %rdx, %rax
xorl %edx, %edx
movb (%rax,%rdx), %sil
addb (%r13,%rdx), %sil
movb %sil, (%rdi,%rdx)
incq %rdx
cmpq %rdx, %rcx
jne 0x10021
jmp 0x10089
testl %ecx, %ecx
jle 0x10089
movslq %r12d, %rsi
movl %ecx, %ecx
subq %rsi, %rdx
addq %rdx, %rax
xorl %edx, %edx
movb (%rax,%rdx), %sil
shrb %sil
addb (%r13,%rdx), %sil
movb %sil, (%rdi,%rdx)
incq %rdx
cmpq %rdx, %rcx
jne 0x10049
jmp 0x10089
testl %ecx, %ecx
jle 0x10089
movslq %r12d, %rsi
movl %ecx, %ecx
subq %rsi, %rdx
addq %rdx, %rax
xorl %edx, %edx
movb (%rax,%rdx), %sil
addb (%r13,%rdx), %sil
movb %sil, (%rdi,%rdx)
incq %rdx
cmpq %rdx, %rcx
jne 0x10074
addq -0x90(%rbp), %r13
movq -0xb0(%rbp), %r9
movq -0xa8(%rbp), %r8
movq -0xd0(%rbp), %r15
jmp 0x10364
movl -0x2c(%rbp), %r8d
testl %r8d, %r8d
je 0x10311
movslq %r12d, %r9
movq %r9, -0xf0(%rbp)
movl %r12d, %r9d
addq -0x78(%rbp), %rax
addq %rdx, %rax
addq -0xd8(%rbp), %rsi
addq -0x58(%rbp), %rdx
addq %rsi, %rdx
movl %r8d, -0x90(%rbp)
testl %r12d, %r12d
jle 0x1014d
xorl %r10d, %r10d
movzbl (%rax,%r10), %r11d
movzbl (%rcx,%r10), %r12d
movzbl (%rdx,%r10), %r14d
leal (%r12,%r11), %r15d
subl %r14d, %r15d
movl %r15d, %esi
subl %r11d, %esi
movl %esi, %ebx
negl %ebx
cmovsl %esi, %ebx
movl %r15d, %esi
subl %r12d, %esi
movl %esi, %r8d
negl %r8d
cmovsl %esi, %r8d
subl %r14d, %r15d
movl %r15d, %esi
negl %esi
cmovsl %r15d, %esi
cmpl %esi, %r8d
ja 0x1012f
movl %r12d, %r14d
cmpl %esi, %ebx
cmoval %r14d, %r11d
cmpl %r8d, %ebx
cmoval %r14d, %r11d
addb (%r13,%r10), %r11b
movb %r11b, (%rdi,%r10)
incq %r10
cmpq %r10, %r9
jne 0x100e8
movq -0xf0(%rbp), %rsi
movb $-0x1, (%rdi,%rsi)
addq %rsi, %r13
movq -0xd0(%rbp), %r15
addq %r15, %rdi
addq %r15, %rcx
addq %r15, %rax
addq %r15, %rdx
movl -0x90(%rbp), %r8d
decl %r8d
movl -0x60(%rbp), %r12d
jne 0x100d9
jmp 0x10311
movl -0x2c(%rbp), %esi
testl %esi, %esi
je 0x10311
movslq %r12d, %rax
movl %r12d, %edx
testl %r12d, %r12d
jle 0x101b5
xorl %r8d, %r8d
movb (%rcx,%r8), %r9b
addb (%r13,%r8), %r9b
movb %r9b, (%rdi,%r8)
incq %r8
cmpq %r8, %rdx
jne 0x101a0
movb $-0x1, (%rdi,%rax)
addq %rax, %r13
addq %r15, %rdi
addq %r15, %rcx
decl %esi
jne 0x10198
jmp 0x10311
movl -0x2c(%rbp), %r9d
testl %r9d, %r9d
je 0x10311
movslq %r12d, %rsi
movl %r12d, %r8d
addq -0x78(%rbp), %rax
addq %rdx, %rax
movl %r9d, %edx
testl %r12d, %r12d
jle 0x10211
xorl %r9d, %r9d
movzbl (%rcx,%r9), %r10d
movzbl (%rax,%r9), %r11d
addl %r10d, %r11d
shrl %r11d
addb (%r13,%r9), %r11b
movb %r11b, (%rdi,%r9)
incq %r9
cmpq %r9, %r8
jne 0x101f0
movb $-0x1, (%rdi,%rsi)
addq %rsi, %r13
addq %r15, %rdi
addq %r15, %rcx
addq %r15, %rax
decl %edx
jne 0x101e8
jmp 0x10311
movl -0x2c(%rbp), %r8d
testl %r8d, %r8d
je 0x10311
movslq %r12d, %rcx
movl %r12d, %esi
addq -0x78(%rbp), %rax
addq %rdx, %rax
movl %r8d, %edx
testl %r12d, %r12d
jle 0x10264
xorl %r8d, %r8d
movb (%rax,%r8), %r9b
addb (%r13,%r8), %r9b
movb %r9b, (%rdi,%r8)
incq %r8
cmpq %r8, %rsi
jne 0x1024f
movb $-0x1, (%rdi,%rcx)
addq %rcx, %r13
addq %r15, %rdi
addq %r15, %rax
decl %edx
jne 0x10247
jmp 0x10311
movl -0x2c(%rbp), %r8d
testl %r8d, %r8d
je 0x10311
movslq %r12d, %rcx
movl %r12d, %esi
addq -0x78(%rbp), %rax
addq %rdx, %rax
movl %r8d, %edx
testl %r12d, %r12d
jle 0x102b7
xorl %r8d, %r8d
movb (%rax,%r8), %r9b
shrb %r9b
addb (%r13,%r8), %r9b
movb %r9b, (%rdi,%r8)
incq %r8
cmpq %r8, %rsi
jne 0x1029f
movb $-0x1, (%rdi,%rcx)
addq %rcx, %r13
addq %r15, %rdi
addq %r15, %rax
decl %edx
jne 0x10297
jmp 0x10311
movl -0x2c(%rbp), %r8d
testl %r8d, %r8d
je 0x10311
movslq %r12d, %rcx
movl %r12d, %esi
addq -0x78(%rbp), %rax
addq %rdx, %rax
movl %r8d, %edx
testl %r12d, %r12d
jle 0x10300
xorl %r8d, %r8d
movb (%rax,%r8), %r9b
addb (%r13,%r8), %r9b
movb %r9b, (%rdi,%r8)
incq %r8
cmpq %r8, %rsi
jne 0x102eb
movb $-0x1, (%rdi,%rcx)
addq %rcx, %r13
addq %r15, %rdi
addq %r15, %rax
decl %edx
jne 0x102e3
cmpb $0x0, -0x2d(%rbp)
je 0x10356
movq -0x88(%rbp), %rax
movq 0x18(%rax), %rax
movslq %r12d, %rcx
movq -0x58(%rbp), %rdx
addq %rdx, %rcx
addq %rcx, %rax
incq %rax
movq -0xb0(%rbp), %r9
movl %r9d, %ecx
movq -0xa8(%rbp), %r8
movq -0xa0(%rbp), %rsi
movb $-0x1, (%rax)
addq %r15, %rax
decl %ecx
jne 0x1034a
jmp 0x1036f
movq -0xb0(%rbp), %r9
movq -0xa8(%rbp), %r8
movq -0xa0(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq -0x68(%rbp), %rcx
cmpb $0x5, %cl
jae 0x10781
movq -0x48(%rbp), %rcx
incq %rcx
addl -0x3c(%rbp), %edx
movq %rcx, -0x48(%rbp)
cmpq %rsi, %rcx
jne 0xfcff
movl 0x10(%rbp), %esi
movl $0x1, %eax
cmpl $0x7, %esi
jg 0x10795
movl -0x4c(%rbp), %ecx
testl %ecx, %ecx
movq -0x88(%rbp), %r13
je 0x10783
movl %ecx, %edi
movl 0x18(%rbp), %ecx
movl -0x6c(%rbp), %eax
movl %r8d, %edx
movslq %esi, %rsi
movq %rsi, -0x48(%rbp)
decl %r9d
movl %edi, %edi
movq %rax, %r8
subq %rdx, %r8
negq %rdx
leaq (%r9,%r9,2), %rsi
addq $0x2, %rsi
movq %rsi, -0x68(%rbp)
movq %r9, %rsi
incq %r9
movq %r9, -0x60(%rbp)
xorl %r11d, %r11d
addq %rax, %rdx
xorl %r14d, %r14d
xorl %r15d, %r15d
movb $0x1, %r12b
testl %ecx, %ecx
jne 0x1040e
movq -0x48(%rbp), %rax
leaq 0x70c6(%rip), %r9       # 0x174d0
movb (%rax,%r9), %r12b
movq 0x18(%r13), %r9
movl -0x3c(%rbp), %eax
movl %eax, %ebx
imull %r15d, %ebx
addq %r9, %rbx
leaq (%rbx,%rdx), %r13
movl %r14d, %r14d
movl 0x10(%rbp), %eax
cmpl $0x4, %eax
je 0x1066d
cmpl $0x2, %eax
je 0x105c0
cmpl $0x1, %eax
jne 0x106cd
movl -0x34(%rbp), %r10d
movl %r10d, %eax
cmpl $0x8, %r10d
jl 0x1050f
leaq (%r9,%r8), %r13
movl -0x34(%rbp), %eax
movl %eax, %r10d
movb (%r13,%r14), %al
sarb $0x7, %al
andb %r12b, %al
movb %al, (%r9,%r14)
movb (%r13,%r14), %al
addb %al, %al
sarb $0x7, %al
andb %r12b, %al
movb %al, 0x1(%r9,%r14)
movb (%r13,%r14), %al
shlb $0x2, %al
sarb $0x7, %al
andb %r12b, %al
movb %al, 0x2(%r9,%r14)
movb (%r13,%r14), %al
shlb $0x3, %al
sarb $0x7, %al
andb %r12b, %al
movb %al, 0x3(%r9,%r14)
movb (%r13,%r14), %al
shlb $0x4, %al
sarb $0x7, %al
andb %r12b, %al
movb %al, 0x4(%r9,%r14)
movb (%r13,%r14), %al
shlb $0x5, %al
sarb $0x7, %al
andb %r12b, %al
movb %al, 0x5(%r9,%r14)
movb (%r13,%r14), %al
shlb $0x6, %al
sarb $0x7, %al
andb %r12b, %al
movb %al, 0x6(%r9,%r14)
testb $0x1, (%r13,%r14)
movzbl %r12b, %eax
cmovel %r11d, %eax
movb %al, 0x7(%r9,%r14)
leal -0x8(%r10), %eax
incq %r13
addq $0x8, %r9
cmpl $0xf, %r10d
jg 0x1045b
addq %r14, %r13
addq %r14, %r9
movq %r9, %rbx
testl %eax, %eax
jle 0x10524
movb (%r13), %r9b
sarb $0x7, %r9b
andb %r12b, %r9b
movb %r9b, (%rbx)
incq %rbx
cmpl $0x2, %eax
jl 0x1053d
movb (%r13), %r9b
addb %r9b, %r9b
sarb $0x7, %r9b
andb %r12b, %r9b
movb %r9b, (%rbx)
incq %rbx
cmpl $0x3, %eax
jl 0x10557
movb (%r13), %r9b
shlb $0x2, %r9b
sarb $0x7, %r9b
andb %r12b, %r9b
movb %r9b, (%rbx)
incq %rbx
cmpl $0x4, %eax
jl 0x10571
movb (%r13), %r9b
shlb $0x3, %r9b
sarb $0x7, %r9b
andb %r12b, %r9b
movb %r9b, (%rbx)
incq %rbx
cmpl $0x5, %eax
jl 0x1058b
movb (%r13), %r9b
shlb $0x4, %r9b
sarb $0x7, %r9b
andb %r12b, %r9b
movb %r9b, (%rbx)
incq %rbx
cmpl $0x6, %eax
jl 0x105a5
movb (%r13), %r9b
shlb $0x5, %r9b
sarb $0x7, %r9b
andb %r12b, %r9b
movb %r9b, (%rbx)
incq %rbx
cmpl $0x7, %eax
jne 0x106cd
movb (%r13), %al
shlb $0x6, %al
sarb $0x7, %al
andb %r12b, %al
jmp 0x106cb
movl -0x34(%rbp), %eax
movl %eax, %r10d
cmpl $0x4, %eax
jl 0x10631
leaq (%r9,%r8), %r13
movl -0x34(%rbp), %r10d
movl %r10d, %ebx
movb (%r13,%r14), %al
shrb $0x6, %al
mulb %r12b
movb %al, (%r9,%r14)
movb (%r13,%r14), %al
shrb $0x4, %al
andb $0x3, %al
mulb %r12b
movb %al, 0x1(%r9,%r14)
movb (%r13,%r14), %al
shrb $0x2, %al
andb $0x3, %al
mulb %r12b
movb %al, 0x2(%r9,%r14)
movb (%r13,%r14), %al
andb $0x3, %al
mulb %r12b
movb %al, 0x3(%r9,%r14)
leal -0x4(%rbx), %r10d
incq %r13
addq $0x4, %r9
cmpl $0x7, %ebx
jg 0x105d3
addq %r14, %r13
addq %r14, %r9
movq %r9, %rbx
testl %r10d, %r10d
jle 0x10645
movb (%r13), %al
shrb $0x6, %al
mulb %r12b
movb %al, (%rbx)
incq %rbx
cmpl $0x2, %r10d
jl 0x1065c
movb (%r13), %al
shrb $0x4, %al
andb $0x3, %al
mulb %r12b
movb %al, (%rbx)
incq %rbx
cmpl $0x3, %r10d
jne 0x106cd
movb (%r13), %al
shrb $0x2, %al
andb $0x3, %al
jmp 0x106c8
movl -0x34(%rbp), %r10d
movl %r10d, %eax
cmpl $0x2, %r10d
jl 0x106bc
leaq (%r9,%r8), %r13
movl -0x34(%rbp), %eax
movl %eax, %r10d
movb (%r13,%r14), %al
shrb $0x4, %al
mulb %r12b
movb %al, (%r9,%r14)
movb (%r13,%r14), %al
andb $0xf, %al
mulb %r12b
movb %al, 0x1(%r9,%r14)
leal -0x2(%r10), %eax
incq %r13
addq $0x2, %r9
cmpl $0x3, %r10d
jg 0x10681
addq %r14, %r13
addq %r14, %r9
movq %r9, %rbx
cmpl $0x1, %eax
jne 0x106cd
movb (%r13), %al
shrb $0x4, %al
mulb %r12b
movb %al, (%rbx)
movq -0x98(%rbp), %rax
cmpl -0x38(%rbp), %eax
movq -0x88(%rbp), %r13
je 0x1075c
movq 0x18(%r13), %rax
movq -0xb8(%rbp), %r9
cmpl $0x1, %r9d
je 0x1073c
cmpl $0x3, %r9d
jne 0x10821
movq %rsi, %r9
testl %r9d, %r9d
js 0x1075c
addq %r14, %rax
movq -0x68(%rbp), %r9
addq %rax, %r9
movq -0x60(%rbp), %r10
movb $-0x1, -0x1(%rax,%r10,4)
movb (%r9), %bl
movb %bl, -0x2(%rax,%r10,4)
movb -0x1(%r9), %bl
movb %bl, -0x3(%rax,%r10,4)
movb -0x2(%r9), %bl
movb %bl, -0x4(%rax,%r10,4)
addq $-0x3, %r9
decq %r10
jg 0x10711
jmp 0x1075c
testl %esi, %esi
js 0x1075c
addq %r14, %rax
movq -0x60(%rbp), %r9
movb $-0x1, -0x1(%rax,%r9,2)
movb -0x1(%rax,%r9), %r10b
movb %r10b, -0x2(%rax,%r9,2)
decq %r9
jg 0x10747
incq %r15
addl -0x3c(%rbp), %r14d
cmpq %rdi, %r15
jne 0x103f8
movl $0x1, %eax
jmp 0x10783
leaq 0x77ae(%rip), %rax      # 0x17f28
movq %rax, 0xca5f(%rip)      # 0x1d1e0
xorl %eax, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x10, %esi
movq -0x88(%rbp), %rsi
movl -0x4c(%rbp), %ecx
jne 0x10783
movl -0x6c(%rbp), %edx
imull %ecx, %edx
testl %edx, %edx
je 0x10783
movq 0x18(%rsi), %rsi
movl %edx, %ecx
xorl %edx, %edx
rolw $0x8, (%rsi,%rdx,2)
incq %rdx
cmpl %edx, %ecx
jne 0x107b6
jmp 0x10783
leaq 0x79e6(%rip), %rdi      # 0x181b1
leaq 0x7600(%rip), %rsi      # 0x17dd2
leaq 0x7a01(%rip), %rcx      # 0x181da
movl $0x10be, %edx           # imm = 0x10BE
callq 0x1090
leaq 0x7a96(%rip), %rdi      # 0x18280
leaq 0x75e1(%rip), %rsi      # 0x17dd2
leaq 0x79e2(%rip), %rcx      # 0x181da
movl $0x1110, %edx           # imm = 0x1110
callq 0x1090
leaq 0x7a62(%rip), %rdi      # 0x1826b
leaq 0x75c2(%rip), %rsi      # 0x17dd2
leaq 0x79c3(%rip), %rcx      # 0x181da
movl $0x10d3, %edx           # imm = 0x10D3
callq 0x1090
leaq 0x7a69(%rip), %rdi      # 0x18291
leaq 0x75a3(%rip), %rsi      # 0x17dd2
leaq 0x79a4(%rip), %rcx      # 0x181da
movl $0x1169, %edx           # imm = 0x1169
callq 0x1090