user: What is the c source code of the assembly code below?

```asm
<ft_strtrim>:
  endbr64
  test   %rdi,%rdi
  je     L176
  push   %r12
  push   %rbp
  push   %rbx
  movzbl (%rdi),%eax
  mov    %rdi,%rbx
  cmp    $0x2c,%al
  ja     L155
  movabs $0xffffeffefffff9ff,%rdi
  bt     %rax,%rdi
  jb     L155
  mov    $0x1,%ecx
  lea    -0x1(%rbx),%rsi
  mov    %rbx,%rax
  sub    %rbx,%rcx
  nopw   0x0(%rax,%rax,1)
L66:
  lea    (%rax,%rcx,1),%rbp
  movzbl 0x1(%rax),%edx
  add    $0x1,%rax
  cmp    $0x2c,%dl
  ja     L256
  bt     %rdx,%rdi
  jb     L256
  cmp    %rax,%rsi
  jne    L66
L205:
  xor    %ebp,%ebp
  cs nopw 0x0(%rax,%rax,1)
L256:
  mov    %rax,%rdx
  lea    0x1(%rax),%rax
  cmpb   $0x0,0x1(%rdx)
  jne    L256
  movabs $0x100100000600,%rcx
  movzbl -0x1(%rax),%eax
  test   %al,%al
  je     L248
  nop
L200:
  cmp    $0x2c,%al
  ja     L248
  bt     %rax,%rcx
  jb     L302
L248:
  mov    %rbx,%rdi
  call   <ft_strlen@plt>
  lea    0x1(%rax),%r12
  sub    %rbp,%r12
  mov    %r12,%rdi
  call   <malloc@plt>
  mov    %rax,%rsi
  mov    %rax,%r8
  test   %rax,%rax
  je     L307
  movzbl (%rbx),%eax
  cmp    $0x2c,%al
  ja     L46
  movabs $0xffffeffefffff9ff,%rdx
  nopl   (%rax)
L235:
  bt     %rax,%rdx
  jb     L46
  movzbl 0x1(%rbx),%eax
  add    $0x1,%rbx
  cmp    $0x2c,%al
  jbe    L235
L46:
  mov    %r12,%rdi
  sub    $0x1,%rdi
  je     L31
  lea    0x1(%rbx),%rcx
  mov    %rsi,%rdx
  lea    -0x2(%r12),%rax
  sub    %rcx,%rdx
  cmp    $0xe,%rdx
  jbe    L3
  cmp    $0x6,%rax
  jbe    L3
  cmp    $0xe,%rax
  jbe    L147
  lea    -0x11(%r12),%rax
  mov    %rbx,%r9
  xor    %ecx,%ecx
  shr    $0x4,%rax
  sub    %rsi,%r9
  lea    0x1(%rax),%rdx
  mov    %rsi,%rax
  nopl   0x0(%rax)
L319:
  movdqu (%rax,%r9,1),%xmm0
  add    $0x1,%rcx
  add    $0x10,%rax
  movups %xmm0,-0x10(%rax)
  cmp    %rdx,%rcx
  jb     L319
  mov    %rdx,%rax
  mov    %rdi,%r9
  shl    $0x4,%rax
  lea    (%rbx,%rax,1),%rdx
  lea    (%rsi,%rax,1),%rcx
  sub    %rax,%r9
  cmp    %rax,%rdi
  je     L118
  sub    %rax,%r12
  lea    -0x1(%r12),%r10
  sub    $0x2,%r12
  cmp    $0x6,%r12
  jbe    L127
L292:
  mov    (%rbx,%rax,1),%r11
  mov    %r11,(%rsi,%rax,1)
  mov    %r10,%rax
  and    $0xfffffffffffffff8,%rax
  add    %rax,%rdx
  add    %rax,%rcx
  sub    %rax,%r9
  cmp    %rax,%r10
  je     L118
L127:
  movzbl (%rdx),%eax
  mov    %al,(%rcx)
  cmp    $0x1,%r9
  je     L118
  movzbl 0x1(%rdx),%eax
  mov    %al,0x1(%rcx)
  cmp    $0x2,%r9
  je     L118
  movzbl 0x2(%rdx),%eax
  mov    %al,0x2(%rcx)
  cmp    $0x3,%r9
  je     L118
  movzbl 0x3(%rdx),%eax
  mov    %al,0x3(%rcx)
  cmp    $0x4,%r9
  je     L118
  movzbl 0x4(%rdx),%eax
  mov    %al,0x4(%rcx)
  cmp    $0x5,%r9
  je     L118
  movzbl 0x5(%rdx),%eax
  mov    %al,0x5(%rcx)
  cmp    $0x6,%r9
  je     L118
  movzbl 0x6(%rdx),%eax
  mov    %al,0x6(%rcx)
L118:
  add    %rsi,%rdi
L263:
  movb   $0x0,(%rdi)
  mov    %r8,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   (%rax)
L155:
  mov    %rbx,%rax
  jmp    L205
L302:
  movzbl -0x1(%rdx),%eax
  sub    $0x1,%rdx
  add    $0x1,%rbp
  test   %al,%al
  jne    L200
  jmp    L248
L307:
  xor    %r8d,%r8d
  pop    %rbx
  pop    %rbp
  mov    %r8,%rax
  pop    %r12
  ret
L3:
  lea    -0x1(%rsi,%r12,1),%r9
  mov    %rsi,%rax
  sub    %rsi,%rbx
  nop
L158:
  mov    %rax,%rdx
  movzbl (%rax,%rbx,1),%ecx
  add    $0x1,%rax
  mov    %cl,(%rdx)
  cmp    %r9,%rax
  jne    L158
  jmp    L118
L31:
  mov    %rsi,%rdi
  jmp    L263
L147:
  mov    %rdi,%r10
  mov    %rdi,%r9
  mov    %rsi,%rcx
  mov    %rbx,%rdx
  xor    %eax,%eax
  jmp    L292
L176:
  xor    %eax,%eax
  ret
```

assistant: ```c
char *ft_strtrim(char const *s) {
  unsigned long ct;
  char *cp;
  char *str;
  ct = 0;
  cp = (char *)s;
  if (s == NULL)
    return (NULL);
  while ((*s == 10 || *s == 9 || *s == 44 || *s == 32) && ++ct)
    s++;
  while (*++s)
    ;
  while (*--s && (*s == 10 || *s == 9 || *s == 44 || *s == 32))
    ct++;
  s = cp;
  ct = ft_strlen(s) - ct;
  if (!(str = (char *)malloc(++ct * sizeof(*str))))
    return (NULL);
  cp = str;
  while ((*s == 10 || *s == 9 || *s == 44 || *s == 32))
    s++;
  while (--ct)
    *str++ = *s++;
  *str = 0x00;
  return (cp);
}
```