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

```asm
<mkargv>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %edx,-0x64(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x44(%rbp)
  mov    -0x60(%rbp),%rax
  mov    %rax,-0x38(%rbp)
  lea    D41(%rip),%rax
  mov    %rax,-0x30(%rbp)
  cmpq   $0x0,-0x58(%rbp)
  jne    L56
  mov    -0x44(%rbp),%eax
  jmp    L30
L56:
  mov    $0x80,%edx
  mov    $0x0,%esi
  lea    D5(%rip),%rax
  mov    %rax,%rdi
  call   <memset@plt>
  mov    -0x58(%rbp),%rax
  mov    $0x7f,%edx
  mov    %rax,%rsi
  lea    D5(%rip),%rax
  mov    %rax,%rdi
  call   <strncpy@plt>
  lea    D5(%rip),%rax
  mov    %rax,-0x40(%rbp)
  mov    -0x40(%rbp),%rbx
  lea    D5(%rip),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cltq
  add    %rbx,%rax
  mov    %rax,-0x28(%rbp)
  jmp    L22
L95:
  mov    -0x40(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x22,%al
  jne    L48
  mov    -0x40(%rbp),%rax
  add    $0x1,%rax
  mov    $0x22,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x20(%rbp)
  cmpq   $0x0,-0x20(%rbp)
  je     L139
  mov    -0x20(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x40(%rbp),%rax
  add    $0x1,%rax
  cmp    %rax,-0x20(%rbp)
  jbe    L69
  mov    -0x40(%rbp),%rcx
  mov    -0x44(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x44(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  lea    0x1(%rcx),%rdx
  mov    %rdx,(%rax)
L69:
  addq   $0x1,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  mov    %rax,-0x40(%rbp)
  jmp    L22
L48:
  mov    -0x30(%rbp),%rdx
  lea    -0x40(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strsep@plt>
  mov    %rax,-0x20(%rbp)
  cmpq   $0x0,-0x20(%rbp)
  je     L113
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L53
  mov    -0x44(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x44(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  mov    -0x20(%rbp),%rax
  mov    %rax,(%rdx)
L53:
  nop
L22:
  mov    -0x40(%rbp),%rax
  test   %rax,%rax
  je     L77
  mov    -0x40(%rbp),%rax
  cmp    %rax,-0x28(%rbp)
  ja     L95
  jmp    L77
L139:
  nop
  jmp    L108
L113:
  nop
  jmp    L108
L77:
  nop
L108:
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movq   $0x0,(%rax)
  mov    -0x44(%rbp),%eax
L30:
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L97
  call   <__stack_chk_fail@plt>
L97:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D41
type_infered: string

tool: D41: =/ 	

assistant: ```c
int mkargv(char *str, char **argv, int max) {
  int n = 0;
  char *p, *q, *es;
  char **args = argv;
  char *sep = "=/ \t";
  static char buf[(128)];
  if (str == NULL)
    return n;
  memset(buf, 0, sizeof(buf));
  strncpy(buf, str, sizeof(buf) - 1);
  p = buf;
  es = p + strlen(buf);
  while (p && p < es) {
    if (*p == '"') {
      q = strchr(p + 1, '"');
      if (!q)
        goto ret;
      *q = '\0';
      if (q > p + 1)
        args[n++] = p + 1;
      p = ++q;
      continue;
    }
    if ((q = strsep(&p, sep)) != NULL) {
      if (*q != '\0')
        args[n++] = q;
      continue;
    }
    break;
  }
ret:
  args[n] = NULL;
  return n;
}
```