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

```asm
<cleanIgnore>:
  endbr64
  push   %r15
  movslq %esi,%rsi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  lea    (%rdi,%rsi,1),%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x8,%rsp
  cmp    %rbp,%rdi
  jae    L153
  mov    %rdx,%r13
  mov    $0xffffffff,%r14d
  mov    $0x1,%r15d
  mov    $0xffffffff,%r12d
  jmp    L70
  nopl   0x0(%rax)
L199:
  test   %r15d,%r15d
  je     L44
  add    $0x1,%r12d
  movslq %r12d,%rax
  mov    %rbx,0x0(%r13,%rax,8)
L44:
  movsbl (%rbx),%edi
  xor    %r15d,%r15d
  call   <isupper@plt>
  test   %rax,%rax
  jne    L71
L91:
  add    $0x1,%rbx
  cmp    %rbx,%rbp
  je     L117
L70:
  movsbl (%rbx),%edi
  call   <isspace@plt>
  test   %eax,%eax
  je     L199
  movzbl (%rbx),%eax
  cmp    $0x20,%al
  je     L197
  cmp    $0x9,%al
  je     L113
  cmp    $0xa,%al
  je     L32
  cmp    $0xd,%al
  jne    L91
L32:
  lea    0x1(%r12),%r9d
  movb   $0x0,(%rbx)
  add    $0x1,%rbx
  movslq %r9d,%rax
  mov    %rbx,0x0(%r13,%rax,8)
L16:
  add    $0x8,%rsp
  mov    %r9d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L197:
  movb   $0x0,(%rbx)
  add    $0x1,%rbx
  mov    $0x1,%r15d
  cmp    %rbx,%rbp
  jne    L70
  nopw   0x0(%rax,%rax,1)
L117:
  mov    %r12d,%r9d
  cmpb   $0x0,-0x1(%rbp)
  not    %r9d
  je     L69
L142:
  lea    0x1(%r12),%r8d
  mov    $0x1,%eax
  mov    $0x20,%edi
  mov    $0x9,%esi
  test   %r12d,%r12d
  jle    L16
  nopl   (%rax)
L161:
  cmp    %eax,%r14d
  mov    %esi,%ecx
  mov    0x0(%r13,%rax,8),%rdx
  cmovne %edi,%ecx
  add    $0x1,%rax
  mov    %cl,-0x1(%rdx)
  cmp    %rax,%r8
  jne    L161
  jmp    L16
  nopl   0x0(%rax,%rax,1)
L71:
  movsbl (%rbx),%edi
  call   <tolower@plt>
  mov    %al,(%rbx)
  jmp    L91
  nop
L113:
  movb   $0x0,(%rbx)
  lea    0x1(%r12),%r14d
  mov    $0x1,%r15d
  jmp    L91
  nopl   0x0(%rax,%rax,1)
L69:
  lea    0x1(%r12),%eax
  mov    $0x20,%edx
  cmp    %r14d,%eax
  mov    $0x9,%eax
  cmovne %edx,%eax
  mov    %al,-0x1(%rbp)
  jmp    L142
L153:
  xor    %r9d,%r9d
  cmpb   $0x0,-0x1(%rdi)
  jne    L16
  movb   $0x20,-0x1(%rdi)
  jmp    L16
```

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);
}
```