user: Translate the below assembly code into C programming language:

```asm
<LZ_CompressFast>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x480,%rsp
  mov    %rdi,-0x468(%rbp)
  mov    %rsi,-0x470(%rbp)
  mov    %edx,-0x474(%rbp)
  mov    %rcx,-0x480(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  cmpl   $0x0,-0x474(%rbp)
  jne    L237
  mov    $0x0,%eax
  jmp    L131
L237:
  mov    -0x480(%rbp),%rax
  mov    %rax,-0x430(%rbp)
  mov    -0x480(%rbp),%rax
  add    $0x40000,%rax
  mov    %rax,-0x428(%rbp)
  movl   $0x0,-0x450(%rbp)
  jmp    L117
L166:
  mov    -0x450(%rbp),%eax
  lea    0x0(,%rax,4),%rdx
  mov    -0x430(%rbp),%rax
  add    %rdx,%rax
  movl   $0xffffffff,(%rax)
  addl   $0x1,-0x450(%rbp)
L117:
  cmpl   $0xffff,-0x450(%rbp)
  jbe    L166
  movl   $0x0,-0x450(%rbp)
  jmp    L157
L182:
  mov    -0x450(%rbp),%edx
  mov    -0x468(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  mov    %eax,%edx
  mov    -0x450(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%ecx
  mov    -0x468(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  or     %edx,%eax
  mov    %eax,-0x434(%rbp)
  mov    -0x434(%rbp),%eax
  lea    0x0(,%rax,4),%rdx
  mov    -0x430(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x44c(%rbp)
  mov    -0x434(%rbp),%eax
  lea    0x0(,%rax,4),%rdx
  mov    -0x430(%rbp),%rax
  add    %rax,%rdx
  mov    -0x450(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x450(%rbp),%eax
  lea    0x0(,%rax,4),%rdx
  mov    -0x428(%rbp),%rax
  add    %rax,%rdx
  mov    -0x44c(%rbp),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x450(%rbp)
L157:
  mov    -0x474(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x450(%rbp)
  jb     L182
  mov    -0x474(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  mov    -0x428(%rbp),%rax
  add    %rdx,%rax
  movl   $0xffffffff,(%rax)
  movl   $0x0,-0x450(%rbp)
  jmp    L50
L338:
  mov    -0x450(%rbp),%eax
  movl   $0x0,-0x410(%rbp,%rax,4)
  addl   $0x1,-0x450(%rbp)
L50:
  cmpl   $0xff,-0x450(%rbp)
  jbe    L338
  movl   $0x0,-0x450(%rbp)
  jmp    L93
L218:
  mov    -0x450(%rbp),%edx
  mov    -0x468(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  movslq %eax,%rdx
  mov    -0x410(%rbp,%rdx,4),%edx
  add    $0x1,%edx
  cltq
  mov    %edx,-0x410(%rbp,%rax,4)
  addl   $0x1,-0x450(%rbp)
L93:
  mov    -0x450(%rbp),%eax
  cmp    -0x474(%rbp),%eax
  jb     L218
  movb   $0x0,-0x45e(%rbp)
  movl   $0x1,-0x450(%rbp)
  jmp    L280
L167:
  mov    -0x450(%rbp),%eax
  mov    -0x410(%rbp,%rax,4),%edx
  movzbl -0x45e(%rbp),%eax
  cltq
  mov    -0x410(%rbp,%rax,4),%eax
  cmp    %eax,%edx
  jae    L203
  mov    -0x450(%rbp),%eax
  mov    %al,-0x45e(%rbp)
L203:
  addl   $0x1,-0x450(%rbp)
L280:
  cmpl   $0xff,-0x450(%rbp)
  jbe    L167
  mov    -0x470(%rbp),%rax
  movzbl -0x45e(%rbp),%edx
  mov    %dl,(%rax)
  movl   $0x0,-0x45c(%rbp)
  movl   $0x1,-0x458(%rbp)
  mov    -0x474(%rbp),%eax
  mov    %eax,-0x454(%rbp)
L34:
  mov    -0x45c(%rbp),%edx
  mov    -0x468(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x420(%rbp)
  movl   $0x3,-0x444(%rbp)
  movl   $0x0,-0x448(%rbp)
  mov    -0x45c(%rbp),%eax
  lea    0x0(,%rax,4),%rdx
  mov    -0x428(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x44c(%rbp)
  jmp    L149
L290:
  mov    -0x44c(%rbp),%edx
  mov    -0x468(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x418(%rbp)
  mov    -0x444(%rbp),%edx
  mov    -0x418(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x444(%rbp),%ecx
  mov    -0x420(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jne    L307
  mov    -0x45c(%rbp),%eax
  sub    -0x44c(%rbp),%eax
  mov    %eax,-0x440(%rbp)
  mov    -0x440(%rbp),%edx
  mov    -0x454(%rbp),%eax
  cmp    %eax,%edx
  cmovbe %edx,%eax
  mov    %eax,-0x43c(%rbp)
  mov    -0x43c(%rbp),%edx
  mov    -0x418(%rbp),%rsi
  mov    -0x420(%rbp),%rax
  mov    %edx,%ecx
  mov    $0x2,%edx
  mov    %rax,%rdi
  call   <_LZ_StringCompare@plt>
  mov    %eax,-0x438(%rbp)
  mov    -0x438(%rbp),%eax
  cmp    -0x444(%rbp),%eax
  jbe    L307
  mov    -0x438(%rbp),%eax
  mov    %eax,-0x444(%rbp)
  mov    -0x440(%rbp),%eax
  mov    %eax,-0x448(%rbp)
L307:
  mov    -0x44c(%rbp),%eax
  lea    0x0(,%rax,4),%rdx
  mov    -0x428(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x44c(%rbp)
L149:
  cmpl   $0xffffffff,-0x44c(%rbp)
  je     L39
  mov    -0x45c(%rbp),%eax
  sub    -0x44c(%rbp),%eax
  cmp    $0x1869f,%eax
  jbe    L290
L39:
  cmpl   $0x7,-0x444(%rbp)
  ja     L302
  cmpl   $0x4,-0x444(%rbp)
  jne    L38
  cmpl   $0x7f,-0x448(%rbp)
  jbe    L302
L38:
  cmpl   $0x5,-0x444(%rbp)
  jne    L342
  cmpl   $0x3fff,-0x448(%rbp)
  jbe    L302
L342:
  cmpl   $0x6,-0x444(%rbp)
  jne    L288
  cmpl   $0x1fffff,-0x448(%rbp)
  jbe    L302
L288:
  cmpl   $0x7,-0x444(%rbp)
  jne    L40
  cmpl   $0xfffffff,-0x448(%rbp)
  ja     L40
L302:
  mov    -0x458(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x458(%rbp)
  mov    %eax,%edx
  mov    -0x470(%rbp),%rax
  add    %rax,%rdx
  movzbl -0x45e(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0x458(%rbp),%edx
  mov    -0x470(%rbp),%rax
  add    %rax,%rdx
  mov    -0x444(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <_LZ_WriteVarSize@plt>
  add    %eax,-0x458(%rbp)
  mov    -0x458(%rbp),%edx
  mov    -0x470(%rbp),%rax
  add    %rax,%rdx
  mov    -0x448(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <_LZ_WriteVarSize@plt>
  add    %eax,-0x458(%rbp)
  mov    -0x444(%rbp),%eax
  add    %eax,-0x45c(%rbp)
  mov    -0x444(%rbp),%eax
  sub    %eax,-0x454(%rbp)
  jmp    L347
L40:
  mov    -0x45c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x45c(%rbp)
  mov    %eax,%edx
  mov    -0x468(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %al,-0x45d(%rbp)
  mov    -0x458(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x458(%rbp)
  mov    %eax,%edx
  mov    -0x470(%rbp),%rax
  add    %rax,%rdx
  movzbl -0x45d(%rbp),%eax
  mov    %al,(%rdx)
  movzbl -0x45d(%rbp),%eax
  cmp    -0x45e(%rbp),%al
  jne    L137
  mov    -0x458(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x458(%rbp)
  mov    %eax,%edx
  mov    -0x470(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
L137:
  subl   $0x1,-0x454(%rbp)
L347:
  cmpl   $0x3,-0x454(%rbp)
  ja     L34
  jmp    L293
L100:
  mov    -0x45c(%rbp),%edx
  mov    -0x468(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    %al,-0x45e(%rbp)
  jne    L86
  mov    -0x458(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x458(%rbp)
  mov    %eax,%edx
  mov    -0x470(%rbp),%rax
  add    %rax,%rdx
  movzbl -0x45e(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0x458(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x458(%rbp)
  mov    %eax,%edx
  mov    -0x470(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  jmp    L65
L86:
  mov    -0x45c(%rbp),%edx
  mov    -0x468(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x458(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x458(%rbp)
  mov    %eax,%edx
  mov    -0x470(%rbp),%rax
  add    %rax,%rdx
  movzbl (%rcx),%eax
  mov    %al,(%rdx)
L65:
  addl   $0x1,-0x45c(%rbp)
L293:
  mov    -0x45c(%rbp),%eax
  cmp    -0x474(%rbp),%eax
  jb     L100
  mov    -0x458(%rbp),%eax
L131:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L230
  call   <__stack_chk_fail@plt>
L230:
  leave
  ret
```

