// File: /workspace/github_c_makefile_star2_O0/wkoszek[P]mini_gzip/miniz.c
// Function: tdefl_flush_block
static int tdefl_flush_block(tdefl_compressor *d, int flush)
{
  mz_uint saved_bit_buf, saved_bits_in;
  mz_uint8 *pSaved_output_buf;
  mz_bool comp_block_succeeded = MZ_FALSE;
  int n, use_raw_block = ((d->m_flags & TDEFL_FORCE_ALL_RAW_BLOCKS) != 0) && (d->m_lookahead_pos - d->m_lz_code_buf_dict_pos) <= d->m_dict_size;
  mz_uint8 *pOutput_buf_start = ((d->m_pPut_buf_func == NULL) && ((*d->m_pOut_buf_size - d->m_out_buf_ofs) >= TDEFL_OUT_BUF_SIZE)) ? ((mz_uint8 *)d->m_pOut_buf + d->m_out_buf_ofs) : d->m_output_buf;

  d->m_pOutput_buf = pOutput_buf_start;
  d->m_pOutput_buf_end = d->m_pOutput_buf + TDEFL_OUT_BUF_SIZE - 16;

  MZ_ASSERT(!d->m_output_flush_remaining);
  d->m_output_flush_ofs = 0;
  d->m_output_flush_remaining = 0;

  *d->m_pLZ_flags = (mz_uint8)(*d->m_pLZ_flags >> d->m_num_flags_left);
  d->m_pLZ_code_buf -= (d->m_num_flags_left == 8);

  if ((d->m_flags & TDEFL_WRITE_ZLIB_HEADER) && (!d->m_block_index))
  {
    TDEFL_PUT_BITS(0x78, 8); TDEFL_PUT_BITS(0x01, 8);
  }

  TDEFL_PUT_BITS(flush == TDEFL_FINISH, 1);

  pSaved_output_buf = d->m_pOutput_buf; saved_bit_buf = d->m_bit_buffer; saved_bits_in = d->m_bits_in;

  if (!use_raw_block)
    comp_block_succeeded = tdefl_compress_block(d, (d->m_flags & TDEFL_FORCE_ALL_STATIC_BLOCKS) || (d->m_total_lz_bytes < 48));

  // If the block gets expanded, forget the current contents of the output buffer and send a raw block instead.
  if ( ((use_raw_block) || ((d->m_total_lz_bytes) && ((d->m_pOutput_buf - pSaved_output_buf + 1U) >= d->m_total_lz_bytes))) &&
       ((d->m_lookahead_pos - d->m_lz_code_buf_dict_pos) <= d->m_dict_size) )
  {
    mz_uint i; d->m_pOutput_buf = pSaved_output_buf; d->m_bit_buffer = saved_bit_buf, d->m_bits_in = saved_bits_in;
    TDEFL_PUT_BITS(0, 2);
    if (d->m_bits_in) { TDEFL_PUT_BITS(0, 8 - d->m_bits_in); }
    for (i = 2; i; --i, d->m_total_lz_bytes ^= 0xFFFF)
    {
      TDEFL_PUT_BITS(d->m_total_lz_bytes & 0xFFFF, 16);
    }
    for (i = 0; i < d->m_total_lz_bytes; ++i)
    {
      TDEFL_PUT_BITS(d->m_dict[(d->m_lz_code_buf_dict_pos + i) & TDEFL_LZ_DICT_SIZE_MASK], 8);
    }
  }
  // Check for the extremely unlikely (if not impossible) case of the compressed block not fitting into the output buffer when using dynamic codes.
  else if (!comp_block_succeeded)
  {
    d->m_pOutput_buf = pSaved_output_buf; d->m_bit_buffer = saved_bit_buf, d->m_bits_in = saved_bits_in;
    tdefl_compress_block(d, MZ_TRUE);
  }

  if (flush)
  {
    if (flush == TDEFL_FINISH)
    {
      if (d->m_bits_in) { TDEFL_PUT_BITS(0, 8 - d->m_bits_in); }
      if (d->m_flags & TDEFL_WRITE_ZLIB_HEADER) { mz_uint i, a = d->m_adler32; for (i = 0; i < 4; i++) { TDEFL_PUT_BITS((a >> 24) & 0xFF, 8); a <<= 8; } }
    }
    else
    {
      mz_uint i, z = 0; TDEFL_PUT_BITS(0, 3); if (d->m_bits_in) { TDEFL_PUT_BITS(0, 8 - d->m_bits_in); } for (i = 2; i; --i, z ^= 0xFFFF) { TDEFL_PUT_BITS(z & 0xFFFF, 16); }
    }
  }

  MZ_ASSERT(d->m_pOutput_buf < d->m_pOutput_buf_end);

  memset(&d->m_huff_count[0][0], 0, sizeof(d->m_huff_count[0][0]) * TDEFL_MAX_HUFF_SYMBOLS_0);
  memset(&d->m_huff_count[1][0], 0, sizeof(d->m_huff_count[1][0]) * TDEFL_MAX_HUFF_SYMBOLS_1);

  d->m_pLZ_code_buf = d->m_lz_code_buf + 1; d->m_pLZ_flags = d->m_lz_code_buf; d->m_num_flags_left = 8; d->m_lz_code_buf_dict_pos += d->m_total_lz_bytes; d->m_total_lz_bytes = 0; d->m_block_index++;

  if ((n = (int)(d->m_pOutput_buf - pOutput_buf_start)) != 0)
  {
    if (d->m_pPut_buf_func)
    {
      *d->m_pIn_buf_size = d->m_pSrc - (const mz_uint8 *)d->m_pIn_buf;
      if (!(*d->m_pPut_buf_func)(d->m_output_buf, n, d->m_pPut_buf_user))
        return (d->m_prev_return_status = TDEFL_STATUS_PUT_BUF_FAILED);
    }
    else if (pOutput_buf_start == d->m_output_buf) 
    {
      int bytes_to_copy = (int)MZ_MIN((size_t)n, (size_t)(*d->m_pOut_buf_size - d->m_out_buf_ofs));
      memcpy((mz_uint8 *)d->m_pOut_buf + d->m_out_buf_ofs, d->m_output_buf, bytes_to_copy);
      d->m_out_buf_ofs += bytes_to_copy;
      if ((n -= bytes_to_copy) != 0)
      {
        d->m_output_flush_ofs = bytes_to_copy;
        d->m_output_flush_remaining = n;
      }
    }
    else
    {
      d->m_out_buf_ofs += n;
    }
  }

  return d->m_output_flush_remaining;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl $0x0, -0x2c(%rbp)
movq -0x10(%rbp), %rax
movl 0x10(%rax), %ecx
andl $0x100000, %ecx         # imm = 0x100000
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0xb9(%rbp)
je 0x79d1
movq -0x10(%rbp), %rax
movl 0x28(%rax), %eax
movq -0x10(%rbp), %rcx
subl 0x60(%rcx), %eax
movq -0x10(%rbp), %rcx
cmpl 0x30(%rcx), %eax
setbe %al
movb %al, -0xb9(%rbp)
movb -0xb9(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x34(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x7a29
movq -0x10(%rbp), %rax
movq 0xa8(%rax), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
subq 0xc8(%rcx), %rax
cmpq $0x14ccc, %rax          # imm = 0x14CCC
jb 0x7a29
movq -0x10(%rbp), %rax
movq 0x98(%rax), %rax
movq -0x10(%rbp), %rcx
addq 0xc8(%rcx), %rax
movq %rax, -0xc8(%rbp)
jmp 0x7a3a
movq -0x10(%rbp), %rax
addq $0x392b2, %rax          # imm = 0x392B2
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x48(%rax)
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rcx
addq $0x14ccc, %rcx          # imm = 0x14CCC
addq $-0x10, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x50(%rax)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x7c(%rax)
jne 0x7a78
jmp 0x7a97
leaq 0x5658(%rip), %rdi      # 0xd0d7
leaq 0x53c4(%rip), %rsi      # 0xce4a
movl $0x723, %edx            # imm = 0x723
leaq 0x5662(%rip), %rcx      # 0xd0f4
callq 0x1080
movq -0x10(%rbp), %rax
movl $0x0, 0x78(%rax)
movq -0x10(%rbp), %rax
movl $0x0, 0x7c(%rax)
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movzbl (%rax), %eax
movq -0x10(%rbp), %rcx
movl 0x58(%rcx), %ecx
sarl %cl, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movb %cl, (%rax)
movq -0x10(%rbp), %rax
cmpl $0x8, 0x58(%rax)
sete %al
andb $0x1, %al
movzbl %al, %edx
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rcx
movslq %edx, %rsi
xorl %edx, %edx
subq %rsi, %rdx
addq %rdx, %rcx
movq %rcx, 0x38(%rax)
movq -0x10(%rbp), %rax
movl 0x10(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
je 0x7ca4
movq -0x10(%rbp), %rax
cmpl $0x0, 0x84(%rax)
jne 0x7ca4
jmp 0x7b1c
movl $0x78, -0x44(%rbp)
movl $0x8, -0x48(%rbp)
movl -0x44(%rbp), %eax
movl -0x48(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
ja 0x7b42
jmp 0x7b61
leaq 0x55da(%rip), %rdi      # 0xd123
leaq 0x52fa(%rip), %rsi      # 0xce4a
movl $0x72c, %edx            # imm = 0x72C
leaq 0x5598(%rip), %rcx      # 0xd0f4
callq 0x1080
movl -0x44(%rbp), %eax
movq -0x10(%rbp), %rcx
movl 0x64(%rcx), %ecx
shll %cl, %eax
movl %eax, %ecx
movq -0x10(%rbp), %rax
orl 0x68(%rax), %ecx
movl %ecx, 0x68(%rax)
movl -0x48(%rbp), %ecx
movq -0x10(%rbp), %rax
addl 0x64(%rax), %ecx
movl %ecx, 0x64(%rax)
movq -0x10(%rbp), %rax
cmpl $0x8, 0x64(%rax)
jb 0x7bdc
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x50(%rcx), %rax
jae 0x7bc0
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movb %al, %cl
movq -0x10(%rbp), %rdx
movq 0x48(%rdx), %rax
movq %rax, %rsi
addq $0x1, %rsi
movq %rsi, 0x48(%rdx)
movb %cl, (%rax)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %ecx
shrl $0x8, %ecx
movl %ecx, 0x68(%rax)
movq -0x10(%rbp), %rax
movl 0x64(%rax), %ecx
subl $0x8, %ecx
movl %ecx, 0x64(%rax)
jmp 0x7b86
jmp 0x7bde
jmp 0x7be0
movl $0x1, -0x4c(%rbp)
movl $0x8, -0x50(%rbp)
movl -0x4c(%rbp), %eax
movl -0x50(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
ja 0x7c06
jmp 0x7c25
leaq 0x5516(%rip), %rdi      # 0xd123
leaq 0x5236(%rip), %rsi      # 0xce4a
movl $0x72c, %edx            # imm = 0x72C
leaq 0x54d4(%rip), %rcx      # 0xd0f4
callq 0x1080
movl -0x4c(%rbp), %eax
movq -0x10(%rbp), %rcx
movl 0x64(%rcx), %ecx
shll %cl, %eax
movl %eax, %ecx
movq -0x10(%rbp), %rax
orl 0x68(%rax), %ecx
movl %ecx, 0x68(%rax)
movl -0x50(%rbp), %ecx
movq -0x10(%rbp), %rax
addl 0x64(%rax), %ecx
movl %ecx, 0x64(%rax)
movq -0x10(%rbp), %rax
cmpl $0x8, 0x64(%rax)
jb 0x7ca0
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x50(%rcx), %rax
jae 0x7c84
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movb %al, %cl
movq -0x10(%rbp), %rdx
movq 0x48(%rdx), %rax
movq %rax, %rsi
addq $0x1, %rsi
movq %rsi, 0x48(%rdx)
movb %cl, (%rax)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %ecx
shrl $0x8, %ecx
movl %ecx, 0x68(%rax)
movq -0x10(%rbp), %rax
movl 0x64(%rax), %ecx
subl $0x8, %ecx
movl %ecx, 0x64(%rax)
jmp 0x7c4a
jmp 0x7ca2
jmp 0x7ca4
jmp 0x7ca6
cmpl $0x4, -0x14(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x54(%rbp)
movl $0x1, -0x58(%rbp)
movl -0x54(%rbp), %eax
movl -0x58(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
ja 0x7cd4
jmp 0x7cf3
leaq 0x5448(%rip), %rdi      # 0xd123
leaq 0x5168(%rip), %rsi      # 0xce4a
movl $0x72f, %edx            # imm = 0x72F
leaq 0x5406(%rip), %rcx      # 0xd0f4
callq 0x1080
movl -0x54(%rbp), %eax
movq -0x10(%rbp), %rcx
movl 0x64(%rcx), %ecx
shll %cl, %eax
movl %eax, %ecx
movq -0x10(%rbp), %rax
orl 0x68(%rax), %ecx
movl %ecx, 0x68(%rax)
movl -0x58(%rbp), %ecx
movq -0x10(%rbp), %rax
addl 0x64(%rax), %ecx
movl %ecx, 0x64(%rax)
movq -0x10(%rbp), %rax
cmpl $0x8, 0x64(%rax)
jb 0x7d6e
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x50(%rcx), %rax
jae 0x7d52
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movb %al, %cl
movq -0x10(%rbp), %rdx
movq 0x48(%rdx), %rax
movq %rax, %rsi
addq $0x1, %rsi
movq %rsi, 0x48(%rdx)
movb %cl, (%rax)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %ecx
shrl $0x8, %ecx
movl %ecx, 0x68(%rax)
movq -0x10(%rbp), %rax
movl 0x64(%rax), %ecx
subl $0x8, %ecx
movl %ecx, 0x64(%rax)
jmp 0x7d18
jmp 0x7d70
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movl %eax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movl 0x64(%rax), %eax
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x34(%rbp)
jne 0x7de6
movq -0x10(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x10(%rbp), %rax
movl 0x10(%rax), %ecx
andl $0x80000, %ecx          # imm = 0x80000
movb $0x1, %al
cmpl $0x0, %ecx
movb %al, -0xc9(%rbp)
jne 0x7dcc
movq -0x10(%rbp), %rax
cmpl $0x30, 0x5c(%rax)
setb %al
movb %al, -0xc9(%rbp)
movq -0xd8(%rbp), %rdi
movb -0xc9(%rbp), %al
andb $0x1, %al
movzbl %al, %esi
callq 0x97a0
movl %eax, -0x2c(%rbp)
cmpl $0x0, -0x34(%rbp)
jne 0x7e1d
movq -0x10(%rbp), %rax
cmpl $0x0, 0x5c(%rax)
je 0x81fa
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
addq $0x1, %rax
movq -0x10(%rbp), %rcx
movl 0x5c(%rcx), %ecx
cmpq %rcx, %rax
jl 0x81fa
movq -0x10(%rbp), %rax
movl 0x28(%rax), %eax
movq -0x10(%rbp), %rcx
subl 0x60(%rcx), %eax
movq -0x10(%rbp), %rcx
cmpl 0x30(%rcx), %eax
ja 0x81fa
movq -0x28(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x48(%rax)
movl -0x18(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x68(%rax)
movl -0x1c(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x64(%rax)
movl $0x0, -0x60(%rbp)
movl $0x2, -0x64(%rbp)
movl -0x60(%rbp), %eax
movl -0x64(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
ja 0x7e7e
jmp 0x7e9d
leaq 0x529e(%rip), %rdi      # 0xd123
leaq 0x4fbe(%rip), %rsi      # 0xce4a
movl $0x73b, %edx            # imm = 0x73B
leaq 0x525c(%rip), %rcx      # 0xd0f4
callq 0x1080
movl -0x60(%rbp), %eax
movq -0x10(%rbp), %rcx
movl 0x64(%rcx), %ecx
shll %cl, %eax
movl %eax, %ecx
movq -0x10(%rbp), %rax
orl 0x68(%rax), %ecx
movl %ecx, 0x68(%rax)
movl -0x64(%rbp), %ecx
movq -0x10(%rbp), %rax
addl 0x64(%rax), %ecx
movl %ecx, 0x64(%rax)
movq -0x10(%rbp), %rax
cmpl $0x8, 0x64(%rax)
jb 0x7f18
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x50(%rcx), %rax
jae 0x7efc
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movb %al, %cl
movq -0x10(%rbp), %rdx
movq 0x48(%rdx), %rax
movq %rax, %rsi
addq $0x1, %rsi
movq %rsi, 0x48(%rdx)
movb %cl, (%rax)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %ecx
shrl $0x8, %ecx
movl %ecx, 0x68(%rax)
movq -0x10(%rbp), %rax
movl 0x64(%rax), %ecx
subl $0x8, %ecx
movl %ecx, 0x64(%rax)
jmp 0x7ec2
jmp 0x7f1a
movq -0x10(%rbp), %rax
cmpl $0x0, 0x64(%rax)
je 0x7ff6
jmp 0x7f2a
movl $0x0, -0x68(%rbp)
movq -0x10(%rbp), %rcx
movl $0x8, %eax
subl 0x64(%rcx), %eax
movl %eax, -0x6c(%rbp)
movl -0x68(%rbp), %eax
movl -0x6c(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
ja 0x7f58
jmp 0x7f77
leaq 0x51c4(%rip), %rdi      # 0xd123
leaq 0x4ee4(%rip), %rsi      # 0xce4a
movl $0x73c, %edx            # imm = 0x73C
leaq 0x5182(%rip), %rcx      # 0xd0f4
callq 0x1080
movl -0x68(%rbp), %eax
movq -0x10(%rbp), %rcx
movl 0x64(%rcx), %ecx
shll %cl, %eax
movl %eax, %ecx
movq -0x10(%rbp), %rax
orl 0x68(%rax), %ecx
movl %ecx, 0x68(%rax)
movl -0x6c(%rbp), %ecx
movq -0x10(%rbp), %rax
addl 0x64(%rax), %ecx
movl %ecx, 0x64(%rax)
movq -0x10(%rbp), %rax
cmpl $0x8, 0x64(%rax)
jb 0x7ff2
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x50(%rcx), %rax
jae 0x7fd6
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movb %al, %cl
movq -0x10(%rbp), %rdx
movq 0x48(%rdx), %rax
movq %rax, %rsi
addq $0x1, %rsi
movq %rsi, 0x48(%rdx)
movb %cl, (%rax)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %ecx
shrl $0x8, %ecx
movl %ecx, 0x68(%rax)
movq -0x10(%rbp), %rax
movl 0x64(%rax), %ecx
subl $0x8, %ecx
movl %ecx, 0x64(%rax)
jmp 0x7f9c
jmp 0x7ff4
jmp 0x7ff6
movl $0x2, -0x5c(%rbp)
cmpl $0x0, -0x5c(%rbp)
je 0x80f3
jmp 0x8009
movq -0x10(%rbp), %rax
movl 0x5c(%rax), %eax
andl $0xffff, %eax           # imm = 0xFFFF
movl %eax, -0x70(%rbp)
movl $0x10, -0x74(%rbp)
movl -0x70(%rbp), %eax
movl -0x74(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
ja 0x8037
jmp 0x8056
leaq 0x50e5(%rip), %rdi      # 0xd123
leaq 0x4e05(%rip), %rsi      # 0xce4a
movl $0x73f, %edx            # imm = 0x73F
leaq 0x50a3(%rip), %rcx      # 0xd0f4
callq 0x1080
movl -0x70(%rbp), %eax
movq -0x10(%rbp), %rcx
movl 0x64(%rcx), %ecx
shll %cl, %eax
movl %eax, %ecx
movq -0x10(%rbp), %rax
orl 0x68(%rax), %ecx
movl %ecx, 0x68(%rax)
movl -0x74(%rbp), %ecx
movq -0x10(%rbp), %rax
addl 0x64(%rax), %ecx
movl %ecx, 0x64(%rax)
movq -0x10(%rbp), %rax
cmpl $0x8, 0x64(%rax)
jb 0x80d1
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x50(%rcx), %rax
jae 0x80b5
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movb %al, %cl
movq -0x10(%rbp), %rdx
movq 0x48(%rdx), %rax
movq %rax, %rsi
addq $0x1, %rsi
movq %rsi, 0x48(%rdx)
movb %cl, (%rax)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %ecx
shrl $0x8, %ecx
movl %ecx, 0x68(%rax)
movq -0x10(%rbp), %rax
movl 0x64(%rax), %ecx
subl $0x8, %ecx
movl %ecx, 0x64(%rax)
jmp 0x807b
jmp 0x80d3
jmp 0x80d5
movl -0x5c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x5c(%rbp)
movq -0x10(%rbp), %rax
movl 0x5c(%rax), %ecx
xorl $0xffff, %ecx           # imm = 0xFFFF
movl %ecx, 0x5c(%rax)
jmp 0x7ffd
movl $0x0, -0x5c(%rbp)
movl -0x5c(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x5c(%rcx), %eax
jae 0x81f8
jmp 0x810c
movq -0x10(%rbp), %rax
movq -0x10(%rbp), %rcx
movl 0x60(%rcx), %ecx
addl -0x5c(%rbp), %ecx
andl $0x7fff, %ecx           # imm = 0x7FFF
movl %ecx, %ecx
movzbl 0xd0(%rax,%rcx), %eax
movl %eax, -0x78(%rbp)
movl $0x8, -0x7c(%rbp)
movl -0x78(%rbp), %eax
movl -0x7c(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
ja 0x814c
jmp 0x816b
leaq 0x4fd0(%rip), %rdi      # 0xd123
leaq 0x4cf0(%rip), %rsi      # 0xce4a
movl $0x743, %edx            # imm = 0x743
leaq 0x4f8e(%rip), %rcx      # 0xd0f4
callq 0x1080
movl -0x78(%rbp), %eax
movq -0x10(%rbp), %rcx
movl 0x64(%rcx), %ecx
shll %cl, %eax
movl %eax, %ecx
movq -0x10(%rbp), %rax
orl 0x68(%rax), %ecx
movl %ecx, 0x68(%rax)
movl -0x7c(%rbp), %ecx
movq -0x10(%rbp), %rax
addl 0x64(%rax), %ecx
movl %ecx, 0x64(%rax)
movq -0x10(%rbp), %rax
cmpl $0x8, 0x64(%rax)
jb 0x81e6
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x50(%rcx), %rax
jae 0x81ca
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movb %al, %cl
movq -0x10(%rbp), %rdx
movq 0x48(%rdx), %rax
movq %rax, %rsi
addq $0x1, %rsi
movq %rsi, 0x48(%rdx)
movb %cl, (%rax)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %ecx
shrl $0x8, %ecx
movl %ecx, 0x68(%rax)
movq -0x10(%rbp), %rax
movl 0x64(%rax), %ecx
subl $0x8, %ecx
movl %ecx, 0x64(%rax)
jmp 0x8190
jmp 0x81e8
jmp 0x81ea
movl -0x5c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5c(%rbp)
jmp 0x80fa
jmp 0x8230
cmpl $0x0, -0x2c(%rbp)
jne 0x822e
movq -0x28(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x48(%rax)
movl -0x18(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x68(%rax)
movl -0x1c(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x64(%rax)
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0x97a0
jmp 0x8230
cmpl $0x0, -0x14(%rbp)
je 0x8757
cmpl $0x4, -0x14(%rbp)
jne 0x846c
movq -0x10(%rbp), %rax
cmpl $0x0, 0x64(%rax)
je 0x8329
jmp 0x8254
movl $0x0, -0x80(%rbp)
movq -0x10(%rbp), %rcx
movl $0x8, %eax
subl 0x64(%rcx), %eax
movl %eax, -0x84(%rbp)
movl -0x80(%rbp), %eax
movl -0x84(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
ja 0x8288
jmp 0x82a7
leaq 0x4e94(%rip), %rdi      # 0xd123
leaq 0x4bb4(%rip), %rsi      # 0xce4a
movl $0x751, %edx            # imm = 0x751
leaq 0x4e52(%rip), %rcx      # 0xd0f4
callq 0x1080
movl -0x80(%rbp), %eax
movq -0x10(%rbp), %rcx
movl 0x64(%rcx), %ecx
shll %cl, %eax
movl %eax, %ecx
movq -0x10(%rbp), %rax
orl 0x68(%rax), %ecx
movl %ecx, 0x68(%rax)
movl -0x84(%rbp), %ecx
movq -0x10(%rbp), %rax
addl 0x64(%rax), %ecx
movl %ecx, 0x64(%rax)
movq -0x10(%rbp), %rax
cmpl $0x8, 0x64(%rax)
jb 0x8325
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x50(%rcx), %rax
jae 0x8309
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movb %al, %cl
movq -0x10(%rbp), %rdx
movq 0x48(%rdx), %rax
movq %rax, %rsi
addq $0x1, %rsi
movq %rsi, 0x48(%rdx)
movb %cl, (%rax)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %ecx
shrl $0x8, %ecx
movl %ecx, 0x68(%rax)
movq -0x10(%rbp), %rax
movl 0x64(%rax), %ecx
subl $0x8, %ecx
movl %ecx, 0x64(%rax)
jmp 0x82cf
jmp 0x8327
jmp 0x8329
movq -0x10(%rbp), %rax
movl 0x10(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
je 0x8467
movq -0x10(%rbp), %rax
movl 0x20(%rax), %eax
movl %eax, -0x8c(%rbp)
movl $0x0, -0x88(%rbp)
cmpl $0x4, -0x88(%rbp)
jae 0x8465
jmp 0x8364
movl -0x8c(%rbp), %eax
shrl $0x18, %eax
andl $0xff, %eax
movl %eax, -0x90(%rbp)
movl $0x8, -0x94(%rbp)
movl -0x90(%rbp), %eax
movl -0x94(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
ja 0x83a0
jmp 0x83bf
leaq 0x4d7c(%rip), %rdi      # 0xd123
leaq 0x4a9c(%rip), %rsi      # 0xce4a
movl $0x752, %edx            # imm = 0x752
leaq 0x4d3a(%rip), %rcx      # 0xd0f4
callq 0x1080
movl -0x90(%rbp), %eax
movq -0x10(%rbp), %rcx
movl 0x64(%rcx), %ecx
shll %cl, %eax
movl %eax, %ecx
movq -0x10(%rbp), %rax
orl 0x68(%rax), %ecx
movl %ecx, 0x68(%rax)
movl -0x94(%rbp), %ecx
movq -0x10(%rbp), %rax
addl 0x64(%rax), %ecx
movl %ecx, 0x64(%rax)
movq -0x10(%rbp), %rax
cmpl $0x8, 0x64(%rax)
jb 0x8440
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x50(%rcx), %rax
jae 0x8424
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movb %al, %cl
movq -0x10(%rbp), %rdx
movq 0x48(%rdx), %rax
movq %rax, %rsi
addq $0x1, %rsi
movq %rsi, 0x48(%rdx)
movb %cl, (%rax)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %ecx
shrl $0x8, %ecx
movl %ecx, 0x68(%rax)
movq -0x10(%rbp), %rax
movl 0x64(%rax), %ecx
subl $0x8, %ecx
movl %ecx, 0x64(%rax)
jmp 0x83ea
jmp 0x8442
movl -0x8c(%rbp), %eax
shll $0x8, %eax
movl %eax, -0x8c(%rbp)
movl -0x88(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x88(%rbp)
jmp 0x8355
jmp 0x8467
jmp 0x8755
movl $0x0, -0x9c(%rbp)
movl $0x0, -0xa0(%rbp)
movl $0x3, -0xa4(%rbp)
movl -0xa0(%rbp), %eax
movl -0xa4(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
ja 0x84a8
jmp 0x84c7
leaq 0x4c74(%rip), %rdi      # 0xd123
leaq 0x4994(%rip), %rsi      # 0xce4a
movl $0x756, %edx            # imm = 0x756
leaq 0x4c32(%rip), %rcx      # 0xd0f4
callq 0x1080
movl -0xa0(%rbp), %eax
movq -0x10(%rbp), %rcx
movl 0x64(%rcx), %ecx
shll %cl, %eax
movl %eax, %ecx
movq -0x10(%rbp), %rax
orl 0x68(%rax), %ecx
movl %ecx, 0x68(%rax)
movl -0xa4(%rbp), %ecx
movq -0x10(%rbp), %rax
addl 0x64(%rax), %ecx
movl %ecx, 0x64(%rax)
movq -0x10(%rbp), %rax
cmpl $0x8, 0x64(%rax)
jb 0x8548
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x50(%rcx), %rax
jae 0x852c
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movb %al, %cl
movq -0x10(%rbp), %rdx
movq 0x48(%rdx), %rax
movq %rax, %rsi
addq $0x1, %rsi
movq %rsi, 0x48(%rdx)
movb %cl, (%rax)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %ecx
shrl $0x8, %ecx
movl %ecx, 0x68(%rax)
movq -0x10(%rbp), %rax
movl 0x64(%rax), %ecx
subl $0x8, %ecx
movl %ecx, 0x64(%rax)
jmp 0x84f2
jmp 0x854a
movq -0x10(%rbp), %rax
cmpl $0x0, 0x64(%rax)
je 0x8638
jmp 0x855a
movl $0x0, -0xa8(%rbp)
movq -0x10(%rbp), %rcx
movl $0x8, %eax
subl 0x64(%rcx), %eax
movl %eax, -0xac(%rbp)
movl -0xa8(%rbp), %eax
movl -0xac(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
ja 0x8594
jmp 0x85b3
leaq 0x4b88(%rip), %rdi      # 0xd123
leaq 0x48a8(%rip), %rsi      # 0xce4a
movl $0x756, %edx            # imm = 0x756
leaq 0x4b46(%rip), %rcx      # 0xd0f4
callq 0x1080
movl -0xa8(%rbp), %eax
movq -0x10(%rbp), %rcx
movl 0x64(%rcx), %ecx
shll %cl, %eax
movl %eax, %ecx
movq -0x10(%rbp), %rax
orl 0x68(%rax), %ecx
movl %ecx, 0x68(%rax)
movl -0xac(%rbp), %ecx
movq -0x10(%rbp), %rax
addl 0x64(%rax), %ecx
movl %ecx, 0x64(%rax)
movq -0x10(%rbp), %rax
cmpl $0x8, 0x64(%rax)
jb 0x8634
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x50(%rcx), %rax
jae 0x8618
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movb %al, %cl
movq -0x10(%rbp), %rdx
movq 0x48(%rdx), %rax
movq %rax, %rsi
addq $0x1, %rsi
movq %rsi, 0x48(%rdx)
movb %cl, (%rax)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %ecx
shrl $0x8, %ecx
movl %ecx, 0x68(%rax)
movq -0x10(%rbp), %rax
movl 0x64(%rax), %ecx
subl $0x8, %ecx
movl %ecx, 0x64(%rax)
jmp 0x85de
jmp 0x8636
jmp 0x8638
movl $0x2, -0x98(%rbp)
cmpl $0x0, -0x98(%rbp)
je 0x8753
jmp 0x8651
movl -0x9c(%rbp), %eax
andl $0xffff, %eax           # imm = 0xFFFF
movl %eax, -0xb0(%rbp)
movl $0x10, -0xb4(%rbp)
movl -0xb0(%rbp), %eax
movl -0xb4(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
ja 0x868a
jmp 0x86a9
leaq 0x4a92(%rip), %rdi      # 0xd123
leaq 0x47b2(%rip), %rsi      # 0xce4a
movl $0x756, %edx            # imm = 0x756
leaq 0x4a50(%rip), %rcx      # 0xd0f4
callq 0x1080
movl -0xb0(%rbp), %eax
movq -0x10(%rbp), %rcx
movl 0x64(%rcx), %ecx
shll %cl, %eax
movl %eax, %ecx
movq -0x10(%rbp), %rax
orl 0x68(%rax), %ecx
movl %ecx, 0x68(%rax)
movl -0xb4(%rbp), %ecx
movq -0x10(%rbp), %rax
addl 0x64(%rax), %ecx
movl %ecx, 0x64(%rax)
movq -0x10(%rbp), %rax
cmpl $0x8, 0x64(%rax)
jb 0x872a
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x50(%rcx), %rax
jae 0x870e
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movb %al, %cl
movq -0x10(%rbp), %rdx
movq 0x48(%rdx), %rax
movq %rax, %rsi
addq $0x1, %rsi
movq %rsi, 0x48(%rdx)
movb %cl, (%rax)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %ecx
shrl $0x8, %ecx
movl %ecx, 0x68(%rax)
movq -0x10(%rbp), %rax
movl 0x64(%rax), %ecx
subl $0x8, %ecx
movl %ecx, 0x64(%rax)
jmp 0x86d4
jmp 0x872c
jmp 0x872e
movl -0x98(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x98(%rbp)
movl -0x9c(%rbp), %eax
xorl $0xffff, %eax           # imm = 0xFFFF
movl %eax, -0x9c(%rbp)
jmp 0x8642
jmp 0x8755
jmp 0x8757
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x50(%rcx), %rax
jae 0x876b
jmp 0x878a
leaq 0x49cc(%rip), %rdi      # 0xd13e
leaq 0x46d1(%rip), %rsi      # 0xce4a
movl $0x75a, %edx            # imm = 0x75A
leaq 0x496f(%rip), %rcx      # 0xd0f4
callq 0x1080
movq -0x10(%rbp), %rdi
addq $0x81d2, %rdi           # imm = 0x81D2
xorl %esi, %esi
movl $0x240, %edx            # imm = 0x240
callq 0x1090
movq -0x10(%rbp), %rdi
addq $0x81d2, %rdi           # imm = 0x81D2
addq $0x240, %rdi            # imm = 0x240
xorl %esi, %esi
movl $0x40, %edx
callq 0x1090
movq -0x10(%rbp), %rcx
addq $0x92b2, %rcx           # imm = 0x92B2
addq $0x1, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x38(%rax)
movq -0x10(%rbp), %rcx
addq $0x92b2, %rcx           # imm = 0x92B2
movq -0x10(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x10(%rbp), %rax
movl $0x8, 0x58(%rax)
movq -0x10(%rbp), %rax
movl 0x5c(%rax), %ecx
movq -0x10(%rbp), %rax
addl 0x60(%rax), %ecx
movl %ecx, 0x60(%rax)
movq -0x10(%rbp), %rax
movl $0x0, 0x5c(%rax)
movq -0x10(%rbp), %rax
movl 0x84(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x84(%rax)
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x40(%rbp), %rcx
subq %rcx, %rax
movl %eax, -0x30(%rbp)
cmpl $0x0, %eax
je 0x89b2
movq -0x10(%rbp), %rax
cmpq $0x0, (%rax)
je 0x88b2
movq -0x10(%rbp), %rax
movq 0xb8(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x90(%rax), %rax
subq %rax, %rcx
movq -0x10(%rbp), %rax
movq 0xa0(%rax), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rdi
addq $0x392b2, %rdi          # imm = 0x392B2
movl -0x30(%rbp), %esi
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rdx
callq *%rax
cmpl $0x0, %eax
jne 0x88ad
movq -0x10(%rbp), %rax
movl $0xffffffff, 0x8c(%rax) # imm = 0xFFFFFFFF
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x89bc
jmp 0x89b0
movq -0x40(%rbp), %rax
movq -0x10(%rbp), %rcx
addq $0x392b2, %rcx          # imm = 0x392B2
cmpq %rcx, %rax
jne 0x8998
movslq -0x30(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0xa8(%rcx), %rcx
movq (%rcx), %rcx
movq -0x10(%rbp), %rdx
subq 0xc8(%rdx), %rcx
cmpq %rcx, %rax
jae 0x88f9
movslq -0x30(%rbp), %rax
movq %rax, -0xe0(%rbp)
jmp 0x8919
movq -0x10(%rbp), %rax
movq 0xa8(%rax), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
subq 0xc8(%rcx), %rax
movq %rax, -0xe0(%rbp)
movq -0xe0(%rbp), %rax
movl %eax, -0xb8(%rbp)
movq -0x10(%rbp), %rax
movq 0x98(%rax), %rdi
movq -0x10(%rbp), %rax
addq 0xc8(%rax), %rdi
movq -0x10(%rbp), %rsi
addq $0x392b2, %rsi          # imm = 0x392B2
movslq -0xb8(%rbp), %rdx
callq 0x10d0
movslq -0xb8(%rbp), %rcx
movq -0x10(%rbp), %rax
addq 0xc8(%rax), %rcx
movq %rcx, 0xc8(%rax)
movl -0xb8(%rbp), %ecx
movl -0x30(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x30(%rbp)
cmpl $0x0, %eax
je 0x8996
movl -0xb8(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x78(%rax)
movl -0x30(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x7c(%rax)
jmp 0x89ae
movslq -0x30(%rbp), %rcx
movq -0x10(%rbp), %rax
addq 0xc8(%rax), %rcx
movq %rcx, 0xc8(%rax)
jmp 0x89b0
jmp 0x89b2
movq -0x10(%rbp), %rax
movl 0x7c(%rax), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xe0, %rsp
popq %rbp
retq
nopl (%rax,%rax)