user: Converte this assembly snippet into its equivalent C code:

```asm
<test_ft_strdup>:
  endbr64
  push   %r13
  lea    D46(%rip),%rdi
  push   %r12
  push   %rbp
  lea    D65(%rip),%rbp
  call   <puts@plt>
  lea    D64(%rip),%rdi
  xor    %eax,%eax
  call   <_it@plt>
  xor    %eax,%eax
  call   <_begin_assert@plt>
  mov    %rbp,%rdi
  call   <strdup@plt>
  mov    %rbp,%rdi
  mov    %rax,%r12
  xor    %eax,%eax
  call   <ft_strdup@plt>
  mov    %r12,%rsi
  mov    %eax,%edi
  call   <strcmp@plt>
  test   %eax,%eax
  mov    $0x0,%eax
  jne    L1
  call   <_begin_assert@plt>
  lea    D17(%rip),%r13
  mov    %r13,%rdi
  call   <strdup@plt>
  mov    %r13,%rdi
  mov    %rax,%rbp
  xor    %eax,%eax
  call   <ft_strdup@plt>
  mov    %rbp,%rsi
  mov    %eax,%edi
  call   <strcmp@plt>
  mov    %eax,%r12d
  test   %eax,%eax
  jne    L2
  lea    D11(%rip),%rdi
  xor    %eax,%eax
  call   <_itx@plt>
  xor    %eax,%eax
  call   <_close_pending@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    %r12d,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopw   0x0(%rax,%rax,1)
L2:
  xor    %eax,%eax
  call   <_fail_test@plt>
  mov    $0x1f,%edi
  xor    %eax,%eax
  call   <_color@plt>
  mov    $0x45,%edx
  lea    D70(%rip),%rsi
  xor    %eax,%eax
  lea    D14(%rip),%rdi
  call   <printf@plt>
  xor    %edi,%edi
  xor    %eax,%eax
  call   <_color@plt>
  mov    %r13,%rdi
  call   <strdup@plt>
  mov    %r13,%rdi
  mov    %rax,%r12
L23:
  xor    %eax,%eax
  call   <ft_strdup@plt>
  mov    %r12,%rdx
  lea    D12(%rip),%rdi
  mov    $0x1,%r12d
  movslq %eax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12d,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  xchg   %ax,%ax
L1:
  call   <_fail_test@plt>
  mov    $0x1f,%edi
  xor    %eax,%eax
  call   <_color@plt>
  mov    $0x43,%edx
  lea    D70(%rip),%rsi
  xor    %eax,%eax
  lea    D14(%rip),%rdi
  call   <printf@plt>
  xor    %edi,%edi
  xor    %eax,%eax
  call   <_color@plt>
  mov    %rbp,%rdi
  call   <strdup@plt>
  mov    %rbp,%rdi
  mov    %rax,%r12
  jmp    L23
```

tool_calls: name: parse_data
arguments: tag: D46
type_infered: string
name: parse_data
arguments: tag: D65
type_infered: string
name: parse_data
arguments: tag: D64
type_infered: string
name: parse_data
arguments: tag: D17
type_infered: string
name: parse_data
arguments: tag: D11
type_infered: string
name: parse_data
arguments: tag: D70
type_infered: string
name: parse_data
arguments: tag: D14
type_infered: string
name: parse_data
arguments: tag: D12
type_infered: string

tool: D46: ft_strdup

tool: 

tool: D64: should return a pointer to the copy of the string s1

tool: D17: ;nh[wERNO;

tool: D11: should return NULL on malloc fail

tool: D70: test_ft_strdup

tool: D14: 
failure in %s() line %d


tool: D12: expected "%s" to equal "%s"



assistant: ```c
int test_ft_strdup() {
  char *s;
  printf("%s\n", __func__ + 5);
  _it("should return a pointer to the copy of the string s1");
  s = "";
  do {
    _begin_assert();
    if (strcmp(ft_strdup(s), strdup(s))) {
      _fail_test();
      do {
        _color(31);
        printf("\nfailure in %s() line %d\n", __func__, 67);
        _color(0);
      } while (0);
      printf("expected \"%s\" to equal \"%s\"\n\n", (char *)ft_strdup(s), (char *)strdup(s));
      return 1;
    }
  } while (0);
  s = ";nh[wERNO;";
  do {
    _begin_assert();
    if (strcmp(ft_strdup(s), strdup(s))) {
      _fail_test();
      do {
        _color(31);
        printf("\nfailure in %s() line %d\n", __func__, 69);
        _color(0);
      } while (0);
      printf("expected \"%s\" to equal \"%s\"\n\n", (char *)ft_strdup(s), (char *)strdup(s));
      return 1;
    }
  } while (0);
  _itx("should return NULL on malloc fail");
  do {
    _close_pending();
    printf("\n");
    return (0);
  } while (0);
}
```