// File: /workspace/github_cpp_makefile_star2_O3/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 $0x78, %rsp
movq %rdi, %rbx
movq 0xb0(%rdi), %r14
movq 0xb8(%rdi), %rax
movq %rax, 0x10(%rsp)
movl 0xa8(%rdi), %eax
movl %eax, 0x34(%rsp)
leaq 0xc8(%rdi), %r15
leaq 0x92aa(%rdi), %rax
movq %rax, 0x68(%rsp)
leaq 0x192a2(%rdi), %rax
movq %rax, 0x70(%rsp)
leaq 0xd0(%rdi), %rax
movq %rax, 0x50(%rsp)
cmpq $0x0, 0x10(%rsp)
je 0x2be6a
movl 0x28(%rbx), %edi
movl 0x2c(%rbx), %ecx
leal (%rcx,%rdi), %eax
cmpl $0x1, %eax
ja 0x2be8f
jmp 0x2bf73
cmpl $0x0, 0x34(%rsp)
je 0x2c77d
movl 0x28(%rbx), %edi
testl %edi, %edi
je 0x2c77d
movl 0x2c(%rbx), %ecx
leal (%rcx,%rdi), %eax
cmpl $0x1, %eax
jbe 0x2bf67
movq %rcx, 0x18(%rsp)
movl 0x24(%rbx), %esi
movq %rdi, %rdx
addl %esi, %edi
addl $-0x2, %edi
movl %edi, %eax
movl $0x7fff, %ecx           # imm = 0x7FFF
andl %ecx, %eax
movzbl 0xc8(%rbx,%rax), %r8d
leal (%rsi,%rdx), %eax
decl %eax
andl %ecx, %eax
movzbl 0xc8(%rbx,%rax), %r10d
movl $0x102, %eax            # imm = 0x102
subl %edx, %eax
movq 0x10(%rsp), %rcx
cmpq %rax, %rcx
movl %ecx, %r9d
cmovael %eax, %r9d
subq %r9, %rcx
movq %rcx, 0x10(%rsp)
leal (%r9,%rdx), %eax
movl %eax, 0x28(%rbx)
testl %r9d, %r9d
je 0x2c06d
addl %edx, %esi
leaq (%r14,%r9), %rdx
shll $0x5, %r8d
xorl %r10d, %r8d
andl $0x7fff, %esi           # imm = 0x7FFF
movb (%r14), %r10b
movb %r10b, (%r15,%rsi)
cmpl $0x100, %esi            # imm = 0x100
ja 0x2bf1c
movl %esi, %r11d
movb %r10b, 0x8000(%r15,%r11)
incq %r14
movzbl %r10b, %r10d
shll $0x5, %r8d
andl $0x7fe0, %r8d           # imm = 0x7FE0
xorl %r10d, %r8d
movzwl 0x292aa(%rbx,%r8,2), %r10d
movl %edi, %r11d
andl $0x7fff, %r11d          # imm = 0x7FFF
movw %r10w, 0x192aa(%rbx,%r11,2)
movw %di, 0x292aa(%rbx,%r8,2)
incl %esi
incl %edi
decq %r9
jne 0x2befc
movq %rdx, %r14
jmp 0x2c06d
cmpq $0x0, 0x10(%rsp)
je 0x2c0a8
cmpl $0x103, %edi            # imm = 0x103
movl $0x102, %esi            # imm = 0x102
cmovael %edi, %esi
movq %rsi, 0x28(%rsp)
subl %edi, %esi
movl %edi, %eax
leal -0x2(%rdi), %edx
movq %rdx, 0x40(%rsp)
movq %rcx, 0x18(%rsp)
leal (%rdi,%rcx), %r9d
incl %r9d
xorl %edi, %edi
cmpl %edi, %esi
je 0x2c099
movb (%r14,%rdi), %r11b
movl 0x24(%rbx), %r10d
leal (%rax,%rdi), %r13d
addl %r10d, %r13d
andl $0x7fff, %r13d          # imm = 0x7FFF
movb %r11b, 0xc8(%rbx,%r13)
cmpl $0x100, %r13d           # imm = 0x100
ja 0x2bfda
movl %r13d, %r13d
movb %r11b, 0x8000(%r15,%r13)
leal (%rax,%rdi), %ebp
incl %ebp
movl %ebp, 0x28(%rbx)
leal (%r9,%rdi), %ebp
cmpl $0x3, %ebp
jb 0x2c051
movzbl %r11b, %r11d
movq 0x40(%rsp), %rcx
leal (%rcx,%rdi), %r13d
addl %r10d, %r13d
movl $0x7fff, %edx           # imm = 0x7FFF
andl %edx, %r13d
movzbl 0xc8(%rbx,%r13), %ebp
leal (%rax,%rdi), %r12d
leal (%r10,%r12), %ecx
decl %ecx
andl %edx, %ecx
movzbl 0xc8(%rbx,%rcx), %ecx
shll $0x5, %ecx
andl $0x1f, %ebp
shll $0xa, %ebp
xorl %ecx, %r11d
xorl %ebp, %r11d
movzwl 0x292aa(%rbx,%r11,2), %ecx
movw %cx, 0x192aa(%rbx,%r13,2)
leal (%r10,%r12), %ecx
addl $-0x2, %ecx
movw %cx, 0x292aa(%rbx,%r11,2)
incq %rdi
cmpq %rdi, 0x10(%rsp)
jne 0x2bfa0
addl %edi, %eax
addq %rdi, %r14
movq $0x0, 0x10(%rsp)
movl $0x8000, %r9d           # imm = 0x8000
subl %eax, %r9d
movq 0x18(%rsp), %rcx
cmpl %ecx, %r9d
cmovael %ecx, %r9d
movl %r9d, 0x2c(%rbx)
cmpl $0x0, 0x34(%rsp)
jne 0x2c0d1
cmpl $0x102, %eax            # imm = 0x102
jae 0x2c0d1
jmp 0x2c786
addq %rdi, %r14
subq %rdi, 0x10(%rsp)
movq 0x28(%rsp), %rdi
jmp 0x2c0b6
movq %rcx, 0x18(%rsp)
movq $0x0, 0x10(%rsp)
movl $0x8000, %r9d           # imm = 0x8000
subl %edi, %r9d
movq 0x18(%rsp), %rax
cmpl %eax, %r9d
cmovael %eax, %r9d
movl %r9d, 0x2c(%rbx)
movl %edi, %eax
movl 0x68(%rbx), %ecx
testl %ecx, %ecx
movl %ecx, %edi
movl $0x2, %edx
cmovel %edx, %edi
movl 0x10(%rbx), %r8d
movl 0x24(%rbx), %r13d
movl %r13d, %r10d
andl $0x7fff, %r10d          # imm = 0x7FFF
testl $0x90000, %r8d          # imm = 0x90000
movl %r8d, 0x40(%rsp)
je 0x2c14d
testl %r9d, %r9d
sete %dl
movl %r8d, %esi
shrl $0x13, %esi
andl $0x1, %esi
orb %dl, %sil
jne 0x2c389
testl %eax, %eax
je 0x2c39a
movl %eax, %edi
decl %r13d
andl $0x7fff, %r13d          # imm = 0x7FFF
movb (%r15,%r13), %al
xorl %edx, %edx
leal (%r10,%rdx), %esi
cmpb %al, (%r15,%rsi)
jne 0x2c39e
incq %rdx
cmpq %rdx, %rdi
jne 0x2c132
jmp 0x2c3a0
cmpl $0x103, %eax            # imm = 0x103
jae 0x2c7f2
cmpl %eax, %edi
jae 0x2c389
leaq (%r15,%r10), %rdx
movq %rdx, 0x60(%rsp)
movzwl (%r15,%r10), %edx
movw %dx, 0x26(%rsp)
xorl %edx, %edx
cmpl $0x20, %edi
setae %dl
movl 0x14(%rbx,%rdx,4), %ebp
leal -0x1(%r10), %esi
movl %ecx, 0x20(%rsp)
leaq (%rbx,%r10), %rcx
movq %rcx, 0x38(%rsp)
movl 0x20(%rsp), %ecx
movl $0x0, 0xc(%rsp)
movl %r10d, %edx
movl %edi, %r12d
movq %rsi, 0x58(%rsp)
addl %r12d, %esi
movzwl (%r15,%rsi), %esi
movw %si, 0x18(%rsp)
leal -0x1(%r12), %esi
movq %rsi, 0x28(%rsp)
decl %ebp
movl %ebp, %edi
subl $0x1, %edi
jb 0x2c38e
movl %edx, %edx
movzwl 0x192aa(%rbx,%rdx,2), %edx
testl %edx, %edx
je 0x2c38e
movl %r13d, %esi
subl %edx, %esi
movzwl %si, %r8d
cmpl %r8d, %r9d
jb 0x2c38e
andl $0x7fff, %edx           # imm = 0x7FFF
movq 0x28(%rsp), %rsi
addl %edx, %esi
movzwl 0x18(%rsp), %r11d
cmpw %r11w, (%r15,%rsi)
je 0x2c281
movzwl 0x192aa(%rbx,%rdx,2), %edx
testl %edx, %edx
je 0x2c38e
movl %r13d, %esi
subl %edx, %esi
movzwl %si, %r8d
cmpl %r8d, %r9d
jb 0x2c38e
andl $0x7fff, %edx           # imm = 0x7FFF
movq 0x28(%rsp), %rsi
addl %edx, %esi
movzwl 0x18(%rsp), %r11d
cmpw %r11w, (%r15,%rsi)
je 0x2c281
movzwl 0x192aa(%rbx,%rdx,2), %edx
testl %edx, %edx
je 0x2c38e
movl %r13d, %esi
subl %edx, %esi
movzwl %si, %r8d
cmpl %r8d, %r9d
jb 0x2c38e
andl $0x7fff, %edx           # imm = 0x7FFF
movq 0x28(%rsp), %rsi
addl %edx, %esi
movzwl 0x18(%rsp), %r11d
cmpw %r11w, (%r15,%rsi)
jne 0x2c29c
testl %r8d, %r8d
je 0x2c38e
movl %ebp, 0x4c(%rsp)
movl %edx, %ebp
movzwl 0x26(%rsp), %esi
cmpw %si, (%r15,%rbp)
je 0x2c2a3
movl %edi, %ebp
jmp 0x2c1c2
addq 0x50(%rsp), %rbp
xorl %edi, %edi
movq 0x38(%rsp), %rcx
movzwl 0xca(%rcx,%rdi), %esi
movzwl -0x6(%rbp,%rdi), %r11d
cmpw %r11w, %si
jne 0x2c315
movzwl 0xcc(%rcx,%rdi), %esi
movzwl -0x4(%rbp,%rdi), %r11d
cmpw %r11w, %si
jne 0x2c322
movzwl 0xce(%rcx,%rdi), %esi
movzwl -0x2(%rbp,%rdi), %r11d
cmpw %r11w, %si
jne 0x2c32f
movzwl 0xd0(%rcx,%rdi), %esi
movzwl (%rbp,%rdi), %r11d
cmpw %r11w, %si
jne 0x2c33c
addq $0x8, %rdi
cmpl $0x100, %edi            # imm = 0x100
movq 0x38(%rsp), %rcx
jne 0x2c2af
jmp 0x2c772
leaq (%rcx,%rdi), %rbp
addq $0xca, %rbp
jmp 0x2c34c
leaq (%rcx,%rdi), %rbp
addq $0xcc, %rbp
jmp 0x2c34c
leaq (%rcx,%rdi), %rbp
addq $0xce, %rbp
jmp 0x2c34c
movq 0x38(%rsp), %rcx
leaq (%rcx,%rdi), %rbp
addq $0xd0, %rbp
subl 0x60(%rsp), %ebp
andl $-0x2, %ebp
xorl %edi, %edi
cmpb %r11b, %sil
sete %dil
orl %ebp, %edi
cmpl %r12d, %edi
movl 0x20(%rsp), %ecx
movl 0x4c(%rsp), %ebp
jbe 0x2c1be
movl %r8d, 0xc(%rsp)
cmpl %eax, %edi
cmovael %eax, %edi
movl %edi, %r12d
movq 0x58(%rsp), %rsi
jb 0x2c1a7
jmp 0x2c3b2
xorl %r8d, %r8d
jmp 0x2c3b2
movl 0xc(%rsp), %eax
movl %eax, %r8d
movl %r12d, %edi
jmp 0x2c3b2
xorl %edi, %edi
jmp 0x2c3a0
movl %edx, %edi
xorl %r8d, %r8d
cmpl $0x3, %edi
setae %r8b
movl $0x0, %eax
cmovbl %eax, %edi
cmpl $0x3, %edi
sete %al
cmpl $0x2000, %r8d           # imm = 0x2000
setae %dl
testb %dl, %al
movl 0x40(%rsp), %eax
jne 0x2c3e2
cmpl %r8d, %r10d
je 0x2c3e2
btl $0x11, %eax
jae 0x2c4aa
cmpl $0x6, %edi
jae 0x2c4aa
testl %ecx, %ecx
je 0x2c67c
cmpl $0x3, %ecx
jb 0x2c7d3
movl 0x64(%rbx), %eax
decl %eax
cmpl $0x8000, %eax           # imm = 0x8000
jae 0x2c7d3
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 0x2c454
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 0xb00d(%rip), %rdi      # 0x37470
addq %rdi, %rsi
leaq 0xb203(%rip), %rdi      # 0x37670
addq %rdi, %rdx
cmpl $0x200, %eax            # imm = 0x200
cmovbq %rsi, %rdx
movzbl (%rdx), %eax
incw 0x840a(%rbx,%rax,2)
movl %ecx, %eax
leaq 0xb263(%rip), %rcx      # 0x376f0
movzwl (%rcx,%rax,2), %eax
incw 0x81ca(%rbx,%rax,2)
movl 0x68(%rbx), %edi
decl %edi
movl $0x0, 0x68(%rbx)
jmp 0x2c6c5
testl %ecx, %ecx
je 0x2c5b7
cmpl %ecx, %edi
jbe 0x2c3ea
movl 0x6c(%rbx), %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 0x2c4f0
movl $0x8, 0x50(%rbx)
movq 0x30(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x30(%rbx)
movq %rcx, 0x38(%rbx)
movzbl %al, %eax
incw 0x81ca(%rbx,%rax,2)
cmpl $0x80, %edi
jb 0x2c75a
decl %r8d
cmpl $0x8000, %r8d           # imm = 0x8000
jae 0x2c7d3
addl %edi, 0x54(%rbx)
leal -0x3(%rdi), %eax
movq 0x30(%rbx), %rcx
movb %al, (%rcx)
movq 0x30(%rbx), %rcx
movb %r8b, 0x1(%rcx)
movl %r8d, %ecx
shrl $0x8, %ecx
movq 0x30(%rbx), %rdx
movb %cl, 0x2(%rdx)
addq $0x3, 0x30(%rbx)
movq 0x38(%rbx), %rdx
movb (%rdx), %sil
shrb %sil
orb $-0x80, %sil
movb %sil, (%rdx)
decl 0x50(%rbx)
jne 0x2c56a
movl $0x8, 0x50(%rbx)
movq 0x30(%rbx), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x30(%rbx)
movq %rdx, 0x38(%rbx)
movl %r8d, %edx
andl $0x1ff, %edx            # imm = 0x1FF
leaq 0xaef6(%rip), %rsi      # 0x37470
addq %rsi, %rdx
leaq 0xb0ec(%rip), %rsi      # 0x37670
addq %rsi, %rcx
cmpl $0x200, %r8d            # imm = 0x200
cmovbq %rdx, %rcx
movzbl (%rcx), %ecx
incw 0x840a(%rbx,%rcx,2)
movl %eax, %eax
leaq 0xb14a(%rip), %rcx      # 0x376f0
movzwl (%rcx,%rax,2), %eax
incw 0x81ca(%rbx,%rax,2)
jmp 0x2c49e
testl %r8d, %r8d
je 0x2c67c
cmpl $0x0, 0x1c(%rbx)
je 0x2c744
cmpl $0x8000, %r8d           # imm = 0x8000
ja 0x2c7d3
cmpl $0x2, %edi
jbe 0x2c7d3
leal -0x1(%r8), %ecx
addl %edi, 0x54(%rbx)
leal -0x3(%rdi), %eax
movq 0x30(%rbx), %rdx
movb %al, (%rdx)
movq 0x30(%rbx), %rdx
movb %cl, 0x1(%rdx)
movl %ecx, %edx
shrl $0x8, %edx
movq 0x30(%rbx), %rsi
movb %dl, 0x2(%rsi)
addq $0x3, 0x30(%rbx)
movq 0x38(%rbx), %rsi
movb (%rsi), %r9b
shrb %r9b
orb $-0x80, %r9b
movb %r9b, (%rsi)
decl 0x50(%rbx)
jne 0x2c635
movl $0x8, 0x50(%rbx)
movq 0x30(%rbx), %rsi
leaq 0x1(%rsi), %r9
movq %r9, 0x30(%rbx)
movq %rsi, 0x38(%rbx)
andl $0x1ff, %ecx            # imm = 0x1FF
leaq 0xae2e(%rip), %rsi      # 0x37470
addq %rsi, %rcx
leaq 0xb024(%rip), %rsi      # 0x37670
addq %rsi, %rdx
cmpl $0x201, %r8d            # imm = 0x201
cmovbq %rcx, %rdx
movzbl (%rdx), %ecx
incw 0x840a(%rbx,%rcx,2)
movl %eax, %eax
leaq 0xb082(%rip), %rcx      # 0x376f0
movzwl (%rcx,%rax,2), %eax
incw 0x81ca(%rbx,%rax,2)
jmp 0x2c6c5
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 0x2c6b8
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)
movl $0x1, %edi
addl %edi, 0x24(%rbx)
movl 0x28(%rbx), %eax
subl %edi, %eax
jb 0x2c7b4
movl %eax, 0x28(%rbx)
addl 0x2c(%rbx), %edi
movl $0x8000, %eax           # imm = 0x8000
cmpl %eax, %edi
cmovael %eax, %edi
movl %edi, 0x2c(%rbx)
movq 0x30(%rbx), %rax
cmpq 0x70(%rsp), %rax
jbe 0x2c71b
movq %r14, 0xb0(%rbx)
movq 0x10(%rsp), %rax
movq %rax, 0xb8(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2c811
testl %eax, %eax
je 0x2be4f
jmp 0x2c7a0
movl 0x54(%rbx), %ecx
cmpl $0x7c01, %ecx           # imm = 0x7C01
jb 0x2be4f
subl 0x68(%rsp), %eax
imull $0x73, %eax, %eax
shrl $0x7, %eax
cmpl %ecx, %eax
jae 0x2c6f1
testb $0x8, 0x12(%rbx)
je 0x2be4f
jmp 0x2c6f1
btl $0x10, %eax
jb 0x2c5ca
cmpl $0x80, %edi
jae 0x2c5ca
movzbl 0xc8(%rbx,%r10), %eax
movl %eax, 0x6c(%rbx)
movl %r8d, 0x64(%rbx)
movl %edi, 0x68(%rbx)
jmp 0x2c6c0
movl %eax, %edi
movl 0x20(%rsp), %ecx
jmp 0x2c3b2
movq $0x0, 0x10(%rsp)
movq %r14, 0xb0(%rbx)
movq 0x10(%rsp), %rax
movq %rax, 0xb8(%rbx)
movl $0x1, %eax
jmp 0x2c7a5
notl %eax
shrl $0x1f, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa9b3(%rip), %rdi      # 0x3716e
leaq 0xa885(%rip), %rsi      # 0x37047
leaq 0xa9c8(%rip), %rcx      # 0x37191
movl $0x46f, %edx            # imm = 0x46F
callq 0x3200
leaq 0xaa69(%rip), %rdi      # 0x37243
leaq 0xa866(%rip), %rsi      # 0x37047
leaq 0xaab9(%rip), %rcx      # 0x372a1
movl $0x3f9, %edx            # imm = 0x3F9
callq 0x3200
leaq 0xa9ca(%rip), %rdi      # 0x371c3
leaq 0xa847(%rip), %rsi      # 0x37047
leaq 0xa9e1(%rip), %rcx      # 0x371e8
movl $0x329, %edx            # imm = 0x329
callq 0x3200