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

```asm
<preproc_escape_string>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,0x8(%rsp)
  mov    %rsi,0x10(%rsp)
  mov    %rdx,0x18(%rsp)
  mov    %rcx,%r13
  mov    (%rdi),%rbp
  mov    (%rsi),%rbx
  lea    (%rcx,%r8,2),%rax
  mov    $0xfffffffffffffffe,%r14
  sub    %rax,%r14
  add    (%rdx),%r14
  jne    L105
  cmp    $0x1,%rcx
  jbe    L265
  lea    -0x1(%rcx),%rax
  cmpb   $0x22,-0x1(%rbp,%rcx,1)
  jne    L186
  movq   $0x0,(%rsp)
L29:
  lea    -0x2(%rbp,%r13,1),%rdx
  cmpb   $0x52,(%rdx)
  je     L58
L127:
  test   %r14,%r14
  je     L146
L199:
  mov    $0x0,%r15d
L91:
  lea    0x4(%r13),%r12
L272:
  cmp    %rbx,%r12
  jbe    L45
  add    %rbx,%rbx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <realloc@plt>
  test   %rax,%rax
  je     L214
  mov    %rax,%rbp
  jmp    L272
L105:
  mov    %r8,%r12
  mov    %r14,%rdi
  call   <malloc@plt>
  mov    %rax,(%rsp)
  lea    0x1(%r13,%r12,1),%rsi
  add    %rbp,%rsi
  mov    %r14,%rdx
  mov    %rax,%rdi
  call   <memcpy@plt>
  cmp    $0x1,%r13
  jbe    L199
  lea    -0x1(%r13),%rax
  cmpb   $0x22,-0x1(%rbp,%r13,1)
  jne    L199
  jmp    L29
L58:
  movb   $0x22,(%rdx)
  mov    %rax,%r13
  jmp    L127
L214:
  mov    (%rsp),%rdi
  call   <free@plt>
  mov    %rbp,%rdi
  call   <free@plt>
  mov    $0x0,%ebp
  mov    $0xffffffffffffffff,%rbx
  mov    $0x0,%r13d
L322:
  mov    0x8(%rsp),%rax
  mov    %rbp,(%rax)
  mov    0x10(%rsp),%rax
  mov    %rbx,(%rax)
  mov    0x18(%rsp),%rax
  mov    %r13,(%rax)
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L45:
  mov    (%rsp),%rax
  movzbl (%rax,%r15,1),%eax
  lea    -0x20(%rax),%edx
  cmp    $0x5e,%dl
  jbe    L71
  test   %al,%al
  js     L71
  cmp    $0x27,%al
  jg     L224
  cmp    $0x6,%al
  jle    L55
  lea    -0x7(%rax),%edx
  cmp    $0x20,%dl
  ja     L55
  movzbl %dl,%edx
  lea    D11(%rip),%rcx
  movslq (%rcx,%rdx,4),%rdx
  add    %rcx,%rdx
  notrack jmp *%rdx
L71:
  mov    %al,0x0(%rbp,%r13,1)
  lea    0x1(%r13),%r13
L27:
  add    $0x1,%r15
  cmp    %r15,%r14
  ja     L91
  jmp    L146
L224:
  cmp    $0x5c,%al
  jne    L55
  lea    0x1(%r13),%rax
  movb   $0x5c,0x0(%rbp,%r13,1)
  add    $0x2,%r13
  movb   $0x5c,0x0(%rbp,%rax,1)
  jmp    L27
  lea    0x1(%r13),%rax
  movb   $0x5c,0x0(%rbp,%r13,1)
  add    $0x2,%r13
  movb   $0x61,0x0(%rbp,%rax,1)
  jmp    L27
  lea    0x1(%r13),%rax
  movb   $0x5c,0x0(%rbp,%r13,1)
  add    $0x2,%r13
  movb   $0x62,0x0(%rbp,%rax,1)
  jmp    L27
  lea    0x1(%r13),%rax
  movb   $0x5c,0x0(%rbp,%r13,1)
  add    $0x2,%r13
  movb   $0x66,0x0(%rbp,%rax,1)
  jmp    L27
  lea    0x1(%r13),%rax
  movb   $0x5c,0x0(%rbp,%r13,1)
  add    $0x2,%r13
  movb   $0x6e,0x0(%rbp,%rax,1)
  jmp    L27
  lea    0x1(%r13),%rax
  movb   $0x5c,0x0(%rbp,%r13,1)
  add    $0x2,%r13
  movb   $0x72,0x0(%rbp,%rax,1)
  jmp    L27
  lea    0x1(%r13),%rax
  movb   $0x5c,0x0(%rbp,%r13,1)
  add    $0x2,%r13
  movb   $0x74,0x0(%rbp,%rax,1)
  jmp    L27
  lea    0x1(%r13),%rax
  movb   $0x5c,0x0(%rbp,%r13,1)
  add    $0x2,%r13
  movb   $0x76,0x0(%rbp,%rax,1)
  jmp    L27
  lea    0x1(%r13),%rax
  movb   $0x5c,0x0(%rbp,%r13,1)
  add    $0x2,%r13
  movb   $0x27,0x0(%rbp,%rax,1)
  jmp    L27
  lea    0x1(%r13),%rax
  movb   $0x5c,0x0(%rbp,%r13,1)
  add    $0x2,%r13
  movb   $0x22,0x0(%rbp,%rax,1)
  jmp    L27
L55:
  movsbl %al,%edx
  lea    0x0(%rbp,%r13,1),%rdi
  lea    D7(%rip),%rsi
  call   <sprintf@plt>
  mov    %r12,%r13
  jmp    L27
L265:
  movq   $0x0,(%rsp)
L146:
  mov    (%rsp),%rdi
  call   <free@plt>
  jmp    L322
L186:
  movq   $0x0,(%rsp)
  jmp    L146
```

