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

```asm
<smaz_decompress_custom>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %edx,-0x44(%rbp)
  mov    %rcx,-0x50(%rbp)
  mov    %r8d,-0x48(%rbp)
  mov    -0x40(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x50(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x48(%rbp),%eax
  mov    %eax,-0x24(%rbp)
  jmp    L98
L30:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0xfe,%al
  jne    L19
  cmpl   $0x0,-0x48(%rbp)
  jg     L13
  mov    -0x24(%rbp),%eax
  add    $0x1,%eax
  jmp    L77
L13:
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  mov    %eax,%edx
  mov    -0x50(%rbp),%rax
  mov    %dl,(%rax)
  addq   $0x1,-0x50(%rbp)
  subl   $0x1,-0x48(%rbp)
  addq   $0x2,-0x18(%rbp)
  subl   $0x2,-0x44(%rbp)
  jmp    L98
L19:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0xff,%al
  jne    L106
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    $0x1,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x48(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jge    L79
  mov    -0x24(%rbp),%eax
  add    $0x1,%eax
  jmp    L77
L79:
  mov    -0x18(%rbp),%rax
  lea    0x2(%rax),%rcx
  mov    -0x1c(%rbp),%edx
  mov    -0x50(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <memcpy@plt>
  mov    -0x1c(%rbp),%eax
  cltq
  add    %rax,-0x50(%rbp)
  mov    -0x1c(%rbp),%eax
  sub    %eax,-0x48(%rbp)
  mov    -0x1c(%rbp),%eax
  add    $0x2,%eax
  cltq
  add    %rax,-0x18(%rbp)
  mov    -0x1c(%rbp),%eax
  add    $0x2,%eax
  sub    %eax,-0x44(%rbp)
  jmp    L98
L106:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x20(%rbp)
  mov    -0x48(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jge    L74
  mov    -0x24(%rbp),%eax
  add    $0x1,%eax
  jmp    L77
L74:
  mov    -0x20(%rbp),%edx
  mov    -0x8(%rbp),%rcx
  mov    -0x50(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <memcpy@plt>
  mov    -0x20(%rbp),%eax
  cltq
  add    %rax,-0x50(%rbp)
  mov    -0x20(%rbp),%eax
  sub    %eax,-0x48(%rbp)
  addq   $0x1,-0x18(%rbp)
  subl   $0x1,-0x44(%rbp)
L98:
  cmpl   $0x0,-0x44(%rbp)
  jne    L30
  mov    -0x50(%rbp),%rax
  sub    -0x10(%rbp),%rax
L77:
  leave
  ret
```

assistant: ```c
int smaz_decompress_custom(char *cb[254], char *in, int inlen, char *out, int outlen) {
  unsigned char *c = (unsigned char *)in;
  char *_out = out;
  int _outlen = outlen;
  while (inlen) {
    if (*c == 254) {
      if (outlen < 1)
        return _outlen + 1;
      *out = *(c + 1);
      out++;
      outlen--;
      c += 2;
      inlen -= 2;
    } else if (*c == 255) {
      int len = (*(c + 1)) + 1;
      if (outlen < len)
        return _outlen + 1;
      memcpy(out, c + 2, len);
      out += len;
      outlen -= len;
      c += 2 + len;
      inlen -= 2 + len;
    } else {
      char *s = cb[*c];
      int len = strlen(s);
      if (outlen < len)
        return _outlen + 1;
      memcpy(out, s, len);
      out += len;
      outlen -= len;
      c++;
      inlen--;
    }
  }
  return out - _out;
}
```