assistant: ```c
int LZ_CompressFast(unsigned char *in, unsigned char *out, unsigned int insize, unsigned int *work) {
  unsigned char marker, symbol;
  unsigned int inpos, outpos, bytesleft, i, index, symbols;
  unsigned int offset, bestoffset;
  unsigned int maxlength, length, bestlength;
  unsigned int histogram[256], *lastindex, *jumptable;
  unsigned char *ptr1, *ptr2;
  if (insize < 1) {
    return 0;
  }
  lastindex = work;
  jumptable = &work[65536];
  for (i = 0; i < 65536; ++i) {
    lastindex[i] = 0xffffffff;
  }
  for (i = 0; i < insize - 1; ++i) {
    symbols = (((unsigned int)in[i]) << 8) | ((unsigned int)in[i + 1]);
    index = lastindex[symbols];
    lastindex[symbols] = i;
    jumptable[i] = index;
  }
  jumptable[insize - 1] = 0xffffffff;
  for (i = 0; i < 256; ++i) {
    histogram[i] = 0;
  }
  for (i = 0; i < insize; ++i) {
    ++histogram[in[i]];
  }
  marker = 0;
  for (i = 1; i < 256; ++i) {
    if (histogram[i] < histogram[marker]) {
      marker = i;
    }
  }
  out[0] = marker;
  inpos = 0;
  outpos = 1;
  bytesleft = insize;
  do {
    ptr1 = &in[inpos];
    bestlength = 3;
    bestoffset = 0;
    index = jumptable[inpos];
    while ((index != 0xffffffff) && ((inpos - index) < 100000)) {
      ptr2 = &in[index];
      if (ptr2[bestlength] == ptr1[bestlength]) {
        offset = inpos - index;
        maxlength = (bytesleft < offset ? bytesleft : offset);
        length = _LZ_StringCompare(ptr1, ptr2, 2, maxlength);
        if (length > bestlength) {
          bestlength = length;
          bestoffset = offset;
        }
      }
      index = jumptable[index];
    }
    if ((bestlength >= 8) || ((bestlength == 4) && (bestoffset <= 0x0000007f)) || ((bestlength == 5) && (bestoffset <= 0x00003fff)) || ((bestlength == 6) && (bestoffset <= 0x001fffff)) || ((bestlength == 7) && (bestoffset <= 0x0fffffff))) {
      out[outpos++] = (unsigned char)marker;
      outpos += _LZ_WriteVarSize(bestlength, &out[outpos]);
      outpos += _LZ_WriteVarSize(bestoffset, &out[outpos]);
      inpos += bestlength;
      bytesleft -= bestlength;
    } else {
      symbol = in[inpos++];
      out[outpos++] = symbol;
      if (symbol == marker) {
        out[outpos++] = 0;
      }
      --bytesleft;
    }
  } while (bytesleft > 3);
  while (inpos < insize) {
    if (in[inpos] == marker) {
      out[outpos++] = marker;
      out[outpos++] = 0;
    } else {
      out[outpos++] = in[inpos];
    }
    ++inpos;
  }
  return outpos;
}
```