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

```asm
<CdsObjectToDidl_Helper_DoubleEscape>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  movl   $0x0,-0x10(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0xc(%rbp)
  movl   $0x0,-0x10(%rbp)
  jmp    L0
L20:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x22,%al
  jne    L70
  mov    -0x8(%rbp),%rax
  mov    $0xa,%edx
  lea    D6(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  addq   $0xa,-0x8(%rbp)
  jmp    L86
L70:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x27,%al
  jne    L54
  mov    -0x8(%rbp),%rax
  mov    $0xa,%edx
  lea    D31(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  addq   $0xa,-0x8(%rbp)
  jmp    L86
L54:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x3c,%al
  jne    L85
  mov    -0x8(%rbp),%rax
  mov    $0x8,%edx
  lea    D44(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  addq   $0x8,-0x8(%rbp)
  jmp    L86
L85:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x3e,%al
  jne    L28
  mov    -0x8(%rbp),%rax
  mov    $0x8,%edx
  lea    D42(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  addq   $0x8,-0x8(%rbp)
  jmp    L86
L28:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x26,%al
  jne    L40
  mov    -0x8(%rbp),%rax
  mov    $0x9,%edx
  lea    D15(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  addq   $0x9,-0x8(%rbp)
  jmp    L86
L40:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x8(%rbp),%rax
  mov    %dl,(%rax)
  addq   $0x1,-0x8(%rbp)
L86:
  addl   $0x1,-0x10(%rbp)
L0:
  mov    -0x10(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jl     L20
  mov    -0x8(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x8(%rbp),%rax
  sub    -0x18(%rbp),%rax
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D6
datatype: string
name: disassemble_data
arguments: data_tag: D31
datatype: string
name: disassemble_data
arguments: data_tag: D44
datatype: string
name: disassemble_data
arguments: data_tag: D42
datatype: string
name: disassemble_data
arguments: data_tag: D15
datatype: string

tool: D6: &amp;quot;

tool: D31: &amp;apos;

tool: D44: &amp;lt;

tool: D42: &amp;gt;

tool: D15: &amp;amp;

assistant: ```c
int CdsObjectToDidl_Helper_DoubleEscape(char *outdata, const char *indata) {
  int i = 0;
  int inlen;
  char *out;
  out = outdata;
  inlen = (int)strlen(indata);
  for (i = 0; i < inlen; i++) {
    if (indata[i] == '"') {
      memcpy(out, "&amp;quot;", 10);
      out = out + 10;
    } else if (indata[i] == '\'') {
      memcpy(out, "&amp;apos;", 10);
      out = out + 10;
    } else if (indata[i] == '<') {
      memcpy(out, "&amp;lt;", 8);
      out = out + 8;
    } else if (indata[i] == '>') {
      memcpy(out, "&amp;gt;", 8);
      out = out + 8;
    } else if (indata[i] == '&') {
      memcpy(out, "&amp;amp;", 9);
      out = out + 9;
    } else {
      out[0] = indata[i];
      out++;
    }
  }
  out[0] = 0;
  return (int)(out - outdata);
}
```