user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<argize>:
  endbr64
  push   %r15
  mov    %rdx,%r15
  xor    %edx,%edx
  push   %r14
  mov    %rcx,%r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  lea    D3(%rip),%r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  mov    %rbx,%rbp
  sub    $0x8,%rsp
  movl   $0x0,(%rsi)
  movzbl (%rdi),%edi
  nopl   0x0(%rax,%rax,1)
L16:
  test   %dil,%dil
  je     L14
  mov    %edx,%ecx
L2:
  cmp    $0x5,%edx
  ja     L2
  movslq (%r12,%rcx,4),%rax
  add    %r12,%rax
  notrack jmp *%rax
  xchg   %ax,%ax
L13:
  add    $0x1,%rbx
  movzbl (%rbx),%edi
  call   <isspace@plt>
  test   %eax,%eax
  jne    L13
  add    $0x1,%rbp
  cmpb   $0x0,(%rbx)
  jne    L104
L14:
  movb   $0x0,0x0(%rbp)
  add    $0x8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L104:
  movslq 0x0(%r13),%rdx
  mov    %rdx,%rax
  cmp    %r14,%rdx
  jae    L105
  add    $0x1,%eax
  mov    %eax,0x0(%r13)
  mov    %rbp,(%r15,%rdx,8)
  movzbl (%rbx),%edi
  movzbl %dil,%edi
  call   <isspace@plt>
  lea    0x1(%rbx),%rdx
  test   %eax,%eax
  je     L146
  movb   $0x0,(%rbx)
  add    $0x1,%rbp
  movb   $0x0,-0x1(%rbp)
  movzbl 0x1(%rbx),%edi
  mov    %rdx,%rbx
  xor    %edx,%edx
  jmp    L16
  nopl   0x0(%rax)
  mov    %dil,0x0(%rbp)
  add    $0x1,%rbx
  movzbl (%rbx),%edi
  add    $0x1,%rbp
  mov    $0x3,%edx
  jmp    L16
  nopl   0x0(%rax)
  lea    0x1(%rbx),%rax
  cmp    $0x22,%dil
  je     L56
  cmp    $0x5c,%dil
  je     L23
  mov    %dil,0x0(%rbp)
  add    $0x1,%rbp
  movzbl 0x1(%rbx),%edi
  mov    %rax,%rbx
  jmp    L16
  nopl   0x0(%rax)
  mov    %dil,0x0(%rbp)
  add    $0x1,%rbx
  movzbl (%rbx),%edi
  add    $0x1,%rbp
  mov    $0x2,%edx
  jmp    L16
  nopl   0x0(%rax)
L146:
  movzbl (%rbx),%eax
  cmp    $0x22,%al
  je     L70
  cmp    $0x5c,%al
  je     L167
  mov    %al,0x0(%rbp)
  add    $0x1,%rbp
  movzbl 0x1(%rbx),%edi
  mov    %rdx,%rbx
  mov    $0x2,%edx
  jmp    L16
  nopl   0x0(%rax,%rax,1)
L23:
  movzbl 0x1(%rbx),%edi
  mov    $0x5,%edx
  mov    %rax,%rbx
  jmp    L16
  nopl   0x0(%rax)
L56:
  movzbl 0x1(%rbx),%edi
  mov    $0x2,%edx
  mov    %rax,%rbx
  jmp    L16
  nopl   0x0(%rax)
L70:
  movzbl 0x1(%rbx),%edi
  mov    %rdx,%rbx
  mov    $0x3,%edx
  jmp    L16
  nopl   0x0(%rax)
L167:
  movzbl 0x1(%rbx),%edi
  mov    %rdx,%rbx
  mov    $0x4,%edx
  jmp    L16
L105:
  add    $0x8,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
int argize(char *cmdline, int *const argc, char *argv[], const size_t argvlen) {
  char *p, *q;
  int state;
  p = q = cmdline;
  *argc = 0;
  state = 0;
  while (*p) {
    switch (state) {
    case 0:
      while (isspace((unsigned char)*p))
        p++;
      q++;
      if (!*p)
        break;
      state = 1;
      ;
    case 1:
      if ((size_t)*argc < argvlen)
        argv[(*argc)++] = q;
      else
        return 1;
      state = 2;
    case 2:
      if (isspace((unsigned char)*p)) {
        *q++ = *p++ = '\0';
        state = 0;
      } else if (*p == '"') {
        p++;
        state = 3;
      } else if (*p == '\\') {
        p++;
        state = 4;
      } else
        *q++ = *p++;
      break;
    case 3:
      switch (*p) {
      case '"':
        p++;
        state = 2;
        break;
      case '\\':
        p++;
        state = 5;
        break;
      default:
        *q++ = *p++;
        break;
      }
      break;
    case 4:
      *q++ = *p++;
      state = 2;
      break;
    case 5:
      *q++ = *p++;
      state = 3;
      break;
    }
  }
  *q = '\0';
  return 0;
}
```