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

```asm
<mg_printf_html_escape>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x2e0,%rsp
  mov    %rdi,-0x2d8(%rbp)
  mov    %rsi,-0x2e0(%rbp)
  mov    %rdx,-0xa0(%rbp)
  mov    %rcx,-0x98(%rbp)
  mov    %r8,-0x90(%rbp)
  mov    %r9,-0x88(%rbp)
  test   %al,%al
  je     L50
  movaps %xmm0,-0x80(%rbp)
  movaps %xmm1,-0x70(%rbp)
  movaps %xmm2,-0x60(%rbp)
  movaps %xmm3,-0x50(%rbp)
  movaps %xmm4,-0x40(%rbp)
  movaps %xmm5,-0x30(%rbp)
  movaps %xmm6,-0x20(%rbp)
  movaps %xmm7,-0x10(%rbp)
L50:
  mov    %fs:0x28,%rax
  mov    %rax,-0xb8(%rbp)
  xor    %eax,%eax
  lea    -0x2b0(%rbp),%rax
  mov    %rax,-0x2b8(%rbp)
  mov    -0x2e0(%rbp),%rdx
  mov    -0x2c0(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <va_start@plt>
  mov    -0x2c0(%rbp),%ecx
  mov    -0x2e0(%rbp),%rdx
  lea    -0x2b8(%rbp),%rax
  mov    $0x1f4,%esi
  mov    %rax,%rdi
  call   <mg_avprintf@plt>
  mov    %eax,-0x2bc(%rbp)
  mov    -0x2c0(%rbp),%eax
  mov    %eax,%edi
  call   <va_end@plt>
  cmpl   $0x0,-0x2bc(%rbp)
  js     L83
  movl   $0x0,-0x2c4(%rbp)
  mov    -0x2c4(%rbp),%eax
  mov    %eax,-0x2c8(%rbp)
  jmp    L79
L39:
  mov    -0x2b8(%rbp),%rdx
  mov    -0x2c8(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x3c,%al
  je     L62
  mov    -0x2b8(%rbp),%rdx
  mov    -0x2c8(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x3e,%al
  jne    L75
L62:
  mov    -0x2c8(%rbp),%eax
  sub    -0x2c4(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2b8(%rbp),%rcx
  mov    -0x2c4(%rbp),%eax
  cltq
  add    %rax,%rcx
  mov    -0x2d8(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <mg_send@plt>
  mov    -0x2b8(%rbp),%rdx
  mov    -0x2c8(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x3c,%al
  jne    L101
  lea    D19(%rip),%rax
  jmp    L23
L101:
  lea    D17(%rip),%rax
L23:
  mov    -0x2d8(%rbp),%rcx
  mov    $0x4,%edx
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <mg_send@plt>
  mov    -0x2c8(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x2c4(%rbp)
L75:
  addl   $0x1,-0x2c8(%rbp)
L79:
  mov    -0x2c8(%rbp),%eax
  cmp    -0x2bc(%rbp),%eax
  jl     L39
  mov    -0x2c8(%rbp),%eax
  sub    -0x2c4(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2b8(%rbp),%rcx
  mov    -0x2c4(%rbp),%eax
  cltq
  add    %rax,%rcx
  mov    -0x2d8(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <mg_send@plt>
L83:
  mov    -0x2b8(%rbp),%rdx
  lea    -0x2b0(%rbp),%rax
  cmp    %rax,%rdx
  je     L91
  mov    -0x2b8(%rbp),%rax
  test   %rax,%rax
  je     L91
  mov    -0x2b8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
L91:
  nop
  mov    -0xb8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L10
  call   <__stack_chk_fail@plt>
L10:
  leave
  ret
```

tool_calls: name: read_data
arguments: label: D19
data_type: string
name: read_data
arguments: label: D17
data_type: string

tool: D19: &lt;

tool: D17: &gt;

assistant: ```c
void mg_printf_html_escape(struct mg_connection *nc, const char *fmt, ...) {
  char mem[500], *buf = mem;
  int i, j, len;
  va_list ap;
  va_start(ap, fmt);
  len = mg_avprintf(&buf, sizeof(mem), fmt, ap);
  va_end(ap);
  if (len >= 0) {
    for (i = j = 0; i < len; i++) {
      if (buf[i] == '<' || buf[i] == '>') {
        mg_send(nc, buf + j, i - j);
        mg_send(nc, buf[i] == '<' ? "&lt;" : "&gt;", 4);
        j = i + 1;
      }
    }
    mg_send(nc, buf + j, i - j);
  }
  if (buf != mem && buf != NULL) {
    free(buf);
  }
}
```