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

```asm
<parse_parlist>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x38,%rsp
  mov    %rsi,0x8(%rsp)
  mov    %rdx,(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  jmp    L3
  nopw   0x0(%rax,%rax,1)
L153:
  add    $0x1,%rbx
  cmpb   $0x20,-0x1(%rbp,%rbx,1)
  jne    L90
L3:
  mov    %rbp,%rdi
  mov    %ebx,%r13d
  call   <strlen@plt>
  cmp    %ebx,%eax
  jg     L153
L90:
  mov    %rbp,%rdi
  call   <strlen@plt>
  cmp    %r13d,%eax
  je     L19
  mov    %rbp,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  jne    L105
L19:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L9
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L105:
  lea    0x20(%rsp),%r13
  lea    D0(%rip),%r14
  mov    %rbp,%rdi
  mov    %r13,%rdx
  mov    %r14,%rsi
  call   <strtok_r@plt>
  cmpb   $0x0,(%rax)
  mov    %rax,%rbp
  je     L19
  lea    0x1c(%rsp),%r15
  mov    %rax,%rdi
  mov    %r15,%rsi
  call   <find_variable@plt>
  mov    0x1c(%rsp),%eax
  test   %eax,%eax
  jle    L85
  mov    (%rsp),%rdx
  mov    0x8(%rsp),%rcx
  sub    $0x1,%eax
  movslq (%rdx),%rdx
  mov    %eax,(%rcx,%rdx,4)
L88:
  mov    $0x2,%ebp
  jmp    L40
  nopw   0x0(%rax,%rax,1)
L115:
  mov    (%rsp),%rcx
  sub    $0x1,%eax
  add    (%rcx),%ebx
  mov    0x8(%rsp),%rcx
  movslq %ebx,%rbx
  mov    %eax,(%rcx,%rbx,4)
L84:
  add    $0x1,%ebp
L40:
  mov    %r13,%rdx
  mov    %r14,%rsi
  lea    -0x1(%rbp),%ebx
  xor    %edi,%edi
  call   <strtok_r@plt>
  mov    %rax,%r12
  test   %rax,%rax
  je     L33
  mov    %r15,%rsi
  mov    %r12,%rdi
  call   <find_variable@plt>
  mov    0x1c(%rsp),%eax
  test   %eax,%eax
  jg     L115
  mov    %r12,%rdi
  call   <get_param_index@plt>
  mov    %eax,0x1c(%rsp)
  test   %eax,%eax
  jle    L19
  mov    (%rsp),%rdx
  mov    0x8(%rsp),%rcx
  neg    %eax
  add    (%rdx),%ebx
  movslq %ebx,%rbx
  mov    %eax,(%rcx,%rbx,4)
  jmp    L84
  nopl   0x0(%rax,%rax,1)
L33:
  mov    (%rsp),%rax
  add    %ebx,(%rax)
  jmp    L19
L85:
  mov    %rbp,%rdi
  call   <get_param_index@plt>
  mov    %eax,0x1c(%rsp)
  test   %eax,%eax
  jle    L19
  mov    (%rsp),%rdx
  mov    0x8(%rsp),%rcx
  neg    %eax
  movslq (%rdx),%rdx
  mov    %eax,(%rcx,%rdx,4)
  jmp    L88
L9:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D0
type: string

tool: D0:  ,

assistant: ```c
void parse_parlist(char *parlist, int *ipars, int *n) {
  char *item;
  char *toksave;
  int v, i = 0;
  int j;
  for (j = 0; j < strlen(parlist); j++) {
    if (parlist[j] != ' ')
      break;
  }
  if (j == strlen(parlist))
    return;
  if (strlen(parlist) == 0)
    return;
  item = strtok_r(parlist, " ,", &toksave);
  if (item[0] == 0L)
    return;
  find_variable(item, &v);
  if (v > 0) {
    ipars[i + *n] = v - 1;
    i++;
  } else {
    v = get_param_index(item);
    if (v <= 0)
      return;
    ipars[i + *n] = -v;
    i++;
  }
  while ((item = strtok_r(NULL, " ,", &toksave)) != NULL) {
    find_variable(item, &v);
    if (v > 0) {
      ipars[i + *n] = v - 1;
      i++;
    } else {
      v = get_param_index(item);
      if (v <= 0)
        return;
      ipars[i + *n] = -v;
      i++;
    }
  }
  *n = *n + i;
}
```