user: Demonstrate the C code that generates the assembly output below:

```asm
<ILibXmlEscape>:
  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    L45
L39:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x22,%al
  jne    L2
  mov    -0x8(%rbp),%rax
  mov    $0x6,%edx
  lea    D32(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  addq   $0x6,-0x8(%rbp)
  jmp    L1
L2:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x27,%al
  jne    L18
  mov    -0x8(%rbp),%rax
  mov    $0x6,%edx
  lea    D19(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  addq   $0x6,-0x8(%rbp)
  jmp    L1
L18:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x3c,%al
  jne    L101
  mov    -0x8(%rbp),%rax
  mov    $0x4,%edx
  lea    D16(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  addq   $0x4,-0x8(%rbp)
  jmp    L1
L101:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x3e,%al
  jne    L34
  mov    -0x8(%rbp),%rax
  mov    $0x4,%edx
  lea    D13(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  addq   $0x4,-0x8(%rbp)
  jmp    L1
L34:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x26,%al
  jne    L56
  mov    -0x8(%rbp),%rax
  mov    $0x5,%edx
  lea    D36(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  addq   $0x5,-0x8(%rbp)
  jmp    L1
L56:
  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)
L1:
  addl   $0x1,-0x10(%rbp)
L45:
  mov    -0x10(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jl     L39
  mov    -0x8(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x8(%rbp),%rax
  sub    -0x18(%rbp),%rax
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D32
data_type: string
name: parse_data
arguments: data_label: D19
data_type: string
name: parse_data
arguments: data_label: D16
data_type: string
name: parse_data
arguments: data_label: D13
data_type: string
name: parse_data
arguments: data_label: D36
data_type: string

tool: D32: &quot;

tool: D19: &apos;

tool: D16: &lt;

tool: D13: &gt;

tool: D36: &amp;

assistant: ```c
int ILibXmlEscape(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, "&quot;", 6);
      out = out + 6;
    } else if (indata[i] == '\'') {
      memcpy(out, "&apos;", 6);
      out = out + 6;
    } else if (indata[i] == '<') {
      memcpy(out, "&lt;", 4);
      out = out + 4;
    } else if (indata[i] == '>') {
      memcpy(out, "&gt;", 4);
      out = out + 4;
    } else if (indata[i] == '&') {
      memcpy(out, "&amp;", 5);
      out = out + 5;
    } else {
      out[0] = indata[i];
      out++;
    }
  }
  out[0] = 0;
  return (int)(out - outdata);
}
```