user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<parse_four>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rsi,0x8(%rsp)
  mov    %rdx,0x10(%rsp)
  mov    %rcx,0x18(%rsp)
  mov    %r8,%r15
  lea    D8(%rip),%rsi
  call   <strtok@plt>
  test   %rax,%rax
  je     L17
  mov    %rax,%rbp
  mov    $0x0,%r12d
  mov    $0x0,%ebx
  lea    D8(%rip),%r14
  jmp    L48
L62:
  mov    $0x0,%r12d
  jmp    L8
L53:
  cmp    $0x4,%ebx
  jne    L57
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    $0x7ff,%edx
  cmp    %edx,%eax
  cmovg  %edx,%eax
  movslq %eax,%r13
  mov    %r13,%rdx
  mov    %rbp,%rsi
  mov    %r15,%rdi
  call   <strncpy@plt>
  movb   $0x0,(%r15,%r13,1)
  add    $0x8,%r12d
  jmp    L8
L57:
  mov    $0x0,%r12d
L8:
  mov    %r14,%rsi
  mov    $0x0,%edi
  call   <strtok@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L14
L48:
  add    $0x1,%ebx
  cmp    $0x3,%ebx
  je     L12
  jg     L53
  cmp    $0x1,%ebx
  je     L100
  cmp    $0x2,%ebx
  jne    L62
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    $0x7ff,%edx
  cmp    %edx,%eax
  cmovg  %edx,%eax
  movslq %eax,%r13
  mov    %r13,%rdx
  mov    %rbp,%rsi
  mov    0x10(%rsp),%rbp
  mov    %rbp,%rdi
  call   <strncpy@plt>
  movb   $0x0,0x0(%rbp,%r13,1)
  add    $0x2,%r12d
  jmp    L8
L100:
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    $0x7ff,%edx
  cmp    %edx,%eax
  cmovg  %edx,%eax
  movslq %eax,%r13
  mov    %r13,%rdx
  mov    %rbp,%rsi
  mov    0x8(%rsp),%rbp
  mov    %rbp,%rdi
  call   <strncpy@plt>
  movb   $0x0,0x0(%rbp,%r13,1)
  add    $0x1,%r12d
  jmp    L8
L12:
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    $0x7ff,%edx
  cmp    %edx,%eax
  cmovg  %edx,%eax
  movslq %eax,%r13
  mov    %r13,%rdx
  mov    %rbp,%rsi
  mov    0x18(%rsp),%rbp
  mov    %rbp,%rdi
  call   <strncpy@plt>
  movb   $0x0,0x0(%rbp,%r13,1)
  add    $0x4,%r12d
  jmp    L8
L17:
  mov    $0x0,%r12d
L14:
  cmp    $0xf,%r12d
  setne  %al
  movzbl %al,%eax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D8
type_guessed: string

tool: D8: 	


assistant: ```c
int parse_four(char *line, char *field1, char *field2, char *field3, char *field4) {
  char *ptr;
  int i, n, rc;
  i = 0;
  rc = 0;
  ptr = strtok(line, "\t\n");
  while (ptr != NULL) {
    i++;
    switch (i) {
    case 1:
      n = (int)strlen(ptr);
      if (n > 2048 - 1)
        n = 2048 - 1;
      strncpy(field1, ptr, (size_t)n);
      field1[n] = (char)'\0';
      rc += 1;
      break;
    case 2:
      n = (int)strlen(ptr);
      if (n > 2048 - 1)
        n = 2048 - 1;
      strncpy(field2, ptr, (size_t)n);
      field2[n] = (char)'\0';
      rc += 2;
      break;
    case 3:
      n = (int)strlen(ptr);
      if (n > 2048 - 1)
        n = 2048 - 1;
      strncpy(field3, ptr, (size_t)n);
      field3[n] = (char)'\0';
      rc += 4;
      break;
    case 4:
      n = (int)strlen(ptr);
      if (n > 2048 - 1)
        n = 2048 - 1;
      strncpy(field4, ptr, (size_t)n);
      field4[n] = (char)'\0';
      rc += 8;
      break;
    default:
      rc = 0;
    }
    ptr = strtok(NULL, "\t\n");
  }
  if (rc == 15)
    return (0);
  else
    return (1);
}
```