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

```asm
<cleanIgnore>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %rdx,-0x38(%rbp)
  movl   $0xffffffff,-0x20(%rbp)
  movl   $0x1,-0x18(%rbp)
  movl   $0xffffffff,-0x14(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x2c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x8(%rbp)
  jmp    L77
L73:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %eax,%eax
  jne    L56
  cmpl   $0x0,-0x18(%rbp)
  je     L19
  addl   $0x1,-0x20(%rbp)
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  mov    -0x10(%rbp),%rax
  mov    %rax,(%rdx)
  movl   $0x0,-0x18(%rbp)
L19:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isupper@plt>
  test   %rax,%rax
  je     L143
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <tolower@plt>
  mov    -0x10(%rbp),%rdx
  mov    %al,(%rdx)
  jmp    L143
L56:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  jne    L154
  mov    -0x10(%rbp),%rax
  movb   $0x0,(%rax)
  movl   $0x1,-0x18(%rbp)
  jmp    L143
L154:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x9,%al
  jne    L111
  mov    -0x10(%rbp),%rax
  movb   $0x0,(%rax)
  movl   $0x1,-0x18(%rbp)
  mov    -0x20(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x14(%rbp)
  jmp    L143
L111:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  je     L150
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0xd,%al
  jne    L143
L150:
  mov    -0x10(%rbp),%rax
  movb   $0x0,(%rax)
  addl   $0x1,-0x20(%rbp)
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    -0x10(%rbp),%rdx
  add    $0x1,%rdx
  mov    %rdx,(%rax)
  mov    -0x20(%rbp),%eax
  jmp    L127
L143:
  addq   $0x1,-0x10(%rbp)
L77:
  mov    -0x10(%rbp),%rax
  cmp    -0x8(%rbp),%rax
  jb     L73
  subq   $0x1,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L148
  mov    -0x20(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0x14(%rbp)
  je     L183
  mov    -0x10(%rbp),%rax
  movb   $0x20,(%rax)
  jmp    L148
L183:
  mov    -0x10(%rbp),%rax
  movb   $0x9,(%rax)
L148:
  movl   $0x1,-0x1c(%rbp)
  jmp    L17
L28:
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,-0x10(%rbp)
  subq   $0x1,-0x10(%rbp)
  mov    -0x1c(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  je     L140
  mov    -0x10(%rbp),%rax
  movb   $0x20,(%rax)
  jmp    L113
L140:
  mov    -0x10(%rbp),%rax
  movb   $0x9,(%rax)
L113:
  addl   $0x1,-0x1c(%rbp)
L17:
  mov    -0x1c(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jle    L28
  mov    -0x20(%rbp),%eax
  not    %eax
L127:
  leave
  ret
```

assistant: ```c
int cleanIgnore(char *inbuf, int maxbuf, char **wstarts) {
  char *curpos, *badpos;
  int i, j, prevspace, tab_ndx;
  i = -1;
  prevspace = 1;
  tab_ndx = -1;
  curpos = inbuf;
  badpos = curpos + maxbuf;
  while (curpos < badpos) {
    if (!isspace(*curpos)) {
      if (prevspace) {
        i++;
        wstarts[i] = curpos;
        prevspace = 0;
      }
      if (isupper(*curpos)) {
        *curpos = tolower(*curpos);
      }
    } else if (*curpos == ' ') {
      *curpos = '\0';
      prevspace = 1;
    } else if (*curpos == '\t') {
      *curpos = '\0';
      prevspace = 1;
      tab_ndx = i + 1;
    } else if (*curpos == '\n' || *curpos == '\r') {
      *curpos = '\0';
      i++;
      wstarts[i] = curpos + 1;
      return i;
    }
    curpos++;
  }
  curpos--;
  if (*curpos == '\0') {
    if (tab_ndx != (i + 1)) {
      *curpos = ' ';
    } else {
      *curpos = '\t';
    }
  }
  for (j = 1; j <= i; j++) {
    curpos = wstarts[j];
    curpos--;
    if (j != tab_ndx) {
      *curpos = ' ';
    } else {
      *curpos = '\t';
    }
  }
  return -(i + 1);
}
```