user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<stbi_zlib_compress>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  lea    -0x20000(%rsp),%r11
L395:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L395
  sub    $0x90,%rsp
  mov    %rdi,-0x20078(%rbp)
  mov    %esi,-0x2007c(%rbp)
  mov    %rdx,-0x20088(%rbp)
  mov    %ecx,-0x20080(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x20064(%rbp)
  movl   $0x0,-0x20060(%rbp)
  movq   $0x0,-0x20028(%rbp)
  cmpl   $0x4,-0x20080(%rbp)
  jg     L262
  movl   $0x5,-0x20080(%rbp)
L262:
  mov    -0x20028(%rbp),%rax
  test   %rax,%rax
  je     L359
  mov    -0x20028(%rbp),%rax
  sub    $0x4,%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x20028(%rbp),%rax
  sub    $0x8,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jl     L652
L359:
  lea    -0x20028(%rbp),%rax
  mov    $0x1,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <stbiw__sbgrowf@plt>
  nop
L652:
  mov    -0x20028(%rbp),%rsi
  mov    -0x20028(%rbp),%rax
  sub    $0x4,%rax
  mov    (%rax),%edx
  lea    0x1(%rdx),%ecx
  mov    %ecx,(%rax)
  movslq %edx,%rax
  add    %rsi,%rax
  movb   $0x78,(%rax)
  mov    -0x20028(%rbp),%rax
  test   %rax,%rax
  je     L52
  mov    -0x20028(%rbp),%rax
  sub    $0x4,%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x20028(%rbp),%rax
  sub    $0x8,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jl     L513
L52:
  lea    -0x20028(%rbp),%rax
  mov    $0x1,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <stbiw__sbgrowf@plt>
  nop
L513:
  mov    -0x20028(%rbp),%rsi
  mov    -0x20028(%rbp),%rax
  sub    $0x4,%rax
  mov    (%rax),%edx
  lea    0x1(%rdx),%ecx
  mov    %ecx,(%rax)
  movslq %edx,%rax
  add    %rsi,%rax
  movb   $0x5e,(%rax)
  mov    -0x20060(%rbp),%eax
  mov    $0x1,%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %eax,%edx
  mov    -0x20064(%rbp),%eax
  or     %edx,%eax
  mov    %eax,-0x20064(%rbp)
  mov    -0x20060(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x20060(%rbp)
  mov    -0x20028(%rbp),%rax
  lea    -0x20060(%rbp),%rdx
  lea    -0x20064(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <stbiw__zlib_flushf@plt>
  mov    %rax,-0x20028(%rbp)
  mov    -0x20060(%rbp),%eax
  mov    $0x1,%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %eax,%edx
  mov    -0x20064(%rbp),%eax
  or     %edx,%eax
  mov    %eax,-0x20064(%rbp)
  mov    -0x20060(%rbp),%eax
  add    $0x2,%eax
  mov    %eax,-0x20060(%rbp)
  mov    -0x20028(%rbp),%rax
  lea    -0x20060(%rbp),%rdx
  lea    -0x20064(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <stbiw__zlib_flushf@plt>
  mov    %rax,-0x20028(%rbp)
  movl   $0x0,-0x2005c(%rbp)
  jmp    L167
L203:
  mov    -0x2005c(%rbp),%eax
  cltq
  movq   $0x0,-0x20010(%rbp,%rax,8)
  addl   $0x1,-0x2005c(%rbp)
L167:
  cmpl   $0x3fff,-0x2005c(%rbp)
  jle    L203
  movl   $0x0,-0x2005c(%rbp)
  jmp    L324
L688:
  mov    -0x2005c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20078(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rdi
  call   <stbiw__zhash@plt>
  and    $0x3fff,%eax
  mov    %eax,-0x2003c(%rbp)
  movl   $0x3,-0x20054(%rbp)
  movq   $0x0,-0x20020(%rbp)
  mov    -0x2003c(%rbp),%eax
  cltq
  mov    -0x20010(%rbp,%rax,8),%rax
  mov    %rax,-0x20018(%rbp)
  cmpq   $0x0,-0x20018(%rbp)
  je     L317
  mov    -0x20018(%rbp),%rax
  mov    -0x4(%rax),%eax
  jmp    L444
L317:
  mov    $0x0,%eax
L444:
  mov    %eax,-0x20038(%rbp)
  movl   $0x0,-0x20058(%rbp)
  jmp    L583
L381:
  mov    -0x20058(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20018(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  sub    -0x20078(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x2005c(%rbp),%eax
  sub    $0x8000,%eax
  cltq
  cmp    %rax,%rdx
  jle    L58
  mov    -0x2007c(%rbp),%eax
  sub    -0x2005c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2005c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x20078(%rbp),%rax
  add    %rax,%rcx
  mov    -0x20058(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rsi
  mov    -0x20018(%rbp),%rax
  add    %rsi,%rax
  mov    (%rax),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <stbiw__zlib_countm@plt>
  mov    %eax,-0x2002c(%rbp)
  mov    -0x2002c(%rbp),%eax
  cmp    -0x20054(%rbp),%eax
  jl     L58
  mov    -0x2002c(%rbp),%eax
  mov    %eax,-0x20054(%rbp)
  mov    -0x20058(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20018(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,-0x20020(%rbp)
L58:
  addl   $0x1,-0x20058(%rbp)
L583:
  mov    -0x20058(%rbp),%eax
  cmp    -0x20038(%rbp),%eax
  jl     L381
  mov    -0x2003c(%rbp),%eax
  cltq
  mov    -0x20010(%rbp,%rax,8),%rax
  test   %rax,%rax
  je     L86
  mov    -0x2003c(%rbp),%eax
  cltq
  mov    -0x20010(%rbp,%rax,8),%rax
  sub    $0x4,%rax
  mov    (%rax),%eax
  mov    -0x20080(%rbp),%edx
  add    %edx,%edx
  cmp    %edx,%eax
  jne    L86
  mov    -0x20080(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edx
  mov    -0x2003c(%rbp),%eax
  cltq
  mov    -0x20010(%rbp,%rax,8),%rcx
  mov    -0x20080(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rax,%rcx
  mov    -0x2003c(%rbp),%eax
  cltq
  mov    -0x20010(%rbp,%rax,8),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x2003c(%rbp),%eax
  cltq
  mov    -0x20010(%rbp,%rax,8),%rax
  lea    -0x4(%rax),%rdx
  mov    -0x20080(%rbp),%eax
  mov    %eax,(%rdx)
L86:
  mov    -0x2003c(%rbp),%eax
  cltq
  mov    -0x20010(%rbp,%rax,8),%rax
  test   %rax,%rax
  je     L668
  mov    -0x2003c(%rbp),%eax
  cltq
  mov    -0x20010(%rbp,%rax,8),%rax
  sub    $0x4,%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x2003c(%rbp),%eax
  cltq
  mov    -0x20010(%rbp,%rax,8),%rax
  sub    $0x8,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jl     L57
L668:
  lea    -0x20010(%rbp),%rdx
  mov    -0x2003c(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    $0x8,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <stbiw__sbgrowf@plt>
  nop
L57:
  mov    -0x2005c(%rbp),%eax
  movslq %eax,%rsi
  mov    -0x2003c(%rbp),%eax
  cltq
  mov    -0x20010(%rbp,%rax,8),%rdi
  mov    -0x2003c(%rbp),%eax
  cltq
  mov    -0x20010(%rbp,%rax,8),%rax
  sub    $0x4,%rax
  mov    (%rax),%edx
  lea    0x1(%rdx),%ecx
  mov    %ecx,(%rax)
  movslq %edx,%rax
  shl    $0x3,%rax
  add    %rdi,%rax
  mov    -0x20078(%rbp),%rdx
  add    %rsi,%rdx
  mov    %rdx,(%rax)
  cmpq   $0x0,-0x20020(%rbp)
  je     L562
  mov    -0x2005c(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x20078(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rdi
  call   <stbiw__zhash@plt>
  and    $0x3fff,%eax
  mov    %eax,-0x2003c(%rbp)
  mov    -0x2003c(%rbp),%eax
  cltq
  mov    -0x20010(%rbp,%rax,8),%rax
  mov    %rax,-0x20018(%rbp)
  cmpq   $0x0,-0x20018(%rbp)
  je     L328
  mov    -0x20018(%rbp),%rax
  mov    -0x4(%rax),%eax
  jmp    L270
L328:
  mov    $0x0,%eax
L270:
  mov    %eax,-0x20038(%rbp)
  movl   $0x0,-0x20058(%rbp)
  jmp    L449
L480:
  mov    -0x20058(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20018(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  sub    -0x20078(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x2005c(%rbp),%eax
  sub    $0x7fff,%eax
  cltq
  cmp    %rax,%rdx
  jle    L446
  mov    -0x2007c(%rbp),%eax
  sub    -0x2005c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x2005c(%rbp),%eax
  cltq
  lea    0x1(%rax),%rcx
  mov    -0x20078(%rbp),%rax
  add    %rax,%rcx
  mov    -0x20058(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rsi
  mov    -0x20018(%rbp),%rax
  add    %rsi,%rax
  mov    (%rax),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <stbiw__zlib_countm@plt>
  mov    %eax,-0x20034(%rbp)
  mov    -0x20034(%rbp),%eax
  cmp    -0x20054(%rbp),%eax
  jle    L446
  movq   $0x0,-0x20020(%rbp)
  jmp    L562
L446:
  addl   $0x1,-0x20058(%rbp)
L449:
  mov    -0x20058(%rbp),%eax
  cmp    -0x20038(%rbp),%eax
  jl     L480
L562:
  cmpq   $0x0,-0x20020(%rbp)
  je     L505
  mov    -0x2005c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20078(%rbp),%rax
  add    %rdx,%rax
  sub    -0x20020(%rbp),%rax
  mov    %eax,-0x20030(%rbp)
  cmpl   $0x7fff,-0x20030(%rbp)
  jg     L389
  cmpl   $0x102,-0x20054(%rbp)
  jg     L389
  mov    $0x1,%eax
  jmp    L413
L389:
  mov    $0x0,%eax
L413:
  mov    %eax,%edi
  call   <assert@plt>
  movl   $0x0,-0x20058(%rbp)
  jmp    L53
L456:
  addl   $0x1,-0x20058(%rbp)
L53:
  mov    -0x20058(%rbp),%eax
  add    $0x1,%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  lea    D56(%rip),%rax
  movzwl (%rdx,%rax,1),%eax
  movzwl %ax,%eax
  cmp    %eax,-0x20054(%rbp)
  jge    L456
  cmpl   $0xffffff8f,-0x20058(%rbp)
  jge    L553
  mov    -0x20058(%rbp),%eax
  add    $0x131,%eax
  mov    $0x8,%esi
  mov    %eax,%edi
  call   <stbiw__zlib_bitrev@plt>
  mov    %eax,%edx
  mov    -0x20060(%rbp),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %eax,%edx
  mov    -0x20064(%rbp),%eax
  or     %edx,%eax
  mov    %eax,-0x20064(%rbp)
  mov    -0x20060(%rbp),%eax
  add    $0x8,%eax
  mov    %eax,-0x20060(%rbp)
  mov    -0x20028(%rbp),%rax
  lea    -0x20060(%rbp),%rdx
  lea    -0x20064(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <stbiw__zlib_flushf@plt>
  mov    %rax,-0x20028(%rbp)
  jmp    L17
L553:
  cmpl   $0xffffffff,-0x20058(%rbp)
  jge    L182
  mov    -0x20058(%rbp),%eax
  add    $0x201,%eax
  mov    $0x9,%esi
  mov    %eax,%edi
  call   <stbiw__zlib_bitrev@plt>
  mov    %eax,%edx
  mov    -0x20060(%rbp),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %eax,%edx
  mov    -0x20064(%rbp),%eax
  or     %edx,%eax
  mov    %eax,-0x20064(%rbp)
  mov    -0x20060(%rbp),%eax
  add    $0x9,%eax
  mov    %eax,-0x20060(%rbp)
  mov    -0x20028(%rbp),%rax
  lea    -0x20060(%rbp),%rdx
  lea    -0x20064(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <stbiw__zlib_flushf@plt>
  mov    %rax,-0x20028(%rbp)
  jmp    L17
L182:
  cmpl   $0x16,-0x20058(%rbp)
  jg     L581
  mov    -0x20058(%rbp),%eax
  add    $0x1,%eax
  mov    $0x7,%esi
  mov    %eax,%edi
  call   <stbiw__zlib_bitrev@plt>
  mov    %eax,%edx
  mov    -0x20060(%rbp),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %eax,%edx
  mov    -0x20064(%rbp),%eax
  or     %edx,%eax
  mov    %eax,-0x20064(%rbp)
  mov    -0x20060(%rbp),%eax
  add    $0x7,%eax
  mov    %eax,-0x20060(%rbp)
  mov    -0x20028(%rbp),%rax
  lea    -0x20060(%rbp),%rdx
  lea    -0x20064(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <stbiw__zlib_flushf@plt>
  mov    %rax,-0x20028(%rbp)
  jmp    L17
L581:
  mov    -0x20058(%rbp),%eax
  add    $0xa9,%eax
  mov    $0x8,%esi
  mov    %eax,%edi
  call   <stbiw__zlib_bitrev@plt>
  mov    %eax,%edx
  mov    -0x20060(%rbp),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %eax,%edx
  mov    -0x20064(%rbp),%eax
  or     %edx,%eax
  mov    %eax,-0x20064(%rbp)
  mov    -0x20060(%rbp),%eax
  add    $0x8,%eax
  mov    %eax,-0x20060(%rbp)
  mov    -0x20028(%rbp),%rax
  lea    -0x20060(%rbp),%rdx
  lea    -0x20064(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <stbiw__zlib_flushf@plt>
  mov    %rax,-0x20028(%rbp)
L17:
  mov    -0x20058(%rbp),%eax
  cltq
  lea    D9(%rip),%rdx
  movzbl (%rax,%rdx,1),%eax
  test   %al,%al
  je     L653
  mov    -0x20058(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  lea    D56(%rip),%rax
  movzwl (%rdx,%rax,1),%eax
  movzwl %ax,%ecx
  mov    -0x20054(%rbp),%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    -0x20060(%rbp),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %eax,%edx
  mov    -0x20064(%rbp),%eax
  or     %edx,%eax
  mov    %eax,-0x20064(%rbp)
  mov    -0x20058(%rbp),%eax
  cltq
  lea    D9(%rip),%rdx
  movzbl (%rax,%rdx,1),%eax
  movzbl %al,%edx
  mov    -0x20060(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x20060(%rbp)
  mov    -0x20028(%rbp),%rax
  lea    -0x20060(%rbp),%rdx
  lea    -0x20064(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <stbiw__zlib_flushf@plt>
  mov    %rax,-0x20028(%rbp)
L653:
  movl   $0x0,-0x20058(%rbp)
  jmp    L256
L34:
  addl   $0x1,-0x20058(%rbp)
L256:
  mov    -0x20058(%rbp),%eax
  add    $0x1,%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  lea    D44(%rip),%rax
  movzwl (%rdx,%rax,1),%eax
  movzwl %ax,%eax
  cmp    %eax,-0x20030(%rbp)
  jge    L34
  mov    -0x20058(%rbp),%eax
  mov    $0x5,%esi
  mov    %eax,%edi
  call   <stbiw__zlib_bitrev@plt>
  mov    %eax,%edx
  mov    -0x20060(%rbp),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %eax,%edx
  mov    -0x20064(%rbp),%eax
  or     %edx,%eax
  mov    %eax,-0x20064(%rbp)
  mov    -0x20060(%rbp),%eax
  add    $0x5,%eax
  mov    %eax,-0x20060(%rbp)
  mov    -0x20028(%rbp),%rax
  lea    -0x20060(%rbp),%rdx
  lea    -0x20064(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <stbiw__zlib_flushf@plt>
  mov    %rax,-0x20028(%rbp)
  mov    -0x20058(%rbp),%eax
  cltq
  lea    D78(%rip),%rdx
  movzbl (%rax,%rdx,1),%eax
  test   %al,%al
  je     L486
  mov    -0x20058(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  lea    D44(%rip),%rax
  movzwl (%rdx,%rax,1),%eax
  movzwl %ax,%ecx
  mov    -0x20030(%rbp),%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    -0x20060(%rbp),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %eax,%edx
  mov    -0x20064(%rbp),%eax
  or     %edx,%eax
  mov    %eax,-0x20064(%rbp)
  mov    -0x20058(%rbp),%eax
  cltq
  lea    D78(%rip),%rdx
  movzbl (%rax,%rdx,1),%eax
  movzbl %al,%edx
  mov    -0x20060(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x20060(%rbp)
  mov    -0x20028(%rbp),%rax
  lea    -0x20060(%rbp),%rdx
  lea    -0x20064(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <stbiw__zlib_flushf@plt>
  mov    %rax,-0x20028(%rbp)
L486:
  mov    -0x20054(%rbp),%eax
  add    %eax,-0x2005c(%rbp)
  jmp    L324
L505:
  mov    -0x2005c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20078(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x8f,%al
  ja     L421
  mov    -0x2005c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20078(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    $0x30,%eax
  mov    $0x8,%esi
  mov    %eax,%edi
  call   <stbiw__zlib_bitrev@plt>
  mov    %eax,%edx
  mov    -0x20060(%rbp),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %eax,%edx
  mov    -0x20064(%rbp),%eax
  or     %edx,%eax
  mov    %eax,-0x20064(%rbp)
  mov    -0x20060(%rbp),%eax
  add    $0x8,%eax
  mov    %eax,-0x20060(%rbp)
  mov    -0x20028(%rbp),%rax
  lea    -0x20060(%rbp),%rdx
  lea    -0x20064(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <stbiw__zlib_flushf@plt>
  mov    %rax,-0x20028(%rbp)
  jmp    L243
L421:
  mov    -0x2005c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20078(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    $0x100,%eax
  mov    $0x9,%esi
  mov    %eax,%edi
  call   <stbiw__zlib_bitrev@plt>
  mov    %eax,%edx
  mov    -0x20060(%rbp),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %eax,%edx
  mov    -0x20064(%rbp),%eax
  or     %edx,%eax
  mov    %eax,-0x20064(%rbp)
  mov    -0x20060(%rbp),%eax
  add    $0x9,%eax
  mov    %eax,-0x20060(%rbp)
  mov    -0x20028(%rbp),%rax
  lea    -0x20060(%rbp),%rdx
  lea    -0x20064(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <stbiw__zlib_flushf@plt>
  mov    %rax,-0x20028(%rbp)
L243:
  addl   $0x1,-0x2005c(%rbp)
L324:
  mov    -0x2007c(%rbp),%eax
  sub    $0x3,%eax
  cmp    %eax,-0x2005c(%rbp)
  jl     L688
  jmp    L261
L334:
  mov    -0x2005c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20078(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x8f,%al
  ja     L141
  mov    -0x2005c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20078(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    $0x30,%eax
  mov    $0x8,%esi
  mov    %eax,%edi
  call   <stbiw__zlib_bitrev@plt>
  mov    %eax,%edx
  mov    -0x20060(%rbp),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %eax,%edx
  mov    -0x20064(%rbp),%eax
  or     %edx,%eax
  mov    %eax,-0x20064(%rbp)
  mov    -0x20060(%rbp),%eax
  add    $0x8,%eax
  mov    %eax,-0x20060(%rbp)
  mov    -0x20028(%rbp),%rax
  lea    -0x20060(%rbp),%rdx
  lea    -0x20064(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <stbiw__zlib_flushf@plt>
  mov    %rax,-0x20028(%rbp)
  jmp    L74
L141:
  mov    -0x2005c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20078(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    $0x100,%eax
  mov    $0x9,%esi
  mov    %eax,%edi
  call   <stbiw__zlib_bitrev@plt>
  mov    %eax,%edx
  mov    -0x20060(%rbp),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %eax,%edx
  mov    -0x20064(%rbp),%eax
  or     %edx,%eax
  mov    %eax,-0x20064(%rbp)
  mov    -0x20060(%rbp),%eax
  add    $0x9,%eax
  mov    %eax,-0x20060(%rbp)
  mov    -0x20028(%rbp),%rax
  lea    -0x20060(%rbp),%rdx
  lea    -0x20064(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <stbiw__zlib_flushf@plt>
  mov    %rax,-0x20028(%rbp)
L74:
  addl   $0x1,-0x2005c(%rbp)
L261:
  mov    -0x2005c(%rbp),%eax
  cmp    -0x2007c(%rbp),%eax
  jl     L334
  mov    $0x7,%esi
  mov    $0x0,%edi
  call   <stbiw__zlib_bitrev@plt>
  mov    %eax,%edx
  mov    -0x20060(%rbp),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %eax,%edx
  mov    -0x20064(%rbp),%eax
  or     %edx,%eax
  mov    %eax,-0x20064(%rbp)
  mov    -0x20060(%rbp),%eax
  add    $0x7,%eax
  mov    %eax,-0x20060(%rbp)
  mov    -0x20028(%rbp),%rax
  lea    -0x20060(%rbp),%rdx
  lea    -0x20064(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <stbiw__zlib_flushf@plt>
  mov    %rax,-0x20028(%rbp)
  jmp    L681
L641:
  mov    -0x20064(%rbp),%eax
  mov    %eax,-0x20064(%rbp)
  mov    -0x20060(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x20060(%rbp)
  mov    -0x20028(%rbp),%rax
  lea    -0x20060(%rbp),%rdx
  lea    -0x20064(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <stbiw__zlib_flushf@plt>
  mov    %rax,-0x20028(%rbp)
L681:
  mov    -0x20060(%rbp),%eax
  test   %eax,%eax
  jne    L641
  movl   $0x0,-0x2005c(%rbp)
  jmp    L429
L283:
  mov    -0x2005c(%rbp),%eax
  cltq
  mov    -0x20010(%rbp,%rax,8),%rax
  test   %rax,%rax
  je     L596
  mov    -0x2005c(%rbp),%eax
  cltq
  mov    -0x20010(%rbp,%rax,8),%rax
  sub    $0x8,%rax
  mov    %rax,%rdi
  call   <free@plt>
L596:
  addl   $0x1,-0x2005c(%rbp)
L429:
  cmpl   $0x3fff,-0x2005c(%rbp)
  jle    L283
  movl   $0x0,-0x20050(%rbp)
  movl   $0x1,-0x2004c(%rbp)
  movl   $0x0,-0x20048(%rbp)
  mov    -0x2007c(%rbp),%edx
  movslq %edx,%rax
  imul   $0x5e6ea9af,%rax,%rax
  shr    $0x20,%rax
  sar    $0xb,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  imul   $0x15b0,%eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x20044(%rbp)
  movl   $0x0,-0x20040(%rbp)
  jmp    L666
L524:
  movl   $0x0,-0x20050(%rbp)
  jmp    L198
L265:
  mov    -0x20040(%rbp),%edx
  mov    -0x20050(%rbp),%eax
  add    %edx,%eax
  mov    %eax,%edx
  mov    -0x20078(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x2004c(%rbp)
  mov    -0x2004c(%rbp),%eax
  add    %eax,-0x20048(%rbp)
  addl   $0x1,-0x20050(%rbp)
L198:
  mov    -0x20050(%rbp),%eax
  cmp    -0x20044(%rbp),%eax
  jb     L265
  mov    -0x2004c(%rbp),%eax
  mov    %eax,%ecx
  mov    $0x80078071,%edx
  imul   %rcx,%rdx
  shr    $0x20,%rdx
  shr    $0xf,%edx
  imul   $0xfff1,%edx,%edx
  sub    %edx,%eax
  mov    %eax,-0x2004c(%rbp)
  mov    -0x20048(%rbp),%eax
  mov    %eax,%ecx
  mov    $0x80078071,%edx
  imul   %rcx,%rdx
  shr    $0x20,%rdx
  shr    $0xf,%edx
  imul   $0xfff1,%edx,%edx
  sub    %edx,%eax
  mov    %eax,-0x20048(%rbp)
  mov    -0x20040(%rbp),%edx
  mov    -0x20044(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x20040(%rbp)
  movl   $0x15b0,-0x20044(%rbp)
L666:
  mov    -0x20040(%rbp),%eax
  cmp    -0x2007c(%rbp),%eax
  jl     L524
  mov    -0x20028(%rbp),%rax
  test   %rax,%rax
  je     L43
  mov    -0x20028(%rbp),%rax
  sub    $0x4,%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x20028(%rbp),%rax
  sub    $0x8,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jl     L630
L43:
  lea    -0x20028(%rbp),%rax
  mov    $0x1,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <stbiw__sbgrowf@plt>
  nop
L630:
  mov    -0x20048(%rbp),%eax
  shr    $0x8,%eax
  mov    %eax,%edi
  mov    -0x20028(%rbp),%rsi
  mov    -0x20028(%rbp),%rax
  sub    $0x4,%rax
  mov    (%rax),%edx
  lea    0x1(%rdx),%ecx
  mov    %ecx,(%rax)
  movslq %edx,%rax
  add    %rsi,%rax
  mov    %edi,%edx
  mov    %dl,(%rax)
  mov    -0x20028(%rbp),%rax
  test   %rax,%rax
  je     L482
  mov    -0x20028(%rbp),%rax
  sub    $0x4,%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x20028(%rbp),%rax
  sub    $0x8,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jl     L242
L482:
  lea    -0x20028(%rbp),%rax
  mov    $0x1,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <stbiw__sbgrowf@plt>
  nop
L242:
  mov    -0x20028(%rbp),%rsi
  mov    -0x20028(%rbp),%rax
  sub    $0x4,%rax
  mov    (%rax),%edx
  lea    0x1(%rdx),%ecx
  mov    %ecx,(%rax)
  movslq %edx,%rax
  add    %rsi,%rax
  mov    -0x20048(%rbp),%edx
  mov    %dl,(%rax)
  mov    -0x20028(%rbp),%rax
  test   %rax,%rax
  je     L528
  mov    -0x20028(%rbp),%rax
  sub    $0x4,%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x20028(%rbp),%rax
  sub    $0x8,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jl     L687
L528:
  lea    -0x20028(%rbp),%rax
  mov    $0x1,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <stbiw__sbgrowf@plt>
  nop
L687:
  mov    -0x2004c(%rbp),%eax
  shr    $0x8,%eax
  mov    %eax,%edi
  mov    -0x20028(%rbp),%rsi
  mov    -0x20028(%rbp),%rax
  sub    $0x4,%rax
  mov    (%rax),%edx
  lea    0x1(%rdx),%ecx
  mov    %ecx,(%rax)
  movslq %edx,%rax
  add    %rsi,%rax
  mov    %edi,%edx
  mov    %dl,(%rax)
  mov    -0x20028(%rbp),%rax
  test   %rax,%rax
  je     L416
  mov    -0x20028(%rbp),%rax
  sub    $0x4,%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x20028(%rbp),%rax
  sub    $0x8,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jl     L105
L416:
  lea    -0x20028(%rbp),%rax
  mov    $0x1,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <stbiw__sbgrowf@plt>
  nop
L105:
  mov    -0x20028(%rbp),%rsi
  mov    -0x20028(%rbp),%rax
  sub    $0x4,%rax
  mov    (%rax),%edx
  lea    0x1(%rdx),%ecx
  mov    %ecx,(%rax)
  movslq %edx,%rax
  add    %rsi,%rax
  mov    -0x2004c(%rbp),%edx
  mov    %dl,(%rax)
  mov    -0x20028(%rbp),%rax
  mov    -0x4(%rax),%edx
  mov    -0x20088(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x20088(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x20028(%rbp),%rax
  mov    -0x20028(%rbp),%rcx
  sub    $0x8,%rcx
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <memmove@plt>
  mov    -0x20028(%rbp),%rax
  sub    $0x8,%rax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L366
  call   <__stack_chk_fail@plt>
L366:
  leave
  ret
```

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