user: Please show me the C implementation that matches the assembly code listed below:

```asm
<test_ft_memset>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    D134(%rip),%rdi
  call   <puts@plt>
  lea    D104(%rip),%rdi
  mov    $0x0,%eax
  call   <_it@plt>
  lea    0x3(%rsp),%rdi
  movl   $0x62626262,0x3(%rsp)
  movb   $0x62,0x7(%rsp)
  mov    $0x0,%edx
  mov    $0x61,%esi
  mov    $0x0,%eax
  call   <ft_memset@plt>
  mov    $0x0,%eax
  call   <_begin_assert@plt>
  cmpb   $0x61,0x3(%rsp)
  je     L144
  mov    $0x0,%eax
  call   <_begin_assert@plt>
  cmpb   $0x61,0x4(%rsp)
  je     L14
  lea    0x3(%rsp),%rdi
  movl   $0x62626262,0x3(%rsp)
  movb   $0x62,0x7(%rsp)
  mov    $0x1,%edx
  mov    $0x61,%esi
  mov    $0x0,%eax
  call   <ft_memset@plt>
  mov    $0x0,%eax
  call   <_begin_assert@plt>
  cmpb   $0x61,0x3(%rsp)
  je     L29
  mov    $0x0,%eax
  call   <_fail_test@plt>
  mov    $0x1f,%edi
  mov    $0x0,%eax
  call   <_color@plt>
  mov    $0x23,%edx
  lea    D99(%rip),%rsi
  lea    D118(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%edi
  mov    $0x0,%eax
  call   <_color@plt>
  mov    $0x1,%eax
L54:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L130
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  ret
L144:
  mov    $0x0,%eax
  call   <_fail_test@plt>
  mov    $0x1f,%edi
  mov    $0x0,%eax
  call   <_color@plt>
  mov    $0x1d,%edx
  lea    D99(%rip),%rsi
  lea    D118(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%edi
  mov    $0x0,%eax
  call   <_color@plt>
  mov    $0x1,%eax
  jmp    L54
L14:
  mov    $0x0,%eax
  call   <_fail_test@plt>
  mov    $0x1f,%edi
  mov    $0x0,%eax
  call   <_color@plt>
  mov    $0x1e,%edx
  lea    D99(%rip),%rsi
  lea    D118(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%edi
  mov    $0x0,%eax
  call   <_color@plt>
  mov    $0x1,%eax
  jmp    L54
L29:
  mov    $0x0,%eax
  call   <_begin_assert@plt>
  cmpb   $0x61,0x4(%rsp)
  je     L67
  lea    0x3(%rsp),%rbx
  movl   $0x62626262,0x3(%rsp)
  movb   $0x62,0x7(%rsp)
  mov    $0x4,%edx
  mov    $0x61,%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <ft_memset@plt>
  lea    0x7(%rsp),%rbp
L32:
  mov    $0x0,%eax
  call   <_begin_assert@plt>
  cmpb   $0x61,(%rbx)
  jne    L23
  add    $0x1,%rbx
  cmp    %rbp,%rbx
  jne    L32
  mov    $0x0,%eax
  call   <_begin_assert@plt>
  cmpb   $0x61,0x7(%rsp)
  je     L150
  lea    D84(%rip),%rdi
  mov    $0x0,%eax
  call   <_it@plt>
  mov    $0x0,%eax
  call   <_begin_assert@plt>
  lea    0x3(%rsp),%rbx
  mov    $0x0,%edx
  mov    $0x61,%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <ft_memset@plt>
  cltq
  cmp    %rax,%rbx
  je     L189
  mov    $0x0,%eax
  call   <_fail_test@plt>
  mov    $0x1f,%edi
  mov    $0x0,%eax
  call   <_color@plt>
  mov    $0x30,%edx
  lea    D99(%rip),%rsi
  lea    D118(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%edi
  mov    $0x0,%eax
  call   <_color@plt>
  mov    $0x1,%eax
  jmp    L54
L67:
  mov    $0x0,%eax
  call   <_fail_test@plt>
  mov    $0x1f,%edi
  mov    $0x0,%eax
  call   <_color@plt>
  mov    $0x24,%edx
  lea    D99(%rip),%rsi
  lea    D118(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%edi
  mov    $0x0,%eax
  call   <_color@plt>
  mov    $0x1,%eax
  jmp    L54
L23:
  mov    $0x0,%eax
  call   <_fail_test@plt>
  mov    $0x1f,%edi
  mov    $0x0,%eax
  call   <_color@plt>
  mov    $0x2b,%edx
  lea    D99(%rip),%rsi
  lea    D118(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%edi
  mov    $0x0,%eax
  call   <_color@plt>
  mov    $0x1,%eax
  jmp    L54
L150:
  mov    $0x0,%eax
  call   <_fail_test@plt>
  mov    $0x1f,%edi
  mov    $0x0,%eax
  call   <_color@plt>
  mov    $0x2c,%edx
  lea    D99(%rip),%rsi
  lea    D118(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%edi
  mov    $0x0,%eax
  call   <_color@plt>
  mov    $0x1,%eax
  jmp    L54
L189:
  mov    $0x0,%eax
  call   <_begin_assert@plt>
  lea    0x3(%rsp),%rbx
  mov    $0x1,%edx
  mov    $0x61,%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <ft_memset@plt>
  cltq
  cmp    %rax,%rbx
  je     L65
  mov    $0x0,%eax
  call   <_fail_test@plt>
  mov    $0x1f,%edi
  mov    $0x0,%eax
  call   <_color@plt>
  mov    $0x31,%edx
  lea    D99(%rip),%rsi
  lea    D118(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%edi
  mov    $0x0,%eax
  call   <_color@plt>
  mov    $0x1,%eax
  jmp    L54
L65:
  mov    $0x0,%eax
  call   <_begin_assert@plt>
  lea    0x3(%rsp),%rbx
  mov    $0x4,%edx
  mov    $0x61,%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <ft_memset@plt>
  cltq
  cmp    %rax,%rbx
  je     L163
  mov    $0x0,%eax
  call   <_fail_test@plt>
  mov    $0x1f,%edi
  mov    $0x0,%eax
  call   <_color@plt>
  mov    $0x32,%edx
  lea    D99(%rip),%rsi
  lea    D118(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%edi
  mov    $0x0,%eax
  call   <_color@plt>
  mov    $0x1,%eax
  jmp    L54
L163:
  mov    $0x0,%eax
  call   <_close_pending@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    $0x0,%eax
  jmp    L54
L130:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D134
type_guessed: string
name: read_data
arguments: label: D104
type_guessed: string
name: read_data
arguments: label: D99
type_guessed: string
name: read_data
arguments: label: D118
type_guessed: string
name: read_data
arguments: label: D84
type_guessed: string

tool: D134: ft_memset

tool: D104: should write len bytes of value c to the string b

tool: D99: test_ft_memset

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


tool: D84: return its first argument

assistant: ```c
int test_ft_memset() {
  char src = 'a';
  char dst[5];
  printf("%s\n", __func__ + 5);
  _it("should write len bytes of value c to the string b");
  memset(dst, src + 1, 5);
  ft_memset(dst, src, 0);
  do {
    _begin_assert();
    if (!(dst[0] != src)) {
      _fail_test();
      do {
        _color(31);
        printf("\nfailure in %s() line %d\n", __func__, 29);
        _color(0);
      } while (0);
      return 1;
    }
  } while (0);
  do {
    _begin_assert();
    if (!(dst[1] != src)) {
      _fail_test();
      do {
        _color(31);
        printf("\nfailure in %s() line %d\n", __func__, 30);
        _color(0);
      } while (0);
      return 1;
    }
  } while (0);
  memset(dst, src + 1, 5);
  ft_memset(dst, src, 1);
  do {
    _begin_assert();
    if (!(dst[0] == src)) {
      _fail_test();
      do {
        _color(31);
        printf("\nfailure in %s() line %d\n", __func__, 35);
        _color(0);
      } while (0);
      return 1;
    }
  } while (0);
  do {
    _begin_assert();
    if (!(dst[1] != src)) {
      _fail_test();
      do {
        _color(31);
        printf("\nfailure in %s() line %d\n", __func__, 36);
        _color(0);
      } while (0);
      return 1;
    }
  } while (0);
  memset(dst, src + 1, 5);
  ft_memset(dst, src, 4);
  int i = -1;
  while (++i < 4)
    do {
      _begin_assert();
      if (!(dst[i] == src)) {
        _fail_test();
        do {
          _color(31);
          printf("\nfailure in %s() line %d\n", __func__, 43);
          _color(0);
        } while (0);
        return 1;
      }
    } while (0);
  do {
    _begin_assert();
    if (!(dst[4] != src)) {
      _fail_test();
      do {
        _color(31);
        printf("\nfailure in %s() line %d\n", __func__, 44);
        _color(0);
      } while (0);
      return 1;
    }
  } while (0);
  _it("return its first argument");
  do {
    _begin_assert();
    if (!(dst == ft_memset(dst, src, 0))) {
      _fail_test();
      do {
        _color(31);
        printf("\nfailure in %s() line %d\n", __func__, 48);
        _color(0);
      } while (0);
      return 1;
    }
  } while (0);
  do {
    _begin_assert();
    if (!(dst == ft_memset(dst, src, 1))) {
      _fail_test();
      do {
        _color(31);
        printf("\nfailure in %s() line %d\n", __func__, 49);
        _color(0);
      } while (0);
      return 1;
    }
  } while (0);
  do {
    _begin_assert();
    if (!(dst == ft_memset(dst, src, 4))) {
      _fail_test();
      do {
        _color(31);
        printf("\nfailure in %s() line %d\n", __func__, 50);
        _color(0);
      } while (0);
      return 1;
    }
  } while (0);
  do {
    _close_pending();
    printf("\n");
    return (0);
  } while (0);
}
```