user: 请从给定的汇编指令推导出C源代码:

```asm
<linetokens>:
  endbr64
  push   %r15
  xor    %r15d,%r15d
  push   %r14
  push   %r13
  push   %r12
  mov    %edx,%r12d
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,0x28(%rsp)
  lea    0x28(%rsp),%rdi
  mov    %rsi,0x20(%rsp)
  mov    %rcx,0x8(%rsp)
  mov    %r8,0x10(%rsp)
  mov    %r9d,0x1c(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  call   <getnewline1@plt>
  test   %rax,%rax
  je     L343
  mov    0x28(%rsp),%rcx
  mov    $0x1,%ebp
  mov    %rcx,0x30(%rsp)
  nopl   0x0(%rax,%rax,1)
L403:
  xor    %ebx,%ebx
  cmpb   $0x22,(%rcx)
  jne    L347
  add    $0x1,%rcx
  mov    $0x1,%ebx
  mov    %rcx,0x30(%rsp)
L347:
  mov    0x8(%rsp),%rax
  mov    %rcx,-0x8(%rax,%rbp,8)
  movzbl (%rcx),%eax
  cmp    $0xa,%al
  je     L134
  cmp    $0xd,%al
  je     L134
  mov    0x80(%rsp),%edi
  test   %edi,%edi
  je     L69
  cmp    %ebp,%r12d
  je     L35
  mov    0x1c(%rsp),%esi
  xor    %r15d,%r15d
  test   %esi,%esi
  jne    L148
  jmp    L335
  nopw   0x0(%rax,%rax,1)
L230:
  cmp    $0xd,%al
  je     L440
L148:
  mov    %r15d,%esi
  mov    %r15d,%r13d
  test   %ebx,%ebx
  jne    L337
  cmp    $0x2c,%al
  je     L125
L337:
  mov    %ebx,%edx
  lea    0x1(%rsi),%r13d
  xor    $0x1,%edx
  cmp    $0x22,%al
  cmove  %edx,%ebx
  add    $0x1,%r15
  movzbl (%rcx,%r15,1),%eax
  cmp    $0xa,%al
  jne    L230
  nopl   0x0(%rax)
L440:
  mov    $0x1,%ebx
L265:
  movslq %r13d,%rsi
  lea    -0x1(%rsi),%r14
  nopl   0x0(%rax)
L66:
  movsbl (%rcx,%r14,1),%edi
  call   <isspace@plt>
  mov    0x30(%rsp),%rcx
  test   %rax,%rax
  jne    L252
  cmpb   $0x22,(%rcx,%r14,1)
  jne    L298
L252:
  sub    $0x1,%r14
  sub    $0x1,%r13d
  jne    L66
L298:
  lea    0x1(%r15),%rax
L492:
  mov    0x10(%rsp),%rsi
  mov    %ebp,%r15d
  add    %rcx,%rax
  mov    %r13d,-0x4(%rsi,%rbp,4)
  jmp    L436
  nopl   0x0(%rax,%rax,1)
L179:
  mov    0x30(%rsp),%rax
  test   %ebx,%ebx
  jne    L503
  movzbl (%rax),%edx
  cmp    $0xa,%dl
  sete   %bl
  cmp    $0xd,%dl
  sete   %dl
  or     %edx,%ebx
  movzbl %bl,%ebx
L503:
  add    $0x1,%rax
L436:
  mov    %rax,0x30(%rsp)
  movsbl (%rax),%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L179
  cmp    %ebp,%r12d
  sete   %al
  add    $0x1,%rbp
  or     %bl,%al
  jne    L195
  mov    0x30(%rsp),%rcx
  jmp    L403
  nop
L124:
  cmp    $0xd,%al
  je     L440
L335:
  mov    %r15d,%r14d
  mov    %r15d,%r13d
  test   %ebx,%ebx
  jne    L468
  cmp    $0x2c,%al
  je     L125
  movsbl %al,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L136
  mov    0x30(%rsp),%rcx
L468:
  cmpb   $0x22,(%rcx,%r15,1)
  jne    L390
  xor    $0x1,%ebx
L390:
  add    $0x1,%r15
  lea    0x1(%r14),%r13d
  movzbl (%rcx,%r15,1),%eax
  cmp    $0xa,%al
  jne    L124
  jmp    L440
L69:
  mov    0x1c(%rsp),%edx
  xor    %r15d,%r15d
  test   %edx,%edx
  jne    L296
  jmp    L315
  nopl   (%rax)
L385:
  cmp    $0xa,%al
  je     L440
L296:
  mov    %r15d,%esi
  mov    %r15d,%r13d
  test   %ebx,%ebx
  jne    L257
  cmp    $0x2c,%al
  je     L125
L257:
  mov    %ebx,%edx
  lea    0x1(%rsi),%r13d
  xor    $0x1,%edx
  cmp    $0x22,%al
  cmove  %edx,%ebx
  add    $0x1,%r15
  movzbl (%rcx,%r15,1),%eax
  cmp    $0xd,%al
  jne    L385
  jmp    L440
  cs nopw 0x0(%rax,%rax,1)
L258:
  cmp    $0xa,%al
  je     L440
L315:
  mov    %r15d,%r14d
  mov    %r15d,%r13d
  test   %ebx,%ebx
  jne    L370
  cmp    $0x2c,%al
  je     L125
  movsbl %al,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L136
  mov    0x30(%rsp),%rcx
L370:
  cmpb   $0x22,(%rcx,%r15,1)
  jne    L170
  xor    $0x1,%ebx
L170:
  add    $0x1,%r15
  lea    0x1(%r14),%r13d
  movzbl (%rcx,%r15,1),%eax
  cmp    $0xd,%al
  jne    L258
  jmp    L440
L136:
  mov    0x30(%rsp),%rcx
L125:
  xor    %ebx,%ebx
  test   %r13d,%r13d
  jne    L265
  jmp    L298
L195:
  test   %ebx,%ebx
  je     L384
  mov    0x30(%rsp),%rax
  mov    0x20(%rsp),%rsi
  mov    %rax,(%rsi)
L343:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L353
  add    $0x48,%rsp
  mov    %r15d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L35:
  mov    $0x1,%eax
  jmp    L489
  nopw   0x0(%rax,%rax,1)
L485:
  cmp    $0xd,%sil
  je     L440
L489:
  movzbl (%rcx,%rax,1),%esi
  mov    %eax,%r13d
  mov    %rax,%r15
  add    $0x1,%rax
  cmp    $0xa,%sil
  jne    L485
  jmp    L440
L384:
  lea    0x30(%rsp),%rdi
  call   <gotoendofline@plt>
  mov    0x30(%rsp),%rax
  mov    0x20(%rsp),%rsi
  mov    %rax,(%rsi)
  jmp    L343
L134:
  mov    $0x1,%eax
  mov    $0x1,%ebx
  xor    %r13d,%r13d
  jmp    L492
L353:
  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;
}
```