user: 请从给定的汇编指令推导出C源代码:

```asm
<stbi_zlib_compress>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x20000(%rsp),%r11
L24:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L24
  sub    $0x98,%rsp
  mov    %esi,0x1c(%rsp)
  mov    %rdi,%r14
  mov    $0x1,%esi
  mov    %rdx,0x58(%rsp)
  mov    $0x1,%edx
  mov    %fs:0x28,%rax
  mov    %rax,0x20088(%rsp)
  xor    %eax,%eax
  mov    $0x5,%eax
  movl   $0x0,0x70(%rsp)
  cmp    %eax,%ecx
  movl   $0x0,0x74(%rsp)
  movq   $0x0,0x78(%rsp)
  cmovge %ecx,%eax
  mov    %eax,0x60(%rsp)
  lea    0x78(%rsp),%rax
  mov    %rax,%rdi
  mov    %rax,0x50(%rsp)
  call   <stbiw__sbgrowf@plt>
  mov    0x78(%rsp),%rdx
  movslq -0x4(%rdx),%rax
  lea    0x1(%rax),%ecx
  mov    %ecx,-0x4(%rdx)
  movb   $0x78,(%rdx,%rax,1)
  mov    0x78(%rsp),%rax
  test   %rax,%rax
  je     L126
  movslq -0x4(%rax),%rdx
  lea    0x1(%rdx),%ecx
  cmp    -0x8(%rax),%ecx
  jge    L126
L540:
  mov    %ecx,-0x4(%rax)
  mov    $0x1,%ebx
  lea    0x74(%rsp),%r15
  lea    0x70(%rsp),%rbp
  movb   $0x5e,(%rax,%rdx,1)
  mov    0x74(%rsp),%ecx
  mov    %ebx,%eax
  mov    %r15,%rdx
  mov    0x78(%rsp),%rdi
  mov    %rbp,%rsi
  mov    %r15,0x30(%rsp)
  shl    %cl,%eax
  add    $0x1,%ecx
  or     %eax,0x70(%rsp)
  mov    %ecx,0x74(%rsp)
  mov    %rbp,0x28(%rsp)
  call   <stbiw__zlib_flushf@plt>
  mov    0x74(%rsp),%ecx
  mov    %r15,%rdx
  mov    %rbp,%rsi
  mov    %rax,%rdi
  mov    %rax,0x78(%rsp)
  shl    %cl,%ebx
  add    $0x2,%ecx
  or     %ebx,0x70(%rsp)
  mov    %ecx,0x74(%rsp)
  call   <stbiw__zlib_flushf@plt>
  mov    $0x20000,%edx
  xor    %esi,%esi
  mov    %rax,0x78(%rsp)
  lea    0x80(%rsp),%rax
  mov    %rax,%rdi
  mov    %rax,0x40(%rsp)
  call   <memset@plt>
  mov    0x1c(%rsp),%eax
  sub    $0x3,%eax
  mov    %eax,0x48(%rsp)
  test   %eax,%eax
  jle    L90
  movslq 0x60(%rsp),%rax
  movl   $0x0,0xc(%rsp)
  lea    (%rax,%rax,1),%esi
  lea    0x0(,%rax,8),%ecx
  shl    $0x3,%rax
  mov    %esi,0x4c(%rsp)
  mov    %ecx,0x64(%rsp)
  mov    %rax,0x68(%rsp)
  nopl   0x0(%rax)
L67:
  movslq 0xc(%rsp),%rax
  lea    (%r14,%rax,1),%rbp
  mov    %rax,0x38(%rsp)
  mov    %rax,%rbx
  mov    %rbp,%rdi
  call   <stbiw__zhash@plt>
  mov    %eax,%esi
  and    $0x3fff,%esi
  mov    0x80(%rsp,%rsi,8),%r12
  mov    %rsi,0x20(%rsp)
  test   %r12,%r12
  je     L132
  movslq -0x4(%r12),%rax
  test   %eax,%eax
  jle    L402
  sub    $0x1,%eax
  mov    %ebx,%ecx
  lea    -0x8000(%rbx),%r8d
  mov    %r12,%r15
  lea    0x8(%r12,%rax,8),%r13
  mov    0x1c(%rsp),%eax
  xor    %r12d,%r12d
  movslq %r8d,%r8
  mov    %r12,0x10(%rsp)
  mov    $0x3,%ebx
  mov    %rbp,%r12
  mov    %r13,%rbp
  sub    %ecx,%eax
  mov    %r14,%r13
  mov    %r8,%r14
  mov    %eax,0x18(%rsp)
  jmp    L498
  nopl   0x0(%rax,%rax,1)
L230:
  add    $0x8,%r15
  cmp    %r15,%rbp
  je     L210
L498:
  mov    (%r15),%rdi
  mov    %rdi,%rax
  sub    %r13,%rax
  cmp    %r14,%rax
  jle    L230
  mov    0x18(%rsp),%edx
  mov    %r12,%rsi
  call   <stbiw__zlib_countm@plt>
  cmp    %eax,%ebx
  jg     L230
  mov    (%r15),%rsi
  add    $0x8,%r15
  mov    %eax,%ebx
  mov    %rsi,0x10(%rsp)
  cmp    %r15,%rbp
  jne    L498
  nopw   0x0(%rax,%rax,1)
L210:
  mov    0x20(%rsp),%rax
  mov    %r12,%rbp
  mov    %r13,%r14
  mov    0x10(%rsp),%r12
  mov    0x80(%rsp,%rax,8),%rdi
  test   %rdi,%rdi
  je     L212
  movslq -0x4(%rdi),%rax
L25:
  cmp    %eax,0x4c(%rsp)
  je     L196
L228:
  lea    0x1(%rax),%edx
  cmp    -0x8(%rdi),%edx
  jl     L430
L212:
  mov    0x20(%rsp),%r15
  mov    0x40(%rsp),%rax
  mov    $0x8,%edx
  mov    $0x1,%esi
  lea    (%rax,%r15,8),%rdi
  call   <stbiw__sbgrowf@plt>
  mov    0x80(%rsp,%r15,8),%rdi
  movslq -0x4(%rdi),%rax
  lea    0x1(%rax),%edx
L430:
  mov    %edx,-0x4(%rdi)
  mov    %rbp,(%rdi,%rax,8)
  test   %r12,%r12
  jne    L320
L620:
  movzbl 0x0(%rbp),%eax
  cmp    $0x8f,%al
  ja     L254
  add    $0x30,%eax
  mov    $0x8,%esi
  movzbl %al,%edi
  call   <stbiw__zlib_bitrev@plt>
  mov    0x74(%rsp),%ecx
  shl    %cl,%eax
  or     %eax,0x70(%rsp)
  add    $0x8,%ecx
L235:
  mov    0x30(%rsp),%rdx
  mov    0x28(%rsp),%rsi
  mov    %ecx,0x74(%rsp)
  mov    0x78(%rsp),%rdi
  call   <stbiw__zlib_flushf@plt>
  addl   $0x1,0xc(%rsp)
  mov    %rax,0x78(%rsp)
L2:
  mov    0x48(%rsp),%esi
  cmp    %esi,0xc(%rsp)
  jl     L67
L440:
  mov    0xc(%rsp),%ecx
  cmp    %ecx,0x1c(%rsp)
  jle    L535
  movslq %ecx,%rax
  mov    0x28(%rsp),%r12
  mov    0x30(%rsp),%r13
  mov    %rax,%rsi
  lea    0x1(%r14,%rax,1),%rbx
  lea    (%r14,%rax,1),%rbp
  mov    0x1c(%rsp),%eax
  sub    $0x1,%eax
  sub    %esi,%eax
  add    %rax,%rbx
L201:
  movzbl 0x0(%rbp),%eax
  cmp    $0x8f,%al
  ja     L518
  add    $0x30,%eax
  mov    $0x8,%esi
  movzbl %al,%edi
  call   <stbiw__zlib_bitrev@plt>
  mov    0x74(%rsp),%ecx
  shl    %cl,%eax
  or     %eax,0x70(%rsp)
  add    $0x8,%ecx
L88:
  mov    0x78(%rsp),%rdi
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    %ecx,0x74(%rsp)
  add    $0x1,%rbp
  call   <stbiw__zlib_flushf@plt>
  mov    %rax,0x78(%rsp)
  cmp    %rbp,%rbx
  jne    L201
L535:
  mov    $0x7,%esi
  xor    %edi,%edi
  call   <stbiw__zlib_bitrev@plt>
  mov    0x74(%rsp),%ecx
  mov    0x78(%rsp),%rdi
  mov    0x30(%rsp),%rdx
  mov    0x28(%rsp),%rsi
  shl    %cl,%eax
  add    $0x7,%ecx
  or     %eax,0x70(%rsp)
  mov    %ecx,0x74(%rsp)
  call   <stbiw__zlib_flushf@plt>
  mov    %rax,0x78(%rsp)
  mov    %rax,%rdi
  mov    0x74(%rsp),%eax
  test   %eax,%eax
  je     L477
  mov    0x28(%rsp),%rbx
  mov    0x30(%rsp),%rbp
  nopl   (%rax)
L190:
  add    $0x1,%eax
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  mov    %eax,0x74(%rsp)
  call   <stbiw__zlib_flushf@plt>
  mov    %rax,0x78(%rsp)
  mov    %rax,%rdi
  mov    0x74(%rsp),%eax
  test   %eax,%eax
  jne    L190
L477:
  mov    0x40(%rsp),%rbx
  lea    0x20080(%rsp),%rbp
  nop
L570:
  mov    (%rbx),%rdi
  test   %rdi,%rdi
  je     L410
  sub    $0x8,%rdi
  call   <free@plt>
L410:
  add    $0x8,%rbx
  cmp    %rbp,%rbx
  jne    L570
  movslq 0x1c(%rsp),%r9
  mov    %r9,%rcx
  imul   $0x5e6ea9af,%r9,%r9
  mov    %ecx,%eax
  sar    $0x1f,%eax
  sar    $0x2b,%r9
  sub    %eax,%r9d
  imul   $0x15b0,%r9d,%eax
  mov    %ecx,%r9d
  sub    %eax,%r9d
  mov    %r9d,%edi
  test   %ecx,%ecx
  jle    L110
  test   %r9d,%r9d
  je     L371
  mov    %r9d,%r10d
  xor    %r8d,%r8d
  mov    $0x1,%ebx
  xor    %ecx,%ecx
  nopl   0x0(%rax,%rax,1)
L205:
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L407:
  lea    (%rax,%r8,1),%edx
  add    $0x1,%eax
  movzbl (%r14,%rdx,1),%edx
  add    %edx,%ebx
  add    %ebx,%ecx
  cmp    %eax,%edi
  ja     L407
  mov    %ebx,%eax
  mov    $0x80078071,%esi
  imul   %rsi,%rax
  shr    $0x2f,%rax
  imul   $0xfff1,%eax,%eax
  sub    %eax,%ebx
  mov    %ecx,%eax
  imul   %rsi,%rax
  shr    $0x2f,%rax
  imul   $0xfff1,%eax,%eax
  sub    %eax,%ecx
  cmp    %r9d,0x1c(%rsp)
  jle    L369
L10:
  lea    0x15b0(%r10),%r9d
  mov    %r10d,%r8d
  mov    $0x15b0,%edi
  mov    %r9d,%r10d
  jmp    L205
L126:
  mov    0x50(%rsp),%rdi
  mov    $0x1,%edx
  mov    $0x1,%esi
  call   <stbiw__sbgrowf@plt>
  mov    0x78(%rsp),%rax
  movslq -0x4(%rax),%rdx
  lea    0x1(%rdx),%ecx
  jmp    L540
  nopl   0x0(%rax)
L254:
  lea    0x100(%rax),%edi
  mov    $0x9,%esi
  call   <stbiw__zlib_bitrev@plt>
  mov    0x74(%rsp),%ecx
  shl    %cl,%eax
  add    $0x9,%ecx
  or     %eax,0x70(%rsp)
  jmp    L235
  nopw   0x0(%rax,%rax,1)
L132:
  mov    $0x3,%ebx
  jmp    L212
  nopw   0x0(%rax,%rax,1)
L320:
  mov    0x38(%rsp),%rax
  lea    0x1(%r14,%rax,1),%r13
  mov    %r13,%rdi
  call   <stbiw__zhash@plt>
  and    $0x3fff,%eax
  mov    0x80(%rsp,%rax,8),%rcx
  test   %rcx,%rcx
  je     L266
  mov    -0x4(%rcx),%eax
  test   %eax,%eax
  jle    L266
  mov    0xc(%rsp),%esi
  sub    $0x1,%eax
  mov    %rbp,0x10(%rsp)
  lea    0x8(%rcx,%rax,8),%r15
  mov    0x1c(%rsp),%eax
  mov    %r12,0x20(%rsp)
  mov    %r14,%r12
  lea    -0x7fff(%rsi),%r8d
  mov    %r15,%r14
  mov    %r13,%r15
  mov    %rcx,%r13
  movslq %r8d,%r8
  sub    %esi,%eax
  mov    %eax,0x18(%rsp)
  mov    %r8,%rbp
  jmp    L584
  xchg   %ax,%ax
L58:
  add    $0x8,%r13
  cmp    %r13,%r14
  je     L399
L584:
  mov    0x0(%r13),%rdi
  mov    %rdi,%rax
  sub    %r12,%rax
  cmp    %rbp,%rax
  jle    L58
  mov    0x18(%rsp),%eax
  mov    %r15,%rsi
  lea    -0x1(%rax),%edx
  call   <stbiw__zlib_countm@plt>
  cmp    %ebx,%eax
  jle    L58
  mov    0x10(%rsp),%rbp
  mov    %r12,%r14
  jmp    L620
  nopl   0x0(%rax,%rax,1)
L399:
  mov    %r12,%r14
  mov    0x10(%rsp),%rbp
  mov    0x20(%rsp),%r12
L266:
  sub    %r12,%rbp
  cmp    $0x7fff,%ebp
  mov    %ebp,%r13d
  setle  %al
  xor    %edi,%edi
  cmp    $0x102,%ebx
  setle  %dil
  and    %eax,%edi
  call   <assert@plt>
  lea    D50(%rip),%rax
  xor    %edi,%edi
  nopl   0x0(%rax,%rax,1)
L225:
  movzwl (%rax),%edx
  movslq %edi,%r12
  add    $0x2,%rax
  lea    0x1(%r12),%edi
  cmp    %ebx,%edx
  jle    L225
  cmp    $0x16,%r12d
  jg     L4
  mov    $0x7,%esi
  call   <stbiw__zlib_bitrev@plt>
  mov    0x74(%rsp),%ecx
  shl    %cl,%eax
  or     %eax,0x70(%rsp)
  add    $0x7,%ecx
L178:
  mov    0x78(%rsp),%rdi
  mov    0x30(%rsp),%rdx
  mov    %ecx,0x74(%rsp)
  mov    0x28(%rsp),%rsi
  call   <stbiw__zlib_flushf@plt>
  mov    %rax,0x78(%rsp)
  mov    %rax,%rdi
  lea    D31(%rip),%rax
  movzbl (%rax,%r12,1),%eax
  test   %al,%al
  jne    L328
L11:
  xor    %eax,%eax
  cs nopw 0x0(%rax,%rax,1)
L508:
  lea    D14(%rip),%rsi
  movslq %eax,%r12
  movzwl (%rsi,%rax,2),%edx
  add    $0x1,%rax
  cmp    %r13d,%edx
  jle    L508
  mov    $0x5,%esi
  mov    %r12d,%edi
  call   <stbiw__zlib_bitrev@plt>
  mov    0x74(%rsp),%ecx
  mov    0x78(%rsp),%rdi
  mov    0x30(%rsp),%rdx
  mov    0x28(%rsp),%rsi
  shl    %cl,%eax
  add    $0x5,%ecx
  or     %eax,0x70(%rsp)
  mov    %ecx,0x74(%rsp)
  call   <stbiw__zlib_flushf@plt>
  mov    %rax,0x78(%rsp)
  mov    %rax,%rdi
  lea    D51(%rip),%rax
  movzbl (%rax,%r12,1),%eax
  test   %al,%al
  jne    L478
L219:
  add    %ebx,0xc(%rsp)
  jmp    L2
L328:
  lea    D44(%rip),%rdx
  mov    0x74(%rsp),%ecx
  movzwl (%rdx,%r12,2),%esi
  mov    %ebx,%edx
  add    %ecx,%eax
  sub    %esi,%edx
  mov    0x28(%rsp),%rsi
  mov    %eax,0x74(%rsp)
  shl    %cl,%edx
  or     %edx,0x70(%rsp)
  mov    0x30(%rsp),%rdx
  call   <stbiw__zlib_flushf@plt>
  mov    %rax,0x78(%rsp)
  jmp    L11
  nopw   0x0(%rax,%rax,1)
L518:
  lea    0x100(%rax),%edi
  mov    $0x9,%esi
  call   <stbiw__zlib_bitrev@plt>
  mov    0x74(%rsp),%ecx
  shl    %cl,%eax
  add    $0x9,%ecx
  or     %eax,0x70(%rsp)
  jmp    L88
  nopw   0x0(%rax,%rax,1)
L4:
  lea    0xa9(%r12),%edi
  mov    $0x8,%esi
  call   <stbiw__zlib_bitrev@plt>
  mov    0x74(%rsp),%ecx
  shl    %cl,%eax
  add    $0x8,%ecx
  or     %eax,0x70(%rsp)
  jmp    L178
  nopl   0x0(%rax)
L196:
  mov    0x68(%rsp),%rax
  mov    0x64(%rsp),%edx
  lea    (%rdi,%rax,1),%rsi
  call   <memcpy@plt>
  mov    0x20(%rsp),%rax
  mov    0x80(%rsp,%rax,8),%rdi
  movslq 0x60(%rsp),%rax
  mov    %eax,-0x4(%rdi)
  jmp    L228
L369:
  movzbl %ch,%eax
  mov    %ecx,%r12d
  movzbl %bh,%ebp
  mov    %eax,%r13d
L342:
  mov    0x78(%rsp),%rax
  test   %rax,%rax
  je     L258
  movslq -0x4(%rax),%rdx
  lea    0x1(%rdx),%ecx
  cmp    -0x8(%rax),%ecx
  jge    L258
L619:
  mov    %ecx,-0x4(%rax)
  mov    %r13b,(%rax,%rdx,1)
  mov    0x78(%rsp),%rax
  test   %rax,%rax
  je     L139
  movslq -0x4(%rax),%rdx
  lea    0x1(%rdx),%ecx
  cmp    -0x8(%rax),%ecx
  jge    L139
L517:
  mov    %ecx,-0x4(%rax)
  mov    %r12b,(%rax,%rdx,1)
  mov    0x78(%rsp),%rax
  test   %rax,%rax
  je     L580
  movslq -0x4(%rax),%rdx
  lea    0x1(%rdx),%ecx
  cmp    -0x8(%rax),%ecx
  jge    L580
L122:
  mov    %ecx,-0x4(%rax)
  mov    %bpl,(%rax,%rdx,1)
  mov    0x78(%rsp),%rax
  test   %rax,%rax
  je     L525
  movslq -0x4(%rax),%rdx
  lea    0x1(%rdx),%ecx
  cmp    -0x8(%rax),%ecx
  jge    L525
L247:
  mov    %ecx,-0x4(%rax)
  mov    %bl,(%rax,%rdx,1)
  mov    0x78(%rsp),%rsi
  mov    0x58(%rsp),%rax
  mov    -0x4(%rsi),%edx
  lea    -0x8(%rsi),%rdi
  mov    %edx,(%rax)
  call   <memmove@plt>
  mov    0x78(%rsp),%rax
  sub    $0x8,%rax
  mov    0x20088(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L183
  add    $0x20098,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L525:
  mov    0x50(%rsp),%rdi
  mov    $0x1,%edx
  mov    $0x1,%esi
  call   <stbiw__sbgrowf@plt>
  mov    0x78(%rsp),%rax
  movslq -0x4(%rax),%rdx
  lea    0x1(%rdx),%ecx
  jmp    L247
L580:
  mov    0x50(%rsp),%rdi
  mov    $0x1,%edx
  mov    $0x1,%esi
  call   <stbiw__sbgrowf@plt>
  mov    0x78(%rsp),%rax
  movslq -0x4(%rax),%rdx
  lea    0x1(%rdx),%ecx
  jmp    L122
L139:
  mov    0x50(%rsp),%rdi
  mov    $0x1,%edx
  mov    $0x1,%esi
  call   <stbiw__sbgrowf@plt>
  mov    0x78(%rsp),%rax
  movslq -0x4(%rax),%rdx
  lea    0x1(%rdx),%ecx
  jmp    L517
L258:
  mov    0x50(%rsp),%rdi
  mov    $0x1,%edx
  mov    $0x1,%esi
  call   <stbiw__sbgrowf@plt>
  mov    0x78(%rsp),%rax
  movslq -0x4(%rax),%rdx
  lea    0x1(%rdx),%ecx
  jmp    L619
L478:
  lea    D26(%rip),%rsi
  mov    0x74(%rsp),%ecx
  mov    %ebp,%edx
  movzwl (%rsi,%r12,2),%esi
  add    %ecx,%eax
  sub    %esi,%edx
  mov    0x28(%rsp),%rsi
  mov    %eax,0x74(%rsp)
  shl    %cl,%edx
  or     %edx,0x70(%rsp)
  mov    0x30(%rsp),%rdx
  call   <stbiw__zlib_flushf@plt>
  mov    %rax,0x78(%rsp)
  jmp    L219
L402:
  mov    %r12,%rdi
  mov    $0x3,%ebx
  xor    %r12d,%r12d
  jmp    L25
L371:
  xor    %r10d,%r10d
  xor    %ecx,%ecx
  mov    $0x1,%ebx
  jmp    L10
L110:
  mov    $0x1,%ebx
  xor    %ebp,%ebp
  xor    %r12d,%r12d
  xor    %r13d,%r13d
  jmp    L342
L90:
  movl   $0x0,0xc(%rsp)
  jmp    L440
L183:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D50
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D31
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D14
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D51
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D44
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D26
type_guessed: string

tool: D50: 

tool: 

tool: D14: 

tool: 

tool: D44: 

tool: D26: 

assistant: ```c
unsigned char *stbi_zlib_compress(unsigned char *data, int data_len, int *out_len, int quality) {
  static unsigned short lengthc[] = {3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 259};
  static unsigned char lengtheb[] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0};
  static unsigned short distc[] = {1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 32768};
  static unsigned char disteb[] = {0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13};
  unsigned int bitbuf = 0;
  int i, j, bitcount = 0;
  unsigned char *out = NULL;
  unsigned char **hash_table[16384];
  if (quality < 5)
    quality = 5;
  ((((out) == 0 || ((int *)(out)-2)[1] + (1) >= ((int *)(out)-2)[0]) ? stbiw__sbgrowf((void **)&(out), (1), sizeof(*(out))) : 0), (out)[((int *)(out)-2)[1]++] = (0x78));
  ((((out) == 0 || ((int *)(out)-2)[1] + (1) >= ((int *)(out)-2)[0]) ? stbiw__sbgrowf((void **)&(out), (1), sizeof(*(out))) : 0), (out)[((int *)(out)-2)[1]++] = (0x5e));
  (bitbuf |= (1) << bitcount, bitcount += (1), (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount)));
  (bitbuf |= (1) << bitcount, bitcount += (2), (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount)));
  for (i = 0; i < 16384; ++i)
    hash_table[i] = NULL;
  i = 0;
  while (i < data_len - 3) {
    int h = stbiw__zhash(data + i) & (16384 - 1), best = 3;
    unsigned char *bestloc = 0;
    unsigned char **hlist = hash_table[h];
    int n = ((hlist) ? ((int *)(hlist)-2)[1] : 0);
    for (j = 0; j < n; ++j) {
      if (hlist[j] - data > i - 32768) {
        int d = stbiw__zlib_countm(hlist[j], data + i, data_len - i);
        if (d >= best)
          best = d, bestloc = hlist[j];
      }
    }
    if (hash_table[h] && ((int *)(hash_table[h]) - 2)[1] == 2 * quality) {
      memcpy(hash_table[h], hash_table[h] + quality, sizeof(hash_table[h][0]) * quality);
      ((int *)(hash_table[h]) - 2)[1] = quality;
    }
    ((((hash_table[h]) == 0 || ((int *)(hash_table[h]) - 2)[1] + (1) >= ((int *)(hash_table[h]) - 2)[0]) ? stbiw__sbgrowf((void **)&(hash_table[h]), (1), sizeof(*(hash_table[h]))) : 0), (hash_table[h])[((int *)(hash_table[h]) - 2)[1]++] = (data + i));
    if (bestloc) {
      h = stbiw__zhash(data + i + 1) & (16384 - 1);
      hlist = hash_table[h];
      n = ((hlist) ? ((int *)(hlist)-2)[1] : 0);
      for (j = 0; j < n; ++j) {
        if (hlist[j] - data > i - 32767) {
          int e = stbiw__zlib_countm(hlist[j], data + i + 1, data_len - i - 1);
          if (e > best) {
            bestloc = NULL;
            break;
          }
        }
      }
    }
    if (bestloc) {
      int d = (int)(data + i - bestloc);
      assert(d <= 32767 && best <= 258);
      for (j = 0; best > lengthc[j + 1] - 1; ++j)
        ;
      ((j + 257) <= 143 ? (bitbuf |= (stbiw__zlib_bitrev(0x30 + (j + 257), 8)) << bitcount, bitcount += (8), (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount))) : (j + 257) <= 255 ? (bitbuf |= (stbiw__zlib_bitrev(0x190 + (j + 257) - 144, 9)) << bitcount, bitcount += (9), (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount))) : (j + 257) <= 279 ? (bitbuf |= (stbiw__zlib_bitrev(0 + (j + 257) - 256, 7)) << bitcount, bitcount += (7), (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount))) : (bitbuf |= (stbiw__zlib_bitrev(0xc0 + (j + 257) - 280, 8)) << bitcount, bitcount += (8), (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount))));
      if (lengtheb[j])
        (bitbuf |= (best - lengthc[j]) << bitcount, bitcount += (lengtheb[j]), (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount)));
      for (j = 0; d > distc[j + 1] - 1; ++j)
        ;
      (bitbuf |= (stbiw__zlib_bitrev(j, 5)) << bitcount, bitcount += (5), (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount)));
      if (disteb[j])
        (bitbuf |= (d - distc[j]) << bitcount, bitcount += (disteb[j]), (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount)));
      i += best;
    } else {
      ((data[i]) <= 143 ? (bitbuf |= (stbiw__zlib_bitrev(0x30 + (data[i]), 8)) << bitcount, bitcount += (8), (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount))) : (bitbuf |= (stbiw__zlib_bitrev(0x190 + (data[i]) - 144, 9)) << bitcount, bitcount += (9), (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount))));
      ++i;
    }
  }
  for (; i < data_len; ++i)
    ((data[i]) <= 143 ? (bitbuf |= (stbiw__zlib_bitrev(0x30 + (data[i]), 8)) << bitcount, bitcount += (8), (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount))) : (bitbuf |= (stbiw__zlib_bitrev(0x190 + (data[i]) - 144, 9)) << bitcount, bitcount += (9), (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount))));
  ((256) <= 143 ? (bitbuf |= (stbiw__zlib_bitrev(0x30 + (256), 8)) << bitcount, bitcount += (8), (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount))) : (256) <= 255 ? (bitbuf |= (stbiw__zlib_bitrev(0x190 + (256) - 144, 9)) << bitcount, bitcount += (9), (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount))) : (256) <= 279 ? (bitbuf |= (stbiw__zlib_bitrev(0 + (256) - 256, 7)) << bitcount, bitcount += (7), (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount))) : (bitbuf |= (stbiw__zlib_bitrev(0xc0 + (256) - 280, 8)) << bitcount, bitcount += (8), (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount))));
  while (bitcount)
    (bitbuf |= (0) << bitcount, bitcount += (1), (out = stbiw__zlib_flushf(out, &bitbuf, &bitcount)));
  for (i = 0; i < 16384; ++i)
    (void)((hash_table[i]) ? free(((int *)(hash_table[i]) - 2)), 0 : 0);
  {
    unsigned int i = 0, s1 = 1, s2 = 0, blocklen = data_len % 5552;
    int j = 0;
    while (j < data_len) {
      for (i = 0; i < blocklen; ++i)
        s1 += data[j + i], s2 += s1;
      s1 %= 65521, s2 %= 65521;
      j += blocklen;
      blocklen = 5552;
    }
    ((((out) == 0 || ((int *)(out)-2)[1] + (1) >= ((int *)(out)-2)[0]) ? stbiw__sbgrowf((void **)&(out), (1), sizeof(*(out))) : 0), (out)[((int *)(out)-2)[1]++] = ((unsigned char)(s2 >> 8)));
    ((((out) == 0 || ((int *)(out)-2)[1] + (1) >= ((int *)(out)-2)[0]) ? stbiw__sbgrowf((void **)&(out), (1), sizeof(*(out))) : 0), (out)[((int *)(out)-2)[1]++] = ((unsigned char)s2));
    ((((out) == 0 || ((int *)(out)-2)[1] + (1) >= ((int *)(out)-2)[0]) ? stbiw__sbgrowf((void **)&(out), (1), sizeof(*(out))) : 0), (out)[((int *)(out)-2)[1]++] = ((unsigned char)(s1 >> 8)));
    ((((out) == 0 || ((int *)(out)-2)[1] + (1) >= ((int *)(out)-2)[0]) ? stbiw__sbgrowf((void **)&(out), (1), sizeof(*(out))) : 0), (out)[((int *)(out)-2)[1]++] = ((unsigned char)s1));
  }
  *out_len = ((int *)(out)-2)[1];
  memmove(((int *)(out)-2), out, *out_len);
  return (unsigned char *)((int *)(out)-2);
}
```