user: What is the c source code of the assembly code below?

```asm
<niceStringOut>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  add    $0x1,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  jmp    L105
L67:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x9,%al
  jne    L62
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movb   $0x5c,(%rax)
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movb   $0x74,(%rax)
  jmp    L38
L62:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  jne    L111
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movb   $0x5c,(%rax)
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movb   $0x6e,(%rax)
  jmp    L38
L111:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L2
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movb   $0x5c,(%rax)
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movb   $0x30,(%rax)
  jmp    L38
L2:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x1f,%al
  ja     L19
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movb   $0x5e,(%rax)
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  mov    -0x10(%rbp),%rdx
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  jmp    L38
L19:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x7f,%al
  jne    L17
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movb   $0x5e,(%rax)
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movb   $0x3f,(%rax)
  jmp    L38
L17:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jns    L83
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movb   $0x5c,(%rax)
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  shr    $0x4,%al
  movzbl %al,%eax
  cltq
  lea    D17(%rip),%rdx
  movzbl (%rax,%rdx,1),%ecx
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  and    $0xf,%eax
  cltq
  lea    D17(%rip),%rdx
  movzbl (%rax,%rdx,1),%ecx
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  jmp    L38
L83:
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  mov    -0x10(%rbp),%rdx
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
L38:
  addq   $0x1,-0x10(%rbp)
L105:
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  cmp    %rax,-0x10(%rbp)
  jb     L67
  mov    -0x18(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x8(%rbp),%rax
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D17
data_type: string

tool: D17: 0123456789abcdef

assistant: ```c
char *niceStringOut(char *s) {
  int len;
  char *t;
  len = strlen(s);
  t = (char *)malloc(3 * len + 1);
  unsigned char *tp = (unsigned char *)t;
  unsigned char *sp = (unsigned char *)s;
  for (; sp < (unsigned char *)s + len; sp++) {
    if (*sp == '\t') {
      *tp++ = '\\';
      *tp++ = 't';
    } else if (*sp == '\n') {
      *tp++ = '\\';
      *tp++ = 'n';
    } else if (*sp == '\0') {
      *tp++ = '\\';
      *tp++ = '0';
    } else if (*sp < ' ') {
      *tp++ = '^';
      *tp++ = *sp;
    } else if (*sp == 127) {
      *tp++ = '^';
      *tp++ = '?';
    } else if (*sp > 127) {
      *tp++ = '\\';
      *tp++ = "0123456789abcdef"[(*sp) / 16];
      *tp++ = "0123456789abcdef"[(*sp) % 16];
    } else {
      *tp++ = *sp;
    }
  }
  *tp = '\0';
  return t;
}
```