// File: /workspace/github_cpp_makefile_star2_O2/drummyfish[P]flowchart/src/lodepng.cpp
// Function: lodepng_encode(unsigned char**, unsigned long*, unsigned char const*, unsigned int, unsigned int, LodePNGState*)
unsigned lodepng_encode(unsigned char** out, size_t* outsize,
                        const unsigned char* image, unsigned w, unsigned h,
                        LodePNGState* state)
{
  LodePNGInfo info;
  ucvector outv;
  unsigned char* data = 0; /*uncompressed version of the IDAT chunk data*/
  size_t datasize = 0;

  /*provide some proper output values if error will happen*/
  *out = 0;
  *outsize = 0;
  state->error = 0;

  lodepng_info_init(&info);
  lodepng_info_copy(&info, &state->info_png);

  if((info.color.colortype == LCT_PALETTE || state->encoder.force_palette)
      && (info.color.palettesize == 0 || info.color.palettesize > 256))
  {
    state->error = 68; /*invalid palette size, it is only allowed to be 1-256*/
    return state->error;
  }

  if(state->encoder.auto_convert != LAC_NO)
  {
    state->error = doAutoChooseColor(&info.color, image, w, h, &state->info_raw,
                                     state->encoder.auto_convert);
  }
  if(state->error) return state->error;

  if(state->encoder.zlibsettings.windowsize > 32768)
  {
    CERROR_RETURN_ERROR(state->error, 60); /*error: windowsize larger than allowed*/
  }
  if(state->encoder.zlibsettings.btype > 2)
  {
    CERROR_RETURN_ERROR(state->error, 61); /*error: unexisting btype*/
  }
  if(state->info_png.interlace_method > 1)
  {
    CERROR_RETURN_ERROR(state->error, 71); /*error: unexisting interlace mode*/
  }

  state->error = checkColorValidity(info.color.colortype, info.color.bitdepth);
  if(state->error) return state->error; /*error: unexisting color type given*/
  state->error = checkColorValidity(state->info_raw.colortype, state->info_raw.bitdepth);
  if(state->error) return state->error; /*error: unexisting color type given*/

  if(!lodepng_color_mode_equal(&state->info_raw, &info.color))
  {
    unsigned char* converted;
    size_t size = (w * h * lodepng_get_bpp(&info.color) + 7) / 8;

    converted = (unsigned char*)mymalloc(size);
    if(!converted && size) state->error = 83; /*alloc fail*/
    if(!state->error)
    {
      state->error = lodepng_convert(converted, image, &info.color, &state->info_raw, w, h);
    }
    if(!state->error) preProcessScanlines(&data, &datasize, converted, w, h, &info, &state->encoder);
    myfree(converted);
  }
  else preProcessScanlines(&data, &datasize, image, w, h, &info, &state->encoder);

  ucvector_init(&outv);
  while(!state->error) /*while only executed once, to break on error*/
  {
#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
    size_t i;
#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
    /*write signature and chunks*/
    writeSignature(&outv);
    /*IHDR*/
    addChunk_IHDR(&outv, w, h, info.color.colortype, info.color.bitdepth, info.interlace_method);
#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
    /*unknown chunks between IHDR and PLTE*/
    if(info.unknown_chunks_data[0])
    {
      state->error = addUnknownChunks(&outv, info.unknown_chunks_data[0], info.unknown_chunks_size[0]);
      if(state->error) break;
    }
#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
    /*PLTE*/
    if(info.color.colortype == LCT_PALETTE)
    {
      addChunk_PLTE(&outv, &info.color);
    }
    if(state->encoder.force_palette && (info.color.colortype == LCT_RGB || info.color.colortype == LCT_RGBA))
    {
      addChunk_PLTE(&outv, &info.color);
    }
    /*tRNS*/
    if(info.color.colortype == LCT_PALETTE && getPaletteTranslucency(info.color.palette, info.color.palettesize) != 0)
    {
      addChunk_tRNS(&outv, &info.color);
    }
    if((info.color.colortype == LCT_GREY || info.color.colortype == LCT_RGB) && info.color.key_defined)
    {
      addChunk_tRNS(&outv, &info.color);
    }
#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
    /*bKGD (must come between PLTE and the IDAt chunks*/
    if(info.background_defined) addChunk_bKGD(&outv, &info);
    /*pHYs (must come before the IDAT chunks)*/
    if(info.phys_defined) addChunk_pHYs(&outv, &info);

    /*unknown chunks between PLTE and IDAT*/
    if(info.unknown_chunks_data[1])
    {
      state->error = addUnknownChunks(&outv, info.unknown_chunks_data[1], info.unknown_chunks_size[1]);
      if(state->error) break;
    }
#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
    /*IDAT (multiple IDAT chunks must be consecutive)*/
    state->error = addChunk_IDAT(&outv, data, datasize, &state->encoder.zlibsettings);
    if(state->error) break;
#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
    /*tIME*/
    if(info.time_defined) addChunk_tIME(&outv, &info.time);
    /*tEXt and/or zTXt*/
    for(i = 0; i < info.text_num; i++)
    {
      if(strlen(info.text_keys[i]) > 79)
      {
        state->error = 66; /*text chunk too large*/
        break;
      }
      if(strlen(info.text_keys[i]) < 1)
      {
        state->error = 67; /*text chunk too small*/
        break;
      }
      if(state->encoder.text_compression)
        addChunk_zTXt(&outv, info.text_keys[i], info.text_strings[i], &state->encoder.zlibsettings);
      else
        addChunk_tEXt(&outv, info.text_keys[i], info.text_strings[i]);
    }
    /*LodePNG version id in text chunk*/
    if(state->encoder.add_id)
    {
      unsigned alread_added_id_text = 0;
      for(i = 0; i < info.text_num; i++)
      {
        if(!strcmp(info.text_keys[i], "LodePNG"))
        {
          alread_added_id_text = 1;
          break;
        }
      }
      if(alread_added_id_text == 0)
        addChunk_tEXt(&outv, "LodePNG", VERSION_STRING); /*it's shorter as tEXt than as zTXt chunk*/
    }
    /*iTXt*/
    for(i = 0; i < info.itext_num; i++)
    {
      if(strlen(info.itext_keys[i]) > 79)
      {
        state->error = 66; /*text chunk too large*/
        break;
      }
      if(strlen(info.itext_keys[i]) < 1)
      {
        state->error = 67; /*text chunk too small*/
        break;
      }
      addChunk_iTXt(&outv, state->encoder.text_compression,
                    info.itext_keys[i], info.itext_langtags[i], info.itext_transkeys[i], info.itext_strings[i],
                    &state->encoder.zlibsettings);
    }

    /*unknown chunks between IDAT and IEND*/
    if(info.unknown_chunks_data[2])
    {
      state->error = addUnknownChunks(&outv, info.unknown_chunks_data[2], info.unknown_chunks_size[2]);
      if(state->error) break;
    }
#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
    /*IEND*/
    addChunk_IEND(&outv);

    break; /*this isn't really a while loop; no error happened so break out now!*/
  }

  lodepng_info_cleanup(&info);
  myfree(data);
  /*instead of cleaning the vector up, give it to the output*/
  *out = outv.data;
  *outsize = outv.size;

  return state->error;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1e8, %rsp            # imm = 0x1E8
movq %r9, %r13
movl %r8d, %r14d
andq $0x0, 0xd8(%rsp)
movl %ecx, %ebp
andq $0x0, 0xe8(%rsp)
movq %rdi, 0x1e0(%rsp)
andq $0x0, (%rdi)
movq %rsi, 0x1d8(%rsp)
andq $0x0, (%rsi)
movq %rdx, 0xc0(%rsp)
andl $0x0, 0x190(%r9)
leaq 0xf0(%rsp), %rbx
movq %rbx, %rdi
callq 0x4a5a
leaq 0xa8(%r13), %rsi
movq %rbx, %rdi
callq 0x4b19
movl 0x10(%rbx), %eax
cmpl $0x3, %eax
je 0x6e33
cmpl $0x0, 0x70(%r13)
je 0x6e5c
movq $-0x101, %rcx           # imm = 0xFEFF
movq 0x110(%rsp), %rdx
addq %rcx, %rdx
cmpq %rcx, %rdx
ja 0x6e5c
movl $0x44, 0x190(%r13)
pushq $0x44
jmp 0x7718
movl 0x60(%r13), %ecx
testl %ecx, %ecx
movq %r13, 0x90(%rsp)
movl %r14d, 0x18(%rsp)
movl %ebp, 0x9c(%rsp)
je 0x6eb7
leaq 0x80(%r13), %r15
cmpl $0x1, %ecx
movl %ecx, 0xcc(%rsp)
jne 0x6ec3
orl $0x2, %eax
cmpl $0x6, %eax
jne 0x746d
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0xa45a
movb $0x1, %al
movb %al, 0x3(%rbx)
movb %al, 0x3c(%rbx)
movb %al, 0x34(%rbx)
movb %al, 0x1(%rbx)
jmp 0x6ed0
movl 0x190(%r13), %ebp
jmp 0x76e5
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
callq 0xa45a
movl %r14d, %eax
imull %ebp, %eax
movq %rax, 0x68(%rsp)
cmpl $0x10, 0x84(%r13)
movq %r15, 0xd0(%rsp)
jne 0x7170
xorl %ebp, %ebp
xorl %ebx, %ebx
cmpq %rbx, 0x68(%rsp)
je 0x73b6
movq %r15, (%rsp)
leaq 0xa0(%rsp), %rdi
leaq 0x70(%rsp), %rsi
leaq 0x14(%rsp), %rdx
leaq 0x1c(%rsp), %rcx
movq 0xc0(%rsp), %r8
movq %rbx, %r9
callq 0x5207
movl %eax, 0xbc(%rsp)
testl %eax, %eax
jne 0x73ad
cmpb $0x0, 0x21(%rsp)
jne 0x6f82
movzwl 0xa0(%rsp), %eax
movzbl %al, %ecx
shrl $0x8, %eax
cmpl %eax, %ecx
jne 0x6f71
movzwl 0x70(%rsp), %eax
movzbl %al, %ecx
shrl $0x8, %eax
cmpl %eax, %ecx
jne 0x6f71
movzwl 0x14(%rsp), %eax
movzbl %al, %ecx
shrl $0x8, %eax
cmpl %eax, %ecx
je 0x6f82
movw $0x101, 0x20(%rsp)      # imm = 0x101
movb $0x1, %al
movb %al, 0x5c(%rsp)
movb %al, 0x54(%rsp)
cmpb $0x0, 0x23(%rsp)
jne 0x6fab
movzwl 0xa0(%rsp), %eax
cmpw 0x70(%rsp), %ax
jne 0x6f9f
cmpw 0x14(%rsp), %ax
je 0x6fab
movw $0x101, 0x22(%rsp)      # imm = 0x101
movb $0x1, 0x5c(%rsp)
cmpb $0x0, 0x2d(%rsp)
sete %al
movzwl 0x1c(%rsp), %r15d
cmpw $0xff, %r15w
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x702e
testw %r15w, %r15w
je 0x6fd8
movw $0x101, 0x2c(%rsp)      # imm = 0x101
jmp 0x7055
cmpb $0x0, 0x24(%rsp)
je 0x7008
movzwl 0xa0(%rsp), %eax
cmpw 0x26(%rsp), %ax
jne 0x6fcf
movzwl 0x70(%rsp), %eax
cmpw 0x28(%rsp), %ax
jne 0x6fcf
movzwl 0x14(%rsp), %eax
cmpw 0x2a(%rsp), %ax
jne 0x6fcf
jmp 0x702e
movb $0x1, 0x24(%rsp)
movzwl 0xa0(%rsp), %eax
movw %ax, 0x26(%rsp)
movzwl 0x70(%rsp), %eax
movw %ax, 0x28(%rsp)
movzwl 0x14(%rsp), %eax
movw %ax, 0x2a(%rsp)
cmpb $0x0, 0x5c(%rsp)
jne 0x705a
movzwl 0xa0(%rsp), %edi
callq 0x568d
movl 0x58(%rsp), %ecx
cmpl %ecx, %eax
jbe 0x7050
movl %eax, 0x58(%rsp)
movl %eax, %ecx
cmpl $0x8, %ecx
jb 0x705a
movb $0x1, 0x5c(%rsp)
movq %rbx, 0xe0(%rsp)
cmpb $0x0, 0x54(%rsp)
je 0x7070
xorl %ecx, %ecx
jmp 0x7123
movb 0xa0(%rsp), %al
movb 0x70(%rsp), %r13b
movb 0x14(%rsp), %bpl
movzbl %r15b, %r8d
movb %al, 0xb8(%rsp)
movzbl %al, %r12d
movzbl %r13b, %r14d
movzbl %bpl, %ebx
leaq 0x38(%rsp), %rdi
movl %r12d, %esi
movl %r14d, %edx
movl %ebx, %ecx
callq 0xa509
movb $0x1, %cl
testl %eax, %eax
jne 0x7123
movb %bpl, 0x16(%rsp)
movb %r13b, 0x17(%rsp)
movl 0x30(%rsp), %r9d
movzbl %r15b, %r8d
leaq 0x38(%rsp), %rdi
movl %r12d, %esi
movl %r14d, %edx
movl %ebx, %ecx
callq 0x517a
movl 0x30(%rsp), %eax
cmpq $0xff, %rax
ja 0x710f
movq 0x48(%rsp), %rcx
movb 0xb8(%rsp), %dl
movb %dl, (%rcx,%rax,4)
shlq $0x2, %rax
movl %eax, %eax
movb 0x17(%rsp), %dl
movb %dl, 0x1(%rcx,%rax)
movb 0x16(%rsp), %dl
movb %dl, 0x2(%rcx,%rax)
movb %r15b, 0x3(%rcx,%rax)
movl 0x30(%rsp), %eax
incl %eax
movl %eax, 0x30(%rsp)
cmpl 0x50(%rsp), %eax
jae 0x7166
cmpb $0x0, 0x54(%rsp)
sete %cl
cmpb $0x0, 0x2d(%rsp)
movl 0x18(%rsp), %r14d
movq 0xd0(%rsp), %r15
movq 0xe0(%rsp), %rbx
je 0x715c
testb %cl, %cl
jne 0x715c
cmpb $0x0, 0x23(%rsp)
je 0x715c
cmpb $0x0, 0x21(%rsp)
je 0x715c
cmpb $0x0, 0x5c(%rsp)
jne 0x73ad
incq %rbx
xorl %ebp, %ebp
jmp 0x6ef5
movb $0x1, 0x54(%rsp)
jmp 0x7069
xorl %ebp, %ebp
xorl %ebx, %ebx
cmpq %rbx, 0x68(%rsp)
je 0x73be
movq %r15, (%rsp)
leaq 0xa0(%rsp), %rdi
leaq 0x70(%rsp), %rsi
leaq 0x14(%rsp), %rdx
leaq 0x1c(%rsp), %rcx
movq 0xc0(%rsp), %r8
movq %rbx, %r9
callq 0x5398
movl %eax, 0xbc(%rsp)
testl %eax, %eax
jne 0x73ad
cmpb $0x0, 0x23(%rsp)
jne 0x71df
movb 0xa0(%rsp), %al
cmpb 0x70(%rsp), %al
jne 0x71d3
cmpb 0x14(%rsp), %al
je 0x71df
movw $0x101, 0x22(%rsp)      # imm = 0x101
movb $0x1, 0x5c(%rsp)
cmpb $0x0, 0x2d(%rsp)
sete %al
movb 0x1c(%rsp), %r15b
cmpb $-0x1, %r15b
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x725e
testb %r15b, %r15b
je 0x7208
movw $0x101, 0x2c(%rsp)      # imm = 0x101
jmp 0x7285
cmpb $0x0, 0x24(%rsp)
je 0x7238
movzbl 0xa0(%rsp), %eax
cmpw %ax, 0x26(%rsp)
jne 0x71ff
movzbl 0x70(%rsp), %eax
cmpw %ax, 0x28(%rsp)
jne 0x71ff
movzbl 0x14(%rsp), %eax
cmpw %ax, 0x2a(%rsp)
jne 0x71ff
jmp 0x725e
movb $0x1, 0x24(%rsp)
movzbl 0xa0(%rsp), %eax
movw %ax, 0x26(%rsp)
movzbl 0x70(%rsp), %eax
movw %ax, 0x28(%rsp)
movzbl 0x14(%rsp), %eax
movw %ax, 0x2a(%rsp)
cmpb $0x0, 0x5c(%rsp)
jne 0x728a
movzbl 0xa0(%rsp), %edi
callq 0x568d
movl 0x58(%rsp), %ecx
cmpl %ecx, %eax
jbe 0x7280
movl %eax, 0x58(%rsp)
movl %eax, %ecx
cmpl $0x8, %ecx
jb 0x728a
movb $0x1, 0x5c(%rsp)
movq %rbx, 0xe0(%rsp)
cmpb $0x0, 0x54(%rsp)
je 0x72a0
xorl %ecx, %ecx
jmp 0x7360
movb 0xa0(%rsp), %al
movb 0x70(%rsp), %r13b
movb 0x14(%rsp), %bpl
movb %al, 0x17(%rsp)
movzbl %al, %ebx
movzbl %r13b, %r14d
movzbl %bpl, %r12d
movzbl %r15b, %r8d
leaq 0x38(%rsp), %rdi
movl %ebx, %esi
movl %r14d, %edx
movl %r12d, %ecx
movl %r8d, 0xb8(%rsp)
callq 0xa509
movb $0x1, %cl
testl %eax, %eax
jne 0x7360
movb %r15b, 0x1e(%rsp)
movb %bpl, 0x1f(%rsp)
movb %r13b, 0x16(%rsp)
movl 0x30(%rsp), %r9d
leaq 0x38(%rsp), %rdi
movl %ebx, %esi
movl %r14d, %edx
movl %r12d, %ecx
movl 0xb8(%rsp), %r8d
callq 0x517a
movl 0x30(%rsp), %eax
cmpq $0xff, %rax
ja 0x734c
movq 0x48(%rsp), %rcx
movb 0x17(%rsp), %dl
movb %dl, (%rcx,%rax,4)
shlq $0x2, %rax
movl %eax, %eax
movb 0x16(%rsp), %dl
movb %dl, 0x1(%rcx,%rax)
movb 0x1f(%rsp), %dl
movb %dl, 0x2(%rcx,%rax)
movb 0x1e(%rsp), %dl
movb %dl, 0x3(%rcx,%rax)
movl 0x30(%rsp), %eax
incl %eax
movl %eax, 0x30(%rsp)
cmpl 0x50(%rsp), %eax
jae 0x73a3
cmpb $0x0, 0x54(%rsp)
sete %cl
cmpb $0x0, 0x2d(%rsp)
movl 0x18(%rsp), %r14d
movl $0x0, %ebp
movq 0xd0(%rsp), %r15
movq 0xe0(%rsp), %rbx
je 0x7393
testb %cl, %cl
jne 0x7393
cmpb $0x0, 0x23(%rsp)
je 0x7393
cmpb $0x0, 0x5c(%rsp)
jne 0x73ad
incq %rbx
movq 0x90(%rsp), %r13
jmp 0x7174
movb $0x1, 0x54(%rsp)
jmp 0x7299
movl 0xbc(%rsp), %eax
movl %eax, %ebp
movq 0x90(%rsp), %r13
cmpl $0xf, 0x84(%r13)
movl 0xcc(%rsp), %ecx
ja 0x73f3
movd 0x26(%rsp), %xmm0
pmullw 0x6c43(%rip), %xmm0     # 0xe020
movd %xmm0, 0x26(%rsp)
movzwl 0x2a(%rsp), %eax
imull $0x101, %eax, %eax      # imm = 0x101
movw %ax, 0x2a(%rsp)
cmpl $0x1, %ecx
jne 0x7424
testl %ebp, %ebp
jne 0x7424
xorl %ebp, %ebp
cmpb $0x0, 0x2c(%rsp)
jne 0x7662
xorl %eax, %eax
cmpl $0x6, 0x100(%rsp)
sete %al
addl %eax, %eax
movl %eax, 0x100(%rsp)
jmp 0x7662
cmpl $0x1, %ecx
je 0x7662
testl %ebp, %ebp
jne 0x7662
andl $0x0, 0x118(%rsp)
cmpb $0x0, 0x20(%rsp)
je 0x7474
movl $0x10, 0x104(%rsp)
cmpb $0x0, 0x2c(%rsp)
movb 0x22(%rsp), %al
je 0x749a
xorl %ecx, %ecx
testb %al, %al
setne %cl
leal 0x4(,%rcx,2), %eax
jmp 0x75c2
xorl %ebp, %ebp
jmp 0x76de
movl 0x30(%rsp), %edx
movl %edx, %eax
cmpl $0x101, %edx            # imm = 0x101
setb %sil
leal (%rdx,%rdx), %ecx
cmpl 0x68(%rsp), %ecx
setb %cl
andb %sil, %cl
cmpl $0x3, %edx
jae 0x74e3
pushq $0x1
jmp 0x74ea
xorl %ecx, %ecx
testb %al, %al
setne %cl
addl %ecx, %ecx
movl %ecx, 0x100(%rsp)
xorl %ebp, %ebp
cmpb $0x0, 0x24(%rsp)
je 0x7662
movl $0x1, 0x118(%rsp)
movd 0x26(%rsp), %xmm0
pxor %xmm1, %xmm1
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movq %xmm0, 0x11c(%rsp)
movzwl 0x2a(%rsp), %eax
jmp 0x765b
cmpl $0x5, %eax
jae 0x74ed
pushq $0x2
popq %rbx
jmp 0x74fc
xorl %edx, %edx
cmpl $0x11, %eax
setae %dl
leal 0x4(,%rdx,4), %ebx
movb 0x22(%rsp), %dl
movb 0x2c(%rsp), %dil
movl %edx, %esi
orb %dil, %sil
sete %sil
movl %ecx, %r8d
orb %sil, %r8b
testb $0x1, %r8b
je 0x75a4
movl 0x58(%rsp), %edx
cmpl %ebx, %edx
setbe %dil
testb %cl, %cl
je 0x75d0
andb %dil, %sil
jne 0x75d0
movq 0x48(%rsp), %r14
leaq 0x4(,%rax,4), %r15
xorl %ebp, %ebp
xorl %edi, %edi
leaq 0x4(%rdi), %r12
cmpq %r12, %r15
je 0x7588
movl %edi, %eax
movzbl (%r14,%rax), %esi
leal 0x1(%rdi), %eax
movzbl (%r14,%rax), %edx
leal 0x2(%rdi), %eax
movzbl (%r14,%rax), %ecx
addl $0x3, %edi
movzbl (%r14,%rdi), %r8d
leaq 0x100(%rsp), %rdi
callq 0x4553
movq %r12, %rdi
testl %eax, %eax
je 0x754a
movl %eax, %ebp
movl $0x3, 0x100(%rsp)
movl %ebx, 0x104(%rsp)
movl 0x18(%rsp), %r14d
jmp 0x7662
movl $0x8, 0x104(%rsp)
testb %dil, %dil
je 0x7613
xorl %eax, %eax
testb %dl, %dl
setne %al
leal 0x4(,%rax,2), %eax
movl %eax, 0x100(%rsp)
xorl %ebp, %ebp
jmp 0x7662
andl $0x0, 0x100(%rsp)
movl %edx, 0x104(%rsp)
xorl %ebp, %ebp
cmpb $0x0, 0x24(%rsp)
je 0x7662
movzwl 0x26(%rsp), %eax
decl %edx
andl %eax, %edx
movl $0x1, 0x118(%rsp)
movl %edx, 0x11c(%rsp)
movl %edx, 0x120(%rsp)
movl %edx, 0x124(%rsp)
jmp 0x7662
xorl %eax, %eax
testb %dl, %dl
setne %al
addl %eax, %eax
movl %eax, 0x100(%rsp)
xorl %ebp, %ebp
cmpb $0x0, 0x24(%rsp)
je 0x7662
movl $0x1, 0x118(%rsp)
movd 0x26(%rsp), %xmm0
pand 0x69eb(%rip), %xmm0     # 0xe030
pxor %xmm1, %xmm1
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movq %xmm0, 0x11c(%rsp)
movzbl 0x2a(%rsp), %eax
movl %eax, 0x124(%rsp)
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
callq 0x5656
movq 0x10(%rbx), %rdi
callq 0x2200
cmpl $0x3, 0x100(%rsp)
jne 0x76bf
movq 0x90(%r13), %rcx
cmpq 0x110(%rsp), %rcx
jne 0x76bf
xorl %eax, %eax
shlq $0x2, %rcx
cmpq %rcx, %rax
jae 0x76bf
movq 0x88(%r13), %rcx
movb (%rcx,%rax), %cl
movq 0x108(%rsp), %rdx
movb %cl, (%rdx,%rax)
incq %rax
movq 0x90(%r13), %rcx
jmp 0x7695
cmpl $0x3, 0xcc(%rsp)
jne 0x76de
cmpl $0x7, 0x104(%rsp)
ja 0x76de
movl $0x8, 0x104(%rsp)
movl %ebp, 0x190(%r13)
testl %ebp, %ebp
jne 0x7719
cmpl $0x8001, 0x40(%r13)     # imm = 0x8001
jb 0x7702
movl $0x3c, 0x190(%r13)
pushq $0x3c
jmp 0x7718
leaq 0x38(%r13), %rbx
cmpl $0x3, (%rbx)
jb 0x772d
movl $0x3d, 0x190(%r13)
pushq $0x3d
popq %rbp
movl %ebp, %eax
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x2, 0xb0(%r13)
jb 0x7747
pushq $0x47
popq %rbp
movl $0x47, 0x190(%r13)
jmp 0x7719
movl 0x100(%rsp), %edi
movl 0x104(%rsp), %esi
callq 0x584f
movl %eax, 0x190(%r13)
testl %eax, %eax
jne 0x7783
movl 0x80(%r13), %edi
movl 0x84(%r13), %esi
callq 0x584f
movl %eax, 0x190(%r13)
testl %eax, %eax
je 0x7787
movl %eax, %ebp
jmp 0x7719
leaq 0x80(%r13), %r15
movq %r15, %rdi
leaq 0x100(%rsp), %r12
movq %r12, %rsi
callq 0x510e
testl %eax, %eax
movq %rbx, 0x68(%rsp)
je 0x77e6
movq %rbx, (%rsp)
leaq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rsi
leaq 0xf0(%rsp), %r9
movq 0xc0(%rsp), %rdx
movl 0x9c(%rsp), %r15d
movl %r15d, %ecx
movl %r14d, %r8d
callq 0x81b0
jmp 0x789b
movl %r14d, %ebp
imull 0x9c(%rsp), %ebp
movq %r12, %rdi
callq 0x45e2
movl %eax, %ebx
imull %ebp, %ebx
addl $0x7, %ebx
movl %ebx, %edi
shrl $0x3, %edi
callq 0x2260
movl %r14d, %r9d
movq %rax, %r14
testq %rax, %rax
setne %al
cmpl $0x8, %ebx
setb %cl
orb %al, %cl
jne 0x7836
movl $0x53, 0x190(%r13)
movl 0x9c(%rsp), %r15d
jmp 0x7893
movq %r14, %rdi
movq 0xc0(%rsp), %rsi
movq %r12, %rdx
movq %r15, %rcx
movl 0x9c(%rsp), %r15d
movl %r15d, %r8d
callq 0x4ce5
movl %eax, 0x190(%r13)
testl %eax, %eax
movq 0x68(%rsp), %rax
jne 0x7893
movq %rax, (%rsp)
leaq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rsi
leaq 0xf0(%rsp), %r9
movq %r14, %rdx
movl %r15d, %ecx
movl 0x18(%rsp), %r8d
callq 0x81b0
movq %r14, %rdi
callq 0x2200
andq $0x0, 0x80(%rsp)
pxor %xmm0, %xmm0
movdqa %xmm0, 0x70(%rsp)
cmpl $0x0, 0x190(%r13)
je 0x78fe
leaq 0xf0(%rsp), %rdi
callq 0x4acc
movq 0xd8(%rsp), %rdi
callq 0x2200
movq 0x70(%rsp), %rax
movq 0x1e0(%rsp), %rcx
movq %rax, (%rcx)
movq 0x78(%rsp), %rax
movq 0x1d8(%rsp), %rcx
movq %rax, (%rcx)
movl 0x190(%r13), %ebp
jmp 0x7719
leaq 0x70(%rsp), %r14
movq %r14, %rdi
movl $0x89, %esi
callq 0x4139
pushq $0x50
popq %rsi
movq %r14, %rdi
callq 0x4139
pushq $0x4e
popq %rsi
movq %r14, %rdi
callq 0x4139
pushq $0x47
popq %rsi
movq %r14, %rdi
callq 0x4139
pushq $0xd
popq %rsi
movq %r14, %rdi
callq 0x4139
pushq $0xa
popq %rbx
movq %r14, %rdi
movl %ebx, %esi
callq 0x4139
pushq $0x1a
popq %rsi
movq %r14, %rdi
callq 0x4139
movq %r14, %rdi
movl %ebx, %esi
callq 0x4139
movzbl 0x100(%rsp), %ebx
movzbl 0x104(%rsp), %r12d
movzbl 0xf8(%rsp), %ebp
movl %r15d, %esi
leaq 0x20(%rsp), %r15
pxor %xmm0, %xmm0
movdqa %xmm0, (%r15)
andq $0x0, 0x10(%r15)
movq %r15, %rdi
callq 0x4165
movq %r15, %rdi
movl 0x18(%rsp), %esi
callq 0x4165
movq %r15, %rdi
movl %r12d, %esi
callq 0x4139
movq %r15, %rdi
movl %ebx, %esi
movq 0x68(%rsp), %rbx
callq 0x4139
movq %r15, %rdi
xorl %esi, %esi
callq 0x4139
movq %r15, %rdi
xorl %esi, %esi
callq 0x4139
movq %r15, %rdi
movl %ebp, %esi
callq 0x4139
movq (%r15), %rdx
movq 0x8(%r15), %rcx
leaq 0x7a9c(%rip), %rsi      # 0xf483
movq %r14, %rdi
callq 0xad14
movq %r15, %rdi
callq 0x9fa4
movq 0x1a8(%rsp), %rsi
testq %rsi, %rsi
je 0x7a25
movq 0x1c0(%rsp), %rdx
leaq 0x70(%rsp), %rdi
callq 0x871b
movl %eax, 0x190(%r13)
testl %eax, %eax
jne 0x78b8
movl 0x100(%rsp), %eax
cmpl $0x3, %eax
jne 0x7a4a
leaq 0x70(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x8772
movl 0x100(%rsp), %eax
cmpl $0x0, 0x70(%r13)
je 0x7a74
movl %eax, %ecx
andl $-0x5, %ecx
cmpl $0x2, %ecx
jne 0x7a74
leaq 0x70(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x8772
movl 0x100(%rsp), %eax
cmpl $0x3, %eax
jne 0x7b38
movq 0x108(%rsp), %rax
movq 0x110(%rsp), %rcx
xorl %edi, %edi
pushq $0x1
popq %rdx
pushq $-0x1
popq %rsi
xorl %r11d, %r11d
xorl %r8d, %r8d
xorl %r9d, %r9d
xorl %r10d, %r10d
cmpq %rcx, %rdi
jae 0x7b11
leaq (,%rdi,4), %rbx
movzbl 0x3(%rax,%rdi,4), %ebp
testq %r11, %r11
je 0x7ae4
cmpl $0xff, %ebp
jne 0x7b1a
movzbl (%rax,%rbx), %r11d
cmpl %r11d, %r8d
jne 0x7b04
movzbl 0x1(%rax,%rbx), %r11d
cmpl %r11d, %r9d
jne 0x7b04
movzbl 0x2(%rax,%rbx), %ebx
movq %rdx, %r11
cmpl %ebx, %r10d
jne 0x7b0c
jmp 0x7b1a
cmpl $0xff, %ebp
je 0x7b09
testl %ebp, %ebp
jne 0x7b1a
movzbl (%rax,%rbx), %r8d
movzbl 0x1(%rax,%rbx), %r9d
movzbl 0x2(%rax,%rbx), %r10d
movq %rsi, %rdi
movq %rdx, %r11
jmp 0x7b0c
xorl %r11d, %r11d
incq %rdi
jmp 0x7aa1
testq %r11, %r11
je 0x7efd
leaq 0x70(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x87ee
movl 0x100(%rsp), %eax
movq 0x68(%rsp), %rbx
testl $0xfffffffd, %eax       # imm = 0xFFFFFFFD
jne 0x7b5b
cmpl $0x0, 0x118(%rsp)
je 0x7b5b
leaq 0x70(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x87ee
cmpl $0x0, 0x128(%rsp)
je 0x7c3b
pxor %xmm0, %xmm0
movdqa %xmm0, 0x20(%rsp)
andq $0x0, 0x30(%rsp)
movl 0x100(%rsp), %eax
xorl %edx, %edx
xorl %ecx, %ecx
cmpq $0x6, %rax
ja 0x7c20
leaq 0x6563(%rip), %rsi      # 0xe0f8
movslq (%rsi,%rax,4), %rax
addq %rsi, %rax
leaq 0x12c(%rsp), %r14
jmpq *%rax
movzbl 0x12d(%rsp), %esi
leaq 0x20(%rsp), %rdi
jmp 0x7bfe
leaq 0x134(%rsp), %r14
movzbl -0x7(%r14), %esi
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
callq 0x4139
movzbl -0x8(%r14), %esi
movq %rbx, %rdi
callq 0x4139
movzbl -0x3(%r14), %esi
movq %rbx, %rdi
callq 0x4139
movzbl -0x4(%r14), %esi
movq %rbx, %rdi
callq 0x4139
movzbl 0x1(%r14), %esi
movq %rbx, %rdi
callq 0x4139
movzbl (%r14), %esi
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
callq 0x4139
movq (%rbx), %rdx
movq 0x8(%rbx), %rcx
movq 0x68(%rsp), %rbx
leaq 0x783e(%rip), %rsi      # 0xf465
leaq 0x70(%rsp), %rdi
callq 0xad14
leaq 0x20(%rsp), %rdi
callq 0x9fa4
cmpl $0x0, 0x194(%rsp)
je 0x7ca6
pxor %xmm0, %xmm0
leaq 0x20(%rsp), %r14
movdqa %xmm0, (%r14)
andq $0x0, 0x10(%r14)
movl 0x198(%rsp), %esi
movq %r14, %rdi
callq 0x4165
movl 0x19c(%rsp), %esi
movq %r14, %rdi
callq 0x4165
movzbl 0x1a0(%rsp), %esi
movq %r14, %rdi
callq 0x4139
movq (%r14), %rdx
movq 0x8(%r14), %rcx
leaq 0x77ea(%rip), %rsi      # 0xf47e
leaq 0x70(%rsp), %rdi
callq 0xad14
movq %r14, %rdi
callq 0x9fa4
movq 0x1b0(%rsp), %rsi
testq %rsi, %rsi
je 0x7cd4
movq 0x1c8(%rsp), %rdx
leaq 0x70(%rsp), %rdi
callq 0x871b
movl %eax, 0x190(%r13)
testl %eax, %eax
jne 0x78b8
movq 0xd8(%rsp), %rdx
movq 0xe8(%rsp), %rcx
pxor %xmm0, %xmm0
leaq 0x28(%rsp), %rsi
movdqa %xmm0, -0x8(%rsi)
andq $0x0, 0x8(%rsi)
leaq 0x20(%rsp), %rdi
movq %rbx, %r8
callq 0x8cd8
movl %eax, %ebx
testl %eax, %eax
jne 0x7d27
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rcx
leaq 0x7736(%rip), %rsi      # 0xf451
leaq 0x70(%rsp), %rdi
callq 0xad14
movl %eax, %ebx
leaq 0x20(%rsp), %rdi
callq 0x9fa4
movl %ebx, 0x190(%r13)
testl %ebx, %ebx
jne 0x78b8
cmpl $0x0, 0x178(%rsp)
je 0x7db5
pushq $0x7
popq %rdi
callq 0x2260
testq %rax, %rax
je 0x7db5
movq %rax, %rbp
movdqu 0x17c(%rsp), %xmm0
movl 0x17c(%rsp), %eax
pand 0x62ce(%rip), %xmm0     # 0xe040
movb %ah, (%rbp)
packuswb %xmm0, %xmm0
packuswb %xmm0, %xmm0
movd %xmm0, 0x1(%rbp)
movb 0x18c(%rsp), %al
movb %al, 0x5(%rbp)
movb 0x190(%rsp), %al
movb %al, 0x6(%rbp)
leaq 0x76dc(%rip), %rsi      # 0xf479
leaq 0x70(%rsp), %rdi
pushq $0x7
popq %rcx
movq %rbp, %rdx
callq 0xad14
movq %rbp, %rdi
callq 0x2200
xorl %ebx, %ebx
leaq 0x20(%rsp), %r12
leaq 0xa0(%rsp), %r13
movq 0x138(%rsp), %r15
cmpq %r15, %rbx
jae 0x7f1a
movq 0x140(%rsp), %rax
movq (%rax,%rbx,8), %r14
movq %r14, %rdi
callq 0x20c0
cmpq $0x4f, %rax
ja 0x7f05
testq %rax, %rax
je 0x7f09
movq 0x90(%rsp), %rax
cmpl $0x0, 0x78(%rax)
movq 0x148(%rsp), %rax
movq (%rax,%rbx,8), %rbp
je 0x7eb8
movq %rbp, %rdi
callq 0x20c0
movq %rax, %r15
pxor %xmm0, %xmm0
movdqa %xmm0, 0x20(%rsp)
andq $0x0, 0x30(%rsp)
movdqa %xmm0, 0xa0(%rsp)
andq $0x0, 0xb0(%rsp)
movb (%r14), %al
testb %al, %al
je 0x7e5e
movzbl %al, %esi
movq %r12, %rdi
callq 0x4139
incq %r14
jmp 0x7e47
movq %r12, %rdi
xorl %esi, %esi
callq 0x4139
movq %r12, %rdi
xorl %esi, %esi
callq 0x4139
movq %r13, %rdi
leaq 0xa8(%rsp), %rsi
movq %rbp, %rdx
movq %r15, %rcx
movq 0x68(%rsp), %r8
callq 0x8cd8
testl %eax, %eax
jne 0x7ee5
xorl %r14d, %r14d
cmpq 0xa8(%rsp), %r14
jae 0x7eca
movq 0xa0(%rsp), %rax
movzbl (%rax,%r14), %esi
movq %r12, %rdi
callq 0x4139
incq %r14
jmp 0x7e94
leaq 0x70(%rsp), %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0x88fe
jmp 0x7ef5
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rcx
leaq 0x70(%rsp), %rdi
leaq 0x758f(%rip), %rsi      # 0xf46f
callq 0xad14
movq %r13, %rdi
callq 0x9fa4
movq %r12, %rdi
callq 0x9fa4
incq %rbx
jmp 0x7dc4
pushq $0x3
popq %rax
jmp 0x7b33
pushq $0x42
jmp 0x7f0b
pushq $0x43
popq %rcx
movq 0x90(%rsp), %rax
movl %ecx, 0x190(%rax)
movq 0x90(%rsp), %r13
cmpl $0x0, 0x74(%r13)
je 0x7f6d
movq 0x140(%rsp), %r14
xorl %r12d, %r12d
leaq 0x66cf(%rip), %rbx      # 0xe60a
cmpq %r12, %r15
je 0x7f55
movq (%r14,%r12,8), %rdi
movq %rbx, %rsi
callq 0x2290
incq %r12
testl %eax, %eax
jne 0x7f3b
jmp 0x7f6d
leaq 0x66ae(%rip), %rsi      # 0xe60a
leaq 0x66af(%rip), %rdx      # 0xe612
leaq 0x70(%rsp), %rdi
callq 0x88fe
xorl %r14d, %r14d
leaq 0x20(%rsp), %r15
leaq 0xa0(%rsp), %rbx
cmpq 0x150(%rsp), %r14
jae 0x8168
movq 0x158(%rsp), %rax
movq (%rax,%r14,8), %rbp
movq %rbp, %rdi
callq 0x20c0
cmpq $0x4f, %rax
ja 0x815a
testq %rax, %rax
je 0x815e
movl 0x78(%r13), %eax
movl %eax, 0x18(%rsp)
movq 0x160(%rsp), %rax
movq 0x168(%rsp), %rcx
movq (%rax,%r14,8), %r12
movq (%rcx,%r14,8), %r13
movq 0x170(%rsp), %rax
movq %r14, 0xc0(%rsp)
movq (%rax,%r14,8), %r14
movq %r14, %rdi
callq 0x20c0
movq %rax, 0xd0(%rsp)
pxor %xmm0, %xmm0
movdqa %xmm0, 0x20(%rsp)
andq $0x0, 0x30(%rsp)
movb (%rbp), %al
testb %al, %al
je 0x801d
movzbl %al, %esi
movq %r15, %rdi
callq 0x4139
incq %rbp
jmp 0x8006
movq %r15, %rdi
xorl %esi, %esi
callq 0x4139
xorl %esi, %esi
movl 0x18(%rsp), %ebp
testl %ebp, %ebp
setne %sil
movq %r15, %rdi
callq 0x4139
movq %r15, %rdi
xorl %esi, %esi
callq 0x4139
movb (%r12), %al
testb %al, %al
je 0x805d
movzbl %al, %esi
movq %r15, %rdi
callq 0x4139
incq %r12
jmp 0x8045
movq %r15, %rdi
xorl %esi, %esi
callq 0x4139
movb (%r13), %al
testb %al, %al
je 0x807f
movzbl %al, %esi
movq %r15, %rdi
callq 0x4139
incq %r13
jmp 0x8067
movq %r15, %rdi
xorl %esi, %esi
callq 0x4139
testl %ebp, %ebp
je 0x80d9
pxor %xmm0, %xmm0
movdqa %xmm0, 0xa0(%rsp)
andq $0x0, 0xb0(%rsp)
movq %rbx, %rdi
leaq 0xa8(%rsp), %rsi
movq %r14, %rdx
movq 0xd0(%rsp), %rcx
movq 0x68(%rsp), %r8
callq 0x8cd8
testl %eax, %eax
movq 0x90(%rsp), %r13
je 0x80f8
movq %rbx, %rdi
callq 0x9fa4
jmp 0x8142
movq 0x90(%rsp), %r13
movb (%r14), %al
testb %al, %al
je 0x8127
movzbl %al, %esi
movq %r15, %rdi
callq 0x4139
incq %r14
jmp 0x80e1
xorl %r14d, %r14d
cmpq 0xa8(%rsp), %r14
jae 0x811f
movq 0xa0(%rsp), %rax
movzbl (%rax,%r14), %esi
movq %r15, %rdi
callq 0x4139
incq %r14
jmp 0x80fb
movq %rbx, %rdi
callq 0x9fa4
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rcx
leaq 0x70(%rsp), %rdi
leaq 0x7337(%rip), %rsi      # 0xf474
callq 0xad14
movq %r15, %rdi
callq 0x9fa4
movq 0xc0(%rsp), %r14
incq %r14
jmp 0x7f7d
pushq $0x42
jmp 0x8160
pushq $0x43
popq %rax
movl %eax, 0x190(%r13)
movq 0x1b8(%rsp), %rsi
testq %rsi, %rsi
je 0x8196
movq 0x1d0(%rsp), %rdx
leaq 0x70(%rsp), %rdi
callq 0x871b
movl %eax, 0x190(%r13)
testl %eax, %eax
jne 0x78b8
leaq 0x72b9(%rip), %rsi      # 0xf456
leaq 0x70(%rsp), %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xad14
jmp 0x78b8