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

```asm
<lz_compress>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %edx,-0x64(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    $0x1d4ec,%edi
  call   <malloc@plt>
  mov    %rax,-0x30(%rbp)
  movl   $0x0,-0x44(%rbp)
  jmp    L176
L33:
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movl   $0xffffffff,(%rax)
  addl   $0x1,-0x44(%rbp)
L176:
  cmpl   $0x753a,-0x44(%rbp)
  jle    L33
  mov    -0x64(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x28(%rbp)
  movl   $0x0,-0x44(%rbp)
  jmp    L181
L196:
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movl   $0xffffffff,(%rax)
  addl   $0x1,-0x44(%rbp)
L181:
  mov    -0x44(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L196
  movl   $0x0,-0x44(%rbp)
  jmp    L67
L114:
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  shl    $0x10,%eax
  mov    %eax,%edx
  mov    -0x44(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rcx
  mov    -0x60(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  shl    $0x8,%eax
  or     %eax,%edx
  mov    -0x44(%rbp),%eax
  cltq
  add    $0x2,%rax
  lea    0x0(,%rax,4),%rcx
  mov    -0x60(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  or     %edx,%eax
  movslq %eax,%rdx
  imul   $0xffffffff8bc24683,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0xe,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x753b,%edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  movslq %edx,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    -0x44(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x28(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x10(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x44(%rbp),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x44(%rbp)
L67:
  mov    -0x64(%rbp),%eax
  sub    $0x2,%eax
  cmp    %eax,-0x44(%rbp)
  jl     L114
  jmp    L242
L174:
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movl   $0xffffffff,(%rax)
  addl   $0x1,-0x44(%rbp)
L242:
  mov    -0x44(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L174
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x64(%rbp),%eax
  add    $0x4,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  mov    %rax,-0x38(%rbp)
  mov    -0x38(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  mov    -0x64(%rbp),%edx
  sar    $0x18,%edx
  mov    %edx,(%rax)
  mov    -0x38(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  mov    -0x64(%rbp),%edx
  sar    $0x10,%edx
  mov    %edx,(%rax)
  mov    -0x38(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  mov    -0x64(%rbp),%edx
  sar    $0x8,%edx
  mov    %edx,(%rax)
  mov    -0x38(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  mov    -0x64(%rbp),%edx
  mov    %edx,(%rax)
  movl   $0x0,-0x44(%rbp)
  jmp    L107
L147:
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0x7f,%eax
  jle    L148
  mov    $0xffffffff,%eax
  jmp    L214
L148:
  mov    -0x44(%rbp),%edi
  mov    -0x28(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%rsi
  lea    -0x4c(%rbp),%rax
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <find_longest_match@plt>
  mov    %eax,-0x40(%rbp)
  cmpl   $0x2,-0x40(%rbp)
  jle    L96
  mov    -0x44(%rbp),%eax
  lea    0x1(%rax),%edi
  mov    -0x28(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%rsi
  lea    -0x48(%rbp),%rax
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <find_longest_match@plt>
  mov    %eax,-0x3c(%rbp)
  mov    -0x3c(%rbp),%eax
  cmp    -0x40(%rbp),%eax
  jg     L51
L96:
  cmpl   $0x2,-0x40(%rbp)
  jg     L89
  jmp    L189
L51:
  nop
  jmp    L189
L239:
  nop
L189:
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x60(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x38(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  mov    (%rcx),%edx
  mov    %edx,(%rax)
  addl   $0x1,-0x44(%rbp)
  jmp    L107
L89:
  cmpl   $0x12,-0x40(%rbp)
  jg     L0
  mov    -0x4c(%rbp),%eax
  cmp    $0x3ff,%eax
  jg     L0
  mov    -0x40(%rbp),%eax
  sub    $0x3,%eax
  shl    $0xa,%eax
  or     $0x80,%ah
  mov    %eax,%edx
  mov    -0x4c(%rbp),%eax
  or     %edx,%eax
  cltq
  mov    %rax,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  shr    $0x8,%rax
  mov    %rax,%rcx
  mov    -0x38(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  mov    %ecx,%edx
  mov    %edx,(%rax)
  mov    -0x38(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  mov    -0x18(%rbp),%rdx
  mov    %edx,(%rax)
  mov    -0x40(%rbp),%eax
  add    %eax,-0x44(%rbp)
  jmp    L107
L0:
  cmpl   $0x3,-0x40(%rbp)
  jle    L239
  cmpl   $0x43,-0x40(%rbp)
  jg     L239
  mov    -0x4c(%rbp),%eax
  cmp    $0xffff,%eax
  jg     L239
  mov    -0x40(%rbp),%eax
  sub    $0x4,%eax
  shl    $0x10,%eax
  or     $0xc00000,%eax
  mov    %eax,%edx
  mov    -0x4c(%rbp),%eax
  or     %edx,%eax
  cltq
  mov    %rax,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  shr    $0x10,%rax
  mov    %rax,%rcx
  mov    -0x38(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  mov    %ecx,%edx
  mov    %edx,(%rax)
  mov    -0x18(%rbp),%rax
  shr    $0x8,%rax
  mov    %rax,%rcx
  mov    -0x38(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  mov    %ecx,%edx
  mov    %edx,(%rax)
  mov    -0x38(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  mov    -0x18(%rbp),%rdx
  mov    %edx,(%rax)
  mov    -0x40(%rbp),%eax
  add    %eax,-0x44(%rbp)
L107:
  mov    -0x44(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L147
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x58(%rbp),%rax
  mov    -0x20(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x38(%rbp),%rax
  sub    -0x20(%rbp),%rax
  sar    $0x2,%rax
L214:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L166
  call   <__stack_chk_fail@plt>
L166:
  leave
  ret
```

