user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<lz_compress>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  movslq %edx,%rbx
  mov    %rbx,%r13
  sub    $0x48,%rsp
  mov    %rdi,0x28(%rsp)
  mov    $0x1d4ec,%edi
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  call   <malloc@plt>
  mov    $0x1d4ec,%edx
  mov    $0xff,%esi
  mov    %rax,%rdi
  mov    %rax,%r12
  call   <memset@plt>
  lea    0x0(,%rbx,4),%edi
  call   <malloc@plt>
  mov    %rax,%r14
  test   %ebx,%ebx
  jle    L9
  mov    $0xff,%esi
  lea    0x0(,%rbx,4),%rdx
  mov    %rax,%rdi
  call   <memset@plt>
  lea    -0x2(%rbx),%esi
  test   %esi,%esi
  jle    L33
  lea    -0x3(%rbx),%r8d
  xor    %edi,%edi
  nopl   0x0(%rax)
L127:
  mov    0x0(%rbp,%rdi,4),%eax
  mov    0x4(%rbp,%rdi,4),%edx
  shl    $0x10,%eax
  shl    $0x8,%edx
  or     %edx,%eax
  or     0x8(%rbp,%rdi,4),%eax
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0xffffffff8bc24683,%rdx,%rdx
  sar    $0x1f,%ecx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0xe,%edx
  sub    %ecx,%edx
  imul   $0x753b,%edx,%edx
  sub    %edx,%eax
  cltq
  lea    (%r12,%rax,4),%rax
  mov    (%rax),%edx
  mov    %edx,(%r14,%rdi,4)
  mov    %edi,(%rax)
  mov    %rdi,%rax
  add    $0x1,%rdi
  cmp    %rax,%r8
  jne    L127
  mov    %r13d,%eax
  mov    %r13d,%ebx
  lea    0x4(%r13),%r15d
  sar    $0x18,%eax
  sar    $0x8,%ebx
  mov    %eax,0x10(%rsp)
  mov    %r13d,%eax
  sar    $0x10,%eax
  mov    %eax,0x8(%rsp)
L108:
  lea    -0x1(%r13),%eax
  sub    %esi,%eax
  movslq %esi,%rsi
  lea    (%r14,%rsi,4),%rdi
  lea    0x4(,%rax,4),%rdx
  mov    $0xff,%esi
  call   <memset@plt>
  mov    %r12,%rdi
  call   <free@plt>
  mov    %r15d,%edi
  call   <malloc@plt>
  mov    0x10(%rsp),%esi
  mov    %ebx,0x8(%rax)
  lea    0x10(%rax),%r12
  xor    %ebx,%ebx
  mov    %esi,(%rax)
  mov    0x8(%rsp),%esi
  mov    %rax,0x20(%rsp)
  mov    %esi,0x4(%rax)
  mov    %r13d,0xc(%rax)
  lea    0x30(%rsp),%rax
  mov    %r14,0x8(%rsp)
  mov    %r13d,%r14d
  mov    %rax,0x10(%rsp)
  jmp    L123
L174:
  mov    0x0(%r13),%eax
  add    $0x4,%r12
  mov    %r8d,%ebx
  mov    %eax,-0x4(%r12)
L68:
  cmp    %r14d,%ebx
  jge    L8
L123:
  movslq %ebx,%rax
  lea    0x0(%rbp,%rax,4),%r13
  cmpl   $0x7f,0x0(%r13)
  jg     L168
  mov    0x8(%rsp),%rcx
  mov    0x10(%rsp),%rdi
  mov    %ebx,%r8d
  mov    %r14d,%edx
  mov    %rbp,%rsi
  call   <find_longest_match@plt>
  lea    0x1(%rbx),%r8d
  mov    %eax,%r15d
  cmp    $0x2,%eax
  jle    L174
  mov    0x8(%rsp),%rcx
  lea    0x34(%rsp),%rdi
  mov    %r14d,%edx
  mov    %rbp,%rsi
  mov    %r8d,0x1c(%rsp)
  call   <find_longest_match@plt>
  mov    0x1c(%rsp),%r8d
  cmp    %eax,%r15d
  jl     L174
  cmp    $0x12,%r15d
  jg     L98
  mov    0x30(%rsp),%ecx
  cmp    $0x3ff,%ecx
  jg     L98
  lea    -0x3(%r15),%eax
  add    %r15d,%ebx
  add    $0x8,%r12
  shl    $0xa,%eax
  or     %ecx,%eax
  or     $0x80,%ah
  movslq %eax,%rcx
  mov    %eax,-0x4(%r12)
  shr    $0x8,%rcx
  mov    %ecx,-0x8(%r12)
  cmp    %r14d,%ebx
  jl     L123
L8:
  mov    0x8(%rsp),%r14
L140:
  mov    %r14,%rdi
  call   <free@plt>
  mov    0x28(%rsp),%rax
  mov    0x20(%rsp),%rsi
  mov    %rsi,(%rax)
  mov    %r12,%rax
  sub    %rsi,%rax
  sar    $0x2,%rax
  jmp    L63
  nopl   0x0(%rax)
L98:
  lea    -0x4(%r15),%eax
  cmp    $0x3f,%eax
  ja     L174
  mov    0x30(%rsp),%ecx
  cmp    $0xffff,%ecx
  jg     L174
  shl    $0x10,%eax
  add    %r15d,%ebx
  add    $0xc,%r12
  or     %ecx,%eax
  or     $0xc00000,%eax
  movslq %eax,%rcx
  mov    %eax,-0x4(%r12)
  mov    %rcx,%rdi
  shr    $0x8,%rcx
  shr    $0x10,%rdi
  mov    %ecx,-0x8(%r12)
  mov    %edi,-0xc(%r12)
  jmp    L68
L168:
  mov    $0xffffffff,%eax
L63:
  mov    0x38(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L11
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L9:
  mov    %r12,%rdi
  call   <free@plt>
  lea    0x4(%rbx),%edi
  call   <malloc@plt>
  mov    %rax,%rsi
  mov    %rax,0x20(%rsp)
  mov    %ebx,%eax
  sar    $0x18,%eax
  mov    %ebx,0xc(%rsi)
  lea    0x10(%rsi),%r12
  mov    %eax,(%rsi)
  mov    %ebx,%eax
  sar    $0x10,%eax
  mov    %eax,0x4(%rsi)
  mov    %ebx,%eax
  sar    $0x8,%eax
  mov    %eax,0x8(%rsi)
  jmp    L140
L33:
  mov    %ebx,%eax
  lea    0x4(%rbx),%r15d
  xor    %esi,%esi
  sar    $0x18,%eax
  mov    %eax,0x10(%rsp)
  mov    %ebx,%eax
  sar    $0x8,%ebx
  sar    $0x10,%eax
  mov    %eax,0x8(%rsp)
  jmp    L108
L11:
  call   <__stack_chk_fail@plt>
```

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