user: 这段汇编代码用C语言表示是什么样的：

```asm
<BS2PP_EmitCharString>:
  endbr64
  push   %r13
  mov    %rdi,%rax
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,0x8(%rsp)
  mov    %rsi,(%rsp)
  movzbl -0x1(%rdi),%edx
  cmp    $0x22,%dl
  je     L144
  cmp    $0x27,%dl
  je     L144
L113:
  lea    0x1(%rax),%rdx
  mov    %rsp,%rbx
  lea    0x8(%rsp),%rbp
  mov    %rdx,0x8(%rsp)
  lea    D16(%rip),%r13
  lea    D0(%rip),%r12
  movb   $0x27,(%rax)
  nopw   0x0(%rax,%rax,1)
L126:
  mov    (%rsp),%rax
  cmpb   $0x0,(%rax)
  je     L32
L132:
  mov    %rbx,%rdi
  call   <BS2PP_ParseChar@plt>
  mov    %eax,%esi
  lea    -0x20(%rax),%eax
  cmp    $0x5d,%eax
  jbe    L118
  mov    0x8(%rsp),%rdi
  cmp    $0xff,%esi
  jg     L94
  cmp    $0xd,%esi
  je     L48
  jg     L58
  cmp    $0x9,%esi
  je     L75
  cmp    $0xa,%esi
  jne    L169
  lea    0x1(%rdi),%rax
  mov    %rax,0x8(%rsp)
  movb   $0x5c,(%rdi)
  mov    0x8(%rsp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,0x8(%rsp)
  movb   $0x6e,(%rax)
  mov    (%rsp),%rax
  cmpb   $0x0,(%rax)
  jne    L132
L32:
  mov    0x8(%rsp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,0x8(%rsp)
  movb   $0x27,(%rax)
  mov    0x8(%rsp),%rax
  movb   $0x0,(%rax)
  mov    0x8(%rsp),%rax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax,%rax,1)
L118:
  cmp    $0x22,%esi
  je     L149
  cmp    $0x27,%esi
  je     L149
  cmp    $0x5c,%esi
  jne    L128
L149:
  mov    0x8(%rsp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,0x8(%rsp)
  movb   $0x5c,(%rax)
L128:
  mov    %rbp,%rdi
  call   <BS2PP_EmitChar@plt>
  jmp    L126
  nopl   (%rax)
L58:
  cmp    $0x1b,%esi
  jne    L169
  lea    0x1(%rdi),%rax
  mov    %rax,0x8(%rsp)
  movb   $0x5c,(%rdi)
  mov    0x8(%rsp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,0x8(%rsp)
  movb   $0x65,(%rax)
  jmp    L126
  nopw   0x0(%rax,%rax,1)
L94:
  mov    %esi,%edx
  mov    %r12,%rsi
  call   <sprintf@plt>
  addq   $0x6,0x8(%rsp)
  jmp    L126
  nopl   (%rax)
L48:
  lea    0x1(%rdi),%rax
  mov    %rax,0x8(%rsp)
  movb   $0x5c,(%rdi)
  mov    0x8(%rsp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,0x8(%rsp)
  movb   $0x72,(%rax)
  jmp    L126
  nopw   0x0(%rax,%rax,1)
L169:
  mov    %esi,%edx
  mov    %r13,%rsi
  call   <sprintf@plt>
  addq   $0x4,0x8(%rsp)
  jmp    L126
  nopl   (%rax)
L75:
  lea    0x1(%rdi),%rax
  mov    %rax,0x8(%rsp)
  movb   $0x5c,(%rdi)
  mov    0x8(%rsp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,0x8(%rsp)
  movb   $0x74,(%rax)
  jmp    L126
  nopw   0x0(%rax,%rax,1)
L144:
  lea    0x1(%rax),%rdx
  mov    %rdx,0x8(%rsp)
  movb   $0x20,(%rax)
  mov    0x8(%rsp),%rax
  jmp    L113
```

tool_calls: name: retrieve_data
arguments: data_label: D16
datatype: string
name: retrieve_data
arguments: data_label: D0
datatype: string

tool: D16: \x%02X

tool: D0: \u%04X

assistant: ```c
char *BS2PP_EmitCharString(char *t, char *s) {
  int i;
  if ((*(t - 1) == '\"') || (*(t - 1) == '\''))
    *t++ = ' ';
  *t++ = '\'';
  while (*s) {
    i = BS2PP_ParseChar(&s);
    if ((i < ' ') || (i >= '~')) {
      if (i > 0xFF) {
        sprintf(t, "\\u%04X", i);
        t += 6;
        continue;
      }
      switch (i) {
      case '\r':
        *t++ = '\\';
        *t++ = 'r';
        break;
      case '\n':
        *t++ = '\\';
        *t++ = 'n';
        break;
      case '\t':
        *t++ = '\\';
        *t++ = 't';
        break;
      case '\x1B':
        *t++ = '\\';
        *t++ = 'e';
        break;
      default:
        sprintf(t, "\\x%02X", i);
        t += 4;
        break;
      }
      continue;
    }
    if (i == '\"')
      *t++ = '\\';
    if (i == '\'')
      *t++ = '\\';
    if (i == '\\')
      *t++ = '\\';
    BS2PP_EmitChar(&t, i);
  }
  *t++ = '\'';
  *t = 0;
  return (t);
}
```