// File: /workspace/github_c_makefile_star2_O2/wkoszek[P]mini_gzip/miniz.c
// Function: tdefl_compress
tdefl_status tdefl_compress(tdefl_compressor *d, const void *pIn_buf, size_t *pIn_buf_size, void *pOut_buf, size_t *pOut_buf_size, tdefl_flush flush)
{
  if (!d)
  {
    if (pIn_buf_size) *pIn_buf_size = 0;
    if (pOut_buf_size) *pOut_buf_size = 0;
    return TDEFL_STATUS_BAD_PARAM;
  }

  d->m_pIn_buf = pIn_buf; d->m_pIn_buf_size = pIn_buf_size;
  d->m_pOut_buf = pOut_buf; d->m_pOut_buf_size = pOut_buf_size;
  d->m_pSrc = (const mz_uint8 *)(pIn_buf); d->m_src_buf_left = pIn_buf_size ? *pIn_buf_size : 0;
  d->m_out_buf_ofs = 0;
  d->m_flush = flush;

  if ( ((d->m_pPut_buf_func != NULL) == ((pOut_buf != NULL) || (pOut_buf_size != NULL))) || (d->m_prev_return_status != TDEFL_STATUS_OKAY) ||
        (d->m_wants_to_finish && (flush != TDEFL_FINISH)) || (pIn_buf_size && *pIn_buf_size && !pIn_buf) || (pOut_buf_size && *pOut_buf_size && !pOut_buf) )
  {
    if (pIn_buf_size) *pIn_buf_size = 0;
    if (pOut_buf_size) *pOut_buf_size = 0;
    return (d->m_prev_return_status = TDEFL_STATUS_BAD_PARAM);
  }
  d->m_wants_to_finish |= (flush == TDEFL_FINISH);

  if ((d->m_output_flush_remaining) || (d->m_finished))
    return (d->m_prev_return_status = tdefl_flush_output_buffer(d));

#if MINIZ_USE_UNALIGNED_LOADS_AND_STORES && MINIZ_LITTLE_ENDIAN
  if (((d->m_flags & TDEFL_MAX_PROBES_MASK) == 1) &&
      ((d->m_flags & TDEFL_GREEDY_PARSING_FLAG) != 0) &&
      ((d->m_flags & (TDEFL_FILTER_MATCHES | TDEFL_FORCE_ALL_RAW_BLOCKS | TDEFL_RLE_MATCHES)) == 0))
  {
    if (!tdefl_compress_fast(d))
      return d->m_prev_return_status;
  }
  else
#endif // #if MINIZ_USE_UNALIGNED_LOADS_AND_STORES && MINIZ_LITTLE_ENDIAN
  {
    if (!tdefl_compress_normal(d))
      return d->m_prev_return_status;
  }

  if ((d->m_flags & (TDEFL_WRITE_ZLIB_HEADER | TDEFL_COMPUTE_ADLER32)) && (pIn_buf))
    d->m_adler32 = (mz_uint32)mz_adler32(d->m_adler32, (const mz_uint8 *)pIn_buf, d->m_pSrc - (const mz_uint8 *)pIn_buf);
  
  if (d->m_flags & TDEFL_COMPUTE_CRC32)
    d->m_crc32 = (mz_uint32)mz_crc32(d->m_crc32, (const mz_uint8 *)pIn_buf, d->m_pSrc - (const mz_uint8 *)pIn_buf);

  if ((flush) && (!d->m_lookahead_size) && (!d->m_src_buf_left) && (!d->m_output_flush_remaining))
  {
    if (tdefl_flush_block(d, flush) < 0)
      return d->m_prev_return_status;
    d->m_finished = (flush == TDEFL_FINISH);
    if (flush == TDEFL_FULL_FLUSH) { MZ_CLEAR_OBJ(d->m_hash); MZ_CLEAR_OBJ(d->m_next); d->m_dict_size = 0; }
  }

  return (d->m_prev_return_status = tdefl_flush_output_buffer(d));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
testq %rdi, %rdi
je 0x1cfa
movl %r9d, %r15d
movq %rsi, %r12
movq %rdi, %rbx
movq %rsi, 0x90(%rdi)
movq %rdx, 0xa0(%rdi)
movq %rcx, 0x98(%rdi)
movq %r8, 0xa8(%rdi)
movq %rsi, 0xb8(%rdi)
testq %rdx, %rdx
je 0x1d11
movq (%rdx), %r13
jmp 0x1d14
testq %rdx, %rdx
je 0x1d03
andq $0x0, (%rdx)
pushq $-0x2
popq %rax
testq %r8, %r8
je 0x1d81
andq $0x0, (%r8)
jmp 0x1d81
xorl %r13d, %r13d
movq %r13, 0xc0(%rbx)
andq $0x0, 0xc8(%rbx)
movl %r15d, 0xb0(%rbx)
movq %rcx, %rax
orq %r8, %rax
setne %al
cmpq $0x0, (%rbx)
sete %sil
xorb %al, %sil
jne 0x1d62
cmpl $0x0, 0x8c(%rbx)
jne 0x1d62
movl 0x88(%rbx), %eax
testl %eax, %eax
setne %sil
cmpl $0x4, %r15d
setne %dil
testb %sil, %dil
je 0x1d93
testq %rdx, %rdx
je 0x1d6b
andq $0x0, (%rdx)
testq %r8, %r8
je 0x1d74
andq $0x0, (%r8)
movl $0xfffffffe, 0x8c(%rbx) # imm = 0xFFFFFFFE
pushq $-0x2
popq %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testq %rdx, %rdx
je 0x1da3
testq %r12, %r12
jne 0x1da3
cmpq $0x0, (%rdx)
jne 0x1d67
testq %r8, %r8
je 0x1db3
testq %rcx, %rcx
jne 0x1db3
cmpq $0x0, (%r8)
jne 0x1d62
xorl %ecx, %ecx
cmpl $0x4, %r15d
sete %cl
movl %ecx, 0x84(%rsp)
orl %ecx, %eax
movl %eax, 0x88(%rbx)
cmpl $0x0, 0x7c(%rbx)
jne 0x1dda
cmpl $0x0, 0x80(%rbx)
je 0x1dea
movq %rbx, %rdi
callq 0x4e9f
movl %eax, 0x8c(%rbx)
jmp 0x1d81
movl $0x168fff, %eax         # imm = 0x168FFF
andl 0x10(%rbx), %eax
cmpl $0x8001, %eax           # imm = 0x8001
movl %r15d, 0x3c(%rsp)
movq %r12, 0x50(%rsp)
jne 0x23ba
movl 0x28(%rbx), %eax
movl 0x2c(%rbx), %r9d
movl 0x30(%rbx), %ecx
movl %ecx, 0x4(%rsp)
movl 0x5c(%rbx), %r10d
movl 0x58(%rbx), %esi
movq 0x38(%rbx), %r11
movq 0x40(%rbx), %r8
movq %rax, 0x28(%rsp)
movl %eax, %r14d
andl $0x7fff, %r14d          # imm = 0x7FFF
leaq 0xd0(%rbx), %rax
movq %rax, 0x58(%rsp)
leaq 0x80d0(%rbx), %rax
movq %rax, 0x78(%rsp)
leaq 0x192aa(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x1d0(%rbx), %rax
movq %rax, 0x60(%rsp)
leaq 0xd8(%rbx), %rax
movq %rax, 0x70(%rsp)
testq %r13, %r13
jne 0x1e8a
cmpl $0x0, 0xb0(%rbx)
je 0x2baf
testl %r9d, %r9d
je 0x2baf
movl %r14d, 0x24(%rsp)
movl $0x1000, %eax           # imm = 0x1000
subl %r9d, %eax
cmpq %rax, %r13
movq %r9, %rcx
movl %r13d, %r9d
cmovael %eax, %r9d
movq 0x28(%rsp), %rax
movq %rcx, 0x68(%rsp)
leal (%rax,%rcx), %r14d
subq %r9, %r13
movq %r13, 0xc0(%rbx)
movl %r9d, %r13d
movl %esi, 0x40(%rsp)
movq %r11, 0x8(%rsp)
movq %r8, 0x30(%rsp)
movq %r9, 0x18(%rsp)
testl %r13d, %r13d
je 0x1f64
movl %r10d, %ebp
andl $0x7fff, %r14d          # imm = 0x7FFF
movl $0x8000, %r15d          # imm = 0x8000
subl %r14d, %r15d
cmpl %r13d, %r15d
cmovael %r13d, %r15d
movl %r14d, %r12d
movq 0x58(%rsp), %rax
leaq (%rax,%r12), %rdi
movq 0xb8(%rbx), %rsi
movq %r15, %rdx
callq 0x10e0
cmpl $0x100, %r14d           # imm = 0x100
ja 0x1f3c
addq 0x78(%rsp), %r12
movq 0xb8(%rbx), %rsi
movl $0x101, %edx            # imm = 0x101
subl %r14d, %edx
cmpl %edx, %r15d
cmovbl %r15d, %edx
movq %r12, %rdi
callq 0x10e0
addq %r15, 0xb8(%rbx)
addl %r15d, %r14d
subl %r15d, %r13d
movl %ebp, %r10d
movl 0x40(%rsp), %esi
movq 0x8(%rsp), %r11
movq 0x30(%rsp), %r8
movq 0x18(%rsp), %r9
jmp 0x1ed2
addl 0x68(%rsp), %r9d
movl $0x8000, %r15d          # imm = 0x8000
subl %r9d, %r15d
movl 0x4(%rsp), %eax
cmpl %eax, %r15d
cmovael %eax, %r15d
cmpl $0x0, 0xb0(%rbx)
jne 0x1f93
cmpl $0x1000, %r9d           # imm = 0x1000
jb 0x2ba3
movq 0x50(%rsp), %r12
movq 0x28(%rsp), %r13
movl 0x24(%rsp), %r14d
cmpl $0x3, %r9d
jbe 0x22dc
movl %esi, 0x40(%rsp)
movq %r9, 0x18(%rsp)
movl %r14d, 0x24(%rsp)
movl %r14d, %r9d
movl 0xd0(%rbx,%r9), %ecx
movl %ecx, %edi
andl $0xffffff, %edi         # imm = 0xFFFFFF
movl %edi, %eax
shrl $0x11, %eax
movl %ecx, %esi
andl $0xfff, %esi            # imm = 0xFFF
xorl %eax, %esi
movzwl 0x292b2(%rbx,%rsi,2), %edx
movw %r13w, 0x292b2(%rbx,%rsi,2)
movl %r13d, %esi
subl %edx, %esi
movzwl %si, %ebp
cmpl %ebp, %r15d
jb 0x20e0
movl %edx, %r14d
andl $0x7fff, %r14d          # imm = 0x7FFF
movq %r8, 0x30(%rsp)
movq 0x58(%rsp), %r8
movl (%r8,%r14), %r8d
movl $0xffffff, %eax         # imm = 0xFFFFFF
andl %eax, %r8d
cmpl %edi, %r8d
movq 0x30(%rsp), %r8
jne 0x20e0
movq %r11, 0x8(%rsp)
movl %r10d, 0x4(%rsp)
movq %r13, 0x28(%rsp)
movq 0x58(%rsp), %rdi
leaq (%rdi,%r9), %r8
movq 0x60(%rsp), %rdi
addq %r9, %rdi
addq %rbx, %r9
movq 0x70(%rsp), %r10
leaq (%r10,%r14), %r13
xorl %r12d, %r12d
movzwl 0xd2(%r9,%r12), %r10d
movzwl -0x6(%r13,%r12), %r11d
cmpw %r11w, %r10w
jne 0x21a3
movzwl 0xd4(%r9,%r12), %r10d
movzwl -0x4(%r13,%r12), %r11d
cmpw %r11w, %r10w
jne 0x21b0
movzwl 0xd6(%r9,%r12), %r10d
movzwl -0x2(%r13,%r12), %r11d
cmpw %r11w, %r10w
jne 0x21bd
movzwl 0xd8(%r9,%r12), %r10d
movzwl (%r13,%r12), %r11d
cmpw %r11w, %r10w
jne 0x21ca
addq $0x8, %r12
cmpl $0x100, %r12d           # imm = 0x100
jne 0x205b
movb (%rdi), %r10b
movq 0x60(%rsp), %r9
movb (%r9,%r14), %r11b
movb $0x1, %r9b
jmp 0x21d8
movb %cl, (%r11)
shrb (%r8)
incq %r11
movzbl %cl, %eax
pushq $0x1
popq %rcx
movl %ecx, %edi
movl 0x24(%rsp), %r14d
movq 0x18(%rsp), %r9
incw 0x81d2(%rbx,%rax,2)
xorl %eax, %eax
movl 0x40(%rsp), %esi
decl %esi
cmoveq %r11, %r8
sete %cl
pushq $0x8
popq %rdx
cmovel %edx, %esi
addl %edi, %r15d
movl $0x8000, %edx           # imm = 0x8000
cmpl %edx, %r15d
cmovael %edx, %r15d
subl %edi, %r9d
jb 0x2bdd
movb %cl, %al
addq %rax, %r11
addl %edi, %r10d
addl %edi, %r13d
addl %edi, %r14d
andl $0x7fff, %r14d          # imm = 0x7FFF
cmpq 0x10(%rsp), %r11
jbe 0x1fa2
movl %r14d, %ebp
movq %r13, %r14
movl %r13d, 0x28(%rbx)
movq %r9, %r13
movl %r9d, 0x2c(%rbx)
movl %r15d, 0x30(%rbx)
movl %r10d, 0x5c(%rbx)
movq %r11, 0x38(%rbx)
movq %r8, 0x40(%rbx)
movl %esi, 0x58(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x4f41
testl %eax, %eax
jne 0x2aaa
movl 0x5c(%rbx), %r10d
movq 0x38(%rbx), %r11
movq 0x40(%rbx), %r8
movl 0x58(%rbx), %esi
movq %r13, %r9
movq %r14, %r13
movl %ebp, %r14d
jmp 0x1fa2
leaq (%r12,%r9), %rdi
addq $0xd2, %rdi
jmp 0x21d5
leaq (%r12,%r9), %rdi
addq $0xd4, %rdi
jmp 0x21d5
leaq (%r12,%r9), %rdi
addq $0xd6, %rdi
jmp 0x21d5
leaq (%r12,%r9), %rdi
addq $0xd8, %rdi
xorl %r9d, %r9d
subl %r8d, %edi
andl $-0x2, %edi
xorl %r8d, %r8d
cmpb %r11b, %r10b
sete %r8b
orl %edi, %r8d
movq 0x28(%rsp), %r13
cmpw %dx, %r13w
movl $0x102, %edi            # imm = 0x102
movl $0x0, %r10d
cmovel %r10d, %edi
testb %r9b, %r9b
cmovel %r8d, %edi
cmpl $0x3, %edi
movq 0x50(%rsp), %r12
movl 0x24(%rsp), %r14d
jb 0x2225
cmpw $0x2000, %si            # imm = 0x2000
jb 0x224a
cmpl $0x3, %edi
jne 0x224a
movq 0x8(%rsp), %r11
movb %cl, (%r11)
movq 0x30(%rsp), %r8
shrb (%r8)
incq %r11
movzbl %cl, %eax
pushq $0x1
popq %rcx
movl %ecx, %edi
movl 0x4(%rsp), %r10d
jmp 0x20f6
cmpw %r13w, %dx
movl 0x4(%rsp), %r10d
movq 0x8(%rsp), %r11
movq 0x30(%rsp), %r8
movq 0x18(%rsp), %r9
je 0x2c3a
cmpw $0x8001, %si            # imm = 0x8001
jae 0x2c3a
cmpl %r9d, %edi
cmovael %r9d, %edi
decl %ebp
leal -0x3(%rdi), %ecx
movb %cl, (%r11)
movw %bp, 0x1(%r11)
addq $0x3, %r11
movb (%r8), %dl
shrb %dl
orb $-0x80, %dl
movb %dl, (%r8)
movl %ebp, %edx
andl $0x1ff, %edx            # imm = 0x1FF
leaq 0x52bb(%rip), %rax      # 0x7560
addq %rax, %rdx
movl %ebp, %esi
shrl $0x8, %esi
leaq 0x54ac(%rip), %rax      # 0x7760
addq %rax, %rsi
cmpl $0x200, %ebp            # imm = 0x200
cmovbq %rdx, %rsi
movzbl (%rsi), %eax
incw 0x8412(%rbx,%rax,2)
leaq 0x550d(%rip), %rax      # 0x77e0
movzwl (%rax,%rcx,2), %eax
jmp 0x20fb
decl %r9d
movl %r15d, 0x4(%rsp)
movl 0x3c(%rsp), %r15d
cmpl $-0x1, %r9d
je 0x23a6
movl %r14d, %eax
movzbl 0xd0(%rbx,%rax), %eax
movb %al, (%r11)
shrb (%r8)
incl %r10d
leaq 0x1(%r11), %rcx
decl %esi
addq $0x2, %r11
testl %esi, %esi
cmoveq %rcx, %r8
cmovneq %rcx, %r11
pushq $0x8
popq %rcx
cmovel %ecx, %esi
incw 0x81d2(%rbx,%rax,2)
incl %r13d
movl 0x4(%rsp), %ecx
incl %ecx
movl $0x8000, %eax           # imm = 0x8000
cmpl %eax, %ecx
cmovael %eax, %ecx
cmpq 0x10(%rsp), %r11
movl %ecx, 0x4(%rsp)
jbe 0x2394
movl %r14d, %ebp
movq %r13, %r14
movl %r13d, 0x28(%rbx)
movq %r9, %r13
movl %r9d, 0x2c(%rbx)
movl %ecx, 0x30(%rbx)
movl %r10d, 0x5c(%rbx)
movq %r11, 0x38(%rbx)
movq %r8, 0x40(%rbx)
movl %esi, 0x58(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x4f41
testl %eax, %eax
jne 0x2aaf
movl 0x5c(%rbx), %r10d
movq 0x38(%rbx), %r11
movq 0x40(%rbx), %r8
movl 0x58(%rbx), %esi
movq %r13, %r9
movq %r14, %r13
movl %ebp, %r14d
incl %r14d
andl $0x7fff, %r14d          # imm = 0x7FFF
decl %r9d
jmp 0x22e9
movq %r13, 0x28(%rsp)
movq 0xc0(%rbx), %r13
xorl %r9d, %r9d
jmp 0x1e6f
movq %r12, %rax
leaq 0xd0(%rbx), %r12
leaq 0x92b2(%rbx), %rcx
movq %rcx, 0x78(%rsp)
leaq 0x192aa(%rbx), %rcx
movq %rcx, 0x58(%rsp)
leaq 0xd8(%rbx), %rcx
movq %rcx, 0x68(%rsp)
movq %rax, 0x40(%rsp)
testq %r13, %r13
je 0x23fc
movl 0x2c(%rbx), %edx
movq 0x40(%rsp), %rax
jmp 0x2415
testl %r15d, %r15d
je 0x2ac7
movl 0x2c(%rbx), %edx
testl %edx, %edx
movq 0x40(%rsp), %rax
je 0x2ad1
movl 0x30(%rbx), %ebp
leal (%rdx,%rbp), %ecx
cmpl $0x1, %ecx
jbe 0x24e5
movl 0x28(%rbx), %edi
leal (%rdi,%rdx), %esi
addl $-0x2, %esi
leal (%rdi,%rdx), %ecx
decl %ecx
addl %edx, %edi
movl %esi, %r8d
movl $0x7fff, %r10d          # imm = 0x7FFF
andl %r10d, %r8d
movzbl 0xd0(%rbx,%r8), %r9d
shll $0x5, %r9d
andl %r10d, %ecx
movzbl 0xd0(%rbx,%rcx), %r8d
xorl %r9d, %r8d
movl $0x102, %ecx            # imm = 0x102
subl %edx, %ecx
cmpq %rcx, %r13
movl %r13d, %r9d
cmovael %ecx, %r9d
leaq (%rax,%r9), %r10
movl %r9d, %ecx
addl %edx, %ecx
movl %ecx, 0x2c(%rbx)
xorl %edx, %edx
cmpq %rdx, %r9
je 0x25da
andl $0x7fff, %edi           # imm = 0x7FFF
movb (%rax,%rdx), %r11b
movb %r11b, (%r12,%rdi)
cmpl $0x100, %edi            # imm = 0x100
ja 0x24a5
movl %edi, %r14d
movb %r11b, 0x8000(%r12,%r14)
movzbl %r11b, %r11d
shll $0x5, %r8d
andl $0x7fe0, %r8d           # imm = 0x7FE0
xorl %r11d, %r8d
movzwl 0x292b2(%rbx,%r8,2), %r11d
movl %esi, %r14d
andl $0x7fff, %r14d          # imm = 0x7FFF
movw %r11w, 0x192b2(%rbx,%r14,2)
movw %si, 0x292b2(%rbx,%r8,2)
incl %edi
incl %esi
incq %rdx
jmp 0x247b
movl %edx, %edi
movq %rbp, 0x30(%rsp)
leal (%rdx,%rbp), %r8d
incl %r8d
leal -0x2(%rdx), %ecx
movq %rcx, 0x18(%rsp)
xorl %ecx, %ecx
movq %r13, %rsi
cmpq %rcx, %r13
je 0x25e2
leaq (%rdi,%rcx), %r10
cmpl $0x101, %r10d           # imm = 0x101
ja 0x25e4
movb (%rax,%rcx), %r11b
movl 0x28(%rbx), %r10d
leal (%rdi,%rcx), %r14d
addl %r10d, %r14d
andl $0x7fff, %r14d          # imm = 0x7FFF
movb %r11b, 0xd0(%rbx,%r14)
cmpl $0x100, %r14d           # imm = 0x100
ja 0x254c
movl %r14d, %r14d
movb %r11b, 0x8000(%r12,%r14)
leal (%rdi,%rcx), %ebp
incl %ebp
movl %ebp, 0x2c(%rbx)
leal (%r8,%rcx), %ebp
cmpl $0x3, %ebp
jb 0x25cf
movzbl %r11b, %r11d
movq 0x18(%rsp), %rax
leal (%rax,%rcx), %r14d
addl %r10d, %r14d
movl $0x7fff, %r9d           # imm = 0x7FFF
andl %r9d, %r14d
movzbl 0xd0(%rbx,%r14), %ebp
leal (%rdi,%rcx), %r15d
leal (%r10,%r15), %eax
decl %eax
andl %r9d, %eax
movzbl 0xd0(%rbx,%rax), %eax
shll $0x5, %eax
andl $0x1f, %ebp
shll $0xa, %ebp
xorl %eax, %r11d
xorl %ebp, %r11d
movzwl 0x292b2(%rbx,%r11,2), %eax
movw %ax, 0x192b2(%rbx,%r14,2)
leal (%r10,%r15), %eax
addl $-0x2, %eax
movl 0x3c(%rsp), %r15d
movw %ax, 0x292b2(%rbx,%r11,2)
movq 0x40(%rsp), %rax
incq %rcx
decq %rsi
jmp 0x2500
subq %r9, %r13
movq %r10, %rax
jmp 0x25f3
xorl %esi, %esi
addl %ecx, %edx
addq %rcx, %rax
movl %edx, %ecx
movq %rsi, %r13
movq 0x30(%rsp), %rbp
movl $0x8000, %edi           # imm = 0x8000
subl %ecx, %edi
cmpl %ebp, %edi
cmovael %ebp, %edi
movl %edi, 0x30(%rbx)
testl %r15d, %r15d
jne 0x2613
cmpl $0x102, %ecx            # imm = 0x102
jb 0x2ad4
movl 0x70(%rbx), %esi
testl %esi, %esi
movl %esi, %r15d
pushq $0x2
popq %rdx
cmovel %edx, %r15d
movl 0x10(%rbx), %r8d
movl 0x28(%rbx), %edx
movl %edx, %r9d
andl $0x7fff, %r9d           # imm = 0x7FFF
testl $0x120000, %r8d         # imm = 0x120000
movq %rax, 0x40(%rsp)
je 0x269c
testl %edi, %edi
sete %al
movl %r8d, %edi
shrl $0x14, %edi
andl $0x1, %edi
orb %al, %dil
jne 0x2907
movl %ecx, %r15d
leal -0x1(%rdx), %eax
movl $0x7fff, %ecx           # imm = 0x7FFF
andl %ecx, %eax
movb (%r12,%rax), %al
andl %ecx, %edx
xorl %ecx, %ecx
cmpq %rcx, %r15
je 0x2683
leal (%rdx,%rcx), %edi
incq %rcx
cmpb %al, (%r12,%rdi)
je 0x266d
decl %ecx
movl %ecx, %r15d
xorl %r14d, %r14d
cmpl $0x3, %r15d
setae %r14b
movl $0x0, %eax
cmovbl %eax, %r15d
jmp 0x291b
cmpl $0x103, %ecx            # imm = 0x103
jae 0x2c1b
cmpl %ecx, %r15d
jae 0x2907
movl %ecx, 0x28(%rsp)
movl %r8d, 0x8(%rsp)
leaq (%r12,%r9), %rax
movq %rax, 0x60(%rsp)
movzwl (%r12,%r9), %eax
movw %ax, 0x24(%rsp)
xorl %eax, %eax
cmpl $0x20, %r15d
setae %al
movl 0x14(%rbx,%rax,4), %r8d
leal -0x1(%r9), %eax
movq %rax, 0x70(%rsp)
leal -0x1(%r9,%r15), %eax
leaq (%rbx,%r9), %rcx
movq %rcx, 0x18(%rsp)
movl $0x0, 0x4(%rsp)
movq %r9, 0x10(%rsp)
movl %r9d, %r14d
movl %eax, %eax
movzwl (%r12,%rax), %ecx
leal -0x1(%r15), %eax
movq %rax, 0x30(%rsp)
decl %r8d
movl %r8d, %r11d
movzwl 0x24(%rsp), %r10d
subl $0x1, %r11d
jb 0x290c
movl %r14d, %eax
movzwl 0x192b2(%rbx,%rax,2), %r14d
testl %r14d, %r14d
je 0x290c
movl %edx, %eax
subl %r14d, %eax
movzwl %ax, %r9d
cmpl %r9d, %edi
jb 0x290c
andl $0x7fff, %r14d          # imm = 0x7FFF
movq 0x30(%rsp), %rax
addl %r14d, %eax
cmpw %cx, (%r12,%rax)
movq 0x18(%rsp), %rax
je 0x27e8
movzwl 0x192b2(%rbx,%r14,2), %r14d
testl %r14d, %r14d
je 0x290c
movl %edx, %eax
subl %r14d, %eax
movzwl %ax, %r9d
cmpl %r9d, %edi
jb 0x290c
andl $0x7fff, %r14d          # imm = 0x7FFF
movq 0x30(%rsp), %rax
addl %r14d, %eax
cmpw %cx, (%r12,%rax)
movq 0x18(%rsp), %rax
je 0x27e8
movzwl 0x192b2(%rbx,%r14,2), %r14d
testl %r14d, %r14d
je 0x290c
movl %edx, %eax
subl %r14d, %eax
movzwl %ax, %r9d
cmpl %r9d, %edi
jb 0x290c
andl $0x7fff, %r14d          # imm = 0x7FFF
movq 0x30(%rsp), %rax
addl %r14d, %eax
cmpw %cx, (%r12,%rax)
movq 0x18(%rsp), %rax
jne 0x27fe
testl %r9d, %r9d
je 0x290c
movl %r8d, %ebp
movl %r14d, %r8d
cmpw %r10w, (%r12,%r8)
je 0x2806
movl %r11d, %r8d
jmp 0x271e
movw %cx, 0x4e(%rsp)
addq 0x68(%rsp), %r8
xorl %r10d, %r10d
movzwl 0xd2(%rax,%r10), %r11d
movq %rax, %rcx
movzwl -0x6(%r8,%r10), %eax
cmpw %ax, %r11w
jne 0x2880
movzwl 0xd4(%rcx,%r10), %r11d
movzwl -0x4(%r8,%r10), %eax
cmpw %ax, %r11w
jne 0x288d
movzwl 0xd6(%rcx,%r10), %r11d
movzwl -0x2(%r8,%r10), %eax
cmpw %ax, %r11w
jne 0x289a
movzwl 0xd8(%rcx,%r10), %r11d
movzwl (%r8,%r10), %eax
cmpw %ax, %r11w
jne 0x28a7
addq $0x8, %r10
cmpl $0x100, %r10d           # imm = 0x100
movq 0x18(%rsp), %rax
jne 0x2813
jmp 0x2a8e
leaq (%rcx,%r10), %r8
addq $0xd2, %r8
jmp 0x28b7
leaq (%rcx,%r10), %r8
addq $0xd4, %r8
jmp 0x28b7
leaq (%rcx,%r10), %r8
addq $0xd6, %r8
jmp 0x28b7
movq 0x18(%rsp), %rcx
leaq (%rcx,%r10), %r8
addq $0xd8, %r8
subl 0x60(%rsp), %r8d
andl $-0x2, %r8d
xorl %r10d, %r10d
cmpb %al, %r11b
sete %r10b
orl %r8d, %r10d
cmpl %r15d, %r10d
movl %ebp, %r8d
movl 0x28(%rsp), %eax
movzwl 0x4e(%rsp), %ecx
jbe 0x2712
cmpl %eax, %r10d
cmovael %eax, %r10d
jae 0x2aa2
movq 0x70(%rsp), %rax
addl %r10d, %eax
movl %r9d, 0x4(%rsp)
movl %r10d, %r15d
movl %ebp, %r8d
jmp 0x2702
xorl %r14d, %r14d
jmp 0x291b
movl 0x8(%rsp), %r8d
movl 0x4(%rsp), %r14d
movq 0x10(%rsp), %r9
cmpl $0x3, %r15d
sete %al
cmpl $0x2000, %r14d          # imm = 0x2000
setae %cl
testb %cl, %al
jne 0x2942
cmpl %r14d, %r9d
je 0x2942
btl $0x12, %r8d
jae 0x295e
cmpl $0x6, %r15d
jae 0x295e
testl %esi, %esi
je 0x29b2
movl 0x6c(%rbx), %edx
movq %rbx, %rdi
callq 0x59c1
movl 0x70(%rbx), %r15d
decl %r15d
andl $0x0, 0x70(%rbx)
jmp 0x29c9
testl %esi, %esi
je 0x2993
cmpl %esi, %r15d
jbe 0x2946
movq %r9, %rbp
movzbl 0x74(%rbx), %esi
movq %rbx, %rdi
callq 0x5980
cmpl $0x80, %r15d
jb 0x2a53
movq %rbx, %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x59c1
jmp 0x2958
testl %r14d, %r14d
je 0x29b2
cmpl $0x0, 0x1c(%rbx)
je 0x2a5d
movq %rbx, %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x59c1
jmp 0x29c9
movzbl 0xd0(%rbx,%r9), %esi
movq %rbx, %rdi
callq 0x5980
pushq $0x1
popq %rax
movl %eax, %r15d
addl %r15d, 0x28(%rbx)
movl 0x2c(%rbx), %eax
subl %r15d, %eax
jb 0x2bfc
movl %eax, 0x2c(%rbx)
addl 0x30(%rbx), %r15d
movl $0x8000, %eax           # imm = 0x8000
cmpl %eax, %r15d
cmovael %eax, %r15d
movl %r15d, 0x30(%rbx)
movq 0x38(%rbx), %rax
cmpq 0x58(%rsp), %rax
movl 0x3c(%rsp), %r15d
jbe 0x2a2a
movq 0x40(%rsp), %rax
movq %rax, 0xb8(%rbx)
movq %r13, 0xc0(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x4f41
testl %eax, %eax
je 0x23ed
jmp 0x2ab5
movl 0x5c(%rbx), %ecx
cmpl $0x7c01, %ecx           # imm = 0x7C01
jb 0x23ed
subl 0x78(%rsp), %eax
imull $0x73, %eax, %eax
shrl $0x7, %eax
cmpl %ecx, %eax
jae 0x2a00
testb $0x10, 0x12(%rbx)
je 0x23ed
jmp 0x2a00
movzbl 0xd0(%rbx,%rbp), %eax
jmp 0x2a7e
btl $0x11, %r8d
jb 0x29a2
cmpl $0x80, %r15d
jae 0x29a2
movzbl 0xd0(%rbx,%r9), %eax
movl %eax, 0x74(%rbx)
movl %r14d, 0x6c(%rbx)
movl %r15d, 0x70(%rbx)
jmp 0x29c3
movl %r9d, %r14d
movl 0x28(%rsp), %eax
movl %eax, %r15d
movl 0x8(%rsp), %r8d
jmp 0x2916
movl %r9d, %r14d
movl %r10d, %r15d
jmp 0x2a98
movl 0x3c(%rsp), %r15d
testl %eax, %eax
jns 0x2ae7
jmp 0x2abc
movq 0x50(%rsp), %r12
jns 0x2ae7
movl 0x8c(%rbx), %eax
jmp 0x1d81
xorl %r13d, %r13d
movq 0x40(%rsp), %rax
jmp 0x2ad4
xorl %r13d, %r13d
movq %rax, 0xb8(%rbx)
movq %r13, 0xc0(%rbx)
movq 0x50(%rsp), %r12
movl 0x10(%rbx), %ebp
testw $0x3000, %bp            # imm = 0x3000
sete %al
testq %r12, %r12
sete %cl
orb %al, %cl
jne 0x2b14
movl 0x20(%rbx), %edi
movq 0xb8(%rbx), %rdx
subq %r12, %rdx
movq %r12, %rsi
callq 0x1710
movl %eax, 0x20(%rbx)
btl $0xe, %ebp
jae 0x2b32
movl 0x24(%rbx), %edi
movq 0xb8(%rbx), %rdx
subq %r12, %rdx
movq %r12, %rsi
callq 0x17fb
movl %eax, 0x24(%rbx)
testl %r15d, %r15d
je 0x1dda
cmpl $0x0, 0x2c(%rbx)
jne 0x1dda
cmpq $0x0, 0xc0(%rbx)
jne 0x1dda
cmpl $0x0, 0x7c(%rbx)
jne 0x1dda
movq %rbx, %rdi
movl %r15d, %esi
callq 0x4f41
testl %eax, %eax
js 0x2abc
movl 0x84(%rsp), %eax
movl %eax, 0x80(%rbx)
cmpl $0x3, %r15d
jne 0x1dda
leaq 0x192b2(%rbx), %rdi
andl $0x0, 0x30(%rbx)
movl $0x20000, %edx          # imm = 0x20000
xorl %esi, %esi
callq 0x10a0
jmp 0x1dda
movq 0x50(%rsp), %r12
movq 0x28(%rsp), %rax
jmp 0x2bb9
movq 0x28(%rsp), %rax
movl 0x4(%rsp), %r15d
movl %eax, 0x28(%rbx)
movl %r9d, 0x2c(%rbx)
movl %r15d, 0x30(%rbx)
movl %r10d, 0x5c(%rbx)
movq %r11, 0x38(%rbx)
movq %r8, 0x40(%rbx)
movl %esi, 0x58(%rbx)
movl 0x3c(%rsp), %r15d
jmp 0x2ae7
leaq 0x53d2(%rip), %rdi      # 0x7fb6
leaq 0x52cf(%rip), %rsi      # 0x7eba
leaq 0x5394(%rip), %rcx      # 0x7f86
movl $0x81a, %edx            # imm = 0x81A
callq 0x1090
leaq 0x53d3(%rip), %rdi      # 0x7fd6
leaq 0x52b0(%rip), %rsi      # 0x7eba
leaq 0x53e8(%rip), %rcx      # 0x7ff9
movl $0x8cc, %edx            # imm = 0x8CC
callq 0x1090
leaq 0x5409(%rip), %rdi      # 0x802b
leaq 0x5291(%rip), %rsi      # 0x7eba
leaq 0x5420(%rip), %rcx      # 0x8050
movl $0x786, %edx            # imm = 0x786
callq 0x1090
leaq 0x52db(%rip), %rdi      # 0x7f1c
leaq 0x5272(%rip), %rsi      # 0x7eba
leaq 0x5337(%rip), %rcx      # 0x7f86
movl $0x7fd, %edx            # imm = 0x7FD
callq 0x1090