user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %edi,0x4(%rsp)
  mov    %rsi,0x8(%rsp)
  mov    $0x1,%edx
  call   <get_next_tab_stop@plt>
  mov    %eax,%r15d
  movl   $0x2,(%rsp)
  mov    $0x0,%r14d
  mov    $0x0,%ebx
  mov    $0x0,%r13d
  jmp    L76
L78:
  mov    (%rsp),%edx
  lea    0x1(%rdx),%ebp
  mov    0x8(%rsp),%rsi
  mov    0x4(%rsp),%edi
  call   <get_next_tab_stop@plt>
  mov    %eax,%r15d
  mov    %ebp,(%rsp)
  mov    $0x1,%r14d
  jmp    L172
L65:
  cmp    $0x9,%r12d
  je     L156
  test   %r13d,%r13d
  jle    L48
L14:
  mov    %r13d,%ebp
L115:
  mov    $0x9,%edi
  call   <putchar@plt>
  sub    $0x1,%ebp
  test   %ebp,%ebp
  jg     L115
  test   %r13d,%r13d
  mov    $0x1,%eax
  cmovg  %r13d,%eax
  sub    %eax,%r13d
L48:
  test   %ebx,%ebx
  jle    L128
L142:
  mov    $0x20,%edi
  call   <putchar@plt>
  sub    $0x1,%ebx
  jne    L142
L128:
  movsbl %r12b,%edi
  call   <putchar@plt>
  cmp    $0xa,%r12d
  je     L144
L76:
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    %eax,%r12d
  mov    D3(%rip),%rax
  cmp    %r12d,(%rax)
  je     L185
  cmp    %r15d,%r14d
  je     L78
  add    $0x1,%r14d
L172:
  cmp    $0x20,%r12d
  jne    L65
  add    $0x1,%ebx
  cmp    %r15d,%r14d
  jne    L76
  add    $0x1,%r13d
  mov    (%rsp),%edx
  lea    0x1(%rdx),%ebx
  mov    0x8(%rsp),%rsi
  mov    0x4(%rsp),%edi
  call   <get_next_tab_stop@plt>
  mov    %eax,%r15d
  mov    %ebx,(%rsp)
  mov    $0x0,%r14d
  mov    $0x0,%ebx
  jmp    L76
L156:
  mov    (%rsp),%edx
  lea    0x1(%rdx),%ebx
  mov    0x8(%rsp),%rsi
  mov    0x4(%rsp),%edi
  call   <get_next_tab_stop@plt>
  mov    %eax,%r15d
  test   %r13d,%r13d
  jle    L39
  mov    %ebx,(%rsp)
  mov    $0x0,%r14d
  mov    $0x0,%ebx
  jmp    L14
L144:
  mov    $0x1,%edx
  mov    0x8(%rsp),%rsi
  mov    0x4(%rsp),%edi
  call   <get_next_tab_stop@plt>
  mov    %eax,%r15d
  movl   $0x2,(%rsp)
  mov    $0x0,%r14d
  mov    $0x0,%ebx
  mov    $0x0,%r13d
  jmp    L76
L185:
  test   %r13d,%r13d
  jle    L132
L137:
  mov    $0x9,%edi
  call   <putchar@plt>
  sub    $0x1,%r13d
  jne    L137
L132:
  test   %ebx,%ebx
  jle    L85
L147:
  mov    $0x20,%edi
  call   <putchar@plt>
  sub    $0x1,%ebx
  jne    L147
L85:
  mov    $0x0,%eax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L39:
  movsbl %r12b,%edi
  call   <putchar@plt>
  mov    %ebx,(%rsp)
  mov    $0x0,%r14d
  mov    $0x0,%ebx
  jmp    L76
```

assistant: ```c
int main(int argc, char *argv[]) {
  int c, t, s, pos, next_stop, index;
  t = s = pos = 0;
  index = 1;
  next_stop = get_next_tab_stop(argc, argv, index++);
  while ((c = getchar()) != EOF) {
    if (pos == next_stop) {
      pos = 1;
      next_stop = get_next_tab_stop(argc, argv, index++);
    } else {
      pos++;
    }
    if (c == ' ') {
      if (pos == next_stop) {
        t++;
        pos = 0;
        s = 0;
        next_stop = get_next_tab_stop(argc, argv, index++);
      } else {
        s++;
      }
    } else {
      if (c == '\t') {
        s = 0;
        pos = 0;
        next_stop = get_next_tab_stop(argc, argv, index++);
      }
      {
        for (; t > 0; t--)
          putchar('\t');
        for (; s > 0; s--)
          putchar(' ');
      };
      putchar(c);
      if (c == '\n') {
        t = s = pos = 0;
        index = 1;
        next_stop = get_next_tab_stop(argc, argv, index++);
      }
    }
  }
  {
    for (; t > 0; t--)
      putchar('\t');
    for (; s > 0; s--)
      putchar(' ');
  };
  return 0;
}
```