user: 请从给定的汇编指令推导出C源代码:

```asm
<json_print_string>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbp
  mov    %rsi,%r12
  mov    $0x22,%edi
  call   <putchar@plt>
  test   %r12,%r12
  je     L151
  mov    %rbp,%rbx
  add    %r12,%rbp
  lea    D65(%rip),%r15
  lea    D28(%rip),%r12
  lea    D8(%rip),%r14
  jmp    L118
L87:
  cmp    $0x5c,%dil
  jne    L123
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L83
  lea    D3(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L83:
  add    $0x1,%rbx
  cmp    %rbp,%rbx
  je     L151
L118:
  mov    %rbx,%r13
  movzbl (%rbx),%edi
  cmp    $0x2f,%dil
  jg     L87
  cmp    $0x7,%dil
  jle    L123
  lea    -0x8(%rdi),%eax
  cmp    $0x27,%al
  ja     L123
  movzbl %al,%eax
  movslq (%r12,%rax,4),%rax
  add    %r12,%rax
  notrack jmp *%rax
  lea    D69(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L83
  lea    D4(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L83
  lea    D14(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L83
  lea    D93(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L83
  lea    D87(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L83
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L83
L123:
  movsbl %dil,%edi
  call   <iscntrl@plt>
  test   %eax,%eax
  je     L67
  movsbl 0x0(%r13),%esi
  lea    D21(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L83
L67:
  movsbl 0x0(%r13),%edi
  call   <putchar@plt>
  jmp    L83
L151:
  mov    $0x22,%edi
  call   <putchar@plt>
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D65
data_type: string
name: disassemble_data
arguments: data_label: D8
data_type: string
name: disassemble_data
arguments: data_label: D3
data_type: string
name: disassemble_data
arguments: data_label: D69
data_type: string
name: disassemble_data
arguments: data_label: D4
data_type: string
name: disassemble_data
arguments: data_label: D14
data_type: string
name: disassemble_data
arguments: data_label: D93
data_type: string
name: disassemble_data
arguments: data_label: D87
data_type: string
name: disassemble_data
arguments: data_label: D21
data_type: string

tool: D65: \\

tool: D8: \t

tool: D3: \"

tool: D69: \/

tool: D4: \b

tool: D14: \f

tool: D93: \n

tool: D87: \r

tool: D21: \u%.4u

assistant: ```c
void json_print_string(const char *str, size_t bytes) {
  size_t i;
  printf("\"");
  for (i = 0; i < bytes; ++i) {
    switch (str[i]) {
    case '\"':
      printf("\\\"");
      break;
    case '\\':
      printf("\\\\");
      break;
    case '/':
      printf("\\/");
      break;
    case '\b':
      printf("\\b");
      break;
    case '\f':
      printf("\\f");
      break;
    case '\n':
      printf("\\n");
      break;
    case '\r':
      printf("\\r");
      break;
    case '\t':
      printf("\\t");
      break;
    default:
      if (iscntrl(str[i])) {
        printf("\\u%.4u", str[i]);
      } else {
        printf("%c", str[i]);
      }
    }
  }
  printf("\"");
}
```