tool_calls: name: extract_symbolic_data
arguments: label: D7
datatype: string

tool: D7: \%3.3o

assistant: ```c
void preproc_escape_string(char **linep, size_t *linelenp, size_t *jp, size_t d, size_t dl) {
  char *line = *linep;
  char *r = 0;
  size_t linelen = *linelenp;
  size_t l = *jp - d - 2 * dl - 2;
  size_t i;
  size_t j = d;
  if (l != 0) {
    r = (char *)malloc(l);
    memcpy(r, &line[j + dl + 1], l);
  }
  if (j >= 2 && line[j - 1] == '\"' && line[j - 2] == 'R') {
    line[j - 2] = '\"';
    j--;
  }
  for (i = 0; i < l; i++) {
    while (j + 4 > linelen) {
      char *oldline = line;
      linelen *= 2;
      line = (char *)realloc(line, linelen);
      if (!line) {
        free(r);
        free(oldline);
        *linep = NULL;
        *linelenp = -1;
        *jp = 0;
        return;
      }
    }
    if ((r[i] >= ' ' && r[i] <= '~') || (r[i] & 0x80) != 0) {
      line[j++] = r[i];
    } else
      switch (r[i]) {
      case '\a':
        line[j++] = '\\';
        line[j++] = 'a';
        break;
      case '\b':
        line[j++] = '\\';
        line[j++] = 'b';
        break;
      case '\f':
        line[j++] = '\\';
        line[j++] = 'f';
        break;
      case '\n':
        line[j++] = '\\';
        line[j++] = 'n';
        break;
      case '\r':
        line[j++] = '\\';
        line[j++] = 'r';
        break;
      case '\t':
        line[j++] = '\\';
        line[j++] = 't';
        break;
      case '\v':
        line[j++] = '\\';
        line[j++] = 'v';
        break;
      case '\\':
        line[j++] = '\\';
        line[j++] = '\\';
        break;
      case '\'':
        line[j++] = '\\';
        line[j++] = '\'';
        break;
      case '\"':
        line[j++] = '\\';
        line[j++] = '\"';
        break;
      default:
        sprintf(&line[j], "\\%3.3o", r[i]);
        j += 4;
        break;
      }
  }
  free(r);
  *linep = line;
  *linelenp = linelen;
  *jp = j;
}
```