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

```asm
<AnalyseSymbolList>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %rdx,-0x48(%rbp)
  mov    %rcx,-0x50(%rbp)
  mov    %r8,-0x58(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x40(%rbp),%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x48(%rbp),%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x50(%rbp),%rax
  movsd  D60(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x58(%rbp),%rax
  movsd  D60(%rip),%xmm0
  movsd  %xmm0,(%rax)
  lea    -0x28(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  lea    D7(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strtok_r@plt>
  mov    %rax,-0x18(%rbp)
  jmp    L53
L77:
  mov    -0x40(%rbp),%rax
  movsd  (%rax),%xmm1
  movsd  D47(%rip),%xmm0
  addsd  %xmm1,%xmm0
  mov    -0x40(%rbp),%rax
  movsd  %xmm0,(%rax)
  lea    -0x20(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  lea    D84(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strtok_r@plt>
  mov    %rax,-0x10(%rbp)
  lea    -0x20(%rbp),%rax
  mov    %rax,%rdx
  lea    D84(%rip),%rax
  mov    %rax,%rsi
  mov    $0x0,%edi
  call   <strtok_r@plt>
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    %eax,-0x2c(%rbp)
  cmpl   $0x0,-0x2c(%rbp)
  jne    L18
  mov    -0x48(%rbp),%rax
  movsd  (%rax),%xmm1
  movsd  D47(%rip),%xmm0
  addsd  %xmm1,%xmm0
  mov    -0x48(%rbp),%rax
  movsd  %xmm0,(%rax)
L18:
  mov    -0x50(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  D60(%rip),%xmm1
  ucomisd %xmm1,%xmm0
  jp     L81
  movsd  D60(%rip),%xmm1
  ucomisd %xmm1,%xmm0
  je     L23
L81:
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x2c(%rbp),%xmm1
  mov    -0x50(%rbp),%rax
  movsd  (%rax),%xmm0
  comisd %xmm1,%xmm0
  jbe    L60
L23:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x2c(%rbp),%xmm0
  mov    -0x50(%rbp),%rax
  movsd  %xmm0,(%rax)
L60:
  mov    -0x58(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  D60(%rip),%xmm1
  ucomisd %xmm1,%xmm0
  jp     L10
  movsd  D60(%rip),%xmm1
  ucomisd %xmm1,%xmm0
  je     L47
L10:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x2c(%rbp),%xmm0
  mov    -0x58(%rbp),%rax
  movsd  (%rax),%xmm1
  comisd %xmm1,%xmm0
  jbe    L61
L47:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x2c(%rbp),%xmm0
  mov    -0x58(%rbp),%rax
  movsd  %xmm0,(%rax)
L61:
  lea    -0x28(%rbp),%rax
  mov    %rax,%rdx
  lea    D7(%rip),%rax
  mov    %rax,%rsi
  mov    $0x0,%edi
  call   <strtok_r@plt>
  mov    %rax,-0x18(%rbp)
L53:
  cmpq   $0x0,-0x18(%rbp)
  jne    L77
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L5
  call   <__stack_chk_fail@plt>
L5:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_label: D60
type_infered: byte[8]
name: read_data
arguments: data_label: D7
type_infered: string
name: read_data
arguments: data_label: D47
type_infered: byte[8]
name: read_data
arguments: data_label: D84
type_infered: string

tool: {"D60": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0xbf]}

tool: D7: 


tool: {"D47": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

tool: D84: /

assistant: ```c
void AnalyseSymbolList(char *SymbolList, double *NumberOfSymbols, double *NumberOfArity0, double *MinArity, double *MaxArity) {
  char *SymbolRecord;
  char *RecordRestart;
  char *SymbolField;
  char *FieldRestart;
  int Arity;
  *NumberOfSymbols = 0;
  *NumberOfArity0 = 0;
  *MinArity = -1;
  *MaxArity = -1;
  SymbolRecord = strtok_r(SymbolList, "\n", &RecordRestart);
  while (SymbolRecord != NULL) {
    (*NumberOfSymbols)++;
    SymbolField = strtok_r(SymbolRecord, "/", &FieldRestart);
    SymbolField = strtok_r(NULL, "/", &FieldRestart);
    Arity = atoi(SymbolField);
    if (Arity == 0) {
      (*NumberOfArity0)++;
    }
    if (*MinArity == -1 || Arity < *MinArity) {
      *MinArity = Arity;
    }
    if (*MaxArity == -1 || Arity > *MaxArity) {
      *MaxArity = Arity;
    }
    SymbolRecord = strtok_r(NULL, "\n", &RecordRestart);
  }
}
```