assistant: ```c
int lz_compress(uint8_t **pdst, const uint8_t *src, int src_len) {
  int *hash_table, *hash_next;
  uint32_t h, v;
  int i, dist, len, len1, dist1;
  uint8_t *dst, *q;
  hash_table = malloc(sizeof(hash_table[0]) * 30011);
  for (i = 0; i < 30011; i++)
    hash_table[i] = -1;
  hash_next = malloc(sizeof(hash_next[0]) * src_len);
  for (i = 0; i < src_len; i++)
    hash_next[i] = -1;
  for (i = 0; i < src_len - 3 + 1; i++) {
    h = ((src[i] << 16) | (src[i + 1] << 8) | src[i + 2]) % 30011;
    hash_next[i] = hash_table[h];
    hash_table[h] = i;
  }
  for (; i < src_len; i++) {
    hash_next[i] = -1;
  }
  free(hash_table);
  dst = malloc(src_len + 4);
  q = dst;
  *q++ = src_len >> 24;
  *q++ = src_len >> 16;
  *q++ = src_len >> 8;
  *q++ = src_len >> 0;
  i = 0;
  while (i < src_len) {
    if (src[i] >= 128)
      return -1;
    len = find_longest_match(&dist, src, src_len, hash_next, i);
    if (len >= 3) {
      len1 = find_longest_match(&dist1, src, src_len, hash_next, i + 1);
      if (len1 > len)
        goto no_match;
    }
    if (len < 3) {
    no_match:
      *q++ = src[i];
      i++;
    } else if (len <= (3 + 15) && dist < (1 << 10)) {
      v = 0x8000 | ((len - 3) << 10) | dist;
      *q++ = v >> 8;
      *q++ = v;
      i += len;
    } else if (len >= 4 && len <= (4 + 63) && dist < (1 << 16)) {
      v = 0xc00000 | ((len - 4) << 16) | dist;
      *q++ = v >> 16;
      *q++ = v >> 8;
      *q++ = v;
      i += len;
    } else {
      goto no_match;
    }
  }
  free(hash_next);
  *pdst = dst;
  return q - dst;
}
```