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

```asm
<fputs_quoted_case_json>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbp
  mov    %rsi,%r12
  mov    %edx,%r14d
  mov    $0x22,%edi
  call   <fputc@plt>
  lea    D14(%rip),%r15
  lea    D2(%rip),%r13
  test   %rbp,%rbp
  jne    L23
L85:
  mov    %r12,%rsi
  mov    $0x22,%edi
  call   <fputc@plt>
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L156:
  mov    %r12,%rsi
  mov    $0x5c,%edi
  call   <fputc@plt>
  movzbl %bl,%edi
  mov    %r12,%rsi
  call   <fputc@plt>
  jmp    L130
L80:
  cmp    $0x1,%r14d
  je     L67
  movzbl %bl,%edi
  cmp    $0xffffffff,%r14d
  je     L16
L13:
  mov    %r12,%rsi
  call   <fputc@plt>
L130:
  add    $0x1,%rbp
L23:
  movzbl 0x0(%rbp),%ebx
  test   %bl,%bl
  je     L85
  cmp    $0x22,%bl
  je     L156
  cmp    $0x5c,%bl
  je     L156
  cmp    $0x1f,%bl
  ja     L80
  lea    -0x8(%rbx),%eax
  cmp    $0x5,%al
  ja     L45
  movzbl %al,%eax
  movslq 0x0(%r13,%rax,4),%rax
  add    %r13,%rax
  notrack jmp *%rax
L67:
  movzbl %bl,%edi
  call   <toupper@plt>
  movzbl %al,%edi
  jmp    L13
L16:
  call   <tolower@plt>
  movzbl %al,%edi
  jmp    L13
  mov    %r12,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D45(%rip),%rdi
  call   <fwrite@plt>
  jmp    L130
  mov    %r12,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D43(%rip),%rdi
  call   <fwrite@plt>
  jmp    L130
  mov    %r12,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D48(%rip),%rdi
  call   <fwrite@plt>
  jmp    L130
  mov    %r12,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D55(%rip),%rdi
  call   <fwrite@plt>
  jmp    L130
  mov    %r12,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D16(%rip),%rdi
  call   <fwrite@plt>
  jmp    L130
L45:
  movzbl %bl,%edx
  mov    %r15,%rsi
  mov    %r12,%rdi
  call   <fprintf@plt>
  jmp    L130
```

tool_calls: name: retrieve_data
arguments: tag: D14
datatype: string
name: retrieve_data
arguments: tag: D45
datatype: string
name: retrieve_data
arguments: tag: D43
datatype: string
name: retrieve_data
arguments: tag: D48
datatype: string
name: retrieve_data
arguments: tag: D55
datatype: string
name: retrieve_data
arguments: tag: D16
datatype: string

tool: D14: \u00%02x

tool: D45: \b

tool: D43: \t

tool: D48: \n

tool: D55: \f

tool: D16: \r

assistant: ```c
void fputs_quoted_case_json(const char *data, FILE *out, int dir) {
  const char *p;
  fputc('"', out);
  for (p = data; p && *p; p++) {
    const unsigned char c = (unsigned char)*p;
    if (c == '"' || c == '\\') {
      fputc('\\', out);
      fputc(c, out);
      continue;
    }
    if (c >= 0x20) {
      fputc(dir == 1 ? toupper(c) : dir == -1 ? tolower(c) : *p, out);
      continue;
    }
    switch (c) {
    case '\b':
      fputs("\\b", out);
      break;
    case '\t':
      fputs("\\t", out);
      break;
    case '\n':
      fputs("\\n", out);
      break;
    case '\f':
      fputs("\\f", out);
      break;
    case '\r':
      fputs("\\r", out);
      break;
    default:
      fprintf(out, "\\u00%02x", c);
      break;
    }
  }
  fputc('"', out);
}
```