user: 请将以下的汇编代码转换成C语言代码:

```asm
<parse_qrels_line>:
  endbr64
  push   %r14
  mov    %rsi,%r14
  push   %r13
  push   %r12
  mov    %rcx,%r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    (%rdi),%r13
  mov    %rdx,%rbx
  movsbl 0x0(%r13),%edi
  cmp    $0xa,%dil
  jne    L70
  jmp    L204
  nopl   0x0(%rax,%rax,1)
L208:
  movsbl 0x1(%r13),%edi
  add    $0x1,%r13
  cmp    $0xa,%dil
  je     L204
L70:
  call   <isspace@plt>
  test   %rax,%rax
  jne    L208
L204:
  mov    %r13,(%r14)
  jmp    L142
  xchg   %ax,%ax
L117:
  add    $0x1,%r13
L142:
  movsbl 0x0(%r13),%edi
  call   <isspace@plt>
  test   %rax,%rax
  je     L117
  cmpb   $0xa,0x0(%r13)
  je     L41
  movsbl 0x1(%r13),%edi
  movb   $0x0,0x0(%r13)
  lea    0x1(%r13),%r14
  cmp    $0xa,%dil
  jne    L284
  jmp    L113
  nopl   0x0(%rax)
L221:
  movsbl 0x1(%r14),%edi
  add    $0x1,%r14
  cmp    $0xa,%dil
  je     L113
L284:
  call   <isspace@plt>
  test   %rax,%rax
  jne    L221
  jmp    L242
  nopl   0x0(%rax,%rax,1)
L261:
  add    $0x1,%r14
L242:
  movsbl (%r14),%edi
L113:
  call   <isspace@plt>
  test   %rax,%rax
  je     L261
  cmpb   $0xa,(%r14)
  je     L41
  movsbl 0x1(%r14),%edi
  lea    0x1(%r14),%r13
  cmp    $0xa,%dil
  jne    L9
  jmp    L250
  nopl   (%rax)
L300:
  movsbl 0x1(%r13),%edi
  add    $0x1,%r13
  cmp    $0xa,%dil
  je     L250
L9:
  call   <isspace@plt>
  test   %rax,%rax
  jne    L300
L250:
  mov    %r13,(%rbx)
  jmp    L171
  cs nopw 0x0(%rax,%rax,1)
L13:
  add    $0x1,%r13
L171:
  movsbl 0x0(%r13),%edi
  call   <isspace@plt>
  test   %rax,%rax
  je     L13
  cmpb   $0xa,0x0(%r13)
  je     L41
  movsbl 0x1(%r13),%edi
  movb   $0x0,0x0(%r13)
  lea    0x1(%r13),%rbx
  cmp    $0xa,%dil
  jne    L292
  jmp    L41
  nopw   0x0(%rax,%rax,1)
L219:
  movsbl 0x1(%rbx),%edi
  add    $0x1,%rbx
  cmp    $0xa,%dil
  je     L41
L292:
  call   <isspace@plt>
  test   %rax,%rax
  jne    L219
  cmpb   $0xa,(%rbx)
  je     L41
  mov    %rbx,(%r12)
  nopl   (%rax)
L245:
  movsbl (%rbx),%edi
  call   <isspace@plt>
  mov    %rbx,%rdx
  add    $0x1,%rbx
  test   %rax,%rax
  je     L245
  cmpb   $0xa,(%rdx)
  je     L162
  movsbl 0x1(%rdx),%edi
  movb   $0x0,(%rdx)
  cmp    $0xa,%dil
  jne    L225
  jmp    L281
L119:
  movsbl 0x1(%rbx),%edi
  add    $0x1,%rbx
  cmp    $0xa,%dil
  je     L281
L225:
  call   <isspace@plt>
  test   %rax,%rax
  jne    L119
  cmpb   $0xa,(%rbx)
  jne    L41
L281:
  mov    %rbx,%rdx
L162:
  movb   $0x0,(%rdx)
  add    $0x1,%rdx
  xor    %eax,%eax
  mov    %rdx,0x0(%rbp)
L214:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  cs nopw 0x0(%rax,%rax,1)
L41:
  mov    $0xffffffff,%eax
  jmp    L214
```

assistant: ```c
int parse_qrels_line(char **start_ptr, char **qid_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++;
  while (!isspace(*ptr))
    ptr++;
  if (*ptr == '\n')
    return (-1);
  ptr++;
  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);
}
```