user: 请将以下的汇编代码转换成C语言代码:

```asm
<stbi_zlib_compress>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x20000(%rsp),%r11
L37:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L37
  sub    $0x98,%rsp
  mov    %esi,0x24(%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     L455
  movslq -0x4(%rax),%rdx
  lea    0x1(%rdx),%ecx
  cmp    -0x8(%rax),%ecx
  jge    L455
L491:
  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    0x24(%rsp),%eax
  sub    $0x3,%eax
  mov    %eax,0x48(%rsp)
  test   %eax,%eax
  jle    L22
  movslq 0x60(%rsp),%rax
  movl   $0x0,0xc(%rsp)
  lea    (%rax,%rax,1),%esi
  mov    %esi,0x4c(%rsp)
  lea    0x0(,%rax,8),%esi
  shl    $0x3,%rax
  mov    %esi,0x64(%rsp)
  mov    %rax,0x68(%rsp)
  nopl   0x0(%rax)
L561:
  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,0x10(%rsp)
  test   %r12,%r12
  je     L301
  mov    -0x4(%r12),%eax
  test   %eax,%eax
  jle    L83
  sub    $0x1,%eax
  mov    %ebx,%esi
  lea    -0x8000(%rbx),%r8d
  mov    %r12,%r15
  lea    0x8(%r12,%rax,8),%r13
  mov    0x24(%rsp),%eax
  xor    %r12d,%r12d
  movslq %r8d,%r8
  mov    %r12,0x18(%rsp)
  mov    $0x3,%ebx
  mov    %rbp,%r12
  mov    %r13,%rbp
  sub    %esi,%eax
  mov    %r14,%r13
  mov    %r8,%r14
  mov    %eax,0x20(%rsp)
  jmp    L448
  nopl   0x0(%rax,%rax,1)
L151:
  add    $0x8,%r15
  cmp    %r15,%rbp
  je     L11
L448:
  mov    (%r15),%rdi
  mov    %rdi,%rax
  sub    %r13,%rax
  cmp    %r14,%rax
  jle    L151
  mov    0x20(%rsp),%edx
  mov    %r12,%rsi
  call   <stbiw__zlib_countm@plt>
  cmp    %eax,%ebx
  jg     L151
  mov    (%r15),%rsi
  add    $0x8,%r15
  mov    %eax,%ebx
  mov    %rsi,0x18(%rsp)
  cmp    %r15,%rbp
  jne    L448
  nopw   0x0(%rax,%rax,1)
L11:
  mov    0x10(%rsp),%rax
  mov    %r12,%rbp
  mov    %r13,%r14
  mov    0x18(%rsp),%r12
  mov    0x80(%rsp,%rax,8),%rdi
  test   %rdi,%rdi
  je     L642
  mov    -0x4(%rdi),%eax
L387:
  cmp    %eax,0x4c(%rsp)
  je     L202
  mov    0x10(%rsp),%rax
  mov    0x80(%rsp,%rax,8),%rdx
  movslq -0x4(%rdx),%rax
L225:
  lea    0x1(%rax),%ecx
  cmp    -0x8(%rdx),%ecx
  jl     L69
L642:
  mov    0x10(%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),%rdx
  movslq -0x4(%rdx),%rax
  lea    0x1(%rax),%ecx
L69:
  mov    %ecx,-0x4(%rdx)
  mov    %rbp,(%rdx,%rax,8)
  test   %r12,%r12
  jne    L556
L675:
  movzbl 0x0(%rbp),%eax
  cmp    $0x8f,%al
  ja     L306
  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
L232:
  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)
L536:
  mov    0x48(%rsp),%esi
  cmp    %esi,0xc(%rsp)
  jl     L561
L535:
  mov    0xc(%rsp),%esi
  cmp    %esi,0x24(%rsp)
  jle    L243
  movslq 0xc(%rsp),%rax
  mov    0x28(%rsp),%r12
  mov    0x30(%rsp),%r13
  mov    %rax,%rcx
  lea    0x1(%r14,%rax,1),%rbx
  lea    (%r14,%rax,1),%rbp
  mov    0x24(%rsp),%eax
  sub    $0x1,%eax
  sub    %ecx,%eax
  add    %rax,%rbx
L427:
  movzbl 0x0(%rbp),%eax
  cmp    $0x8f,%al
  ja     L572
  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
L0:
  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    L427
L243:
  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     L389
  mov    0x28(%rsp),%rbx
  mov    0x30(%rsp),%rbp
  nop
L438:
  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    L438
L389:
  mov    0x40(%rsp),%rbx
  lea    0x20080(%rsp),%rbp
  nop
L80:
  mov    (%rbx),%rdi
  test   %rdi,%rdi
  je     L471
  sub    $0x8,%rdi
  call   <free@plt>
L471:
  add    $0x8,%rbx
  cmp    %rbp,%rbx
  jne    L80
  movslq 0x24(%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    L307
  test   %r9d,%r9d
  je     L477
  mov    %r9d,%r10d
  xor    %r8d,%r8d
  mov    $0x1,%ebx
  xor    %ecx,%ecx
  nopl   0x0(%rax,%rax,1)
L509:
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L487:
  lea    (%rax,%r8,1),%edx
  add    $0x1,%eax
  movzbl (%r14,%rdx,1),%edx
  add    %edx,%ebx
  add    %ebx,%ecx
  cmp    %eax,%edi
  ja     L487
  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,0x24(%rsp)
  jle    L235
L89:
  lea    0x15b0(%r10),%r9d
  mov    %r10d,%r8d
  mov    $0x15b0,%edi
  mov    %r9d,%r10d
  jmp    L509
L455:
  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    L491
  nopl   0x0(%rax)
L306:
  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    L232
  nopw   0x0(%rax,%rax,1)
L301:
  mov    $0x3,%ebx
  jmp    L642
  nopw   0x0(%rax,%rax,1)
L556:
  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     L206
  mov    -0x4(%rcx),%eax
  test   %eax,%eax
  jle    L206
  mov    0xc(%rsp),%esi
  sub    $0x1,%eax
  mov    %rbp,0x10(%rsp)
  lea    0x8(%rcx,%rax,8),%r15
  mov    0x24(%rsp),%eax
  mov    %r12,0x18(%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,0x20(%rsp)
  mov    %r8,%rbp
  jmp    L215
  xchg   %ax,%ax
L619:
  add    $0x8,%r13
  cmp    %r13,%r14
  je     L497
L215:
  mov    0x0(%r13),%rdi
  mov    %rdi,%rax
  sub    %r12,%rax
  cmp    %rbp,%rax
  jle    L619
  mov    0x20(%rsp),%eax
  mov    %r15,%rsi
  lea    -0x1(%rax),%edx
  call   <stbiw__zlib_countm@plt>
  cmp    %ebx,%eax
  jle    L619
  mov    0x10(%rsp),%rbp
  mov    %r12,%r14
  jmp    L675
  nopl   0x0(%rax,%rax,1)
L497:
  mov    %r12,%r14
  mov    0x10(%rsp),%rbp
  mov    0x18(%rsp),%r12
L206:
  sub    %r12,%rbp
  cmp    $0x7fff,%ebp
  mov    %ebp,%r12d
  setle  %al
  xor    %edi,%edi
  cmp    $0x102,%ebx
  setle  %dil
  xor    %r13d,%r13d
  and    %eax,%edi
  call   <assert@plt>
  lea    D52(%rip),%rdx
  mov    $0x4,%eax
  jmp    L32
L255:
  movzwl (%rdx),%eax
  movslq %edi,%r13
  add    $0x2,%rdx
L32:
  lea    0x1(%r13),%edi
  cmp    %ebx,%eax
  jle    L255
  cmp    $0x16,%r13d
  jg     L212
  mov    $0x7,%esi
  call   <stbiw__zlib_bitrev@plt>
  mov    0x74(%rsp),%ecx
  shl    %cl,%eax
  or     %eax,0x70(%rsp)
  add    $0x7,%ecx
L376:
  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    D34(%rip),%rax
  movzbl (%rax,%r13,1),%eax
  test   %al,%al
  jne    L238
L155:
  xor    %edx,%edx
  mov    $0x2,%eax
  jmp    L504
L465:
  lea    D17(%rip),%rax
  movzwl (%rax,%rdx,2),%eax
L504:
  movslq %edx,%r13
  add    $0x1,%rdx
  cmp    %r12d,%eax
  jle    L465
  mov    $0x5,%esi
  mov    %r13d,%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    D49(%rip),%rax
  movzbl (%rax,%r13,1),%eax
  test   %al,%al
  jne    L348
L351:
  add    %ebx,0xc(%rsp)
  jmp    L536
  xchg   %ax,%ax
L572:
  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    L0
  nopw   0x0(%rax,%rax,1)
L212:
  lea    0xa9(%r13),%edi
  mov    $0x8,%esi
  call   <stbiw__zlib_bitrev@plt>
  mov    0x74(%rsp),%ecx
  shl    %cl,%eax
  add    $0x8,%ecx
  or     %eax,0x70(%rsp)
  jmp    L376
  nopl   0x0(%rax,%rax,1)
L202:
  mov    0x68(%rsp),%rax
  mov    0x64(%rsp),%edx
  lea    (%rdi,%rax,1),%rsi
  call   <memcpy@plt>
  mov    0x10(%rsp),%rax
  mov    0x80(%rsp,%rax,8),%rdx
  movslq 0x60(%rsp),%rax
  mov    %eax,-0x4(%rdx)
  jmp    L225
L235:
  movzbl %ch,%eax
  mov    %ecx,%r12d
  movzbl %bh,%ebp
  mov    %eax,%r13d
L410:
  mov    0x78(%rsp),%rax
  test   %rax,%rax
  je     L210
  movslq -0x4(%rax),%rdx
  lea    0x1(%rdx),%ecx
  cmp    -0x8(%rax),%ecx
  jge    L210
L390:
  mov    %ecx,-0x4(%rax)
  mov    %r13b,(%rax,%rdx,1)
  mov    0x78(%rsp),%rax
  test   %rax,%rax
  je     L220
  movslq -0x4(%rax),%rdx
  lea    0x1(%rdx),%ecx
  cmp    -0x8(%rax),%ecx
  jge    L220
L314:
  mov    %ecx,-0x4(%rax)
  mov    %r12b,(%rax,%rdx,1)
  mov    0x78(%rsp),%rax
  test   %rax,%rax
  je     L666
  movslq -0x4(%rax),%rdx
  lea    0x1(%rdx),%ecx
  cmp    -0x8(%rax),%ecx
  jge    L666
L7:
  mov    %ecx,-0x4(%rax)
  mov    %bpl,(%rax,%rdx,1)
  mov    0x78(%rsp),%rax
  test   %rax,%rax
  je     L380
  movslq -0x4(%rax),%rdx
  lea    0x1(%rdx),%ecx
  cmp    -0x8(%rax),%ecx
  jge    L380
L492:
  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    L417
  add    $0x20098,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L380:
  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    L492
L666:
  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    L7
L220:
  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    L314
L210:
  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    L390
L238:
  lea    D22(%rip),%rdx
  mov    0x74(%rsp),%ecx
  movzwl (%rdx,%r13,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    L155
L348:
  lea    D6(%rip),%rdx
  mov    0x74(%rsp),%ecx
  movzwl (%rdx,%r13,2),%esi
  mov    %ebp,%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    L351
L83:
  mov    %r12,%rdi
  mov    $0x3,%ebx
  xor    %r12d,%r12d
  jmp    L387
L477:
  xor    %r10d,%r10d
  xor    %ecx,%ecx
  mov    $0x1,%ebx
  jmp    L89
L307:
  mov    $0x1,%ebx
  xor    %ebp,%ebp
  xor    %r12d,%r12d
  xor    %r13d,%r13d
  jmp    L410
L22:
  movl   $0x0,0xc(%rsp)
  jmp    L535
L417:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D52
type_infered: string
name: read_data
arguments: data_tag: D34
type_infered: string
name: read_data
arguments: data_tag: D17
type_infered: string
name: read_data
arguments: data_tag: D49
type_infered: string
name: read_data
arguments: data_tag: D22
type_infered: string
name: read_data
arguments: data_tag: D6
type_infered: string

tool: D52: 

tool: 

tool: D17: 

tool: 

tool: D22: 

tool: D6: 

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);
}
```