// File: /workspace/github_cpp_makefile_star2_O2/phillip-h[P]fractal-gen/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)
  {
    state->error = lodepng_auto_choose_color(&info.color, image, w, h, &state->info_raw);
  }
  if(state->error) return state->error;

  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 * (size_t)lodepng_get_bpp(&info.color) + 7) / 8;

    converted = (unsigned char*)lodepng_malloc(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);
    lodepng_free(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", 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*/
    addChunk_IEND(&outv);

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

  lodepng_info_cleanup(&info);
  lodepng_free(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 $0x1b8, %rsp            # imm = 0x1B8
andq $0x0, 0x58(%rsp)
andq $0x0, 0x98(%rsp)
andq $0x0, (%rdi)
andq $0x0, (%rsi)
andl $0x0, 0x1a0(%r9)
leaq 0xd0(%rsp), %r14
movq %rdi, %r15
movq %r9, %rbx
movl %r8d, %ebp
movl %ecx, %r12d
movq %rdx, %r13
movq %rsi, 0xc8(%rsp)
movq %r14, %rdi
callq 0x63e0
leaq 0xb8(%rbx), %rsi
movq %r14, %rdi
callq 0x649d
cmpl $0x3, 0x10(%r14)
je 0x960c
cmpl $0x0, 0x80(%rbx)
je 0x9631
movq 0xf0(%rsp), %rcx
movq $-0x101, %rax           # imm = 0xFEFF
addq %rax, %rcx
cmpq %rax, %rcx
ja 0x9631
movl $0x44, 0x1a0(%rbx)
pushq $0x44
jmp 0x967b
cmpl $0x0, 0x68(%rbx)
leaq 0xe0(%rsp), %rdi
je 0x965b
leaq 0x90(%rbx), %r8
movq %r13, %rsi
movl %r12d, %edx
movl %ebp, %ecx
callq 0x7b66
movl %eax, 0x1a0(%rbx)
jmp 0x9661
movl 0x1a0(%rbx), %eax
testl %eax, %eax
jne 0x967c
leaq 0x38(%rbx), %r14
cmpl $0x3, (%r14)
jb 0x968e
movl $0x3d, 0x1a0(%rbx)
pushq $0x3d
popq %rax
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x2, 0xc0(%rbx)
jb 0x96a6
pushq $0x47
popq %rax
movl $0x47, 0x1a0(%rbx)
jmp 0x967c
movl 0xe0(%rsp), %edi
movl 0xe4(%rsp), %esi
callq 0x7f20
movl %eax, 0x1a0(%rbx)
testl %eax, %eax
jne 0x967c
movl 0x90(%rbx), %edi
movl 0x94(%rbx), %esi
callq 0x7f20
movl %eax, 0x1a0(%rbx)
testl %eax, %eax
jne 0x967c
leaq 0x90(%rbx), %rdi
leaq 0xe0(%rsp), %rsi
movq %rdi, 0x8(%rsp)
callq 0x6b38
movq %r14, 0x18(%rsp)
testl %eax, %eax
je 0x972c
leaq 0x58(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0xd0(%rsp), %r9
movq %r14, (%rsp)
movq %r13, %rdx
movl %r12d, %ecx
movl %ebp, %r8d
callq 0xa187
jmp 0x97d8
movl %ebp, %eax
imull %r12d, %eax
leaq 0xe0(%rsp), %rdi
movq %rax, 0x10(%rsp)
callq 0x5f6e
movl %eax, %r14d
imulq 0x10(%rsp), %r14
leaq 0x7(%r14), %rdi
shrq $0x3, %rdi
callq 0x21c0
testq %rax, %rax
movq %rax, %rdi
setne %al
testq %r14, %r14
sete %cl
orb %al, %cl
jne 0x9779
movl $0x53, 0x1a0(%rbx)
jmp 0x97d3
movq 0x8(%rsp), %rcx
leaq 0xe0(%rsp), %rdx
movq %r13, %rsi
movq %rdi, %r14
movl %r12d, %r8d
movl %ebp, %r9d
callq 0x670e
movq %r14, %rdi
movl %eax, 0x1a0(%rbx)
testl %eax, %eax
movq 0x18(%rsp), %rax
jne 0x97d3
leaq 0x58(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0xd0(%rsp), %r9
movq %rax, (%rsp)
movq %r14, %rdx
movl %r12d, %ecx
movl %ebp, %r8d
callq 0xa187
movq %r14, %rdi
callq 0x2180
vpxor %xmm0, %xmm0, %xmm0
andq $0x0, 0x50(%rsp)
vmovdqa %xmm0, 0x40(%rsp)
cmpl $0x0, 0x1a0(%rbx)
je 0x982b
leaq 0xd0(%rsp), %rdi
callq 0x6450
movq 0x58(%rsp), %rdi
callq 0x2180
movq 0x40(%rsp), %rax
movq 0xc8(%rsp), %rcx
movq %rax, (%r15)
movq 0x48(%rsp), %rax
movq %rax, (%rcx)
movl 0x1a0(%rbx), %eax
jmp 0x967c
leaq 0x40(%rsp), %r13
movl $0x89, %esi
movq %r13, %rdi
callq 0x5b34
pushq $0x50
popq %rsi
movq %r13, %rdi
callq 0x5b34
pushq $0x4e
popq %rsi
movq %r13, %rdi
callq 0x5b34
pushq $0x47
popq %rsi
movq %r13, %rdi
callq 0x5b34
pushq $0xd
popq %rsi
movq %r13, %rdi
callq 0x5b34
pushq $0xa
popq %r14
movq %r13, %rdi
movl %r14d, %esi
callq 0x5b34
pushq $0x1a
popq %rsi
movq %r13, %rdi
callq 0x5b34
movq %r13, %rdi
movl %r14d, %esi
callq 0x5b34
leaq 0x20(%rsp), %r13
movzbl 0xe0(%rsp), %eax
movzbl 0xd8(%rsp), %ecx
movzbl 0xe4(%rsp), %r14d
vpxor %xmm0, %xmm0, %xmm0
movl %r12d, %esi
andq $0x0, 0x10(%r13)
movq %r13, %rdi
vmovdqa %xmm0, (%r13)
movl %eax, 0x10(%rsp)
movl %ecx, 0x8(%rsp)
callq 0x5b60
movq %r13, %rdi
movl %ebp, %esi
callq 0x5b60
movl %r14d, %esi
movq 0x18(%rsp), %r14
movq %r13, %rdi
callq 0x5b34
movl 0x10(%rsp), %esi
movq %r13, %rdi
callq 0x5b34
movq %r13, %rdi
xorl %esi, %esi
callq 0x5b34
movq %r13, %rdi
xorl %esi, %esi
callq 0x5b34
movl 0x8(%rsp), %esi
movq %r13, %rdi
callq 0x5b34
movq (%r13), %rdx
movq 0x8(%r13), %rcx
leaq 0x5471(%rip), %rsi      # 0xed94
leaq 0x40(%rsp), %rdi
callq 0xcd91
movq %r13, %rdi
callq 0xbf52
movq 0x188(%rsp), %rsi
testq %rsi, %rsi
je 0x9962
movq 0x1a0(%rsp), %rdx
leaq 0x40(%rsp), %rdi
callq 0xa662
movl %eax, 0x1a0(%rbx)
testl %eax, %eax
jne 0x97f1
movl 0xe0(%rsp), %eax
cmpl $0x3, %eax
jne 0x9987
leaq 0x40(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0xa6b9
movl 0xe0(%rsp), %eax
cmpl $0x0, 0x80(%rbx)
je 0x99b3
movl %eax, %ecx
andl $-0x5, %ecx
cmpl $0x2, %ecx
jne 0x99b3
leaq 0x40(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0xa6b9
movl 0xe0(%rsp), %eax
cmpl $0x3, %eax
jne 0x9a76
movq 0xe8(%rsp), %rax
movq 0xf0(%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
je 0x9a4f
movzbl 0x3(%rax,%rdi,4), %ebp
leaq (,%rdi,4), %r14
testl %r11d, %r11d
je 0x9a24
cmpl $0xff, %ebp
jne 0x9a58
movzbl (%rax,%r14), %r11d
cmpl %r11d, %r8d
jne 0x9a47
movzbl 0x1(%rax,%r14), %r11d
cmpl %r11d, %r9d
jne 0x9a47
movzbl 0x2(%rax,%r14), %ebp
movl %edx, %r11d
cmpl %ebp, %r10d
jne 0x9a4a
jmp 0x9a58
xorl %r11d, %r11d
cmpl $0xff, %ebp
je 0x9a4a
testl %ebp, %ebp
jne 0x9a58
movzbl (%rax,%r14), %r8d
movzbl 0x1(%rax,%r14), %r9d
movzbl 0x2(%rax,%r14), %r10d
movq %rsi, %rdi
movl %edx, %r11d
incq %rdi
jmp 0x99e0
testl %r11d, %r11d
je 0x9e72
leaq 0x40(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0xa737
movl 0xe0(%rsp), %eax
movq 0x18(%rsp), %r14
testl $0xfffffffd, %eax       # imm = 0xFFFFFFFD
jne 0x9a99
cmpl $0x0, 0xf8(%rsp)
je 0x9a99
leaq 0x40(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0xa737
cmpl $0x0, 0x108(%rsp)
je 0x9b8d
andq $0x0, 0x30(%rsp)
movl 0xe0(%rsp), %eax
vpxor %xmm0, %xmm0, %xmm0
xorl %edx, %edx
xorl %ecx, %ecx
vmovdqa %xmm0, 0x20(%rsp)
cmpq $0x6, %rax
ja 0x9b6d
leaq 0x4945(%rip), %rsi      # 0xe418
leaq 0x10c(%rsp), %r14
movslq (%rsi,%rax,4), %rax
addq %rsi, %rax
jmpq *%rax
movzbl 0x10d(%rsp), %esi
leaq 0x20(%rsp), %rdi
jmp 0x9b50
leaq 0x114(%rsp), %r14
movl $0xff, %r13d
leaq 0x20(%rsp), %r12
movl -0x8(%r14), %ebp
movq %r12, %rdi
movl %ebp, %esi
shrl $0x8, %esi
andl %r13d, %esi
callq 0x5b34
andl %r13d, %ebp
movq %r12, %rdi
movl %ebp, %esi
callq 0x5b34
movl -0x4(%r14), %ebp
movq %r12, %rdi
movl %ebp, %esi
shrl $0x8, %esi
andl %r13d, %esi
callq 0x5b34
andl %r13d, %ebp
movq %r12, %rdi
movl %ebp, %esi
callq 0x5b34
movzbl 0x1(%r14), %esi
movq %r12, %rdi
callq 0x5b34
movzbl (%r14), %esi
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x5b34
movq (%r14), %rdx
movq 0x8(%r14), %rcx
leaq 0x611f(%rip), %rsi      # 0xfc93
leaq 0x40(%rsp), %rdi
callq 0xcd91
leaq 0x20(%rsp), %rdi
callq 0xbf52
movq 0x18(%rsp), %r14
cmpl $0x0, 0x174(%rsp)
je 0x9bfc
leaq 0x20(%rsp), %r12
movl 0x178(%rsp), %esi
vpxor %xmm0, %xmm0, %xmm0
andq $0x0, 0x10(%r12)
movq %r12, %rdi
vmovdqa %xmm0, (%r12)
callq 0x5b60
movl 0x17c(%rsp), %esi
movq %r12, %rdi
callq 0x5b60
movzbl 0x180(%rsp), %esi
movq %r12, %rdi
callq 0x5b34
movq (%r12), %rdx
movq 0x8(%r12), %rcx
leaq 0x60c2(%rip), %rsi      # 0xfcac
leaq 0x40(%rsp), %rdi
callq 0xcd91
movq %r12, %rdi
callq 0xbf52
movq 0x190(%rsp), %rsi
testq %rsi, %rsi
je 0x9c29
movq 0x1a8(%rsp), %rdx
leaq 0x40(%rsp), %rdi
callq 0xa662
movl %eax, 0x1a0(%rbx)
testl %eax, %eax
jne 0x97f1
leaq 0x28(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq 0x98(%rsp), %rcx
vpxor %xmm0, %xmm0, %xmm0
leaq 0x20(%rsp), %rdi
movq %r14, %r8
andq $0x0, 0x8(%rsi)
vmovdqa %xmm0, -0x8(%rsi)
callq 0xab83
movl %eax, %ebp
testl %eax, %eax
jne 0x9c79
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rcx
leaq 0x6012(%rip), %rsi      # 0xfc7f
leaq 0x40(%rsp), %rdi
callq 0xcd91
movl %eax, %ebp
leaq 0x20(%rsp), %rdi
callq 0xbf52
movl %ebp, 0x1a0(%rbx)
testl %ebp, %ebp
jne 0x97f1
cmpl $0x0, 0x158(%rsp)
je 0x9cfb
pushq $0x7
popq %rdi
callq 0x21c0
testq %rax, %rax
je 0x9cfb
movq %rax, %rbp
movl 0x15c(%rsp), %eax
vmovdqu 0x15c(%rsp), %xmm0
leaq 0x5fe5(%rip), %rsi      # 0xfca7
leaq 0x40(%rsp), %rdi
movb %ah, (%rbp)
movb 0x16c(%rsp), %al
vpmovdb %xmm0, 0x1(%rbp)
movb %al, 0x5(%rbp)
movb 0x170(%rsp), %al
movb %al, 0x6(%rbp)
pushq $0x7
popq %rcx
movq %rbp, %rdx
callq 0xcd91
movq %rbp, %rdi
callq 0x2180
movq 0x118(%rsp), %rax
movq 0x120(%rsp), %rdx
movq 0x128(%rsp), %rcx
leaq 0x20(%rsp), %rbp
xorl %r14d, %r14d
movq %rax, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movq %rcx, 0x90(%rsp)
cmpq 0x8(%rsp), %r14
je 0x9e7a
movq 0x10(%rsp), %rax
movq (%rax,%r14,8), %r12
movq %r12, %rdi
callq 0x2070
cmpq $0x4f, %rax
ja 0x9e81
testq %rax, %rax
je 0x9e85
movq 0x90(%rsp), %rax
cmpl $0x0, 0x88(%rbx)
movq (%rax,%r14,8), %rdx
je 0x9e30
movq %rdx, %rdi
movq %rdx, 0x88(%rsp)
callq 0x2070
andq $0x0, 0x30(%rsp)
andq $0x0, 0x70(%rsp)
vpxor %xmm0, %xmm0, %xmm0
movq %rax, 0x80(%rsp)
vmovdqa %xmm0, 0x20(%rsp)
vmovdqa %xmm0, 0x60(%rsp)
pushq $-0x50
popq %r13
movb 0x50(%r12,%r13), %al
testb %al, %al
je 0x9dc6
movzbl %al, %esi
movq %rbp, %rdi
callq 0x5b34
incq %r13
jmp 0x9dad
cmpq $-0x4f, %r13
leaq 0x60(%rsp), %r13
jb 0x9e6a
movq %rbp, %rdi
xorl %esi, %esi
callq 0x5b34
movq %rbp, %rdi
xorl %esi, %esi
callq 0x5b34
movq 0x88(%rsp), %rdx
movq 0x80(%rsp), %rcx
movq 0x18(%rsp), %r8
leaq 0x68(%rsp), %rsi
movq %r13, %rdi
callq 0xab83
testl %eax, %eax
jne 0x9e5a
xorl %r12d, %r12d
cmpq 0x68(%rsp), %r12
je 0x9e3f
movq 0x60(%rsp), %rax
movq %rbp, %rdi
movzbl (%rax,%r12), %esi
callq 0x5b34
incq %r12
jmp 0x9e12
leaq 0x40(%rsp), %rdi
movq %r12, %rsi
callq 0xa849
jmp 0x9e6a
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rcx
leaq 0x40(%rsp), %rdi
leaq 0x5e48(%rip), %rsi      # 0xfc9d
callq 0xcd91
movq %r13, %rdi
callq 0xbf52
movq %rbp, %rdi
callq 0xbf52
incq %r14
jmp 0x9d2d
pushq $0x3
popq %rax
jmp 0x9a71
movq %r14, 0x8(%rsp)
jmp 0x9e8e
pushq $0x42
jmp 0x9e87
pushq $0x43
popq %rax
movl %eax, 0x1a0(%rbx)
cmpl $0x0, 0x84(%rbx)
je 0x9edd
movq 0x120(%rsp), %r14
leaq 0x4ef3(%rip), %r12      # 0xed99
xorl %r13d, %r13d
cmpq %r13, 0x8(%rsp)
je 0x9ec5
movq (%r14,%r13,8), %rdi
movq %r12, %rsi
callq 0x21e0
incq %r13
testl %eax, %eax
jne 0x9ea9
jmp 0x9edd
movq 0xb2bc(%rip), %rdx      # 0x15188
leaq 0x4ec6(%rip), %rsi      # 0xed99
leaq 0x40(%rsp), %rdi
callq 0xa849
movq 0x138(%rsp), %rdx
movq 0x140(%rsp), %rcx
movq 0x130(%rsp), %rax
xorl %r13d, %r13d
movq %r15, 0xa0(%rsp)
movq %rdx, 0xc0(%rsp)
movq %rcx, 0xb8(%rsp)
movq 0x148(%rsp), %rdx
movq 0x150(%rsp), %rcx
movq %rax, 0x80(%rsp)
movq %rdx, 0xb0(%rsp)
movq %rcx, 0xa8(%rsp)
pushq $0x42
popq %r14
leaq 0x20(%rsp), %rbp
cmpq 0x80(%rsp), %r13
je 0xa138
movq 0xc0(%rsp), %rax
movq %rbp, %r15
movq (%rax,%r13,8), %rbp
movq %rbp, %rdi
callq 0x2070
cmpq $0x4f, %rax
ja 0xa131
testq %rax, %rax
je 0xa12d
movq 0xb8(%rsp), %rcx
movq 0xb0(%rsp), %rdx
movl 0x88(%rbx), %eax
movq %r13, 0x8(%rsp)
movq (%rcx,%r13,8), %r12
movq 0xa8(%rsp), %rcx
movq (%rdx,%r13,8), %r14
movl %eax, 0x90(%rsp)
movq (%rcx,%r13,8), %rdi
movq %rdi, 0x10(%rsp)
callq 0x2070
andq $0x0, 0x30(%rsp)
vpxor %xmm0, %xmm0, %xmm0
movq %rax, 0x88(%rsp)
vmovdqa %xmm0, 0x20(%rsp)
pushq $-0x50
popq %r13
movb 0x50(%rbp,%r13), %al
testb %al, %al
je 0x9fee
movzbl %al, %esi
movq %r15, %rdi
callq 0x5b34
incq %r13
jmp 0x9fd5
movq %r15, %rbp
cmpq $-0x4f, %r13
movq 0x8(%rsp), %r13
jb 0xa121
movq %rbp, %rdi
xorl %esi, %esi
callq 0x5b34
movl 0x90(%rsp), %r15d
xorl %esi, %esi
movq %rbp, %rdi
testl %r15d, %r15d
setne %sil
callq 0x5b34
movq %rbp, %rdi
xorl %esi, %esi
callq 0x5b34
movb (%r12), %al
testb %al, %al
je 0xa045
movzbl %al, %esi
movq %rbp, %rdi
callq 0x5b34
incq %r12
jmp 0xa02d
movq %rbp, %rdi
xorl %esi, %esi
callq 0x5b34
movb (%r14), %al
testb %al, %al
je 0xa066
movzbl %al, %esi
movq %rbp, %rdi
callq 0x5b34
incq %r14
jmp 0xa04f
movq %rbp, %rdi
xorl %esi, %esi
callq 0x5b34
testl %r15d, %r15d
je 0xa0b7
andq $0x0, 0x70(%rsp)
movq 0x10(%rsp), %rdx
movq 0x88(%rsp), %rcx
movq 0x18(%rsp), %r8
vpxor %xmm0, %xmm0, %xmm0
leaq 0x60(%rsp), %r14
leaq 0x68(%rsp), %rsi
movq %r14, %rdi
vmovdqa %xmm0, 0x60(%rsp)
callq 0xab83
testl %eax, %eax
je 0xa0d3
movq %r14, %rdi
callq 0xbf52
jmp 0xa119
movq 0x10(%rsp), %r14
movb (%r14), %al
testb %al, %al
je 0xa0fe
movzbl %al, %esi
movq %rbp, %rdi
callq 0x5b34
incq %r14
jmp 0xa0bc
xorl %r14d, %r14d
cmpq 0x68(%rsp), %r14
je 0xa0f4
movq 0x60(%rsp), %rax
movq %rbp, %rdi
movzbl (%rax,%r14), %esi
callq 0x5b34
incq %r14
jmp 0xa0d6
leaq 0x60(%rsp), %rdi
callq 0xbf52
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rcx
leaq 0x40(%rsp), %rdi
leaq 0x5b8e(%rip), %rsi      # 0xfca2
callq 0xcd91
movq %rbp, %rdi
callq 0xbf52
incq %r13
pushq $0x42
popq %r14
jmp 0x9f41
pushq $0x43
popq %r14
movl %r14d, 0x1a0(%rbx)
movq 0x198(%rsp), %rsi
movq 0xa0(%rsp), %r15
testq %rsi, %rsi
je 0xa16d
movq 0x1b0(%rsp), %rdx
leaq 0x40(%rsp), %rdi
callq 0xa662
movl %eax, 0x1a0(%rbx)
testl %eax, %eax
jne 0x97f1
leaq 0x5b10(%rip), %rsi      # 0xfc84
leaq 0x40(%rsp), %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xcd91
jmp 0x97f1