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

```asm
<ft_strdup>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x8,%rsp
  cmpb   $0x0,(%rdi)
  je     L196
  xor    %eax,%eax
  nopl   0x0(%rax)
L206:
  mov    %eax,%ebp
  mov    %eax,%r12d
  add    $0x1,%rax
  cmpb   $0x0,(%rbx,%rax,1)
  jne    L206
  lea    0x2(%rbp),%r13d
  mov    %r13d,%edi
  call   <malloc@plt>
  mov    %rax,%r8
  test   %rax,%rax
  je     L81
  lea    0x1(%rbx),%rsi
  mov    %rax,%rcx
  lea    0x1(%rbp),%edx
  sub    %rsi,%rcx
  cmp    $0xe,%rcx
  jbe    L154
  cmp    $0x6,%edx
  jbe    L154
  cmp    $0xe,%edx
  jbe    L156
  mov    %r13d,%ecx
  mov    %rbx,%rsi
  mov    %rax,%rdx
  shr    $0x4,%ecx
  sub    %rax,%rsi
  shl    $0x4,%rcx
  add    %rax,%rcx
  cs nopw 0x0(%rax,%rax,1)
L82:
  movdqu (%rdx,%rsi,1),%xmm0
  add    $0x10,%rdx
  movups %xmm0,-0x10(%rdx)
  cmp    %rcx,%rdx
  jne    L82
  mov    %r13d,%ecx
  and    $0xfffffff0,%ecx
  mov    %ecx,%edx
  cmp    %ecx,%r13d
  je     L100
L62:
  sub    %ecx,%ebp
  lea    0x2(%rbp),%esi
  add    $0x1,%ebp
  cmp    $0x6,%ebp
  jbe    L106
  mov    (%rbx,%rcx,1),%rdi
  mov    %rdi,(%rax,%rcx,1)
  mov    %esi,%ecx
  and    $0xfffffff8,%ecx
  add    %ecx,%edx
  cmp    %ecx,%esi
  je     L100
L106:
  movslq %edx,%rcx
  movzbl (%rbx,%rcx,1),%esi
  mov    %sil,(%rax,%rcx,1)
  lea    0x1(%rdx),%ecx
  cmp    %edx,%r12d
  jl     L100
  movslq %ecx,%rsi
  movzbl (%rbx,%rsi,1),%edi
  mov    %dil,(%rax,%rsi,1)
  lea    0x2(%rdx),%esi
  cmp    %ecx,%r12d
  jl     L100
  movslq %esi,%rcx
  movzbl (%rbx,%rcx,1),%edi
  mov    %dil,(%rax,%rcx,1)
  lea    0x3(%rdx),%ecx
  cmp    %esi,%r12d
  jl     L100
  movslq %ecx,%rsi
  movzbl (%rbx,%rsi,1),%edi
  mov    %dil,(%rax,%rsi,1)
  lea    0x4(%rdx),%esi
  cmp    %ecx,%r12d
  jl     L100
  movslq %esi,%rcx
  movzbl (%rbx,%rcx,1),%edi
  mov    %dil,(%rax,%rcx,1)
  lea    0x5(%rdx),%ecx
  cmp    %esi,%r12d
  jl     L100
  movslq %ecx,%rsi
  add    $0x6,%edx
  movzbl (%rbx,%rsi,1),%edi
  mov    %dil,(%rax,%rsi,1)
  cmp    %ecx,%r12d
  jl     L100
  movslq %edx,%rdx
  movzbl (%rbx,%rdx,1),%ecx
  mov    %cl,(%rax,%rdx,1)
L100:
  movslq %r13d,%r13
L110:
  movb   $0x0,(%r8,%r13,1)
  add    $0x8,%rsp
  mov    %r8,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   (%rax)
L81:
  add    $0x8,%rsp
  xor    %r8d,%r8d
  pop    %rbx
  mov    %r8,%rax
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L154:
  mov    %r13d,%ecx
  sub    %rax,%rbx
  add    %rax,%rcx
  nopl   0x0(%rax)
L56:
  movzbl (%rbx,%rax,1),%edx
  add    $0x1,%rax
  mov    %dl,-0x1(%rax)
  cmp    %rax,%rcx
  jne    L56
  jmp    L100
  nopw   0x0(%rax,%rax,1)
L196:
  mov    $0x1,%edi
  call   <malloc@plt>
  mov    %rax,%r8
  test   %rax,%rax
  je     L81
  movzbl (%rbx),%eax
  mov    $0x1,%r13d
  mov    %al,(%r8)
  jmp    L110
L156:
  xor    %ecx,%ecx
  xor    %edx,%edx
  jmp    L62
```

assistant: ```c
char *ft_strdup(char *src) {
  int i;
  int len;
  char *str;
  i = 0;
  len = 0;
  while (src[len])
    len++;
  str = (char *)malloc(sizeof(*str) * (len + 1));
  if (str == NULL)
    return (NULL);
  while (i <= len) {
    str[i] = src[i];
    i++;
  }
  str[i] = '\0';
  return (str);
}
```