user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<strtok_r>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rdx,%r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x8,%rsp
  test   %rsi,%rsi
  je     L8
  test   %r13,%r13
  je     L27
L65:
  test   %rbx,%rbx
  jne    L39
  jmp    L86
  nopw   0x0(%rax,%rax,1)
L17:
  test   %bpl,%bpl
  je     L7
  add    $0x1,%rbx
L39:
  movsbl (%rbx),%esi
  mov    %r12,%rdi
  mov    %esi,%ebp
  call   <strchr@plt>
  test   %rax,%rax
  jne    L17
  mov    %rbx,%rbp
  xchg   %ax,%ax
L49:
  mov    %rbp,%r15
  movsbl 0x1(%rbp),%esi
  mov    %r12,%rdi
  add    $0x1,%rbp
  mov    %esi,%r14d
  call   <strchr@plt>
  test   %rax,%rax
  je     L49
  test   %r14b,%r14b
  jne    L25
  mov    %rbx,%rax
  mov    %rbp,%rbx
L40:
  mov    %rbx,0x0(%r13)
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L25:
  mov    %rbx,%rax
  movb   $0x0,0x0(%rbp)
  lea    0x2(%r15),%rbx
  jmp    L40
  nopl   (%rax)
L7:
  xor    %eax,%eax
  jmp    L40
  nopl   0x0(%rax)
L86:
  mov    0x0(%r13),%rbx
  test   %rbx,%rbx
  jne    L39
  lea    D7(%rip),%r8
  lea    D19(%rip),%rcx
  xor    %eax,%eax
  mov    $0xf6,%esi
  lea    D5(%rip),%rdx
  lea    D13(%rip),%rdi
  call   <debug_panic@plt>
  jmp    L39
  xchg   %ax,%ax
L8:
  xor    %eax,%eax
  lea    D66(%rip),%r8
  lea    D19(%rip),%rcx
  mov    $0xef,%esi
  lea    D5(%rip),%rdx
  lea    D13(%rip),%rdi
  call   <debug_panic@plt>
  test   %r13,%r13
  jne    L65
  nopl   0x0(%rax)
L27:
  lea    D85(%rip),%r8
  lea    D19(%rip),%rcx
  xor    %eax,%eax
  mov    $0xf0,%esi
  lea    D5(%rip),%rdx
  lea    D13(%rip),%rdi
  call   <debug_panic@plt>
  jmp    L65
```

tool_calls: name: read_data
arguments: data_tag: D7
data_type: string
name: read_data
arguments: data_tag: D19
data_type: string
name: read_data
arguments: data_tag: D5
data_type: string
name: read_data
arguments: data_tag: D13
data_type: string
name: read_data
arguments: data_tag: D66
data_type: string
name: read_data
arguments: data_tag: D85
data_type: string

tool: D7: s != NULL

tool: D19: assertion `%s' failed.

tool: D5: strtok_r

tool: D13: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Coding-Headache/CNOS/refs/heads/master/OS_Dev/pintos/lib/string.c

tool: D66: delimiters != NULL

tool: D85: save_ptr != NULL

assistant: ```c
char *strtok_r(char *s, const char *delimiters, char **save_ptr) {
  char *token;
  if (delimiters != ((void *)0)) {
  } else {
    debug_panic("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Coding-Headache/CNOS/refs/heads/master/OS_Dev/pintos/lib/string.c", 239, __func__, "assertion `%s' failed.", "delimiters != NULL");
  };
  if (save_ptr != ((void *)0)) {
  } else {
    debug_panic("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Coding-Headache/CNOS/refs/heads/master/OS_Dev/pintos/lib/string.c", 240, __func__, "assertion `%s' failed.", "save_ptr != NULL");
  };
  if (s == ((void *)0))
    s = *save_ptr;
  if (s != ((void *)0)) {
  } else {
    debug_panic("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Coding-Headache/CNOS/refs/heads/master/OS_Dev/pintos/lib/string.c", 246, __func__, "assertion `%s' failed.", "s != NULL");
  };
  while (strchr(delimiters, *s) != ((void *)0)) {
    if (*s == '\0') {
      *save_ptr = s;
      return ((void *)0);
    }
    s++;
  }
  token = s;
  while (strchr(delimiters, *s) == ((void *)0))
    s++;
  if (*s != '\0') {
    *s = '\0';
    *save_ptr = s + 1;
  } else
    *save_ptr = s;
  return token;
}
```