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

```asm
<potency_escape_markdown_backticks>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  movq   $0x0,-0x10(%rbp)
  movq   $0x0,-0x8(%rbp)
  movq   $0x0,-0x10(%rbp)
  jmp    L28
L38:
  mov    -0x18(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  cmp    $0x5c,%eax
  je     L56
  cmp    $0x60,%eax
  je     L8
  jmp    L46
L56:
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x20(%rbp),%rdx
  add    %rdx,%rax
  movb   $0x5c,(%rax)
  mov    -0x18(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x20(%rbp),%rdx
  add    %rax,%rdx
  movzbl (%rcx),%eax
  mov    %al,(%rdx)
  jmp    L76
L8:
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x20(%rbp),%rdx
  add    %rdx,%rax
  movb   $0x20,(%rax)
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x20(%rbp),%rdx
  add    %rdx,%rax
  movb   $0x60,(%rax)
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x20(%rbp),%rdx
  add    %rdx,%rax
  movb   $0x20,(%rax)
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x20(%rbp),%rdx
  add    %rdx,%rax
  movb   $0x60,(%rax)
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x20(%rbp),%rdx
  add    %rdx,%rax
  movb   $0x60,(%rax)
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x20(%rbp),%rdx
  add    %rdx,%rax
  movb   $0x20,(%rax)
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x20(%rbp),%rdx
  add    %rdx,%rax
  movb   $0x60,(%rax)
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x20(%rbp),%rdx
  add    %rdx,%rax
  movb   $0x20,(%rax)
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x20(%rbp),%rdx
  add    %rdx,%rax
  movb   $0x60,(%rax)
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x20(%rbp),%rdx
  add    %rdx,%rax
  movb   $0x60,(%rax)
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x20(%rbp),%rdx
  add    %rdx,%rax
  movb   $0x20,(%rax)
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x20(%rbp),%rdx
  add    %rdx,%rax
  movb   $0x60,(%rax)
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x20(%rbp),%rdx
  add    %rdx,%rax
  movb   $0x20,(%rax)
  jmp    L76
L46:
  mov    -0x18(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x20(%rbp),%rdx
  add    %rax,%rdx
  movzbl (%rcx),%eax
  mov    %al,(%rdx)
L76:
  addq   $0x1,-0x10(%rbp)
L28:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %rax,-0x10(%rbp)
  jae    L70
  mov    -0x28(%rbp),%rax
  sub    $0xe,%rax
  cmp    %rax,-0x8(%rbp)
  jb     L38
L70:
  mov    -0x20(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x20(%rbp),%rax
  leave
  ret
```

assistant: ```c
char *potency_escape_markdown_backticks(const char *unescaped, char *escaped, const size_t escapedLength) {
  size_t i = 0;
  size_t j = 0;
  for (i = 0; (i < strlen(unescaped)) && (j < (escapedLength - 14)); i++) {
    switch (unescaped[i]) {
    case '\\':
      escaped[j++] = '\\';
      escaped[j++] = unescaped[i];
      break;
    case '`':
      escaped[j++] = ' ';
      escaped[j++] = '`';
      escaped[j++] = ' ';
      escaped[j++] = '`';
      escaped[j++] = '`';
      escaped[j++] = ' ';
      escaped[j++] = '`';
      escaped[j++] = ' ';
      escaped[j++] = '`';
      escaped[j++] = '`';
      escaped[j++] = ' ';
      escaped[j++] = '`';
      escaped[j++] = ' ';
      break;
    default:
      escaped[j++] = unescaped[i];
    }
  }
  escaped[j] = 0;
  return &escaped[0];
}
```