// File: /workspace/github_c_makefile_star2_O2/pje[P]pixelsort/lodepng.c
// Function: lodepng_encode
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 * 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", 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
movq %r9, %rbx
movl %r8d, %ebp
andq $0x0, 0x58(%rsp)
movl %ecx, %r12d
andq $0x0, 0x98(%rsp)
movq %rdi, 0xc8(%rsp)
andq $0x0, (%rdi)
movq %rsi, %r15
andq $0x0, (%rsi)
movq %rdx, %r13
andl $0x0, 0x198(%r9)
leaq 0xd0(%rsp), %r14
movq %r14, %rdi
callq 0x37fa
leaq 0xb0(%rbx), %rsi
movq %r14, %rdi
callq 0x38b9
cmpl $0x3, 0x10(%r14)
je 0x6710
cmpl $0x0, 0x78(%rbx)
je 0x6735
movq $-0x101, %rax           # imm = 0xFEFF
movq 0xf0(%rsp), %rcx
addq %rax, %rcx
cmpq %rax, %rcx
ja 0x6735
movl $0x44, 0x198(%rbx)
pushq $0x44
jmp 0x677f
leaq 0xe0(%rsp), %rdi
cmpl $0x0, 0x60(%rbx)
je 0x675f
leaq 0x88(%rbx), %r8
movq %r13, %rsi
movl %r12d, %edx
movl %ebp, %ecx
callq 0x4de4
movl %eax, 0x198(%rbx)
jmp 0x6765
movl 0x198(%rbx), %eax
testl %eax, %eax
jne 0x6780
leaq 0x30(%rbx), %r14
cmpl $0x3, (%r14)
jb 0x6792
movl $0x3d, 0x198(%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, 0xb8(%rbx)
jb 0x67aa
pushq $0x47
popq %rax
movl $0x47, 0x198(%rbx)
jmp 0x6780
movl 0xe0(%rsp), %edi
movl 0xe4(%rsp), %esi
callq 0x5165
movl %eax, 0x198(%rbx)
testl %eax, %eax
jne 0x6780
movl 0x88(%rbx), %edi
movl 0x8c(%rbx), %esi
callq 0x5165
movl %eax, 0x198(%rbx)
testl %eax, %eax
jne 0x6780
leaq 0x88(%rbx), %rdi
movq %rdi, 0x10(%rsp)
leaq 0xe0(%rsp), %rsi
callq 0x3e8e
testl %eax, %eax
movq %r14, 0x18(%rsp)
je 0x6830
movq %r14, (%rsp)
leaq 0x58(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0xd0(%rsp), %r9
movq %r13, %rdx
movl %r12d, %ecx
movl %ebp, %r8d
callq 0x7285
jmp 0x68d8
movl %ebp, %eax
imull %r12d, %eax
movl %eax, 0x8(%rsp)
leaq 0xe0(%rsp), %rdi
callq 0x3382
movl %eax, %r14d
imull 0x8(%rsp), %r14d
addl $0x7, %r14d
movl %r14d, %edi
shrl $0x3, %edi
callq 0x1130
movq %rax, %rdi
testq %rax, %rax
setne %al
cmpl $0x8, %r14d
setb %cl
orb %al, %cl
jne 0x687f
movl $0x53, 0x198(%rbx)
jmp 0x68d3
movq %rdi, %r14
movq %r13, %rsi
leaq 0xe0(%rsp), %rdx
movq 0x10(%rsp), %rcx
movl %r12d, %r8d
movl %ebp, %r9d
callq 0x3a85
andl $0x0, 0x198(%rbx)
movq 0x18(%rsp), %rax
movq %rax, (%rsp)
leaq 0x58(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0xd0(%rsp), %r9
movq %r14, %rdx
movl %r12d, %ecx
movl %ebp, %r8d
callq 0x7285
movq %r14, %rdi
callq 0x1030
andq $0x0, 0x50(%rsp)
pxor %xmm0, %xmm0
movdqa %xmm0, 0x40(%rsp)
cmpl $0x0, 0x198(%rbx)
je 0x692b
leaq 0xd0(%rsp), %rdi
callq 0x386c
movq 0x58(%rsp), %rdi
callq 0x1030
movq 0x40(%rsp), %rax
movq 0xc8(%rsp), %rcx
movq %rax, (%rcx)
movq 0x48(%rsp), %rax
movq %rax, (%r15)
movl 0x198(%rbx), %eax
jmp 0x6780
leaq 0x40(%rsp), %r13
movq %r13, %rdi
movl $0x89, %esi
callq 0x2f4e
pushq $0x50
popq %rsi
movq %r13, %rdi
callq 0x2f4e
pushq $0x4e
popq %rsi
movq %r13, %rdi
callq 0x2f4e
pushq $0x47
popq %rsi
movq %r13, %rdi
callq 0x2f4e
pushq $0xd
popq %rsi
movq %r13, %rdi
callq 0x2f4e
pushq $0xa
popq %r14
movq %r13, %rdi
movl %r14d, %esi
callq 0x2f4e
pushq $0x1a
popq %rsi
movq %r13, %rdi
callq 0x2f4e
movq %r13, %rdi
movl %r14d, %esi
callq 0x2f4e
movzbl 0xe0(%rsp), %eax
movl %eax, 0x8(%rsp)
movzbl 0xe4(%rsp), %r14d
movzbl 0xd8(%rsp), %eax
movl %eax, 0x10(%rsp)
leaq 0x20(%rsp), %r13
pxor %xmm0, %xmm0
movdqa %xmm0, (%r13)
andq $0x0, 0x10(%r13)
movq %r13, %rdi
movl %r12d, %esi
callq 0x2f7a
movq %r13, %rdi
movl %ebp, %esi
callq 0x2f7a
movq %r13, %rdi
movl %r14d, %esi
movq 0x18(%rsp), %r14
callq 0x2f4e
movq %r13, %rdi
movl 0x8(%rsp), %esi
callq 0x2f4e
movq %r13, %rdi
xorl %esi, %esi
callq 0x2f4e
movq %r13, %rdi
xorl %esi, %esi
callq 0x2f4e
movq %r13, %rdi
movl 0x10(%rsp), %esi
callq 0x2f4e
movq (%r13), %rdx
movq 0x8(%r13), %rcx
leaq 0x5eab(%rip), %rsi      # 0xc8ce
leaq 0x40(%rsp), %rdi
callq 0x9920
movq %r13, %rdi
callq 0x89e8
movq 0x188(%rsp), %rsi
testq %rsi, %rsi
je 0x6a62
movq 0x1a0(%rsp), %rdx
leaq 0x40(%rsp), %rdi
callq 0x775f
movl %eax, 0x198(%rbx)
testl %eax, %eax
jne 0x68f1
movl 0xe0(%rsp), %eax
cmpl $0x3, %eax
jne 0x6a87
leaq 0x40(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0x77b6
movl 0xe0(%rsp), %eax
cmpl $0x0, 0x78(%rbx)
je 0x6ab0
movl %eax, %ecx
andl $-0x5, %ecx
cmpl $0x2, %ecx
jne 0x6ab0
leaq 0x40(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0x77b6
movl 0xe0(%rsp), %eax
cmpl $0x3, %eax
jne 0x6b73
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
jae 0x6b4c
leaq (,%rdi,4), %r14
movzbl 0x3(%rax,%rdi,4), %ebp
testl %r11d, %r11d
je 0x6b21
cmpl $0xff, %ebp
jne 0x6b55
movzbl (%rax,%r14), %r11d
cmpl %r11d, %r8d
jne 0x6b44
movzbl 0x1(%rax,%r14), %r11d
cmpl %r11d, %r9d
jne 0x6b44
movzbl 0x2(%rax,%r14), %ebp
movl %edx, %r11d
cmpl %ebp, %r10d
jne 0x6b47
jmp 0x6b55
xorl %r11d, %r11d
cmpl $0xff, %ebp
je 0x6b47
testl %ebp, %ebp
jne 0x6b55
movzbl (%rax,%r14), %r8d
movzbl 0x1(%rax,%r14), %r9d
movzbl 0x2(%rax,%r14), %r10d
movq %rsi, %rdi
movl %edx, %r11d
incq %rdi
jmp 0x6add
testl %r11d, %r11d
je 0x6f7a
leaq 0x40(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0x7832
movl 0xe0(%rsp), %eax
movq 0x18(%rsp), %r14
testl $0xfffffffd, %eax       # imm = 0xFFFFFFFD
jne 0x6b96
cmpl $0x0, 0xf8(%rsp)
je 0x6b96
leaq 0x40(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0x7832
cmpl $0x0, 0x108(%rsp)
je 0x6c8a
pxor %xmm0, %xmm0
movdqa %xmm0, 0x20(%rsp)
andq $0x0, 0x30(%rsp)
movl 0xe0(%rsp), %eax
xorl %edx, %edx
xorl %ecx, %ecx
cmpq $0x6, %rax
ja 0x6c6a
leaq 0x4544(%rip), %rsi      # 0xb114
movslq (%rsi,%rax,4), %rax
addq %rsi, %rax
leaq 0x10c(%rsp), %r14
jmpq *%rax
movzbl 0x10d(%rsp), %esi
leaq 0x20(%rsp), %rdi
jmp 0x6c4d
leaq 0x114(%rsp), %r14
movl -0x8(%r14), %ebp
movl %ebp, %esi
shrl $0x8, %esi
movl $0xff, %r13d
andl %r13d, %esi
leaq 0x20(%rsp), %r12
movq %r12, %rdi
callq 0x2f4e
andl %r13d, %ebp
movq %r12, %rdi
movl %ebp, %esi
callq 0x2f4e
movl -0x4(%r14), %ebp
movl %ebp, %esi
shrl $0x8, %esi
andl %r13d, %esi
movq %r12, %rdi
callq 0x2f4e
andl %r13d, %ebp
movq %r12, %rdi
movl %ebp, %esi
callq 0x2f4e
movzbl 0x1(%r14), %esi
movq %r12, %rdi
callq 0x2f4e
movzbl (%r14), %esi
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x2f4e
movq (%r14), %rdx
movq 0x8(%r14), %rcx
leaq 0x5c3f(%rip), %rsi      # 0xc8b0
leaq 0x40(%rsp), %rdi
callq 0x9920
leaq 0x20(%rsp), %rdi
callq 0x89e8
movq 0x18(%rsp), %r14
cmpl $0x0, 0x174(%rsp)
je 0x6cf9
pxor %xmm0, %xmm0
leaq 0x20(%rsp), %r12
movdqa %xmm0, (%r12)
andq $0x0, 0x10(%r12)
movl 0x178(%rsp), %esi
movq %r12, %rdi
callq 0x2f7a
movl 0x17c(%rsp), %esi
movq %r12, %rdi
callq 0x2f7a
movzbl 0x180(%rsp), %esi
movq %r12, %rdi
callq 0x2f4e
movq (%r12), %rdx
movq 0x8(%r12), %rcx
leaq 0x5be2(%rip), %rsi      # 0xc8c9
leaq 0x40(%rsp), %rdi
callq 0x9920
movq %r12, %rdi
callq 0x89e8
movq 0x190(%rsp), %rsi
testq %rsi, %rsi
je 0x6d26
movq 0x1a8(%rsp), %rdx
leaq 0x40(%rsp), %rdi
callq 0x775f
movl %eax, 0x198(%rbx)
testl %eax, %eax
jne 0x68f1
movq 0x58(%rsp), %rdx
movq 0x98(%rsp), %rcx
pxor %xmm0, %xmm0
leaq 0x28(%rsp), %rsi
movdqa %xmm0, -0x8(%rsi)
andq $0x0, 0x8(%rsi)
leaq 0x20(%rsp), %rdi
movq %r14, %r8
callq 0x9911
movl %eax, %ebp
testl %eax, %eax
jne 0x6d76
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rcx
leaq 0x5b32(%rip), %rsi      # 0xc89c
leaq 0x40(%rsp), %rdi
callq 0x9920
movl %eax, %ebp
leaq 0x20(%rsp), %rdi
callq 0x89e8
movl %ebp, 0x198(%rbx)
testl %ebp, %ebp
jne 0x68f1
cmpl $0x0, 0x158(%rsp)
je 0x6e03
pushq $0x7
popq %rdi
callq 0x1130
testq %rax, %rax
je 0x6e03
movq %rax, %rbp
movdqu 0x15c(%rsp), %xmm0
movl 0x15c(%rsp), %eax
pand 0x4280(%rip), %xmm0     # 0xb040
movb %ah, (%rbp)
packuswb %xmm0, %xmm0
packuswb %xmm0, %xmm0
movd %xmm0, 0x1(%rbp)
movb 0x16c(%rsp), %al
movb %al, 0x5(%rbp)
movb 0x170(%rsp), %al
movb %al, 0x6(%rbp)
leaq 0x5ad9(%rip), %rsi      # 0xc8c4
leaq 0x40(%rsp), %rdi
pushq $0x7
popq %rcx
movq %rbp, %rdx
callq 0x9920
movq %rbp, %rdi
callq 0x1030
movq 0x118(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x120(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x128(%rsp), %rax
movq %rax, 0x90(%rsp)
xorl %r14d, %r14d
leaq 0x20(%rsp), %rbp
cmpq 0x10(%rsp), %r14
jae 0x6f8f
movq 0x8(%rsp), %rax
movq (%rax,%r14,8), %r12
movq %r12, %rdi
callq 0x10a0
cmpq $0x4f, %rax
ja 0x6f82
testq %rax, %rax
je 0x6f86
cmpl $0x0, 0x80(%rbx)
movq 0x90(%rsp), %rax
movq (%rax,%r14,8), %rdx
je 0x6f38
movq %rdx, 0x88(%rsp)
movq %rdx, %rdi
callq 0x10a0
movq %rax, 0x80(%rsp)
pxor %xmm0, %xmm0
movdqa %xmm0, 0x20(%rsp)
andq $0x0, 0x30(%rsp)
movdqa %xmm0, 0x60(%rsp)
andq $0x0, 0x70(%rsp)
pushq $-0x50
popq %r13
movb 0x50(%r12,%r13), %al
testb %al, %al
je 0x6ece
movzbl %al, %esi
movq %rbp, %rdi
callq 0x2f4e
incq %r13
jmp 0x6eb5
cmpq $-0x4f, %r13
leaq 0x60(%rsp), %r13
jb 0x6f72
movq %rbp, %rdi
xorl %esi, %esi
callq 0x2f4e
movq %rbp, %rdi
xorl %esi, %esi
callq 0x2f4e
movq %r13, %rdi
leaq 0x68(%rsp), %rsi
movq 0x88(%rsp), %rdx
movq 0x80(%rsp), %rcx
movq 0x18(%rsp), %r8
callq 0x9911
testl %eax, %eax
jne 0x6f62
xorl %r12d, %r12d
cmpq 0x68(%rsp), %r12
jae 0x6f47
movq 0x60(%rsp), %rax
movzbl (%rax,%r12), %esi
movq %rbp, %rdi
callq 0x2f4e
incq %r12
jmp 0x6f1a
leaq 0x40(%rsp), %rdi
movq %r12, %rsi
callq 0x7942
jmp 0x6f72
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rcx
leaq 0x40(%rsp), %rdi
leaq 0x595d(%rip), %rsi      # 0xc8ba
callq 0x9920
movq %r13, %rdi
callq 0x89e8
movq %rbp, %rdi
callq 0x89e8
incq %r14
jmp 0x6e35
pushq $0x3
popq %rax
jmp 0x6b6e
pushq $0x42
jmp 0x6f88
pushq $0x43
popq %rax
movl %eax, 0x198(%rbx)
cmpl $0x0, 0x7c(%rbx)
je 0x6fdb
movq 0x120(%rsp), %r14
xorl %r13d, %r13d
leaq 0x4ab7(%rip), %r12      # 0xba5e
cmpq %r13, 0x10(%rsp)
je 0x6fc3
movq (%r14,%r13,8), %rdi
movq %r12, %rsi
callq 0x10f0
incq %r13
testl %eax, %eax
jne 0x6fa7
jmp 0x6fdb
leaq 0x4a94(%rip), %rsi      # 0xba5e
leaq 0x4a95(%rip), %rdx      # 0xba66
leaq 0x40(%rsp), %rdi
callq 0x7942
movq %r15, 0xa0(%rsp)
movq 0x130(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x138(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0x140(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x148(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0x150(%rsp), %rax
movq %rax, 0xa8(%rsp)
xorl %r13d, %r13d
pushq $0x42
popq %r14
leaq 0x20(%rsp), %rbp
cmpq 0x80(%rsp), %r13
jae 0x7236
movq %rbp, %r15
movq 0xc0(%rsp), %rax
movq (%rax,%r13,8), %rbp
movq %rbp, %rdi
callq 0x10a0
cmpq $0x4f, %rax
ja 0x722f
testq %rax, %rax
je 0x722b
movl 0x80(%rbx), %eax
movl %eax, 0x90(%rsp)
movq 0xb8(%rsp), %rax
movq (%rax,%r13,8), %r12
movq 0xb0(%rsp), %rax
movq (%rax,%r13,8), %r14
movq 0xa8(%rsp), %rax
movq %r13, 0x10(%rsp)
movq (%rax,%r13,8), %rdi
movq %rdi, 0x8(%rsp)
callq 0x10a0
movq %rax, 0x88(%rsp)
pxor %xmm0, %xmm0
movdqa %xmm0, 0x20(%rsp)
andq $0x0, 0x30(%rsp)
pushq $-0x50
popq %r13
movb 0x50(%rbp,%r13), %al
testb %al, %al
je 0x70ec
movzbl %al, %esi
movq %r15, %rdi
callq 0x2f4e
incq %r13
jmp 0x70d3
cmpq $-0x4f, %r13
movq 0x10(%rsp), %r13
movq %r15, %rbp
jb 0x721f
movq %rbp, %rdi
xorl %esi, %esi
callq 0x2f4e
xorl %esi, %esi
movl 0x90(%rsp), %r15d
testl %r15d, %r15d
setne %sil
movq %rbp, %rdi
callq 0x2f4e
movq %rbp, %rdi
xorl %esi, %esi
callq 0x2f4e
movb (%r12), %al
testb %al, %al
je 0x7143
movzbl %al, %esi
movq %rbp, %rdi
callq 0x2f4e
incq %r12
jmp 0x712b
movq %rbp, %rdi
xorl %esi, %esi
callq 0x2f4e
movb (%r14), %al
testb %al, %al
je 0x7164
movzbl %al, %esi
movq %rbp, %rdi
callq 0x2f4e
incq %r14
jmp 0x714d
movq %rbp, %rdi
xorl %esi, %esi
callq 0x2f4e
testl %r15d, %r15d
je 0x71b5
pxor %xmm0, %xmm0
movdqa %xmm0, 0x60(%rsp)
andq $0x0, 0x70(%rsp)
leaq 0x60(%rsp), %r14
movq %r14, %rdi
leaq 0x68(%rsp), %rsi
movq 0x8(%rsp), %rdx
movq 0x88(%rsp), %rcx
movq 0x18(%rsp), %r8
callq 0x9911
testl %eax, %eax
je 0x71d1
movq %r14, %rdi
callq 0x89e8
jmp 0x7217
movq 0x8(%rsp), %r14
movb (%r14), %al
testb %al, %al
je 0x71fc
movzbl %al, %esi
movq %rbp, %rdi
callq 0x2f4e
incq %r14
jmp 0x71ba
xorl %r14d, %r14d
cmpq 0x68(%rsp), %r14
jae 0x71f2
movq 0x60(%rsp), %rax
movzbl (%rax,%r14), %esi
movq %rbp, %rdi
callq 0x2f4e
incq %r14
jmp 0x71d4
leaq 0x60(%rsp), %rdi
callq 0x89e8
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rcx
leaq 0x40(%rsp), %rdi
leaq 0x56ad(%rip), %rsi      # 0xc8bf
callq 0x9920
movq %rbp, %rdi
callq 0x89e8
incq %r13
pushq $0x42
popq %r14
jmp 0x703f
pushq $0x43
popq %r14
movl %r14d, 0x198(%rbx)
movq 0x198(%rsp), %rsi
testq %rsi, %rsi
movq 0xa0(%rsp), %r15
je 0x726b
movq 0x1b0(%rsp), %rdx
leaq 0x40(%rsp), %rdi
callq 0x775f
movl %eax, 0x198(%rbx)
testl %eax, %eax
jne 0x68f1
leaq 0x562f(%rip), %rsi      # 0xc8a1
leaq 0x40(%rsp), %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x9920
jmp 0x68f1