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     L37
  test   %r13,%r13
  je     L97
L11:
  test   %rbx,%rbx
  jne    L48
  jmp    L108
  nopw   0x0(%rax,%rax,1)
L74:
  test   %bpl,%bpl
  je     L20
  add    $0x1,%rbx
L48:
  movsbl (%rbx),%esi
  mov    %r12,%rdi
  mov    %esi,%ebp
  call   <strchr@plt>
  test   %rax,%rax
  jne    L74
  mov    %rbx,%rbp
  xchg   %ax,%ax
L77:
  mov    %rbp,%r15
  movsbl 0x1(%rbp),%esi
  mov    %r12,%rdi
  add    $0x1,%rbp
  mov    %esi,%r14d
  call   <strchr@plt>
  test   %rax,%rax
  je     L77
  test   %r14b,%r14b
  jne    L5
  mov    %rbx,%rax
  mov    %rbp,%rbx
L33:
  mov    %rbx,0x0(%r13)
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L5:
  mov    %rbx,%rax
  movb   $0x0,0x0(%rbp)
  lea    0x2(%r15),%rbx
  jmp    L33
  nopl   (%rax)
L20:
  xor    %eax,%eax
  jmp    L33
  nopl   0x0(%rax)
L108:
  mov    0x0(%r13),%rbx
  test   %rbx,%rbx
  jne    L48
  lea    D97(%rip),%r8
  lea    D34(%rip),%rcx
  xor    %eax,%eax
  mov    $0xeb,%esi
  lea    D66(%rip),%rdx
  lea    D71(%rip),%rdi
  call   <debug_panic@plt>
  jmp    L48
  xchg   %ax,%ax
L37:
  xor    %eax,%eax
  lea    D10(%rip),%r8
  lea    D34(%rip),%rcx
  mov    $0xe3,%esi
  lea    D66(%rip),%rdx
  lea    D71(%rip),%rdi
  call   <debug_panic@plt>
  test   %r13,%r13
  jne    L11
  nopl   0x0(%rax)
L97:
  lea    D82(%rip),%r8
  lea    D34(%rip),%rcx
  xor    %eax,%eax
  mov    $0xe4,%esi
  lea    D66(%rip),%rdx
  lea    D71(%rip),%rdi
  call   <debug_panic@plt>
  jmp    L11
```

tool_calls: name: retrieve_data
arguments: label: D97
type_infered: string
name: retrieve_data
arguments: label: D34
type_infered: string
name: retrieve_data
arguments: label: D66
type_infered: string
name: retrieve_data
arguments: label: D71
type_infered: string
name: retrieve_data
arguments: label: D10
type_infered: string
name: retrieve_data
arguments: label: D82
type_infered: string

tool: D97: s != NULL

tool: D34: assertion `%s' failed.

tool: D66: strtok_r

tool: D71: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/waffleOS/waffle/refs/heads/master/src/lib/string.c

tool: D10: delimiters != NULL

tool: D82: 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/waffleOS/waffle/refs/heads/master/src/lib/string.c", 227, __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/waffleOS/waffle/refs/heads/master/src/lib/string.c", 228, __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/waffleOS/waffle/refs/heads/master/src/lib/string.c", 235, __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;
}
```