// File: /workspace/github_c_makefile_star2_O2/Joy-Division[P]tools-mgs/lodepng/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;

  /*check input values validity*/
  if((state->info_png.color.colortype == LCT_PALETTE || state->encoder.force_palette)
      && (state->info_png.color.palettesize == 0 || state->info_png.color.palettesize > 256))
  {
    CERROR_RETURN_ERROR(state->error, 68); /*invalid palette size, it is only allowed to be 1-256*/
  }
  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(state->info_png.color.colortype, state->info_png.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*/

  /* color convert and compute scanline filter types */
  lodepng_info_init(&info);
  lodepng_info_copy(&info, &state->info_png);
  if(state->encoder.auto_convert)
  {
    state->error = lodepng_auto_choose_color(&info.color, image, w, h, &state->info_raw);
  }
  if (!state->error)
  {
    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);
  }

  /* output all PNG chunks */
  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, 0x78(%rsp)
movq %r9, %rbx
andq $0x0, 0xa8(%rsp)
movq %rdi, %r15
andq $0x0, (%rdi)
movq %rsi, %r14
andq $0x0, (%rsi)
movl %r8d, %ebp
andl $0x0, 0x198(%r9)
movl %ecx, %r13d
movq %rdx, %r12
movl 0xc0(%r9), %edi
cmpl $0x3, %edi
je 0x6c17
cmpl $0x0, 0x78(%rbx)
je 0x6c3b
movq $-0x101, %rax           # imm = 0xFEFF
movq 0xd0(%rbx), %rcx
addq %rax, %rcx
cmpq %rax, %rcx
ja 0x6c3b
movl $0x44, 0x198(%rbx)
pushq $0x44
jmp 0x6c4d
cmpl $0x3, 0x30(%rbx)
jb 0x6c60
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 0x6c78
pushq $0x47
popq %rax
movl $0x47, 0x198(%rbx)
jmp 0x6c4e
movl 0xc4(%rbx), %esi
callq 0x5582
movl %eax, 0x198(%rbx)
testl %eax, %eax
jne 0x6c4e
movl 0x88(%rbx), %edi
movl 0x8c(%rbx), %esi
callq 0x5582
movl %eax, 0x198(%rbx)
testl %eax, %eax
jne 0x6c4e
leaq 0xb0(%rbx), %rax
movq %rax, 0x18(%rsp)
leaq 0x88(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0xd0(%rsp), %rdi
callq 0x3aa6
leaq 0xd0(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x3b65
cmpl $0x0, 0x60(%rbx)
je 0x6d07
leaq 0xe0(%rsp), %rdi
movq %r12, %rsi
movl %r13d, %edx
movl %ebp, %ecx
movq 0x10(%rsp), %r8
callq 0x520d
movl %eax, 0x198(%rbx)
jmp 0x6d0d
movl 0x198(%rbx), %eax
leaq 0x30(%rbx), %rcx
movq %rcx, 0x68(%rsp)
testl %eax, %eax
movq %r14, 0x18(%rsp)
jne 0x6e29
leaq 0xe0(%rsp), %rsi
movq 0x10(%rsp), %rdi
callq 0x4170
testl %eax, %eax
je 0x6d6a
movq 0x68(%rsp), %rax
movq %rax, (%rsp)
leaq 0x78(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
leaq 0xd0(%rsp), %r9
movq %r12, %rdx
movl %r13d, %ecx
movl %ebp, %r8d
callq 0x77df
jmp 0x6e29
movq %r15, 0x70(%rsp)
movl %ebp, %r14d
imull %r13d, %r14d
leaq 0xe0(%rsp), %rdi
callq 0x35f5
movl %eax, %r15d
imulq %r14, %r15
leaq 0x7(%r15), %rdi
shrq $0x3, %rdi
callq 0x10f0
movq %rax, %rdi
testq %rax, %rax
setne %al
testq %r15, %r15
sete %cl
orb %al, %cl
jne 0x6dc0
movl $0x53, 0x198(%rbx)
movq 0x70(%rsp), %r15
movq 0x18(%rsp), %r14
jmp 0x6e24
movq %r12, %rsi
movq %rdi, %r12
leaq 0xe0(%rsp), %rdx
movq 0x10(%rsp), %rcx
movl %r13d, %r8d
movl %ebp, %r9d
callq 0x3d31
movq %r12, %rdi
movl %eax, 0x198(%rbx)
testl %eax, %eax
movq 0x70(%rsp), %r15
movq 0x18(%rsp), %r14
jne 0x6e24
movq 0x68(%rsp), %rax
movq %rax, (%rsp)
leaq 0x78(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
leaq 0xd0(%rsp), %r9
movq %r12, %rdx
movl %r13d, %ecx
movl %ebp, %r8d
callq 0x77df
movq %r12, %rdi
callq 0x1030
andq $0x0, 0x50(%rsp)
pxor %xmm0, %xmm0
movdqa %xmm0, 0x40(%rsp)
cmpl $0x0, 0x198(%rbx)
je 0x6e74
leaq 0xd0(%rsp), %rdi
callq 0x3b18
movq 0x78(%rsp), %rdi
callq 0x1030
movq 0x40(%rsp), %rax
movq %rax, (%r15)
movq 0x48(%rsp), %rax
movq %rax, (%r14)
movl 0x198(%rbx), %eax
jmp 0x6c4e
leaq 0x40(%rsp), %r12
movq %r12, %rdi
movl $0x89, %esi
callq 0x31c1
pushq $0x50
popq %rsi
movq %r12, %rdi
callq 0x31c1
pushq $0x4e
popq %rsi
movq %r12, %rdi
callq 0x31c1
pushq $0x47
popq %rsi
movq %r12, %rdi
callq 0x31c1
pushq $0xd
popq %rsi
movq %r12, %rdi
callq 0x31c1
pushq $0xa
popq %rsi
movq %r12, %rdi
callq 0x31c1
pushq $0x1a
popq %rsi
movq %r12, %rdi
callq 0x31c1
movq %r12, %rdi
pushq $0xa
popq %rsi
callq 0x31c1
movzbl 0xe0(%rsp), %eax
movl %eax, 0x60(%rsp)
movzbl 0xe4(%rsp), %eax
movl %eax, 0x58(%rsp)
movzbl 0xd8(%rsp), %eax
movl %eax, 0x10(%rsp)
leaq 0x20(%rsp), %r12
pxor %xmm0, %xmm0
movdqa %xmm0, (%r12)
andq $0x0, 0x10(%r12)
movq %r12, %rdi
movl %r13d, %esi
callq 0x31ed
movq %r12, %rdi
movl %ebp, %esi
callq 0x31ed
movq %r12, %rdi
movl 0x58(%rsp), %esi
callq 0x31c1
movq %r12, %rdi
movl 0x60(%rsp), %esi
callq 0x31c1
movq %r12, %rdi
xorl %esi, %esi
callq 0x31c1
movq %r12, %rdi
xorl %esi, %esi
callq 0x31c1
movq %r12, %rdi
movl 0x10(%rsp), %esi
callq 0x31c1
movq (%r12), %rdx
movq 0x8(%r12), %rcx
leaq 0x4b0b(%rip), %rsi      # 0xba74
leaq 0x40(%rsp), %rdi
callq 0x9dc8
movq %r12, %rdi
callq 0x8f7c
movq 0x188(%rsp), %rsi
testq %rsi, %rsi
je 0x6fa8
movq 0x1a0(%rsp), %rdx
leaq 0x40(%rsp), %rdi
callq 0x7cb9
movl %eax, 0x198(%rbx)
testl %eax, %eax
jne 0x6e42
leaq 0xe0(%rsp), %r13
movl (%r13), %eax
cmpl $0x3, %eax
jne 0x6fcd
leaq 0x40(%rsp), %rdi
movq %r13, %rsi
callq 0x7d10
movl 0xe0(%rsp), %eax
cmpl $0x0, 0x78(%rbx)
je 0x6ff1
movl %eax, %ecx
andl $-0x5, %ecx
cmpl $0x2, %ecx
jne 0x6ff1
leaq 0x40(%rsp), %rdi
movq %r13, %rsi
callq 0x7d10
movl 0xe0(%rsp), %eax
cmpl $0x3, %eax
jne 0x70af
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 0x708d
leaq (,%rdi,4), %r14
movzbl 0x3(%rax,%rdi,4), %ebp
testl %r11d, %r11d
je 0x7062
cmpl $0xff, %ebp
jne 0x7096
movzbl (%rax,%r14), %r11d
cmpl %r11d, %r8d
jne 0x7085
movzbl 0x1(%rax,%r14), %r11d
cmpl %r11d, %r9d
jne 0x7085
movzbl 0x2(%rax,%r14), %ebp
movl %edx, %r11d
cmpl %ebp, %r10d
jne 0x7088
jmp 0x7096
xorl %r11d, %r11d
cmpl $0xff, %ebp
je 0x7088
testl %ebp, %ebp
jne 0x7096
movzbl (%rax,%r14), %r8d
movzbl 0x1(%rax,%r14), %r9d
movzbl 0x2(%rax,%r14), %r10d
movq %rsi, %rdi
movl %edx, %r11d
incq %rdi
jmp 0x701e
testl %r11d, %r11d
je 0x74cf
leaq 0x40(%rsp), %rdi
movq %r13, %rsi
callq 0x7d8c
movl 0xe0(%rsp), %eax
movq 0x18(%rsp), %r14
testl $0xfffffffd, %eax       # imm = 0xFFFFFFFD
jne 0x70cd
cmpl $0x0, 0xf8(%rsp)
je 0x70cd
leaq 0x40(%rsp), %rdi
movq %r13, %rsi
callq 0x7d8c
cmpl $0x0, 0x108(%rsp)
je 0x71c9
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 0x71a9
leaq 0x400d(%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 0x718a
leaq 0x114(%rsp), %r14
movl -0x8(%r14), %ebp
movl %ebp, %esi
shrl $0x8, %esi
movq %r15, %r13
movl $0xff, %r15d
andl %r15d, %esi
leaq 0x20(%rsp), %r12
movq %r12, %rdi
callq 0x31c1
andl %r15d, %ebp
movq %r12, %rdi
movl %ebp, %esi
callq 0x31c1
movl -0x4(%r14), %ebp
movl %ebp, %esi
shrl $0x8, %esi
andl %r15d, %esi
movq %r12, %rdi
callq 0x31c1
andl %r15d, %ebp
movq %r13, %r15
movq %r12, %rdi
movl %ebp, %esi
callq 0x31c1
movzbl 0x1(%r14), %esi
movq %r12, %rdi
callq 0x31c1
movzbl (%r14), %esi
leaq 0x20(%rsp), %r12
movq %r12, %rdi
callq 0x31c1
movq (%r12), %rdx
movq 0x8(%r12), %rcx
leaq 0x57c3(%rip), %rsi      # 0xc973
leaq 0x40(%rsp), %rdi
callq 0x9dc8
leaq 0x20(%rsp), %rdi
callq 0x8f7c
movq 0x18(%rsp), %r14
cmpl $0x0, 0x174(%rsp)
je 0x7238
pxor %xmm0, %xmm0
leaq 0x20(%rsp), %r12
movdqa %xmm0, (%r12)
andq $0x0, 0x10(%r12)
movl 0x178(%rsp), %esi
movq %r12, %rdi
callq 0x31ed
movl 0x17c(%rsp), %esi
movq %r12, %rdi
callq 0x31ed
movzbl 0x180(%rsp), %esi
movq %r12, %rdi
callq 0x31c1
movq (%r12), %rdx
movq 0x8(%r12), %rcx
leaq 0x5766(%rip), %rsi      # 0xc98c
leaq 0x40(%rsp), %rdi
callq 0x9dc8
movq %r12, %rdi
callq 0x8f7c
movq 0x190(%rsp), %rsi
testq %rsi, %rsi
je 0x7265
movq 0x1a8(%rsp), %rdx
leaq 0x40(%rsp), %rdi
callq 0x7cb9
movl %eax, 0x198(%rbx)
testl %eax, %eax
jne 0x6e42
movq 0x78(%rsp), %rdx
movq 0xa8(%rsp), %rcx
pxor %xmm0, %xmm0
leaq 0x28(%rsp), %rsi
movdqa %xmm0, -0x8(%rsi)
andq $0x0, 0x8(%rsi)
leaq 0x20(%rsp), %rdi
movq 0x68(%rsp), %r8
callq 0x9db9
movl %eax, %ebp
testl %eax, %eax
jne 0x72b7
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rcx
leaq 0x56b4(%rip), %rsi      # 0xc95f
leaq 0x40(%rsp), %rdi
callq 0x9dc8
movl %eax, %ebp
leaq 0x20(%rsp), %rdi
callq 0x8f7c
movl %ebp, 0x198(%rbx)
testl %ebp, %ebp
jne 0x6e42
cmpl $0x0, 0x158(%rsp)
je 0x7344
pushq $0x7
popq %rdi
callq 0x10f0
testq %rax, %rax
je 0x7344
movq %rax, %rbp
movdqu 0x15c(%rsp), %xmm0
movl 0x15c(%rsp), %eax
pand 0x3d3f(%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 0x565b(%rip), %rsi      # 0xc987
leaq 0x40(%rsp), %rdi
pushq $0x7
popq %rcx
movq %rbp, %rdx
callq 0x9dc8
movq %rbp, %rdi
callq 0x1030
movq 0x118(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x120(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x128(%rsp), %rax
movq %rax, 0x58(%rsp)
xorl %r12d, %r12d
leaq 0x20(%rsp), %rbp
cmpq 0x10(%rsp), %r12
je 0x74d7
movq 0x60(%rsp), %rax
movq (%rax,%r12,8), %r13
movq %r13, %rdi
callq 0x1090
cmpq $0x4f, %rax
ja 0x74de
testq %rax, %rax
je 0x74e2
cmpl $0x0, 0x80(%rbx)
movq 0x58(%rsp), %rax
movq (%rax,%r12,8), %rdx
je 0x7485
movq %rdx, 0xa0(%rsp)
movq %rdx, %rdi
callq 0x1090
movq %rax, 0x98(%rsp)
pxor %xmm0, %xmm0
movdqa %xmm0, 0x20(%rsp)
andq $0x0, 0x30(%rsp)
movdqa %xmm0, 0x80(%rsp)
andq $0x0, 0x90(%rsp)
pushq $-0x50
popq %r14
movb 0x50(%r13,%r14), %al
testb %al, %al
je 0x740f
movzbl %al, %esi
movq %rbp, %rdi
callq 0x31c1
incq %r14
jmp 0x73f6
cmpq $-0x4f, %r14
leaq 0x80(%rsp), %r14
jb 0x74c7
movq %rbp, %rdi
xorl %esi, %esi
callq 0x31c1
movq %rbp, %rdi
xorl %esi, %esi
callq 0x31c1
movq %r14, %rdi
leaq 0x88(%rsp), %rsi
movq 0xa0(%rsp), %rdx
movq 0x98(%rsp), %rcx
movq 0x68(%rsp), %r8
callq 0x9db9
testl %eax, %eax
jne 0x74b7
xorl %r14d, %r14d
cmpq 0x88(%rsp), %r14
je 0x7494
movq 0x80(%rsp), %rax
movzbl (%rax,%r14), %esi
movq %rbp, %rdi
callq 0x31c1
incq %r14
jmp 0x7461
leaq 0x40(%rsp), %rdi
movq %r13, %rsi
callq 0x7e9c
jmp 0x74c7
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rcx
leaq 0x40(%rsp), %rdi
leaq 0x54d3(%rip), %rsi      # 0xc97d
callq 0x9dc8
leaq 0x80(%rsp), %r14
movq %r14, %rdi
callq 0x8f7c
movq %rbp, %rdi
callq 0x8f7c
incq %r12
jmp 0x7373
pushq $0x3
popq %rax
jmp 0x70aa
movq %r12, 0x10(%rsp)
jmp 0x74eb
pushq $0x42
jmp 0x74e4
pushq $0x43
popq %rax
movl %eax, 0x198(%rbx)
cmpl $0x0, 0x7c(%rbx)
je 0x7537
movq 0x120(%rsp), %r14
xorl %r13d, %r13d
leaq 0x4576(%rip), %r12      # 0xba79
cmpq %r13, 0x10(%rsp)
je 0x751f
movq (%r14,%r13,8), %rdi
movq %r12, %rsi
callq 0x10c0
incq %r13
testl %eax, %eax
jne 0x7503
jmp 0x7537
movq 0x9b9a(%rip), %rdx      # 0x110c0
leaq 0x454c(%rip), %rsi      # 0xba79
leaq 0x40(%rsp), %rdi
callq 0x7e9c
movq 0x130(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x138(%rsp), %rax
movq %rax, 0xc8(%rsp)
movq 0x140(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0x148(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x150(%rsp), %rax
movq %rax, 0xb0(%rsp)
xorl %r12d, %r12d
leaq 0x20(%rsp), %rbp
movq %r15, 0x70(%rsp)
cmpq 0x98(%rsp), %r12
movq 0x18(%rsp), %r14
je 0x7798
movq 0xc8(%rsp), %rax
movq (%rax,%r12,8), %r13
movq %r13, %rdi
callq 0x1090
cmpq $0x4f, %rax
ja 0x778b
testq %rax, %rax
je 0x778f
movl 0x80(%rbx), %eax
movl %eax, 0x58(%rsp)
movq 0xc0(%rsp), %rax
movq (%rax,%r12,8), %r14
movq 0xb8(%rsp), %rax
movq %r12, %rcx
movq (%rax,%r12,8), %r12
movq 0xb0(%rsp), %rax
movq %rcx, 0x10(%rsp)
movq (%rax,%rcx,8), %rdi
movq %rdi, 0x60(%rsp)
callq 0x1090
movq %rax, 0xa0(%rsp)
pxor %xmm0, %xmm0
movdqa %xmm0, 0x20(%rsp)
andq $0x0, 0x30(%rsp)
pushq $-0x50
popq %r15
movb 0x50(%r13,%r15), %al
testb %al, %al
je 0x7643
movzbl %al, %esi
movq %rbp, %rdi
callq 0x31c1
incq %r15
jmp 0x762a
cmpq $-0x4f, %r15
movq 0x70(%rsp), %r15
jb 0x777e
movq %rbp, %rdi
xorl %esi, %esi
callq 0x31c1
xorl %esi, %esi
movl 0x58(%rsp), %r13d
testl %r13d, %r13d
setne %sil
movq %rbp, %rdi
callq 0x31c1
movq %rbp, %rdi
xorl %esi, %esi
callq 0x31c1
movb (%r14), %al
testb %al, %al
je 0x7693
movzbl %al, %esi
movq %rbp, %rdi
callq 0x31c1
incq %r14
jmp 0x767c
movq %rbp, %rdi
xorl %esi, %esi
callq 0x31c1
movq 0x60(%rsp), %r14
movb (%r12), %al
testb %al, %al
je 0x76ba
movzbl %al, %esi
movq %rbp, %rdi
callq 0x31c1
incq %r12
jmp 0x76a2
movq %rbp, %rdi
xorl %esi, %esi
callq 0x31c1
testl %r13d, %r13d
je 0x7723
pxor %xmm0, %xmm0
movdqa %xmm0, 0x80(%rsp)
andq $0x0, 0x90(%rsp)
leaq 0x80(%rsp), %r12
movq %r12, %rdi
leaq 0x88(%rsp), %rsi
movq %r14, %rdx
movq 0xa0(%rsp), %rcx
movq 0x68(%rsp), %r8
callq 0x9db9
testl %eax, %eax
je 0x772c
movq %r12, %rdi
callq 0x8f7c
jmp 0x7776
movzbl %al, %esi
movq %rbp, %rdi
callq 0x31c1
incq %r14
movb (%r14), %al
testb %al, %al
jne 0x7715
jmp 0x775b
xorl %r14d, %r14d
cmpq 0x88(%rsp), %r14
je 0x7753
movq 0x80(%rsp), %rax
movzbl (%rax,%r14), %esi
movq %rbp, %rdi
callq 0x31c1
incq %r14
jmp 0x772f
movq %r12, %rdi
callq 0x8f7c
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rcx
leaq 0x40(%rsp), %rdi
leaq 0x5211(%rip), %rsi      # 0xc982
callq 0x9dc8
movq %rbp, %rdi
callq 0x8f7c
movq 0x10(%rsp), %r12
incq %r12
jmp 0x7594
pushq $0x42
jmp 0x7791
pushq $0x43
popq %rax
movl %eax, 0x198(%rbx)
movq 0x198(%rsp), %rsi
testq %rsi, %rsi
je 0x77c5
movq 0x1b0(%rsp), %rdx
leaq 0x40(%rsp), %rdi
callq 0x7cb9
movl %eax, 0x198(%rbx)
testl %eax, %eax
jne 0x6e42
leaq 0x5198(%rip), %rsi      # 0xc964
leaq 0x40(%rsp), %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x9dc8
jmp 0x6e42