user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<parse_prefs_line>:
  endbr64
  push   %r15
  mov    %rcx,%r15
  push   %r14
  push   %r13
  mov    %r8,%r13
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x18,%rsp
  mov    (%rdi),%r14
  mov    %r9,0x8(%rsp)
  movsbl (%r14),%edi
  cmp    $0xa,%dil
  jne    L300
  jmp    L117
  nopl   (%rax)
L52:
  movsbl 0x1(%r14),%edi
  add    $0x1,%r14
  cmp    $0xa,%dil
  je     L117
L300:
  call   <isspace@plt>
  test   %rax,%rax
  jne    L52
L117:
  mov    %r14,(%rbx)
  jmp    L130
  cs nopw 0x0(%rax,%rax,1)
L377:
  add    $0x1,%r14
L130:
  movsbl (%r14),%edi
  call   <isspace@plt>
  test   %rax,%rax
  je     L377
  cmpb   $0xa,(%r14)
  je     L123
  movsbl 0x1(%r14),%edi
  movb   $0x0,(%r14)
  lea    0x1(%r14),%rbx
  cmp    $0xa,%dil
  jne    L246
  jmp    L231
  nopl   0x0(%rax)
L197:
  movsbl 0x1(%rbx),%edi
  add    $0x1,%rbx
  cmp    $0xa,%dil
  je     L231
L246:
  call   <isspace@plt>
  test   %rax,%rax
  jne    L197
L231:
  mov    %rbx,(%r12)
  jmp    L256
  cs nopw 0x0(%rax,%rax,1)
L279:
  add    $0x1,%rbx
L256:
  movsbl (%rbx),%edi
  call   <isspace@plt>
  test   %rax,%rax
  je     L279
  cmpb   $0xa,(%rbx)
  je     L123
  movsbl 0x1(%rbx),%edi
  movb   $0x0,(%rbx)
  lea    0x1(%rbx),%r12
  cmp    $0xa,%dil
  jne    L187
  jmp    L56
  nopl   (%rax)
L371:
  movsbl 0x1(%r12),%edi
  add    $0x1,%r12
  cmp    $0xa,%dil
  je     L56
L187:
  call   <isspace@plt>
  test   %rax,%rax
  jne    L371
L56:
  mov    %r12,(%r15)
  jmp    L281
  nop
L154:
  add    $0x1,%r12
L281:
  movsbl (%r12),%edi
  call   <isspace@plt>
  test   %rax,%rax
  je     L154
  cmpb   $0xa,(%r12)
  je     L123
  movsbl 0x1(%r12),%edi
  movb   $0x0,(%r12)
  lea    0x1(%r12),%r15
  cmp    $0xa,%dil
  jne    L206
  jmp    L249
  cs nopw 0x0(%rax,%rax,1)
L91:
  movsbl 0x1(%r15),%edi
  add    $0x1,%r15
  cmp    $0xa,%dil
  je     L249
L206:
  call   <isspace@plt>
  test   %rax,%rax
  jne    L91
L249:
  mov    %r15,0x0(%r13)
  jmp    L37
  nop
L180:
  add    $0x1,%r15
L37:
  movsbl (%r15),%edi
  call   <isspace@plt>
  test   %rax,%rax
  je     L180
  cmpb   $0xa,(%r15)
  je     L123
  movsbl 0x1(%r15),%edi
  movb   $0x0,(%r15)
  lea    0x1(%r15),%rbx
  cmp    $0xa,%dil
  jne    L15
  jmp    L123
  nopl   0x0(%rax)
L186:
  movsbl 0x1(%rbx),%edi
  add    $0x1,%rbx
  cmp    $0xa,%dil
  je     L123
L15:
  call   <isspace@plt>
  test   %rax,%rax
  jne    L186
  cmpb   $0xa,(%rbx)
  je     L123
  mov    0x8(%rsp),%rax
  mov    %rbx,(%rax)
  nopl   0x0(%rax)
L282:
  movsbl (%rbx),%edi
  call   <isspace@plt>
  mov    %rbx,%rdx
  add    $0x1,%rbx
  test   %rax,%rax
  je     L282
  cmpb   $0xa,(%rdx)
  je     L149
  movsbl 0x1(%rdx),%edi
  movb   $0x0,(%rdx)
  cmp    $0xa,%dil
  jne    L247
  jmp    L230
L107:
  movsbl 0x1(%rbx),%edi
  add    $0x1,%rbx
  cmp    $0xa,%dil
  je     L230
L247:
  call   <isspace@plt>
  test   %rax,%rax
  jne    L107
  cmpb   $0xa,(%rbx)
  jne    L123
L230:
  mov    %rbx,%rdx
L149:
  movb   $0x0,(%rdx)
  add    $0x1,%rdx
  xor    %eax,%eax
  mov    %rdx,0x0(%rbp)
L34:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L123:
  mov    $0xffffffff,%eax
  jmp    L34
```

assistant: ```c
int parse_prefs_line(char **start_ptr, char **qid_ptr, char **jg_ptr, char **jsg_ptr, char **docno_ptr, char **rel_ptr) {
  char *ptr = *start_ptr;
  while (*ptr != '\n' && isspace(*ptr))
    ptr++;
  *qid_ptr = ptr;
  while (!isspace(*ptr))
    ptr++;
  if (*ptr == '\n')
    return (-1);
  *ptr++ = '\0';
  while (*ptr != '\n' && isspace(*ptr))
    ptr++;
  *jg_ptr = ptr;
  while (!isspace(*ptr))
    ptr++;
  if (*ptr == '\n')
    return (-1);
  *ptr++ = '\0';
  while (*ptr != '\n' && isspace(*ptr))
    ptr++;
  *jsg_ptr = ptr;
  while (!isspace(*ptr))
    ptr++;
  if (*ptr == '\n')
    return (-1);
  *ptr++ = '\0';
  while (*ptr != '\n' && isspace(*ptr))
    ptr++;
  *docno_ptr = ptr;
  while (!isspace(*ptr))
    ptr++;
  if (*ptr == '\n')
    return (-1);
  *ptr++ = '\0';
  while (*ptr != '\n' && isspace(*ptr))
    ptr++;
  if (*ptr == '\n')
    return (-1);
  *rel_ptr = ptr;
  while (!isspace(*ptr))
    ptr++;
  if (*ptr != '\n') {
    *ptr++ = '\0';
    while (*ptr != '\n' && isspace(*ptr))
      ptr++;
    if (*ptr != '\n')
      return (-1);
  }
  *ptr++ = '\0';
  *start_ptr = ptr;
  return (0);
}
```