// File: /workspace/github_cpp_makefile_star2_O1/Alcaro[P]bridges/arlib/deps/miniz.c
// Function: tdefl_compress_normal
static mz_bool tdefl_compress_normal(tdefl_compressor *d)
{
  const mz_uint8 *pSrc = d->m_pSrc; size_t src_buf_left = d->m_src_buf_left;
  tdefl_flush flush = d->m_flush;

  while ((src_buf_left) || ((flush) && (d->m_lookahead_size)))
  {
    mz_uint len_to_move, cur_match_dist, cur_match_len, cur_pos;
    // Update dictionary and hash chains. Keeps the lookahead size equal to TDEFL_MAX_MATCH_LEN.
    if ((d->m_lookahead_size + d->m_dict_size) >= (TDEFL_MIN_MATCH_LEN - 1))
    {
      mz_uint dst_pos = (d->m_lookahead_pos + d->m_lookahead_size) & TDEFL_LZ_DICT_SIZE_MASK, ins_pos = d->m_lookahead_pos + d->m_lookahead_size - 2;
      mz_uint hash = (d->m_dict[ins_pos & TDEFL_LZ_DICT_SIZE_MASK] << TDEFL_LZ_HASH_SHIFT) ^ d->m_dict[(ins_pos + 1) & TDEFL_LZ_DICT_SIZE_MASK];
      mz_uint num_bytes_to_process = (mz_uint)MZ_MIN(src_buf_left, TDEFL_MAX_MATCH_LEN - d->m_lookahead_size);
      const mz_uint8 *pSrc_end = pSrc + num_bytes_to_process;
      src_buf_left -= num_bytes_to_process;
      d->m_lookahead_size += num_bytes_to_process;
      while (pSrc != pSrc_end)
      {
        mz_uint8 c = *pSrc++; d->m_dict[dst_pos] = c; if (dst_pos < (TDEFL_MAX_MATCH_LEN - 1)) d->m_dict[TDEFL_LZ_DICT_SIZE + dst_pos] = c;
        hash = ((hash << TDEFL_LZ_HASH_SHIFT) ^ c) & (TDEFL_LZ_HASH_SIZE - 1);
        d->m_next[ins_pos & TDEFL_LZ_DICT_SIZE_MASK] = d->m_hash[hash]; d->m_hash[hash] = (mz_uint16)(ins_pos);
        dst_pos = (dst_pos + 1) & TDEFL_LZ_DICT_SIZE_MASK; ins_pos++;
      }
    }
    else
    {
      while ((src_buf_left) && (d->m_lookahead_size < TDEFL_MAX_MATCH_LEN))
      {
        mz_uint8 c = *pSrc++;
        mz_uint dst_pos = (d->m_lookahead_pos + d->m_lookahead_size) & TDEFL_LZ_DICT_SIZE_MASK;
        src_buf_left--;
        d->m_dict[dst_pos] = c;
        if (dst_pos < (TDEFL_MAX_MATCH_LEN - 1))
          d->m_dict[TDEFL_LZ_DICT_SIZE + dst_pos] = c;
        if ((++d->m_lookahead_size + d->m_dict_size) >= TDEFL_MIN_MATCH_LEN)
        {
          mz_uint ins_pos = d->m_lookahead_pos + (d->m_lookahead_size - 1) - 2;
          mz_uint hash = ((d->m_dict[ins_pos & TDEFL_LZ_DICT_SIZE_MASK] << (TDEFL_LZ_HASH_SHIFT * 2)) ^ (d->m_dict[(ins_pos + 1) & TDEFL_LZ_DICT_SIZE_MASK] << TDEFL_LZ_HASH_SHIFT) ^ c) & (TDEFL_LZ_HASH_SIZE - 1);
          d->m_next[ins_pos & TDEFL_LZ_DICT_SIZE_MASK] = d->m_hash[hash]; d->m_hash[hash] = (mz_uint16)(ins_pos);
        }
      }
    }
    d->m_dict_size = MZ_MIN(TDEFL_LZ_DICT_SIZE - d->m_lookahead_size, d->m_dict_size);
    if ((!flush) && (d->m_lookahead_size < TDEFL_MAX_MATCH_LEN))
      break;

    // Simple lazy/greedy parsing state machine.
    len_to_move = 1; cur_match_dist = 0; cur_match_len = d->m_saved_match_len ? d->m_saved_match_len : (TDEFL_MIN_MATCH_LEN - 1); cur_pos = d->m_lookahead_pos & TDEFL_LZ_DICT_SIZE_MASK;
    if (d->m_flags & (TDEFL_RLE_MATCHES | TDEFL_FORCE_ALL_RAW_BLOCKS))
    {
      if ((d->m_dict_size) && (!(d->m_flags & TDEFL_FORCE_ALL_RAW_BLOCKS)))
      {
        mz_uint8 c = d->m_dict[(cur_pos - 1) & TDEFL_LZ_DICT_SIZE_MASK];
        cur_match_len = 0; while (cur_match_len < d->m_lookahead_size) { if (d->m_dict[cur_pos + cur_match_len] != c) break; cur_match_len++; }
        if (cur_match_len < TDEFL_MIN_MATCH_LEN) cur_match_len = 0; else cur_match_dist = 1;
      }
    }
    else
    {
      tdefl_find_match(d, d->m_lookahead_pos, d->m_dict_size, d->m_lookahead_size, &cur_match_dist, &cur_match_len);
    }
    if (((cur_match_len == TDEFL_MIN_MATCH_LEN) && (cur_match_dist >= 8U*1024U)) || (cur_pos == cur_match_dist) || ((d->m_flags & TDEFL_FILTER_MATCHES) && (cur_match_len <= 5)))
    {
      cur_match_dist = cur_match_len = 0;
    }
    if (d->m_saved_match_len)
    {
      if (cur_match_len > d->m_saved_match_len)
      {
        tdefl_record_literal(d, (mz_uint8)d->m_saved_lit);
        if (cur_match_len >= 128)
        {
          tdefl_record_match(d, cur_match_len, cur_match_dist);
          d->m_saved_match_len = 0; len_to_move = cur_match_len;
        }
        else
        {
          d->m_saved_lit = d->m_dict[cur_pos]; d->m_saved_match_dist = cur_match_dist; d->m_saved_match_len = cur_match_len;
        }
      }
      else
      {
        tdefl_record_match(d, d->m_saved_match_len, d->m_saved_match_dist);
        len_to_move = d->m_saved_match_len - 1; d->m_saved_match_len = 0;
      }
    }
    else if (!cur_match_dist)
      tdefl_record_literal(d, d->m_dict[MZ_MIN(cur_pos, sizeof(d->m_dict) - 1)]);
    else if ((d->m_greedy_parsing) || (d->m_flags & TDEFL_RLE_MATCHES) || (cur_match_len >= 128))
    {
      tdefl_record_match(d, cur_match_len, cur_match_dist);
      len_to_move = cur_match_len;
    }
    else
    {
      d->m_saved_lit = d->m_dict[MZ_MIN(cur_pos, sizeof(d->m_dict) - 1)]; d->m_saved_match_dist = cur_match_dist; d->m_saved_match_len = cur_match_len;
    }
    // Move the lookahead forward by len_to_move bytes.
    d->m_lookahead_pos += len_to_move;
    MZ_ASSERT(d->m_lookahead_size >= len_to_move);
    d->m_lookahead_size -= len_to_move;
    d->m_dict_size = MZ_MIN(d->m_dict_size + len_to_move, TDEFL_LZ_DICT_SIZE);
    // Check if it's time to flush the current LZ codes to the internal output buffer.
    if ( (d->m_pLZ_code_buf > &d->m_lz_code_buf[TDEFL_LZ_CODE_BUF_SIZE - 8]) ||
         ( (d->m_total_lz_bytes > 31*1024) && (((((mz_uint)(d->m_pLZ_code_buf - d->m_lz_code_buf) * 115) >> 7) >= d->m_total_lz_bytes) || (d->m_flags & TDEFL_FORCE_ALL_RAW_BLOCKS))) )
    {
      int n;
      d->m_pSrc = pSrc; d->m_src_buf_left = src_buf_left;
      if ((n = tdefl_flush_block(d, 0)) != 0)
        return (n < 0) ? MZ_FALSE : MZ_TRUE;
    }
  }

  d->m_pSrc = pSrc; d->m_src_buf_left = src_buf_left;
  return MZ_TRUE;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
movq 0xb0(%rdi), %r14
movq 0xb8(%rdi), %r15
movl 0xa8(%rdi), %eax
movl %eax, 0x34(%rsp)
leaq 0xc8(%rdi), %rax
leaq 0x92aa(%rdi), %rcx
movq %rcx, 0x78(%rsp)
leaq 0x192a2(%rdi), %rcx
movq %rcx, 0x80(%rsp)
leaq 0x1c8(%rdi), %rcx
movq %rcx, 0x50(%rsp)
movq %rax, 0x28(%rsp)
testq %r15, %r15
jne 0x2bc06
cmpl $0x0, 0x34(%rsp)
je 0x2c574
cmpl $0x0, 0x28(%rbx)
je 0x2c574
movl 0x28(%rbx), %r8d
movl 0x2c(%rbx), %r11d
leal (%r11,%r8), %ecx
cmpl $0x1, %ecx
jbe 0x2bcdf
movl 0x24(%rbx), %ecx
leal (%rcx,%r8), %edx
addl $-0x2, %edx
movl %edx, %esi
movl $0x7fff, %eax           # imm = 0x7FFF
andl %eax, %esi
movzbl 0xc8(%rbx,%rsi), %esi
leal (%rcx,%r8), %edi
decl %edi
andl %eax, %edi
movzbl 0xc8(%rbx,%rdi), %r9d
movl $0x102, %r10d           # imm = 0x102
subl %r8d, %r10d
cmpq %r10, %r15
movl %r15d, %edi
cmovael %r10d, %edi
subq %rdi, %r15
leal (%rdi,%r8), %r10d
movl %r10d, 0x28(%rbx)
testl %edi, %edi
je 0x2bdf7
addl %r8d, %ecx
shll $0x5, %esi
xorl %r9d, %esi
andl $0x7fff, %ecx           # imm = 0x7FFF
movb (%r14), %r8b
movb %r8b, 0xc8(%rbx,%rcx)
cmpl $0x100, %ecx            # imm = 0x100
ja 0x2bc9a
movl %ecx, %r9d
movb %r8b, 0x80c8(%rbx,%r9)
incq %r14
movzbl %r8b, %r8d
shll $0x5, %esi
andl $0x7fe0, %esi           # imm = 0x7FE0
xorl %r8d, %esi
movzwl 0x292aa(%rbx,%rsi,2), %r8d
movl %edx, %r9d
andl $0x7fff, %r9d           # imm = 0x7FFF
movw %r8w, 0x192aa(%rbx,%r9,2)
movw %dx, 0x292aa(%rbx,%rsi,2)
incl %ecx
incl %edx
decq %rdi
jne 0x2bc76
jmp 0x2bdf7
testq %r15, %r15
je 0x2bde7
movl 0x28(%rbx), %ecx
movl $0x102, %edx            # imm = 0x102
subl %ecx, %edx
movl $0x0, %eax
cmovbl %eax, %edx
leal -0x2(%rcx), %eax
movq %rax, 0x38(%rsp)
movq %r11, 0x20(%rsp)
leal (%r11,%rcx), %edi
incl %edi
xorl %r8d, %r8d
movq %r15, %r9
cmpl %r8d, %edx
je 0x2bdec
movb (%r14,%r8), %r11b
movl 0x24(%rbx), %r10d
leal (%rcx,%r8), %r12d
addl %r10d, %r12d
andl $0x7fff, %r12d          # imm = 0x7FFF
movb %r11b, 0xc8(%rbx,%r12)
cmpl $0x100, %r12d           # imm = 0x100
ja 0x2bd4e
movl %r12d, %r12d
movb %r11b, 0x80c8(%rbx,%r12)
leal (%rcx,%r8), %ebp
incl %ebp
movl %ebp, 0x28(%rbx)
leal (%rdi,%r8), %ebp
cmpl $0x3, %ebp
jb 0x2bdd0
movzbl %r11b, %r11d
movq 0x38(%rsp), %rax
leal (%rax,%r8), %r12d
addl %r10d, %r12d
movl $0x7fff, %esi           # imm = 0x7FFF
andl %esi, %r12d
movzbl 0xc8(%rbx,%r12), %ebp
leal (%rcx,%r8), %r13d
movq %r15, %rax
leal (%r10,%r13), %r15d
decl %r15d
andl %esi, %r15d
movzbl 0xc8(%rbx,%r15), %r15d
shll $0x5, %r15d
andl $0x1f, %ebp
shll $0xa, %ebp
xorl %r15d, %r11d
movq %rax, %r15
xorl %ebp, %r11d
movzwl 0x292aa(%rbx,%r11,2), %ebp
movw %bp, 0x192aa(%rbx,%r12,2)
addl %r13d, %r10d
addl $-0x2, %r10d
movw %r10w, 0x292aa(%rbx,%r11,2)
incq %r8
decq %r9
cmpq %r8, %r15
jne 0x2bd13
addq %r8, %r14
xorl %r15d, %r15d
jmp 0x2bdf2
xorl %r15d, %r15d
jmp 0x2bdf7
addq %r8, %r14
movq %r9, %r15
movq 0x20(%rsp), %r11
cmpl $0x0, 0x34(%rsp)
sete %sil
movl 0x28(%rbx), %edx
movl $0x8000, %r9d           # imm = 0x8000
subl %edx, %r9d
cmpl %r11d, %r9d
cmovael %r11d, %r9d
movl %r9d, 0x2c(%rbx)
cmpl $0x102, %edx            # imm = 0x102
setb %al
movl $0x3, %ecx
testb %al, %sil
jne 0x2c53d
movl %edx, %edi
movl 0x68(%rbx), %ecx
testl %ecx, %ecx
movl %ecx, %eax
movl $0x2, %edx
cmovel %edx, %eax
movl 0x10(%rbx), %r11d
movl 0x24(%rbx), %r8d
movl %r8d, %r10d
andl $0x7fff, %r10d          # imm = 0x7FFF
testl $0x90000, %r11d         # imm = 0x90000
je 0x2beaf
testl %r9d, %r9d
sete %dl
movl %r11d, %esi
shrl $0x13, %esi
andl $0x1, %esi
orb %dl, %sil
jne 0x2c164
testq %rdi, %rdi
je 0x2c17e
decl %r8d
andl $0x7fff, %r8d           # imm = 0x7FFF
movb 0xc8(%rbx,%r8), %dl
xorl %eax, %eax
leal (%r10,%rax), %esi
cmpb %dl, 0xc8(%rbx,%rsi)
jne 0x2c180
incq %rax
cmpq %rax, %rdi
jne 0x2be8f
movl %edi, %eax
jmp 0x2c180
cmpl $0x103, %edi            # imm = 0x103
jae 0x2c5da
cmpl %edi, %eax
jae 0x2c164
movq %rdi, 0x48(%rsp)
movl %ecx, 0xc(%rsp)
movl %r11d, 0x10(%rsp)
movq 0x28(%rsp), %rdi
leaq (%rdi,%r10), %rdx
movq %rdx, 0x70(%rsp)
movzwl (%rdi,%r10), %edx
movw %dx, 0x38(%rsp)
xorl %edx, %edx
cmpl $0x20, %eax
setae %dl
movl 0x14(%rbx,%rdx,4), %ebp
leal -0x1(%r10), %edx
movq %rdx, 0x60(%rsp)
leal (%r10,%rax), %r11d
decl %r11d
movq 0x50(%rsp), %rdx
leaq (%rdx,%r10), %rcx
movq %rcx, 0x68(%rsp)
leaq (%rbx,%r10), %rcx
movq %rcx, 0x20(%rsp)
movl $0x0, 0x14(%rsp)
movq %r10, 0x18(%rsp)
movl %r10d, %edx
movl %r11d, %esi
movzwl (%rdi,%rsi), %ecx
leal -0x1(%rax), %r13d
decl %ebp
movl %ebp, %r12d
subl $0x1, %r12d
jb 0x2c168
movl %edx, %edx
movzwl 0x192aa(%rbx,%rdx,2), %edx
testl %edx, %edx
je 0x2c168
movl %r8d, %esi
subl %edx, %esi
movzwl %si, %edi
cmpl %edi, %r9d
jb 0x2c168
andl $0x7fff, %edx           # imm = 0x7FFF
leal (%rdx,%r13), %esi
movq 0x28(%rsp), %r11
cmpw %cx, (%r11,%rsi)
je 0x2bfed
movzwl 0x192aa(%rbx,%rdx,2), %edx
testl %edx, %edx
je 0x2c168
movl %r8d, %esi
subl %edx, %esi
movzwl %si, %edi
cmpl %edi, %r9d
jb 0x2c168
andl $0x7fff, %edx           # imm = 0x7FFF
leal (%rdx,%r13), %esi
movq 0x28(%rsp), %r11
cmpw %cx, (%r11,%rsi)
je 0x2bfed
movzwl 0x192aa(%rbx,%rdx,2), %edx
testl %edx, %edx
je 0x2c168
movl %r8d, %esi
subl %edx, %esi
movzwl %si, %edi
cmpl %edi, %r9d
jb 0x2c168
andl $0x7fff, %edx           # imm = 0x7FFF
leal (%rdx,%r13), %esi
movq 0x28(%rsp), %r11
cmpw %cx, (%r11,%rsi)
jne 0x2c016
testl %edi, %edi
je 0x2c168
movq %r8, %r10
movl %ecx, %r8d
movl %ebp, %ecx
movl %edx, %esi
movq 0x28(%rsp), %r11
movzwl 0x38(%rsp), %ebp
cmpw %bp, (%r11,%rsi)
je 0x2c01e
movl %r8d, %ecx
movq %r10, %r8
movl %r12d, %ebp
jmp 0x2bf3c
movq %r15, 0x40(%rsp)
movq 0x50(%rsp), %r11
addq %rsi, %r11
movq %r11, 0x58(%rsp)
leaq (%rbx,%rsi), %r11
xorl %r12d, %r12d
movl %ecx, %ebp
movq 0x20(%rsp), %rcx
movzwl 0xca(%rcx,%r12), %r15d
cmpw 0xca(%r11,%r12), %r15w
jne 0x2c0b3
movzwl 0xcc(%rcx,%r12), %r15d
cmpw 0xcc(%r11,%r12), %r15w
jne 0x2c0bf
movzwl 0xce(%rcx,%r12), %r15d
cmpw 0xce(%r11,%r12), %r15w
jne 0x2c0cb
movzwl 0xd0(%rcx,%r12), %r15d
cmpw 0xd0(%r11,%r12), %r15w
sete %r15b
jne 0x2c0e6
addq $0x8, %r12
cmpl $0x100, %r12d           # imm = 0x100
movq 0x20(%rsp), %rcx
jne 0x2c03e
movl %r15d, %r11d
movq 0x68(%rsp), %r15
movq 0x58(%rsp), %r12
jmp 0x2c103
leaq (%rcx,%r12), %r15
movl $0xca, %r11d
jmp 0x2c0d5
leaq (%rcx,%r12), %r15
movl $0xcc, %r11d
jmp 0x2c0d5
leaq (%rcx,%r12), %r15
movl $0xce, %r11d
addq %r11, %r15
addq %rbx, %r12
addq %rsi, %r12
addq %r11, %r12
xorl %r11d, %r11d
jmp 0x2c103
movq 0x20(%rsp), %rcx
movl %r15d, %r11d
leaq (%rcx,%r12), %r15
movl $0xd0, %ecx
addq %rcx, %r15
addq %rbx, %r12
addq %rsi, %r12
addq %rcx, %r12
testb %r11b, %r11b
jne 0x2c547
movl %r8d, %ecx
movl %r15d, %r11d
subl 0x70(%rsp), %r11d
andl $-0x2, %r11d
movb (%r15), %r15b
xorl %esi, %esi
cmpb (%r12), %r15b
sete %sil
orl %r11d, %esi
cmpl %eax, %esi
movq 0x40(%rsp), %r15
movq %r10, %r8
jbe 0x2bf37
movq 0x48(%rsp), %rax
cmpl %eax, %esi
cmovael %eax, %esi
jae 0x2c562
movq 0x60(%rsp), %rax
leal (%rax,%rsi), %r11d
movl %edi, 0x14(%rsp)
movl %esi, %eax
movq 0x28(%rsp), %rdi
jmp 0x2bf2c
xorl %edi, %edi
jmp 0x2c191
movl 0x14(%rsp), %ecx
movl %ecx, %edi
movl 0x10(%rsp), %r11d
movl 0xc(%rsp), %ecx
movq 0x18(%rsp), %r10
jmp 0x2c191
xorl %eax, %eax
xorl %edi, %edi
cmpl $0x3, %eax
setae %dil
movl $0x0, %edx
cmovbl %edx, %eax
cmpl $0x3, %eax
sete %dl
cmpl $0x2000, %edi           # imm = 0x2000
setae %sil
testb %sil, %dl
jne 0x2c1b7
cmpl %edi, %r10d
je 0x2c1b7
btl $0x11, %r11d
jae 0x2c1bb
cmpl $0x5, %eax
ja 0x2c1bb
xorl %edi, %edi
xorl %eax, %eax
testl %ecx, %ecx
je 0x2c2c2
cmpl %ecx, %eax
jbe 0x2c38a
movl 0x6c(%rbx), %ecx
incl 0x54(%rbx)
movq 0x30(%rbx), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x30(%rbx)
movb %cl, (%rdx)
movq 0x38(%rbx), %rdx
shrb (%rdx)
decl 0x50(%rbx)
jne 0x2c201
movl $0x8, 0x50(%rbx)
movq 0x30(%rbx), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x30(%rbx)
movq %rdx, 0x38(%rbx)
movzbl %cl, %ecx
incw 0x81ca(%rbx,%rcx,2)
cmpl $0x80, %eax
jb 0x2c4a3
decl %edi
cmpl $0x8000, %edi           # imm = 0x8000
jae 0x2c5bb
addl %eax, 0x54(%rbx)
leal -0x3(%rax), %ecx
movq 0x30(%rbx), %rdx
movb %cl, (%rdx)
movq 0x30(%rbx), %rdx
movb %dil, 0x1(%rdx)
movl %edi, %edx
shrl $0x8, %edx
movq 0x30(%rbx), %rsi
movb %dl, 0x2(%rsi)
addq $0x3, 0x30(%rbx)
movq 0x38(%rbx), %rsi
movb (%rsi), %r8b
shrb %r8b
orb $-0x80, %r8b
movb %r8b, (%rsi)
decl 0x50(%rbx)
jne 0x2c277
movl $0x8, 0x50(%rbx)
movq 0x30(%rbx), %rsi
leaq 0x1(%rsi), %r8
movq %r8, 0x30(%rbx)
movq %rsi, 0x38(%rbx)
movl %edi, %esi
andl $0x1ff, %esi            # imm = 0x1FF
leaq 0xb0ea(%rip), %r8       # 0x37370
addq %r8, %rsi
leaq 0xb2e0(%rip), %r8       # 0x37570
addq %r8, %rdx
cmpl $0x200, %edi            # imm = 0x200
cmovbq %rsi, %rdx
movzbl (%rdx), %edx
incw 0x840a(%rbx,%rdx,2)
movl %ecx, %ecx
leaq 0xb33f(%rip), %rdx      # 0x375f0
movzwl (%rdx,%rcx,2), %ecx
incw 0x81ca(%rbx,%rcx,2)
jmp 0x2c43e
testl %edi, %edi
je 0x2c447
cmpl $0x0, 0x1c(%rbx)
je 0x2c48d
cmpl $0x8000, %edi           # imm = 0x8000
ja 0x2c5bb
cmpl $0x2, %eax
jbe 0x2c5bb
leal -0x1(%rdi), %edx
addl %eax, 0x54(%rbx)
leal -0x3(%rax), %ecx
movq 0x30(%rbx), %rsi
movb %cl, (%rsi)
movq 0x30(%rbx), %rsi
movb %dl, 0x1(%rsi)
movl %edx, %esi
shrl $0x8, %esi
movq 0x30(%rbx), %r8
movb %sil, 0x2(%r8)
addq $0x3, 0x30(%rbx)
movq 0x38(%rbx), %r8
movb (%r8), %r9b
shrb %r9b
orb $-0x80, %r9b
movb %r9b, (%r8)
decl 0x50(%rbx)
jne 0x2c33e
movl $0x8, 0x50(%rbx)
movq 0x30(%rbx), %r8
leaq 0x1(%r8), %r9
movq %r9, 0x30(%rbx)
movq %r8, 0x38(%rbx)
andl $0x1ff, %edx            # imm = 0x1FF
leaq 0xb025(%rip), %r8       # 0x37370
addq %r8, %rdx
andl $0x7f, %esi
leaq 0xb218(%rip), %r8       # 0x37570
addq %r8, %rsi
cmpl $0x201, %edi            # imm = 0x201
cmovbq %rdx, %rsi
movzbl (%rsi), %edx
incw 0x840a(%rbx,%rdx,2)
movl %ecx, %ecx
leaq 0xb277(%rip), %rdx      # 0x375f0
movzwl (%rdx,%rcx,2), %ecx
incw 0x81ca(%rbx,%rcx,2)
jmp 0x2c4ba
cmpl $0x3, %ecx
jb 0x2c5bb
movl 0x64(%rbx), %eax
decl %eax
cmpl $0x8000, %eax           # imm = 0x8000
jae 0x2c5bb
addl %ecx, 0x54(%rbx)
addl $-0x3, %ecx
movq 0x30(%rbx), %rdx
movb %cl, (%rdx)
movq 0x30(%rbx), %rdx
movb %al, 0x1(%rdx)
movl %eax, %edx
shrl $0x8, %edx
movq 0x30(%rbx), %rsi
movb %dl, 0x2(%rsi)
addq $0x3, 0x30(%rbx)
movq 0x38(%rbx), %rsi
movb (%rsi), %dil
shrb %dil
orb $-0x80, %dil
movb %dil, (%rsi)
decl 0x50(%rbx)
jne 0x2c3f4
movl $0x8, 0x50(%rbx)
movq 0x30(%rbx), %rsi
leaq 0x1(%rsi), %rdi
movq %rdi, 0x30(%rbx)
movq %rsi, 0x38(%rbx)
movl %eax, %esi
andl $0x1ff, %esi            # imm = 0x1FF
leaq 0xaf6d(%rip), %rdi      # 0x37370
addq %rdi, %rsi
leaq 0xb163(%rip), %rdi      # 0x37570
addq %rdi, %rdx
cmpl $0x200, %eax            # imm = 0x200
cmovbq %rsi, %rdx
movzbl (%rdx), %eax
incw 0x840a(%rbx,%rax,2)
movl %ecx, %eax
leaq 0xb1c3(%rip), %rcx      # 0x375f0
movzwl (%rcx,%rax,2), %eax
incw 0x81ca(%rbx,%rax,2)
movl 0x68(%rbx), %eax
decl %eax
movl $0x0, 0x68(%rbx)
jmp 0x2c4ba
movzbl 0xc8(%rbx,%r10), %eax
incl 0x54(%rbx)
movq 0x30(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x30(%rbx)
movb %al, (%rcx)
movq 0x38(%rbx), %rcx
shrb (%rcx)
decl 0x50(%rbx)
jne 0x2c483
movl $0x8, 0x50(%rbx)
movq 0x30(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x30(%rbx)
movq %rcx, 0x38(%rbx)
incw 0x81ca(%rbx,%rax,2)
jmp 0x2c4b5
btl $0x10, %r11d
jb 0x2c2d4
cmpl $0x80, %eax
jae 0x2c2d4
movzbl 0xc8(%rbx,%r10), %ecx
movl %ecx, 0x6c(%rbx)
movl %edi, 0x64(%rbx)
movl %eax, 0x68(%rbx)
movl $0x1, %eax
addl %eax, 0x24(%rbx)
movl 0x28(%rbx), %ecx
subl %eax, %ecx
jb 0x2c59c
movl %ecx, 0x28(%rbx)
addl 0x2c(%rbx), %eax
movl $0x8000, %ecx           # imm = 0x8000
cmpl %ecx, %eax
cmovael %ecx, %eax
movl %eax, 0x2c(%rbx)
movq 0x30(%rbx), %rax
cmpq 0x80(%rsp), %rax
jbe 0x2c51c
movq %r14, 0xb0(%rbx)
movq %r15, 0xb8(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2c5f9
movl %eax, %edx
notl %edx
shrl $0x1f, %edx
xorl %ecx, %ecx
testl %eax, %eax
setne %cl
movl 0x30(%rsp), %eax
cmovnel %edx, %eax
movl %eax, 0x30(%rsp)
jmp 0x2c53d
movl 0x54(%rbx), %edx
xorl %ecx, %ecx
cmpl $0x7c01, %edx           # imm = 0x7C01
jb 0x2c53d
subl 0x78(%rsp), %eax
imull $0x73, %eax, %eax
shrl $0x7, %eax
cmpl %edx, %eax
jae 0x2c4e9
testb $0x8, 0x12(%rbx)
jne 0x2c4e9
testl %ecx, %ecx
je 0x2bbec
jmp 0x2c569
movl $0x102, %eax            # imm = 0x102
movq 0x48(%rsp), %rcx
cmpl %eax, %ecx
cmovael %eax, %ecx
movl %ecx, %eax
movq 0x40(%rsp), %r15
jmp 0x2c16e
movl %esi, %eax
jmp 0x2c16e
cmpl $0x3, %ecx
je 0x2c577
movl 0x30(%rsp), %eax
jmp 0x2c58a
xorl %r15d, %r15d
movq %r14, 0xb0(%rbx)
movq %r15, 0xb8(%rbx)
movl $0x1, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xaad1(%rip), %rdi      # 0x37074
leaq 0xa9a3(%rip), %rsi      # 0x36f4d
leaq 0xaae6(%rip), %rcx      # 0x37097
movl $0x46f, %edx            # imm = 0x46F
callq 0x3200
leaq 0xab87(%rip), %rdi      # 0x37149
leaq 0xa984(%rip), %rsi      # 0x36f4d
leaq 0xabd7(%rip), %rcx      # 0x371a7
movl $0x3f9, %edx            # imm = 0x3F9
callq 0x3200
leaq 0xaae8(%rip), %rdi      # 0x370c9
leaq 0xa965(%rip), %rsi      # 0x36f4d
leaq 0xaaff(%rip), %rcx      # 0x370ee
movl $0x329, %edx            # imm = 0x329
callq 0x3200