user: What would the C source look like for the assembly code provided here:

```asm
<cleanline>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  xor    %ebp,%ebp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x18,%rsp
  mov    %rsi,0x8(%rsp)
  jmp    L196
  xchg   %ax,%ax
L258:
  cmp    $0x9,%al
  je     L119
  cmp    $0x23,%al
  jne    L22
  movb   $0x0,(%rbx,%rbp,1)
L22:
  add    $0x1,%rbp
L196:
  mov    %rbx,%rdi
  call   <strlen@plt>
  cmp    %ebp,%eax
  jle    L195
  movzbl (%rbx,%rbp,1),%eax
  cmp    $0xa,%al
  jne    L258
L119:
  movb   $0x20,(%rbx,%rbp,1)
  jmp    L22
  nopw   0x0(%rax,%rax,1)
L195:
  mov    %rbx,%rdi
  call   <strlen@plt>
  lea    -0x1(%rax),%edx
  movslq %edx,%rcx
  add    %rbx,%rcx
  cmpb   $0x20,(%rcx)
  jne    L232
  sub    $0x2,%eax
  cltq
  test   %edx,%edx
  js     L232
  nop
L145:
  mov    %eax,%edx
  movb   $0x0,(%rcx)
  cmpb   $0x20,(%rbx,%rax,1)
  lea    (%rbx,%rax,1),%rcx
  not    %edx
  sete   %sil
  sub    $0x1,%rax
  shr    $0x1f,%edx
  test   %dl,%sil
  jne    L145
L232:
  mov    %rbx,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  je     L235
  xor    %r13d,%r13d
  xor    %r12d,%r12d
  nopl   (%rax)
L212:
  mov    %rbx,%rdi
  call   <strlen@plt>
  cmp    %r12d,%eax
  jle    L95
  movslq %r12d,%rdx
  lea    (%rbx,%rdx,1),%r14
  movzbl (%r14),%eax
  test   %r12d,%r12d
  je     L132
  cmp    $0x20,%al
  je     L85
L132:
  lea    0x1(%r12),%ebp
  movslq %ebp,%rbp
  cmp    $0x20,%al
  je     L6
  jmp    L221
  nop
L79:
  mov    %ebp,%r12d
  lea    (%rbx,%rbp,1),%r14
  add    $0x1,%rbp
  cmpb   $0x20,-0x1(%rbx,%rbp,1)
  jne    L221
L6:
  mov    %rbx,%rdi
  lea    -0x1(%rbp),%r12d
  call   <strlen@plt>
  cmp    %r12d,%eax
  jg     L79
  movslq %r12d,%rdx
  lea    (%rbx,%rdx,1),%r14
  cmpb   $0x20,(%r14)
  je     L126
L221:
  lea    0x1(%r12),%ebp
  movslq %r13d,%r15
  movslq %r12d,%r12
  sub    %r12,%r15
  movslq %ebp,%rbp
  add    0x8(%rsp),%r15
  jmp    L7
  nopl   0x0(%rax,%rax,1)
L68:
  movzbl (%r14),%eax
  mov    %ebp,%r12d
  lea    (%rbx,%rbp,1),%r14
  add    $0x1,%r13d
  mov    %al,-0x1(%r15,%rbp,1)
  add    $0x1,%rbp
  cmpb   $0x20,-0x1(%rbx,%rbp,1)
  je     L126
L7:
  mov    %rbx,%rdi
  lea    -0x1(%rbp),%r12d
  call   <strlen@plt>
  cmp    %r12d,%eax
  jg     L68
L126:
  mov    0x8(%rsp),%rsi
  movslq %r13d,%rax
  cmpb   $0x20,-0x1(%rsi,%rax,1)
  jne    L212
L235:
  xor    %r12d,%r12d
L35:
  add    $0x18,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L85:
  mov    0x8(%rsp),%rcx
  movslq %r13d,%rax
  add    $0x1,%r13d
  movb   $0x20,(%rcx,%rax,1)
  movzbl (%r14),%eax
  jmp    L132
L95:
  mov    0x8(%rsp),%rbx
  mov    %rbx,%rdi
  call   <strlen@plt>
  cltq
  cmpb   $0x20,-0x1(%rbx,%rax,1)
  je     L153
L64:
  xor    %ebx,%ebx
  mov    $0x1,%r12d
  jmp    L34
  nopl   0x0(%rax)
L146:
  mov    0x8(%rsp),%rax
  cmpb   $0x20,(%rax,%rbx,1)
  sete   %al
  add    $0x1,%rbx
  movzbl %al,%eax
  add    %eax,%r12d
L34:
  mov    0x8(%rsp),%rdi
  call   <strlen@plt>
  cmp    %ebx,%eax
  jg     L146
  jmp    L35
L153:
  mov    0x8(%rsp),%rbx
  mov    %rbx,%rdi
  call   <strlen@plt>
  cltq
  movb   $0x0,-0x1(%rbx,%rax,1)
  jmp    L64
```

assistant: ```c
int cleanline(char *sbuf, char *dbuf) {
  int x, y;
  for (x = 0; x < strlen(sbuf); x++) {
    if (sbuf[x] == '\n')
      sbuf[x] = ' ';
    if (sbuf[x] == '\t')
      sbuf[x] = ' ';
    if (sbuf[x] == '#')
      sbuf[x] = '\0';
  }
  x = strlen(sbuf) - 1;
  while (sbuf[x] == ' ' && x > -1) {
    sbuf[x] = '\0';
    x--;
  }
  if (!strlen(sbuf))
    return 0;
  x = 0;
  y = 0;
  while (x < strlen(sbuf)) {
    if (sbuf[x] == ' ' && x) {
      dbuf[y] = ' ';
      y++;
    }
    while (sbuf[x] == ' ' && x < strlen(sbuf))
      x++;
    while (sbuf[x] != ' ' && x < strlen(sbuf)) {
      dbuf[y] = sbuf[x];
      y++;
      x++;
    }
    if (dbuf[y - 1] == ' ')
      return 0;
  }
  if (dbuf[strlen(dbuf) - 1] == ' ')
    dbuf[strlen(dbuf) - 1] = '\0';
  y = 1;
  for (x = 0; x < strlen(dbuf); x++)
    if (dbuf[x] == ' ')
      y++;
  return y;
}
```