user: 请将以下的汇编代码转换成C语言代码:

```asm
<tokenizer>:
  endbr64
  mov    %rdi,%rcx
  mov    %rdx,%rdi
  test   %rcx,%rcx
  je     L80
  mov    %rcx,D15(%rip)
L53:
  mov    %rcx,%rdx
  xor    %r9d,%r9d
L191:
  xor    %r8d,%r8d
  jmp    L8
  nopl   (%rax)
L45:
  movzbl (%rdx),%eax
  test   %al,%al
  je     L243
  mov    $0x1,%r8d
  cmp    %sil,%al
  jne    L95
L8:
  test   %r8d,%r8d
  je     L45
  test   %r9d,%r9d
  je     L5
  lea    0x1(%rcx),%rsi
  mov    %rdi,%rdx
  lea    -0x1(%r9),%eax
  sub    %rsi,%rdx
  cmp    $0xe,%rdx
  jbe    L158
  cmp    $0x6,%eax
  jbe    L158
  cmp    $0xe,%eax
  jbe    L165
  mov    %r9d,%edx
  xor    %eax,%eax
  shr    $0x4,%edx
  shl    $0x4,%rdx
  cs nopw 0x0(%rax,%rax,1)
L76:
  movdqu (%rcx,%rax,1),%xmm0
  movups %xmm0,(%rdi,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rdx
  jne    L76
  mov    %r9d,%eax
  mov    %r9d,%esi
  and    $0xfffffff0,%eax
  mov    %eax,%r10d
  lea    (%rcx,%r10,1),%rdx
  cmp    %eax,%r9d
  je     L247
  mov    %r9d,%r11d
  sub    %eax,%r11d
  lea    -0x1(%r11),%esi
  cmp    $0x6,%esi
  jbe    L146
L94:
  mov    (%rcx,%r10,1),%rsi
  mov    %rsi,(%rdi,%r10,1)
  mov    %r11d,%r10d
  and    $0xfffffff8,%r10d
  mov    %r10d,%esi
  add    %r10d,%eax
  add    %rsi,%rdx
  mov    %r9d,%esi
  cmp    %r10d,%r11d
  je     L247
L146:
  movzbl (%rdx),%r10d
  movslq %eax,%rsi
  mov    %r10b,(%rdi,%rsi,1)
  lea    0x1(%rax),%r10d
  mov    %r9d,%esi
  cmp    %r10d,%r9d
  jle    L247
  movzbl 0x1(%rdx),%r11d
  movslq %r10d,%r10
  mov    %r11b,(%rdi,%r10,1)
  lea    0x2(%rax),%r10d
  cmp    %r10d,%r9d
  jle    L247
  movzbl 0x2(%rdx),%r11d
  movslq %r10d,%r10
  mov    %r11b,(%rdi,%r10,1)
  lea    0x3(%rax),%r10d
  cmp    %r10d,%r9d
  jle    L247
  movzbl 0x3(%rdx),%r11d
  movslq %r10d,%r10
  mov    %r11b,(%rdi,%r10,1)
  lea    0x4(%rax),%r10d
  cmp    %r10d,%r9d
  jle    L247
  movzbl 0x4(%rdx),%r11d
  movslq %r10d,%r10
  mov    %r11b,(%rdi,%r10,1)
  lea    0x5(%rax),%r10d
  cmp    %r10d,%r9d
  jle    L247
  movzbl 0x5(%rdx),%r11d
  movslq %r10d,%r10
  add    $0x6,%eax
  mov    %r11b,(%rdi,%r10,1)
  cmp    %eax,%r9d
  jle    L247
  movzbl 0x6(%rdx),%edx
  cltq
  mov    %dl,(%rdi,%rax,1)
L247:
  add    %rsi,%rcx
L5:
  movslq %r9d,%r9
  add    $0x1,%rcx
  mov    %r8d,%eax
  movb   $0x0,(%rdi,%r9,1)
  mov    %rcx,D20(%rip)
  ret
L80:
  mov    D20(%rip),%rcx
  test   %rcx,%rcx
  je     L243
  cmpb   $0x0,(%rcx)
  jne    L53
L243:
  xor    %r8d,%r8d
  mov    %r8d,%eax
  ret
  nopl   0x0(%rax)
L95:
  add    $0x1,%rdx
  add    $0x1,%r9d
  jmp    L191
L158:
  mov    %r9d,%esi
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L114:
  movzbl (%rcx,%rax,1),%edx
  mov    %dl,(%rdi,%rax,1)
  add    $0x1,%rax
  cmp    %rsi,%rax
  jne    L114
  add    %rsi,%rcx
  jmp    L5
L165:
  mov    %r9d,%r11d
  mov    %rcx,%rdx
  xor    %eax,%eax
  xor    %r10d,%r10d
  jmp    L94
```

assistant: ```c
int tokenizer(char *str, const char delim, char *token) {
  static char *last;
  int found = 0, length = 0;
  char *check;
  int i;
  if (str)
    last = str;
  else if (!last || *last == 0)
    return 0;
  check = last;
  while (check && !found && last[length]) {
    if (*check == delim)
      found = 1;
    else {
      check++;
      length++;
    }
  }
  if (!found)
    return 0;
  for (i = 0; i < length; i++) {
    token[i] = *last++;
  }
  token[length] = 0;
  last++;
  return 1;
}
```