user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<fputs_quoted_case_json>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %edx,-0x24(%rbp)
  mov    -0x20(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x22,%edi
  call   <fputc@plt>
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  jmp    L86
L11:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0x9(%rbp)
  cmpb   $0x22,-0x9(%rbp)
  je     L117
  cmpb   $0x5c,-0x9(%rbp)
  jne    L21
L117:
  mov    -0x20(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x5c,%edi
  call   <fputc@plt>
  movzbl -0x9(%rbp),%eax
  mov    -0x20(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <fputc@plt>
  jmp    L71
L21:
  cmpb   $0x1f,-0x9(%rbp)
  jbe    L5
  cmpl   $0x1,-0x24(%rbp)
  jne    L100
  movzbl -0x9(%rbp),%eax
  mov    %eax,%edi
  call   <toupper@plt>
  movzbl %al,%eax
  jmp    L116
L100:
  cmpl   $0xffffffff,-0x24(%rbp)
  jne    L50
  movzbl -0x9(%rbp),%eax
  mov    %eax,%edi
  call   <tolower@plt>
  movzbl %al,%eax
  jmp    L116
L50:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
L116:
  mov    -0x20(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <fputc@plt>
  jmp    L71
L5:
  movzbl -0x9(%rbp),%eax
  sub    $0x8,%eax
  cmp    $0x5,%eax
  ja     L34
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  lea    D54(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D54(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  mov    -0x20(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D45(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  jmp    L71
  mov    -0x20(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D24(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  jmp    L71
  mov    -0x20(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D72(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  jmp    L71
  mov    -0x20(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D40(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  jmp    L71
  mov    -0x20(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  jmp    L71
L34:
  movzbl -0x9(%rbp),%edx
  mov    -0x20(%rbp),%rax
  lea    D62(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <fprintf@plt>
  nop
L71:
  addq   $0x1,-0x8(%rbp)
L86:
  cmpq   $0x0,-0x8(%rbp)
  je     L25
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L11
L25:
  mov    -0x20(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x22,%edi
  call   <fputc@plt>
  nop
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D45
type_infered: string
name: parse_data
arguments: data_label: D24
type_infered: string
name: parse_data
arguments: data_label: D72
type_infered: string
name: parse_data
arguments: data_label: D40
type_infered: string
name: parse_data
arguments: data_label: D31
type_infered: string
name: parse_data
arguments: data_label: D62
type_infered: string

tool: D45: \b

tool: D24: \t

tool: D72: \n

tool: D40: \f

tool: D31: \r

tool: D62: \u00%02x

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);
}
```