user: What would the C source look like for the assembly code provided here?

```asm
<printable>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  jmp    L64
L75:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isprint@plt>
  test   %rax,%rax
  je     L11
  addq   $0x1,-0x10(%rbp)
L64:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L75
  mov    -0x28(%rbp),%rax
  jmp    L55
L11:
  nop
  mov    D80(%rip),%rax
  test   %rax,%rax
  je     L105
  mov    D80(%rip),%rax
  mov    %rax,%rdi
  call   <free@plt>
L105:
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  add    $0x1,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,D25(%rip)
  mov    D25(%rip),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  jmp    L28
L12:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0x11(%rbp)
  movsbl -0x11(%rbp),%eax
  mov    %eax,%edi
  call   <isprint@plt>
  test   %rax,%rax
  je     L54
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  movzbl -0x11(%rbp),%edx
  mov    %dl,(%rax)
  jmp    L139
L54:
  movsbl -0x11(%rbp),%eax
  cmp    $0xd,%eax
  je     L146
  cmp    $0xd,%eax
  jg     L71
  cmp    $0x9,%eax
  je     L78
  cmp    $0xa,%eax
  jne    L71
  mov    -0x8(%rbp),%rax
  lea    D25(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  jmp    L139
L146:
  mov    -0x8(%rbp),%rax
  lea    D37(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  jmp    L139
L78:
  mov    -0x8(%rbp),%rax
  lea    D62(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  jmp    L139
L71:
  movsbl -0x11(%rbp),%edx
  mov    -0x8(%rbp),%rax
  lea    D48(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
L139:
  addq   $0x1,-0x10(%rbp)
L28:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L12
  mov    -0x8(%rbp),%rax
  movb   $0x0,(%rax)
  mov    D25(%rip),%rax
L55:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D25
type_guessed: string
name: parse_data
arguments: data_tag: D37
type_guessed: string
name: parse_data
arguments: data_tag: D62
type_guessed: string
name: parse_data
arguments: data_tag: D48
type_guessed: string

tool: D25: \n

tool: D37: \r

tool: D62: \t

tool: D48: \%03o

assistant: ```c
const char *printable(const char *string) {
  static char *buffer = NULL;
  const char *s;
  char *p;
  for (s = string; *s; ++s) {
    if (!isprint(*s))
      goto need_to_escape;
  }
  return string;
need_to_escape:
  if (buffer)
    free(buffer);
  p = buffer = malloc(3 * strlen(string) + 1);
  for (s = string; *s; ++s) {
    char cc = *s;
    if (isprint(cc)) {
      *p++ = cc;
    } else {
      switch (cc) {
      case '\n':
        strcpy(p, "\\n");
        break;
      case '\r':
        strcpy(p, "\\r");
        break;
      case '\t':
        strcpy(p, "\\t");
        break;
      default:
        sprintf(p, "\\%03o", cc);
      }
    }
  }
  *p = '\0';
  return buffer;
}
```