user: Converte this assembly snippet into its equivalent C code:

```asm
<parse_four>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %rcx,-0x40(%rbp)
  mov    %r8,-0x48(%rbp)
  movl   $0x0,-0x14(%rbp)
  movl   $0x0,-0xc(%rbp)
  mov    -0x28(%rbp),%rax
  lea    D15(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strtok@plt>
  mov    %rax,-0x8(%rbp)
  jmp    L77
L47:
  addl   $0x1,-0x14(%rbp)
  cmpl   $0x4,-0x14(%rbp)
  je     L73
  cmpl   $0x4,-0x14(%rbp)
  jg     L14
  cmpl   $0x3,-0x14(%rbp)
  je     L174
  cmpl   $0x3,-0x14(%rbp)
  jg     L14
  cmpl   $0x1,-0x14(%rbp)
  je     L8
  cmpl   $0x2,-0x14(%rbp)
  je     L155
  jmp    L14
L8:
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x10(%rbp)
  cmpl   $0x7ff,-0x10(%rbp)
  jle    L115
  movl   $0x7ff,-0x10(%rbp)
L115:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rcx
  mov    -0x30(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  addl   $0x1,-0xc(%rbp)
  jmp    L99
L155:
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x10(%rbp)
  cmpl   $0x7ff,-0x10(%rbp)
  jle    L166
  movl   $0x7ff,-0x10(%rbp)
L166:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rcx
  mov    -0x38(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  addl   $0x2,-0xc(%rbp)
  jmp    L99
L174:
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x10(%rbp)
  cmpl   $0x7ff,-0x10(%rbp)
  jle    L176
  movl   $0x7ff,-0x10(%rbp)
L176:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rcx
  mov    -0x40(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  addl   $0x4,-0xc(%rbp)
  jmp    L99
L73:
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x10(%rbp)
  cmpl   $0x7ff,-0x10(%rbp)
  jle    L89
  movl   $0x7ff,-0x10(%rbp)
L89:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rcx
  mov    -0x48(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  addl   $0x8,-0xc(%rbp)
  jmp    L99
L14:
  movl   $0x0,-0xc(%rbp)
L99:
  lea    D15(%rip),%rax
  mov    %rax,%rsi
  mov    $0x0,%edi
  call   <strtok@plt>
  mov    %rax,-0x8(%rbp)
L77:
  cmpq   $0x0,-0x8(%rbp)
  jne    L47
  cmpl   $0xf,-0xc(%rbp)
  jne    L64
  mov    $0x0,%eax
  jmp    L106
L64:
  mov    $0x1,%eax
L106:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D15
type_infered: string

tool: D15: 	


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);
}
```