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

```asm
<linetokens>:
  endbr64
  push   %r15
  xor    %r15d,%r15d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edx,%ebx
  sub    $0x48,%rsp
  mov    %rdi,0x28(%rsp)
  lea    0x28(%rsp),%rdi
  mov    0x80(%rsp),%ebp
  mov    %rsi,0x20(%rsp)
  mov    %edx,0xc(%rsp)
  mov    %rcx,0x10(%rsp)
  mov    %r8,0x18(%rsp)
  mov    %r9d,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  call   <getnewline1@plt>
  test   %rax,%rax
  je     L161
  mov    0x28(%rsp),%rax
  lea    -0x1(%rbx),%ecx
  xor    %r12d,%r12d
  mov    %ecx,0x4(%rsp)
  mov    %rax,0x30(%rsp)
  nopw   0x0(%rax,%rax,1)
L180:
  xor    %ebx,%ebx
  cmpb   $0x22,(%rax)
  jne    L120
  add    $0x1,%rax
  mov    $0x1,%ebx
  mov    %rax,0x30(%rsp)
L120:
  mov    0x10(%rsp),%rcx
  mov    %rax,(%rcx,%r12,8)
  movsbl (%rax),%edi
  cmp    $0xa,%dil
  je     L62
  cmp    $0xd,%dil
  je     L62
  xor    %r15d,%r15d
  jmp    L116
  nopw   0x0(%rax,%rax,1)
L166:
  mov    0x30(%rsp),%rax
  cmpb   $0x22,(%rax,%r15,1)
  jne    L69
  xor    $0x1,%ebx
L69:
  add    $0x1,%r15
  lea    0x1(%r13),%r14d
  movsbl (%rax,%r15,1),%edi
  cmp    $0xa,%dil
  je     L95
  cmp    $0xd,%dil
  je     L95
L116:
  mov    %r15d,%r13d
  mov    %r15d,%r14d
  test   %ebp,%ebp
  je     L249
  cmp    %r12d,0x4(%rsp)
  je     L166
L249:
  test   %ebx,%ebx
  jne    L166
  cmp    $0x2c,%dil
  je     L18
  mov    0x8(%rsp),%eax
  test   %eax,%eax
  jne    L166
  call   <isspace@plt>
  test   %rax,%rax
  je     L166
L18:
  mov    0x30(%rsp),%rax
  test   %r14d,%r14d
  je     L255
L86:
  movslq %r14d,%rdx
  lea    -0x1(%rdx),%r13
  nopw   0x0(%rax,%rax,1)
L286:
  movsbl (%rax,%r13,1),%edi
  call   <isspace@plt>
  test   %rax,%rax
  mov    0x30(%rsp),%rax
  jne    L9
  cmpb   $0x22,(%rax,%r13,1)
  jne    L96
L9:
  sub    $0x1,%r13
  sub    $0x1,%r14d
  jne    L286
L96:
  lea    0x1(%r15),%rdx
L273:
  mov    0x18(%rsp),%rsi
  lea    0x1(%r12),%r15d
  add    %rdx,%rax
  mov    %r14d,(%rsi,%r12,4)
  jmp    L94
  nopl   0x0(%rax)
L280:
  mov    0x30(%rsp),%rax
  test   %ebx,%ebx
  jne    L152
  movzbl (%rax),%edx
  cmp    $0xa,%dl
  sete   %bl
  cmp    $0xd,%dl
  sete   %dl
  or     %edx,%ebx
  movzbl %bl,%ebx
L152:
  add    $0x1,%rax
L94:
  mov    %rax,0x30(%rsp)
  movsbl (%rax),%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L280
  add    $0x1,%r12
  cmp    %r15d,0xc(%rsp)
  je     L220
  test   $0x1,%bl
  jne    L220
  mov    0x30(%rsp),%rax
  jmp    L180
  nopl   (%rax)
L95:
  mov    $0x1,%ebx
  jmp    L86
L220:
  test   %ebx,%ebx
  je     L203
  mov    0x30(%rsp),%rax
  mov    0x20(%rsp),%rsi
  mov    %rax,(%rsi)
L161:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L260
  add    $0x48,%rsp
  mov    %r15d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L203:
  lea    0x30(%rsp),%rdi
  call   <gotoendofline@plt>
  mov    0x30(%rsp),%rax
  mov    0x20(%rsp),%rsi
  mov    %rax,(%rsi)
  jmp    L161
L62:
  mov    $0x1,%edx
  mov    $0x1,%ebx
  xor    %r14d,%r14d
  jmp    L273
L255:
  lea    0x1(%r15),%rdx
  xor    %ebx,%ebx
  jmp    L273
L260:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int linetokens(char *line, char **newline, int maxtokens, char **tokens, int *tokenlen, int nurkomma, int last_is_comment) {
  int toks = 0;
  int eol = 0;
  int quote = 0;
  char *c;
  int l, l1;
  if (getnewline1(&line) == 0)
    return 0;
  c = line;
  while (1) {
    if (*c == '"') {
      c++;
      quote = 1;
    } else
      quote = 0;
    tokens[toks] = c;
    for (l = 0; !((eol = (c[l] == 10 || c[l] == 13)) || (!(last_is_comment && toks == maxtokens - 1) && (!quote && (c[l] == ',' || (!nurkomma && isspace((int)(c[l]))))))); l++)
      if (c[l] == '"')
        quote = !quote;
    for (l1 = l; l1 > 0 && (isspace((int)(c[l1 - 1])) || c[l1 - 1] == '"'); l1--)
      ;
    tokenlen[toks++] = l1;
    for (c = c + l + 1; isspace((int)*c); c++)
      eol = eol || (*c == 10 || *c == 13);
    if (toks == maxtokens || eol)
      break;
  }
  if (!eol)
    gotoendofline(&c);
  *newline = c;
  return toks;
}
```