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

```asm
<parse_html_decode>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x8,%rsp
  movzbl (%rsi),%eax
  cmp    %rdx,%rsi
  je     L227
  mov    %rsi,%rbx
  mov    %rdx,%r14
  jmp    L172
  nopl   (%rax)
L43:
  mov    %al,0x0(%rbp)
  add    $0x1,%rbp
  movzbl 0x1(%rbx),%eax
  mov    %r12,%rbx
L213:
  cmp    %r14,%rbx
  je     L227
L172:
  test   %al,%al
  je     L227
  lea    0x1(%rbx),%r12
  cmp    $0x26,%al
  jne    L43
  movzbl 0x1(%rbx),%edi
  cmp    %r12,%r14
  je     L185
  test   %dil,%dil
  je     L185
  cmp    $0x23,%dil
  je     L163
  call   <isalpha@plt>
  test   %rax,%rax
  jne    L84
L185:
  movb   $0x26,0x0(%rbp)
  movzbl 0x1(%rbx),%eax
  mov    %r12,%rbx
  add    $0x1,%rbp
  cmp    %r14,%rbx
  jne    L172
L227:
  movb   $0x0,0x0(%rbp)
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L163:
  lea    0x2(%rbx),%r15
  cmpb   $0x78,0x2(%rbx)
  mov    %r15,%r13
  jne    L46
  jmp    L127
  nopw   0x0(%rax,%rax,1)
L214:
  add    $0x1,%r13
L46:
  movzbl 0x0(%r13),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L214
  mov    %r13,%rsi
  mov    $0xa,%edx
  mov    %r15,%rdi
  call   <convert_html_entity@plt>
  mov    %eax,%esi
  test   %eax,%eax
  js     L185
L174:
  mov    %rbp,%rdi
  mov    %r13,%rbx
  call   <ucs4_to_utf8_char@plt>
  mov    %rax,%rbp
  movzbl 0x0(%r13),%eax
  cmp    $0x3b,%al
  jne    L213
  movzbl 0x1(%r13),%eax
  add    $0x1,%rbx
  jmp    L213
  nopw   0x0(%rax,%rax,1)
L84:
  mov    %r12,%r13
  jmp    L164
  nopl   (%rax)
L47:
  add    $0x1,%r13
L164:
  movzbl 0x0(%r13),%edi
  call   <isalnum@plt>
  test   %rax,%rax
  jne    L47
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <find_html_entity@plt>
  mov    %eax,%esi
  test   %eax,%eax
  js     L185
  jmp    L174
  nopw   0x0(%rax,%rax,1)
L127:
  lea    0x3(%rbx),%r15
  mov    %r15,%r13
  jmp    L199
  nopl   0x0(%rax)
L134:
  add    $0x1,%r13
L199:
  movzbl 0x0(%r13),%edi
  call   <isxdigit@plt>
  test   %rax,%rax
  jne    L134
  mov    %r13,%rsi
  mov    $0x10,%edx
  mov    %r15,%rdi
  call   <convert_html_entity@plt>
  mov    %eax,%esi
  test   %eax,%eax
  js     L185
  jmp    L174
```

assistant: ```c
void parse_html_decode(unsigned char *buf, const unsigned char *start, const unsigned char *end) {
  const unsigned char *p = start;
  unsigned char *out = buf;
  while (*p && p != end) {
    if (*p != '&') {
      *out++ = *p++;
      continue;
    }
    ++p;
    if (!*p || p == end) {
      *out++ = '&';
      continue;
    }
    if (*p == '#' && p[1] == 'x') {
      const unsigned char *q = p;
      p += 2;
      while (isxdigit(*p))
        ++p;
      int e = convert_html_entity(q + 2, p, 16);
      if (e >= 0) {
        out = ucs4_to_utf8_char(out, e);
        if (*p == ';')
          ++p;
      } else {
        *out++ = '&';
        p = q;
      }
    } else if (*p == '#') {
      const unsigned char *q = p;
      ++p;
      while (isdigit(*p))
        ++p;
      int e = convert_html_entity(q + 1, p, 10);
      if (e >= 0) {
        out = ucs4_to_utf8_char(out, e);
        if (*p == ';')
          ++p;
      } else {
        *out++ = '&';
        p = q;
      }
    } else if (isalpha(*p)) {
      const unsigned char *q = p;
      while (isalnum(*p))
        ++p;
      int e = find_html_entity(q, p);
      if (e >= 0) {
        out = ucs4_to_utf8_char(out, e);
        if (*p == ';')
          ++p;
      } else {
        *out++ = '&';
        p = q;
      }
    } else {
      *out++ = '&';
      continue;
    }
  }
  *out = 0;
}
```