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

```asm
<txt2html>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rsi,0x18(%rsp)
  mov    %rcx,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  test   %rcx,%rcx
  jle    L79
  mov    %rdi,%rbp
  mov    %rsi,%rbx
  mov    %rdx,%r12
  lea    D38(%rip),%rsi
  mov    %rdx,%rdi
  call   <strcpy@plt>
  test   %rbx,%rbx
  jle    L13
  lea    0x0(%rbp,%rbx,1),%rax
  mov    %rax,0x10(%rsp)
  mov    $0x0,%r15d
  mov    $0x0,%r14d
  jmp    L75
L101:
  movzbl %dl,%edx
  lea    0x21(%rsp),%rbx
  lea    D53(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  mov    %rbx,%rsi
  mov    $0x6,%ebx
  jmp    L63
L55:
  cmp    $0x26,%dl
  lea    D18(%rip),%rsi
  cmovne %rbp,%rsi
  sete   %bl
  movzbl %bl,%ebx
  lea    0x1(,%rbx,4),%ebx
L63:
  lea    (%rbx,%r15,1),%r13d
  movslq %r13d,%rax
  cmp    0x8(%rsp),%rax
  jge    L153
  mov    %ebx,%edx
  mov    %r12,%rdi
  call   <strncpy@plt>
  movslq %ebx,%rbx
  add    %rbx,%r12
  add    $0x1,%r14d
  add    $0x1,%rbp
  cmp    0x10(%rsp),%rbp
  je     L54
  mov    %r13d,%r15d
L75:
  movzbl 0x0(%rbp),%edx
  cmp    $0x9f,%dl
  ja     L101
  cmp    $0x3c,%dl
  je     L88
  ja     L42
  lea    D62(%rip),%rsi
  mov    $0x5,%ebx
  cmp    $0xa,%dl
  jne    L55
  jmp    L63
L42:
  cmp    $0x3e,%dl
  lea    D17(%rip),%rsi
  cmovne %rbp,%rsi
  sete   %bl
  movzbl %bl,%ebx
  lea    0x1(%rbx,%rbx,2),%ebx
  jmp    L63
L88:
  lea    D56(%rip),%rsi
  mov    $0x4,%ebx
  jmp    L63
L54:
  mov    %r13d,%r15d
L153:
  lea    D38(%rip),%rsi
  mov    %r12,%rdi
  call   <strcpy@plt>
L44:
  movslq %r14d,%rax
  neg    %r14d
  cmp    0x18(%rsp),%rax
  cmovl  %r14d,%r15d
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L14
  mov    %r15d,%eax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L13:
  mov    $0x0,%r15d
  mov    $0x0,%r14d
  jmp    L153
L79:
  mov    $0x0,%r15d
  mov    $0x0,%r14d
  jmp    L44
L14:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D38
datatype: string
name: extract_symbolic_data
arguments: data_tag: D53
datatype: string
name: extract_symbolic_data
arguments: data_tag: D18
datatype: string
name: extract_symbolic_data
arguments: data_tag: D62
datatype: string
name: extract_symbolic_data
arguments: data_tag: D17
datatype: string
name: extract_symbolic_data
arguments: data_tag: D56
datatype: string

tool: 

tool: D53: &#%d;

tool: D18: &amp;

tool: D62: <BR>


tool: D17: &gt;

tool: D56: &lt;

assistant: ```c
int txt2html(unsigned char *src, long srclen, unsigned char *dst, long dstlen) {
  int si, di, substrlen;
  unsigned char *substr;
  unsigned char tmpstr[7];
  unsigned char *lt = "&lt;";
  unsigned char *gt = "&gt;";
  unsigned char *amp = "&amp;";
  unsigned char *nl = "<BR>\n";
  di = 0;
  si = 0;
  if (dstlen < 0 + 0 + 1)
    goto term;
  strcpy(dst, "");
  dst += 0;
  di += 0;
  for (; si < srclen && di < dstlen; si++, src++) {
    if (*src >= 160) {
      substrlen = 6;
      sprintf(tmpstr, "&#%d;", *src);
      substr = tmpstr;
    } else
      switch (*src) {
      case '<':
        substrlen = 4;
        substr = lt;
        break;
      case '>':
        substrlen = 4;
        substr = gt;
        break;
      case '&':
        substrlen = 5;
        substr = amp;
        break;
      case '\n':
        substrlen = 5;
        substr = nl;
        break;
      default:
        substrlen = 1;
        substr = src;
      }
    if (substrlen + di <= dstlen - 0 - 1) {
      strncpy(dst, substr, substrlen);
      dst += substrlen;
      di += substrlen;
    } else {
      break;
    }
  }
  strcpy(dst, "");
  dst += 0;
  di += 0;
term:
  if (si < srclen) {
    return -si;
  } else {
    return di;
  }
}
```