// File: /workspace/github_cpp_makefile_star2_O2/alan0201tw[P]RayTracer/include/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");

   if (!stbi__mad3sizes_valid(img_n, x, depth, 7)) return stbi__err("too large", "Corrupt PNG");
   img_width_bytes = (((img_n * x * depth) + 7) >> 3);
   img_len = (img_width_bytes + 1) * y;

   // we used to check for exact match between raw_len and img_len on non-interlaced PNGs,
   // but issue #276 reported a PNG in the wild that had extra data at the end (all zeros),
   // so just check for raw_len < img_len always.
   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;
      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;
      }
      prior = cur - stride; // bugfix: need to compute this after 'cur +=' computation above

      // 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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movl %r8d, %ebp
movl %ecx, %r8d
movq %rdi, %r14
cmpl $0x10, 0x110(%rsp)
sete %cl
movl %ebp, %eax
imull %r8d, %eax
movq %rax, 0x78(%rsp)
shll %cl, %eax
movl %eax, 0x24(%rsp)
movq (%rdi), %rax
movl 0x8(%rax), %edi
movl %r8d, %ebx
shll %cl, %ebx
movl %edi, %eax
shll %cl, %eax
movq %rax, 0x60(%rsp)
cmpl %r8d, %edi
sete %al
movq %rdi, 0x48(%rsp)
leal 0x1(%rdi), %ecx
movl %r8d, 0x20(%rsp)
movl %ecx, 0x84(%rsp)
cmpl %r8d, %ecx
sete %cl
orb %al, %cl
je 0x2b6ca
movl %edx, %r15d
movq %rsi, %r12
movl %ebp, %edi
movl %r9d, 0x6c(%rsp)
movl %r9d, %esi
movl %ebx, %edx
xorl %ecx, %ecx
callq 0x28eb4
movq %r14, 0x50(%rsp)
movq %rax, 0x18(%r14)
testq %rax, %rax
je 0x2ab91
pushq $0x7
popq %rcx
movq 0x48(%rsp), %r13
movl %r13d, %edi
movl %ebp, %esi
movl 0x110(%rsp), %r14d
movl %r14d, %edx
callq 0x28daf
testl %eax, %eax
je 0x2ab9d
movl %r13d, %eax
imull %ebp, %eax
movl %eax, 0x44(%rsp)
movl %eax, %edi
imull %r14d, %edi
addl $0x7, %edi
shrl $0x3, %edi
leal 0x1(%rdi), %eax
movl 0x6c(%rsp), %esi
imull %esi, %eax
cmpl %r15d, %eax
jbe 0x2aba9
leaq 0x9032(%rip), %rax      # 0x33bbe
jmp 0x2b646
leaq 0x8cfc(%rip), %rax      # 0x33894
jmp 0x2b646
leaq 0x8ce6(%rip), %rax      # 0x3388a
jmp 0x2b646
movslq %r13d, %rax
movq %rax, 0x88(%rsp)
movl 0x20(%rsp), %ecx
cmpl %ecx, %r13d
sete %al
cmpl $0x8, %r14d
setl %r8b
movq 0x78(%rsp), %rdx
subl %edi, %edx
movq %rdx, 0xc8(%rsp)
movl 0x24(%rsp), %edx
movslq %ebx, %r10
movslq %ecx, %rcx
movq %rcx, 0xd0(%rsp)
orb %al, %r8b
movb %r8b, 0x17(%rsp)
movl %esi, %eax
movq %rax, 0xa0(%rsp)
movq %r10, %r11
negq %r11
movq %r11, %rax
subq %rdx, %rax
movq %rax, 0xb8(%rsp)
negq %rdx
movq %rdx, 0x70(%rsp)
leaq 0x6a64(%rip), %rbx      # 0x31680
xorl %r8d, %r8d
xorl %r9d, %r9d
movl %ebp, %eax
movq %rax, 0x98(%rsp)
movq 0x50(%rsp), %rdx
movl %r14d, %esi
movq %rbp, 0x28(%rsp)
movq %rdi, 0x90(%rsp)
movq %r10, 0x58(%rsp)
movq %r11, 0xc0(%rsp)
cmpq 0xa0(%rsp), %r9
je 0x2b255
movzbl (%r12), %r14d
cmpq $0x4, %r14
ja 0x2b63f
movl 0x24(%rsp), %eax
imull %r9d, %eax
addq 0x18(%rdx), %rax
movq %rax, 0x18(%rsp)
cmpl $0x7, %esi
jg 0x2acad
cmpl %ebp, %edi
ja 0x2b68c
movq 0x18(%rsp), %rax
addq 0xc8(%rsp), %rax
movq %rax, 0x18(%rsp)
pushq $0x1
popq %rax
movq %rax, 0x60(%rsp)
movl %edi, %eax
movq %rax, 0x98(%rsp)
movq %r9, 0xa8(%rsp)
testq %r9, %r9
jne 0x2acc5
leaq 0x6c8b(%rip), %rax      # 0x3194c
movb (%r14,%rax), %r14b
movl %r8d, %r8d
movq %r8, 0xb0(%rsp)
leaq 0x1(%r12), %rdi
movq 0x70(%rsp), %rax
movq 0x18(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0x30(%rsp)
movq 0x60(%rsp), %rax
testl %eax, %eax
movl $0x0, %ebp
cmovgl %eax, %ebp
xorl %r15d, %r15d
movzbl %r14b, %eax
cmpq %r15, %rbp
je 0x2ad68
cmpb $0x6, %r14b
ja 0x2ad63
movslq (%rbx,%rax,4), %rax
addq %rbx, %rax
jmpq *%rax
movb (%rdi,%r15), %al
jmp 0x2ad5a
movb (%rdi,%r15), %r13b
movq 0x30(%rsp), %rax
movzbl (%rax,%r15), %esi
movq %rdi, %rbx
xorl %edi, %edi
xorl %edx, %edx
callq 0x2b708
movq %rbx, %rdi
addb %r13b, %al
leaq 0x6942(%rip), %rbx      # 0x31680
jmp 0x2ad5a
movq 0x30(%rsp), %rax
movb (%rax,%r15), %al
jmp 0x2ad56
movq 0x30(%rsp), %rax
movb (%rax,%r15), %al
shrb %al
addb (%rdi,%r15), %al
movq 0x18(%rsp), %rcx
movb %al, (%rcx,%r15)
incq %r15
jmp 0x2acf9
movslq 0x60(%rsp), %rcx
movq %rcx, 0x8(%rsp)
movl 0x110(%rsp), %ecx
cmpl $0x8, %ecx
jne 0x2adac
movq 0x48(%rsp), %rcx
cmpl 0x20(%rsp), %ecx
je 0x2ad9a
movq 0x88(%rsp), %rcx
movq 0x18(%rsp), %rdx
movb $-0x1, (%rdx,%rcx)
addq 0x88(%rsp), %rdi
movq 0xd0(%rsp), %rcx
jmp 0x2add9
cmpl $0x10, %ecx
jne 0x2adde
movq 0x48(%rsp), %rcx
cmpl 0x20(%rsp), %ecx
je 0x2adcf
movb $-0x1, %cl
movq 0x8(%rsp), %rdx
movq 0x18(%rsp), %rsi
movb %cl, (%rsi,%rdx)
movb %cl, 0x1(%rdx,%rsi)
addq 0x8(%rsp), %rdi
movq 0x58(%rsp), %rcx
movq %rdi, %r12
jmp 0x2ade5
addq $0x2, %r12
pushq $0x1
popq %rcx
movq 0x18(%rsp), %rdx
leaq (%rdx,%rcx), %r15
addq %rcx, 0x30(%rsp)
cmpb $0x0, 0x17(%rsp)
je 0x2ae6d
movq 0x98(%rsp), %rcx
leal -0x1(%rcx), %r13d
imull 0x60(%rsp), %r13d
movslq %r13d, %rcx
movq %rcx, 0x38(%rsp)
cmpb $0x6, %r14b
movq 0x28(%rsp), %rbp
ja 0x2ae3f
leaq 0x6892(%rip), %rcx      # 0x316b8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r15, %rdi
movq %r12, %rsi
movq 0x38(%rsp), %rdx
callq 0x6360
addq 0x38(%rsp), %r12
movq 0x50(%rsp), %rdx
movl 0x110(%rsp), %esi
movq 0x90(%rsp), %rdi
movq 0xb0(%rsp), %r8
movq 0xa8(%rsp), %r9
jmp 0x2b198
movl 0x84(%rsp), %edx
cmpl 0x20(%rsp), %edx
jne 0x2b6ab
cmpb $0x6, %r14b
ja 0x2b146
leaq 0x680d(%rip), %rdx      # 0x3169c
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
movq 0x70(%rsp), %r9
movq 0x58(%rsp), %r10
movq 0xc0(%rsp), %r11
jmpq *%rax
movq 0x28(%rsp), %rax
movq 0x8(%rsp), %rsi
decl %eax
je 0x2b14b
xorl %ecx, %ecx
cmpq %rcx, %rbp
je 0x2aed0
movb (%r12,%rcx), %dl
movb %dl, (%r15,%rcx)
incq %rcx
jmp 0x2aebe
movb $-0x1, (%r15,%rsi)
addq %rsi, %r12
addq %r10, %r15
jmp 0x2aeb4
testl %r13d, %r13d
movl $0x0, %eax
cmovlel %eax, %r13d
xorl %r14d, %r14d
cmpq %r13, %r14
je 0x2ae3f
movb (%r12,%r14), %bl
movq %r14, %rax
subq 0x8(%rsp), %rax
movzbl (%r15,%rax), %edi
movq 0x30(%rsp), %rcx
movzbl (%rcx,%r14), %esi
movzbl (%rcx,%rax), %edx
callq 0x2b708
addb %bl, %al
leaq 0x675e(%rip), %rbx      # 0x31680
movb %al, (%r15,%r14)
incq %r14
jmp 0x2aeec
testl %r13d, %r13d
movl $0x0, %eax
cmovlel %eax, %r13d
movq 0x70(%rsp), %rax
addq %r15, %rax
xorl %ecx, %ecx
cmpq %rcx, %r13
je 0x2ae3f
movb (%rax,%rcx), %dl
addb (%r12,%rcx), %dl
movb %dl, (%r15,%rcx)
incq %rcx
jmp 0x2af41
testl %r13d, %r13d
movl $0x0, %eax
cmovlel %eax, %r13d
negq 0x8(%rsp)
movq %r12, %rax
subq $0x1, %r13
jb 0x2ae3f
movq 0x70(%rsp), %rcx
movzbl (%r15,%rcx), %ecx
movq 0x8(%rsp), %rdx
movzbl (%r15,%rdx), %edx
addl %ecx, %edx
shrl %edx
addb (%rax), %dl
movb %dl, (%r15)
incq %r15
incq %rax
jmp 0x2af6e
testl %r13d, %r13d
movl $0x0, %eax
cmovlel %eax, %r13d
movq %r15, %rax
subq 0x8(%rsp), %rax
xorl %ecx, %ecx
cmpq %rcx, %r13
je 0x2ae3f
movb (%rax,%rcx), %dl
addb (%r12,%rcx), %dl
movb %dl, (%r15,%rcx)
incq %rcx
jmp 0x2afb3
testl %r13d, %r13d
movl $0x0, %eax
cmovlel %eax, %r13d
movq %r15, %rax
subq 0x8(%rsp), %rax
xorl %ecx, %ecx
cmpq %rcx, %r13
je 0x2ae3f
movb (%rax,%rcx), %dl
shrb %dl
addb (%r12,%rcx), %dl
movb %dl, (%r15,%rcx)
incq %rcx
jmp 0x2afe2
testl %r13d, %r13d
movl $0x0, %eax
cmovlel %eax, %r13d
movq %r15, %rax
subq 0x8(%rsp), %rax
xorl %ecx, %ecx
cmpq %rcx, %r13
je 0x2ae3f
movb (%rax,%rcx), %dl
addb (%r12,%rcx), %dl
movb %dl, (%r15,%rcx)
incq %rcx
jmp 0x2b013
movq %r12, 0x38(%rsp)
movq 0x18(%rsp), %r12
leaq (%r12,%r11), %r14
addq %rcx, %r14
addq 0xb8(%rsp), %r12
addq %rcx, %r12
movq 0x28(%rsp), %rax
decl %eax
je 0x2b0b1
movl %eax, 0x18(%rsp)
xorl %ebx, %ebx
cmpq %rbx, %rbp
je 0x2b089
movq 0x38(%rsp), %rax
movb (%rax,%rbx), %r13b
movzbl (%r14,%rbx), %edi
movq 0x30(%rsp), %rax
movzbl (%rax,%rbx), %esi
movzbl (%r12,%rbx), %edx
callq 0x2b708
addb %r13b, %al
movb %al, (%r15,%rbx)
incq %rbx
jmp 0x2b057
movq 0x8(%rsp), %rax
movb $-0x1, (%r15,%rax)
addq %rax, 0x38(%rsp)
movq 0x58(%rsp), %rax
addq %rax, %r15
addq %rax, 0x30(%rsp)
addq %rax, %r14
addq %rax, %r12
movl 0x18(%rsp), %eax
jmp 0x2b04d
movq 0x58(%rsp), %r10
leaq 0x65c3(%rip), %rbx      # 0x31680
movq 0x38(%rsp), %r12
jmp 0x2b14b
movq 0x28(%rsp), %rax
movq 0x8(%rsp), %rdi
decl %eax
je 0x2b14b
leaq (%r15,%r9), %rcx
xorl %edx, %edx
cmpq %rdx, %rbp
je 0x2b0f1
movb (%rcx,%rdx), %sil
addb (%r12,%rdx), %sil
movb %sil, (%r15,%rdx)
incq %rdx
jmp 0x2b0db
movb $-0x1, (%r15,%rdi)
addq %rdi, %r12
addq %r10, %r15
jmp 0x2b0d1
movq 0x28(%rsp), %rax
movq 0x8(%rsp), %r14
decl %eax
je 0x2b14b
movq %r12, %rcx
movq %r15, %rdx
movq %rbp, %rsi
subq $0x1, %rsi
jb 0x2b139
movzbl (%rdx,%r9), %edi
movzbl (%rdx,%r11), %r8d
addl %edi, %r8d
shrl %r8d
addb (%rcx), %r8b
movb %r8b, (%rdx)
incq %rdx
incq %rcx
jmp 0x2b115
movb $-0x1, (%r15,%r14)
addq %r14, %r12
addq %r10, %r15
jmp 0x2b108
movq 0x58(%rsp), %r10
movl 0x110(%rsp), %esi
cmpl $0x10, %esi
movq 0x50(%rsp), %rdx
movq 0x28(%rsp), %rbp
movq 0x90(%rsp), %rdi
movq 0xb0(%rsp), %r8
movq 0xa8(%rsp), %r9
jne 0x2b198
movq 0x60(%rsp), %rax
incl %eax
cltq
addq %r8, %rax
addq 0x18(%rdx), %rax
movl %ebp, %ecx
subl $0x1, %ecx
jb 0x2b198
movb $-0x1, (%rax)
addq %r10, %rax
jmp 0x2b18b
incq %r9
addl 0x24(%rsp), %r8d
jmp 0x2ac4e
movq 0x28(%rsp), %rax
movq 0x8(%rsp), %rdi
decl %eax
je 0x2b14b
leaq (%r15,%r11), %rcx
xorl %edx, %edx
cmpq %rdx, %rbp
je 0x2b1cf
movb (%rcx,%rdx), %sil
addb (%r12,%rdx), %sil
movb %sil, (%r15,%rdx)
incq %rdx
jmp 0x2b1b9
movb $-0x1, (%r15,%rdi)
addq %rdi, %r12
addq %r10, %r15
jmp 0x2b1af
movq 0x28(%rsp), %rax
movq 0x8(%rsp), %rdi
decl %eax
je 0x2b14b
leaq (%r15,%r11), %rcx
xorl %edx, %edx
cmpq %rdx, %rbp
je 0x2b20d
movb (%rcx,%rdx), %sil
shrb %sil
addb (%r12,%rdx), %sil
movb %sil, (%r15,%rdx)
incq %rdx
jmp 0x2b1f4
movb $-0x1, (%r15,%rdi)
addq %rdi, %r12
addq %r10, %r15
jmp 0x2b1e6
movq 0x28(%rsp), %rax
movq 0x8(%rsp), %rdi
decl %eax
je 0x2b14b
leaq (%r15,%r11), %rcx
xorl %edx, %edx
cmpq %rdx, %rbp
je 0x2b248
movb (%rcx,%rdx), %sil
addb (%r12,%rdx), %sil
movb %sil, (%r15,%rdx)
incq %rdx
jmp 0x2b232
movb $-0x1, (%r15,%rdi)
addq %rdi, %r12
addq %r10, %r15
jmp 0x2b224
cmpl $0x7, %esi
jg 0x2b661
movl 0x78(%rsp), %ecx
movl %edi, %edx
movslq %esi, %rsi
movl %ebp, %edi
movq %rcx, %rax
subq %rdx, %rax
movq %rax, 0x18(%rsp)
negq %rdx
leaq (%rdi,%rdi,2), %rax
addq $-0x3, %rax
movq %rax, 0x30(%rsp)
movl %ebp, %eax
decl %ebp
leal -0x4(,%rax,4), %r8d
movl %r8d, 0x38(%rsp)
decq %rdi
leal -0x1(,%rax,2), %eax
movl %eax, 0x8(%rsp)
xorl %ebx, %ebx
xorl %r15d, %r15d
xorl %r12d, %r12d
cmpq 0xa0(%rsp), %r12
je 0x2b687
movq %rbp, %r8
movb $0x1, %bpl
cmpl $0x0, 0x118(%rsp)
jne 0x2b2d4
leaq 0x65f0(%rip), %rax      # 0x318c0
movb (%rsi,%rax), %bpl
movl %r15d, %r15d
movq 0x50(%rsp), %rax
movq 0x18(%rax), %rax
movl 0x24(%rsp), %r9d
movl %r9d, %r13d
imull %r12d, %r13d
movl 0x110(%rsp), %r9d
cmpl $0x4, %r9d
je 0x2b46d
leaq (%rcx,%r13), %r14
addq %rdx, %r14
addq %rax, %r14
cmpl $0x2, %r9d
je 0x2b3ca
cmpl $0x1, %r9d
jne 0x2b578
addq %r15, %rax
addq $0x7, %rax
movl 0x44(%rsp), %r10d
cmpl $0x8, %r10d
jl 0x2b4ce
movb (%r14), %r9b
sarb $0x7, %r9b
andb %bpl, %r9b
movb %r9b, -0x7(%rax)
movb (%r14), %r9b
addb %r9b, %r9b
sarb $0x7, %r9b
andb %bpl, %r9b
movb %r9b, -0x6(%rax)
movb (%r14), %r9b
shlb $0x2, %r9b
sarb $0x7, %r9b
andb %bpl, %r9b
movb %r9b, -0x5(%rax)
movb (%r14), %r9b
shlb $0x3, %r9b
sarb $0x7, %r9b
andb %bpl, %r9b
movb %r9b, -0x4(%rax)
movb (%r14), %r9b
shlb $0x4, %r9b
sarb $0x7, %r9b
andb %bpl, %r9b
movb %r9b, -0x3(%rax)
movb (%r14), %r9b
shlb $0x5, %r9b
sarb $0x7, %r9b
andb %bpl, %r9b
movb %r9b, -0x2(%rax)
movb (%r14), %r9b
shlb $0x6, %r9b
sarb $0x7, %r9b
andb %bpl, %r9b
movb %r9b, -0x1(%rax)
movzbl %bpl, %r9d
testb $0x1, (%r14)
cmovel %ebx, %r9d
movb %r9b, (%rax)
addl $-0x8, %r10d
incq %r14
addq $0x8, %rax
jmp 0x2b328
leaq (%rax,%r15), %r10
addq $0x3, %r10
movl 0x44(%rsp), %r9d
cmpl $0x4, %r9d
jl 0x2b420
movb (%r14), %al
shrb $0x6, %al
mulb %bpl
movb %al, -0x3(%r10)
movb (%r14), %al
shrb $0x4, %al
andb $0x3, %al
mulb %bpl
movb %al, -0x2(%r10)
movb (%r14), %al
shrb $0x2, %al
andb $0x3, %al
mulb %bpl
movb %al, -0x1(%r10)
movb (%r14), %al
andb $0x3, %al
mulb %bpl
movb %al, (%r10)
addl $-0x4, %r9d
incq %r14
addq $0x4, %r10
jmp 0x2b3d7
testl %r9d, %r9d
jle 0x2b578
movb (%r14), %al
shrb $0x6, %al
mulb %bpl
movb %al, -0x3(%r10)
cmpl $0x1, %r9d
je 0x2b578
movb (%r14), %al
shrb $0x4, %al
andb $0x3, %al
mulb %bpl
movb %al, -0x2(%r10)
cmpl $0x3, %r9d
jne 0x2b578
movb (%r14), %al
shrb $0x2, %al
andb $0x3, %al
mulb %bpl
movb %al, -0x1(%r10)
jmp 0x2b578
leaq (%rax,%r15), %r14
addq 0x18(%rsp), %r14
leaq (%rax,%r15), %r9
incq %r9
xorl %r10d, %r10d
movl 0x44(%rsp), %r11d
cmpl $0x2, %r11d
jl 0x2b4b0
movb (%r14,%r10), %al
shrb $0x4, %al
mulb %bpl
movb %al, -0x1(%r9,%r10,2)
movb (%r14,%r10), %al
andb $0xf, %al
mulb %bpl
movb %al, (%r9,%r10,2)
addl $-0x2, %r11d
incq %r10
jmp 0x2b485
cmpl $0x1, %r11d
jne 0x2b578
movb (%r14,%r10), %al
shrb $0x4, %al
mulb %bpl
movb %al, -0x1(%r9,%r10,2)
jmp 0x2b578
testl %r10d, %r10d
jle 0x2b578
movb (%r14), %r9b
sarb $0x7, %r9b
andb %bpl, %r9b
movb %r9b, -0x7(%rax)
cmpl $0x1, %r10d
je 0x2b578
movb (%r14), %r9b
addb %r9b, %r9b
sarb $0x7, %r9b
andb %bpl, %r9b
movb %r9b, -0x6(%rax)
cmpl $0x3, %r10d
jb 0x2b578
movb (%r14), %r9b
shlb $0x2, %r9b
sarb $0x7, %r9b
andb %bpl, %r9b
movb %r9b, -0x5(%rax)
cmpl $0x3, %r10d
je 0x2b578
movb (%r14), %r9b
shlb $0x3, %r9b
sarb $0x7, %r9b
andb %bpl, %r9b
movb %r9b, -0x4(%rax)
cmpl $0x5, %r10d
jb 0x2b578
movb (%r14), %r9b
shlb $0x4, %r9b
sarb $0x7, %r9b
andb %bpl, %r9b
movb %r9b, -0x3(%rax)
cmpl $0x5, %r10d
je 0x2b578
movb (%r14), %r9b
shlb $0x5, %r9b
sarb $0x7, %r9b
andb %bpl, %r9b
movb %r9b, -0x2(%rax)
cmpl $0x7, %r10d
jne 0x2b578
movb (%r14), %r9b
shlb $0x6, %r9b
sarb $0x7, %r9b
andb %bpl, %r9b
movb %r9b, -0x1(%rax)
movq 0x48(%rsp), %rax
cmpl 0x20(%rsp), %eax
movq %r8, %rbp
je 0x2b5f9
movq 0x50(%rsp), %rax
addq 0x18(%rax), %r13
movq 0x48(%rsp), %r11
cmpl $0x1, %r11d
je 0x2b606
movl 0x38(%rsp), %eax
movl %ebp, %r9d
movq 0x30(%rsp), %r10
cmpl $0x3, %r11d
je 0x2b5f4
jmp 0x2b6e9
leal 0x3(%rax), %r11d
movb $-0x1, (%r13,%r11)
movl %r10d, %r11d
movb 0x2(%r13,%r11), %bpl
leal 0x2(%rax), %r14d
movb %bpl, (%r13,%r14)
movb 0x1(%r13,%r11), %bpl
leal 0x1(%rax), %r14d
movb %bpl, (%r13,%r14)
movq %r8, %rbp
movb (%r13,%r11), %r11b
movl %eax, %r14d
movb %r11b, (%r13,%r14)
addq $-0x3, %r10
decl %r9d
addl $-0x4, %eax
testl %r9d, %r9d
jns 0x2b5b1
incq %r12
addl 0x24(%rsp), %r15d
jmp 0x2b2ab
movl 0x8(%rsp), %eax
xorl %r9d, %r9d
movl %ebp, %r10d
addl %r9d, %r10d
js 0x2b5f9
leaq (%rdi,%r9), %r10
leal -0x1(%rax), %r11d
movl %eax, %r14d
movb $-0x1, (%r13,%r14)
andl $0x7fffffff, %r10d      # imm = 0x7FFFFFFF
movb (%r13,%r10), %r10b
movb %r10b, (%r13,%r11)
decq %r9
addl $-0x2, %eax
jmp 0x2b60d
leaq 0x858a(%rip), %rax      # 0x33bd0
movq %rax, 0x1cecb(%rip)     # 0x48518
xorl %eax, %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x1
popq %rax
cmpl $0x10, %esi
jne 0x2b64f
movq 0x18(%rdx), %rdx
movq 0x78(%rsp), %rsi
imull 0x6c(%rsp), %esi
xorl %ecx, %ecx
cmpl %ecx, %esi
je 0x2b64f
rolw $0x8, (%rdx,%rcx,2)
incq %rcx
jmp 0x2b679
pushq $0x1
popq %rax
jmp 0x2b64f
leaq 0x854c(%rip), %rdi      # 0x33bdf
leaq 0x8081(%rip), %rsi      # 0x3371b
leaq 0x84ad(%rip), %rcx      # 0x33b4e
movl $0x114f, %edx           # imm = 0x114F
callq 0x6280
leaq 0x8542(%rip), %rdi      # 0x33bf4
leaq 0x8062(%rip), %rsi      # 0x3371b
leaq 0x848e(%rip), %rcx      # 0x33b4e
movl $0x118d, %edx           # imm = 0x118D
callq 0x6280
leaq 0x8454(%rip), %rdi      # 0x33b25
leaq 0x8043(%rip), %rsi      # 0x3371b
leaq 0x846f(%rip), %rcx      # 0x33b4e
movl $0x1139, %edx           # imm = 0x1139
callq 0x6280
leaq 0x8515(%rip), %rdi      # 0x33c05
leaq 0x8024(%rip), %rsi      # 0x3371b
leaq 0x8450(%rip), %rcx      # 0x33b4e
movl $0x11e6, %edx           # imm = 0x11E6
callq 0x6280