user: Translate the below assembly code into C programming language:

```asm
<ntobr>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %esi,-0x4c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x3e72623c,-0xe(%rbp)
  movw   $0xa,-0xa(%rbp)
  movw   $0xa,-0x10(%rbp)
  lea    -0xe(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x38(%rbp)
  lea    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x34(%rbp)
  mov    -0x4c(%rbp),%eax
  add    %eax,%eax
  cltq
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x48(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x18(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x48(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x48(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  jmp    L40
L41:
  mov    -0x30(%rbp),%rax
  cmp    -0x48(%rbp),%rax
  je     L1
  mov    -0x30(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x3e,%al
  jne    L59
L1:
  mov    -0x30(%rbp),%rax
  sub    -0x20(%rbp),%rax
  add    %rax,-0x28(%rbp)
  mov    -0x34(%rbp),%eax
  cltq
  add    %rax,-0x30(%rbp)
  lea    -0x10(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    -0x34(%rbp),%eax
  cltq
  add    %rax,-0x28(%rbp)
  mov    -0x30(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  jmp    L33
L59:
  mov    -0x30(%rbp),%rax
  sub    -0x20(%rbp),%rax
  add    %rax,-0x28(%rbp)
  mov    -0x34(%rbp),%eax
  cltq
  add    %rax,-0x30(%rbp)
  lea    -0xe(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    -0x38(%rbp),%eax
  cltq
  add    %rax,-0x28(%rbp)
  mov    -0x30(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
L33:
  mov    -0x30(%rbp),%rax
  mov    %rax,-0x20(%rbp)
L40:
  lea    -0x10(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strstr@plt>
  mov    %rax,-0x30(%rbp)
  cmpq   $0x0,-0x30(%rbp)
  jne    L41
  mov    -0x4c(%rbp),%edx
  mov    -0x18(%rbp),%rcx
  mov    -0x48(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <strscpy@plt>
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L19
  call   <__stack_chk_fail@plt>
L19:
  leave
  ret
```

assistant: ```c
void ntobr(char textbuff[], int texbufftsize) {
  char replace[] = {"<br>\n"};
  char find[] = {"\n"};
  char *cptr;
  int rlen = strlen(replace);
  int flen = strlen(find);
  char *buff = malloc((texbufftsize * 2));
  char *bptr;
  char *cprtold = textbuff;
  buff[0] = '\0';
  cptr = textbuff;
  bptr = buff;
  strcpy(buff, textbuff);
  while ((cptr = (char *)strstr(cptr, find))) {
    if ((cptr == textbuff) || (cptr[-1] == '>')) {
      bptr = (bptr + (cptr - cprtold));
      cptr = (cptr + flen);
      strcpy(bptr, find);
      bptr = (bptr + flen);
      strcat(bptr, cptr);
    } else {
      bptr = (bptr + (cptr - cprtold));
      cptr = (cptr + flen);
      strcpy(bptr, replace);
      bptr = (bptr + rlen);
      strcat(bptr, cptr);
    }
    cprtold = cptr;
  }
  strscpy(textbuff, buff, texbufftsize);
  free(buff);
}
```