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

```asm
<remove_markup>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  jmp    L137
L38:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  cmp    $0x5c,%eax
  je     L42
  cmp    $0x5c,%eax
  jg     L1
  cmp    $0x26,%eax
  je     L163
  cmp    $0x3c,%eax
  je     L154
  jmp    L1
L163:
  mov    -0x8(%rbp),%rax
  mov    $0x6,%edx
  lea    D27(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L63
  addq   $0x6,-0x8(%rbp)
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  movb   $0x20,(%rax)
  jmp    L137
L63:
  mov    -0x8(%rbp),%rax
  mov    $0x5,%edx
  lea    D31(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L13
  addq   $0x5,-0x8(%rbp)
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  movb   $0x26,(%rax)
  jmp    L137
L13:
  mov    -0x8(%rbp),%rax
  mov    $0x4,%edx
  lea    D16(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L161
  addq   $0x4,-0x8(%rbp)
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  movb   $0x3e,(%rax)
  jmp    L137
L161:
  mov    -0x8(%rbp),%rax
  mov    $0x4,%edx
  lea    D0(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L137
  addq   $0x4,-0x8(%rbp)
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  movb   $0x3c,(%rax)
  jmp    L137
L90:
  addq   $0x1,-0x8(%rbp)
L154:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L10
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3e,%al
  jne    L90
L10:
  addq   $0x1,-0x8(%rbp)
  jmp    L137
L42:
  addq   $0x1,-0x8(%rbp)
L1:
  mov    -0x8(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x10(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
L137:
  cmpq   $0x0,-0x8(%rbp)
  je     L117
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L38
L117:
  mov    -0x10(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x18(%rbp),%rax
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D27
type: string
name: retrieve_data
arguments: tag: D31
type: string
name: retrieve_data
arguments: tag: D16
type: string
name: retrieve_data
arguments: tag: D0
type: string

tool: D27: &nbsp;

tool: D31: &amp;

tool: D16: &gt;

tool: D0: &lt;

assistant: ```c
char *remove_markup(char *str) {
  char *r = str;
  char *s = str;
  while (s && *s) {
    switch (*s) {
    case '&':
      if (!strncmp(s, "&nbsp;", 6)) {
        s += 6;
        *(r++) = ' ';
      } else if (!strncmp(s, "&amp;", 5)) {
        s += 5;
        *(r++) = '&';
      } else if (!strncmp(s, "&gt;", 4)) {
        s += 4;
        *(r++) = '>';
      } else if (!strncmp(s, "&lt;", 4)) {
        s += 4;
        *(r++) = '<';
      }
      break;
    case '<':
      while (*s && *s != '>')
        s++;
      s++;
      break;
    case '\\':
      s++;
    default:
      *(r++) = *s++;
    }
  }
  *(r) = '\0';
  return str;
}
```