user: Please show me the C implementation that matches the assembly code listed below:

```asm
<doxy_beautification>:
  endbr64
  movzbl (%rdx),%eax
  mov    %rdi,%r8
  test   %al,%al
  je     L159
  push   %r15
  push   %r14
  push   %r13
  xor    %r13d,%r13d
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdx,%rbx
  sub    $0x18,%rsp
  jmp    L1
  nopl   0x0(%rax,%rax,1)
L98:
  cmp    $0xa,%al
  je     L116
  lea    -0x20(%rax),%edx
  cmp    $0x1,%dl
  jbe    L237
  cmp    $0x2a,%al
  jne    L210
L237:
  movzbl 0x1(%rbx),%eax
  add    $0x1,%rbx
  add    $0x1,%r13d
  test   %al,%al
  je     L251
L1:
  cmp    $0xd,%al
  jne    L98
L116:
  movzbl 0x1(%rbx),%eax
  add    $0x1,%rbx
  xor    %r13d,%r13d
  test   %al,%al
  jne    L1
L251:
  movb   $0x0,(%r8)
  add    $0x18,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L210:
  movzbl (%rbx),%eax
  test   %al,%al
  je     L251
  xor    %ebp,%ebp
  xor    %r15d,%r15d
  mov    $0xffffffffffffdbfe,%r14
  movabs $0x40100002400,%r12
  nopl   (%rax)
L173:
  mov    %rbx,%rdx
  cmp    $0xd,%al
  ja     L3
  bt     %rax,%r14
  jae    L112
  nopl   (%rax)
L3:
  cmp    $0x3c,%al
  je     L34
L71:
  test   %ebp,%ebp
  jne    L158
  mov    %al,(%r8)
  add    $0x1,%r8
L158:
  cmpb   $0x3e,(%rdx)
  jne    L228
  cmpb   $0x5c,-0x1(%rdx)
  cmovne %r15d,%ebp
L228:
  movzbl 0x1(%rdx),%eax
  add    $0x1,%rdx
  cmp    $0xd,%al
  ja     L3
  bt     %rax,%r14
  jb     L3
  test   %al,%al
  je     L251
L112:
  mov    %rdx,%rbx
  xor    %edi,%edi
  xor    %esi,%esi
  nopl   (%rax)
L188:
  cmp    $0x2a,%al
  ja     L270
  bt     %rax,%r12
  jb     L55
L270:
  test   %edi,%edi
  je     L230
  movslq %edi,%rdx
  mov    $0xa,%esi
  mov    %r8,%rdi
  mov    %rdx,0x8(%rsp)
  call   <memset@plt>
  mov    0x8(%rsp),%rdx
  mov    %rax,%r8
  add    %rdx,%r8
L230:
  movzbl (%rbx),%eax
  test   %al,%al
  jne    L173
  jmp    L251
  cs nopw 0x0(%rax,%rax,1)
L55:
  movzbl (%rbx),%ecx
  add    $0x1,%rdx
  cmp    $0xd,%cl
  je     L111
  cmp    $0xa,%cl
  je     L111
  lea    0x1(%rsi),%eax
  cmp    %r13d,%esi
  mov    %eax,%esi
  jle    L27
L157:
  movzbl (%rdx),%eax
  test   %al,%al
  jne    L188
  jmp    L251
  nopw   0x0(%rax,%rax,1)
L111:
  cmp    $0xa,%al
  mov    %rdx,%rbx
  mov    $0x1,%esi
  sete   %al
  movzbl %al,%eax
  add    %eax,%edi
  jmp    L157
  nopl   0x0(%rax)
L34:
  cmpb   $0x5c,-0x1(%rdx)
  je     L71
  mov    $0x1,%ebp
  jmp    L158
L159:
  movb   $0x0,(%rdi)
  xor    %eax,%eax
  ret
L27:
  mov    %rdx,%rbx
  jmp    L157
```

assistant: ```c
int doxy_beautification(char *outbuf, int len, const char *doxygen) {
  const char *ch = doxygen;
  const char *p;
  int bracket = 0;
  int indentation = 0;
  if (!doxygen[0]) {
    *outbuf = '\0';
    return 0;
  }
  while (*ch && (*ch == '\r' || *ch == '\n' || *ch == ' ' || *ch == '*' || *ch == '!')) {
    indentation++;
    if (*ch == '\r' || *ch == '\n')
      indentation = 0;
    ch++;
  }
  while (*ch) {
    int ind = 0;
    int newlines = 0;
    while (*ch && *ch != '\r' && *ch != '\n') {
      if (*ch == '<' && *(ch - 1) != '\\')
        bracket = 1;
      if (!bracket)
        *outbuf++ = *ch;
      if (*ch == '>' && *(ch - 1) != '\\')
        bracket = 0;
      ch++;
    }
    p = ch;
    while (*p && (*p == '\r' || *p == '\n' || *p == ' ' || *p == '*')) {
      if (*ch == '\r' || *ch == '\n') {
        ind = 0;
        if (*p == '\n')
          newlines++;
      }
      p++;
      if (ind++ <= indentation)
        ch = p;
    }
    if (*p == '\0')
      break;
    for (; newlines > 0; newlines--)
      *outbuf++ = '\n';
  }
  *outbuf = '\0';
  return 0;
}
```