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

```asm
<fossilize>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  cmpl   $0x0,-0x2c(%rbp)
  jns    L2
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x2c(%rbp)
L2:
  movl   $0x0,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0x18(%rbp)
  jmp    L255
L196:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0xc(%rbp)
  cmpl   $0x0,-0xc(%rbp)
  je     L59
  cmpl   $0x20,-0xc(%rbp)
  je     L59
  cmpl   $0xa,-0xc(%rbp)
  je     L59
  cmpl   $0x9,-0xc(%rbp)
  je     L59
  cmpl   $0xd,-0xc(%rbp)
  je     L59
  cmpl   $0xc,-0xc(%rbp)
  je     L59
  cmpl   $0xb,-0xc(%rbp)
  je     L59
  cmpl   $0x5c,-0xc(%rbp)
  jne    L223
L59:
  addl   $0x1,-0x1c(%rbp)
L223:
  addl   $0x1,-0x18(%rbp)
L255:
  mov    -0x18(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L196
  mov    -0x2c(%rbp),%eax
  add    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  je     L103
  movl   $0x0,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  mov    %eax,-0x18(%rbp)
  jmp    L162
L160:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x10(%rbp)
  cmpl   $0x0,-0x10(%rbp)
  jne    L256
  mov    -0x14(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x14(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x5c,(%rax)
  mov    -0x14(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x14(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x30,(%rax)
  jmp    L96
L256:
  cmpl   $0x5c,-0x10(%rbp)
  jne    L32
  mov    -0x14(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x14(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x5c,(%rax)
  mov    -0x14(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x14(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x5c,(%rax)
  jmp    L96
L32:
  mov    -0x10(%rbp),%eax
  mov    %eax,%edi
  call   <fossil_isspace@plt>
  test   %rax,%rax
  je     L44
  mov    -0x14(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x14(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x5c,(%rax)
  mov    -0x10(%rbp),%eax
  sub    $0x9,%eax
  cmp    $0x17,%eax
  ja     L178
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  lea    D5(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D5(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  movl   $0x6e,-0x10(%rbp)
  jmp    L178
  movl   $0x73,-0x10(%rbp)
  jmp    L178
  movl   $0x74,-0x10(%rbp)
  jmp    L178
  movl   $0x72,-0x10(%rbp)
  jmp    L178
  movl   $0x76,-0x10(%rbp)
  jmp    L178
  movl   $0x66,-0x10(%rbp)
  nop
L178:
  mov    -0x14(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x14(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    -0x10(%rbp),%edx
  mov    %dl,(%rax)
  jmp    L96
L44:
  mov    -0x14(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x14(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    -0x10(%rbp),%edx
  mov    %dl,(%rax)
L96:
  addl   $0x1,-0x18(%rbp)
L162:
  mov    -0x18(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L160
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
L103:
  mov    -0x8(%rbp),%rax
  leave
  ret
```

assistant: ```c
char *fossilize(const char *zIn, int nIn) {
  int n, i, j, c;
  char *zOut;
  if (nIn < 0)
    nIn = strlen(zIn);
  for (i = n = 0; i < nIn; i++) {
    c = zIn[i];
    if (c == 0 || c == ' ' || c == '\n' || c == '\t' || c == '\r' || c == '\f' || c == '\v' || c == '\\')
      n++;
  }
  n += nIn;
  zOut = malloc(n + 1);
  if (zOut) {
    for (i = j = 0; i < nIn; i++) {
      int c = zIn[i];
      if (c == 0) {
        zOut[j++] = '\\';
        zOut[j++] = '0';
      } else if (c == '\\') {
        zOut[j++] = '\\';
        zOut[j++] = '\\';
      } else if (fossil_isspace(c)) {
        zOut[j++] = '\\';
        switch (c) {
        case '\n':
          c = 'n';
          break;
        case ' ':
          c = 's';
          break;
        case '\t':
          c = 't';
          break;
        case '\r':
          c = 'r';
          break;
        case '\v':
          c = 'v';
          break;
        case '\f':
          c = 'f';
          break;
        }
        zOut[j++] = c;
      } else {
        zOut[j++] = c;
      }
    }
    zOut[j] = 0;
  }
  return zOut;
}
```