user: Demonstrate the C code that generates the assembly output below:

```asm
<write_token>:
  endbr64
  push   %r15
  mov    %rdi,%rcx
  mov    %rdi,%r15
  mov    $0x2,%edx
  push   %r14
  lea    D31(%rip),%rdi
  mov    %rsi,%r14
  mov    $0x1,%esi
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  call   <fwrite@plt>
  test   %r14,%r14
  je     L137
  movsbl (%r14),%edi
  lea    D5(%rip),%r13
  lea    D8(%rip),%rbx
  lea    D76(%rip),%r12
  lea    D2(%rip),%rbp
  test   %dil,%dil
  je     L137
  nopl   0x0(%rax,%rax,1)
L84:
  cmp    $0x27,%dil
  jg     L94
  cmp    $0x8,%dil
  jle    L76
  lea    -0x9(%rdi),%eax
  cmp    $0x1e,%al
  ja     L76
  movzbl %al,%eax
  movslq (%rbx,%rax,4),%rax
  add    %rbx,%rax
  notrack jmp *%rax
  nopl   0x0(%rax)
L76:
  mov    %r15,%rsi
  call   <fputc@plt>
L48:
  movsbl 0x1(%r14),%edi
  add    $0x1,%r14
  test   %dil,%dil
  jne    L84
L137:
  add    $0x8,%rsp
  mov    %r15,%rsi
  mov    $0x27,%edi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1060 <fputc@plt>
  nopl   0x0(%rax)
  mov    %r15,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D42(%rip),%rdi
  call   <fwrite@plt>
  jmp    L48
  nopl   0x0(%rax,%rax,1)
  mov    %r15,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D15(%rip),%rdi
  call   <fwrite@plt>
  jmp    L48
  nopl   0x0(%rax,%rax,1)
  mov    %r15,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D81(%rip),%rdi
  call   <fwrite@plt>
  jmp    L48
  xchg   %ax,%ax
  mov    %r15,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  mov    %r12,%rdi
  call   <fwrite@plt>
  jmp    L48
  nopw   0x0(%rax,%rax,1)
  mov    %r15,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  mov    %rbp,%rdi
  call   <fwrite@plt>
  jmp    L48
  nopw   0x0(%rax,%rax,1)
  mov    %r15,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D40(%rip),%rdi
  call   <fwrite@plt>
  jmp    L48
  xchg   %ax,%ax
L94:
  cmp    $0x5c,%dil
  jne    L76
  mov    %r15,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  mov    %r13,%rdi
  call   <fwrite@plt>
  jmp    L48
```

tool_calls: name: read_data
arguments: data_tag: D31
type_infered: string
name: read_data
arguments: data_tag: D5
type_infered: string
name: read_data
arguments: data_tag: D76
type_infered: string
name: read_data
arguments: data_tag: D2
type_infered: string
name: read_data
arguments: data_tag: D42
type_infered: string
name: read_data
arguments: data_tag: D15
type_infered: string
name: read_data
arguments: data_tag: D81
type_infered: string
name: read_data
arguments: data_tag: D40
type_infered: string

tool: D31:  '

tool: D5: \\

tool: D76: \f

tool: D2: \n

tool: D42: \'

tool: D15: \"

tool: D81: \r

tool: D40: \t

assistant: ```c
void write_token(FILE *f, const char *s) {
  fputs(" \'", f);
  while (s && (*s != '\0')) {
    switch (*s) {
    case '\\':
      fputs("\\\\", f);
      break;
    case '\'':
      fputs("\\\'", f);
      break;
    case '\"':
      fputs("\\\"", f);
      break;
    case '\t':
      fputs("\\t", f);
      break;
    case '\r':
      fputs("\\r", f);
      break;
    case '\n':
      fputs("\\n", f);
      break;
    case '\f':
      fputs("\\f", f);
      break;
    default:
      fputc(*s, f);
      break;
    }
    s++;
  }
  fputc('\'', f);
}
```