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

```asm
<create_dictionary>:
  endbr64
  push   %r15
  mov    $0xffffffff,%r15d
  push   %r14
  mov    %rsi,%r14
  push   %r13
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x18,%rsp
  mov    %rsi,0x8(%rsp)
  call   <strlen@plt>
  mov    %r14,%rdi
  mov    $0x10000,%edx
  xor    %esi,%esi
  lea    -0x1(%rax),%r13d
  xor    %r14d,%r14d
  call   <memset@plt>
  test   %r13d,%r13d
  jle    L87
  cs nopw 0x0(%rax,%rax,1)
L94:
  movslq %r14d,%rax
  movsbl 0x1(%rbx,%rax,1),%esi
  movsbl (%rbx,%rax,1),%edi
  call   <word_terminator@plt>
  cmp    $0x1,%eax
  je     L55
L156:
  add    $0x1,%r14d
  cmp    %r14d,%r13d
  jg     L94
L87:
  movss  D31(%rip),%xmm1
L95:
  mov    0x8(%rsp),%rax
  lea    0x10000(%rax),%rcx
  mov    %rax,%rdx
  cs nopw 0x0(%rax,%rax,1)
L44:
  movss  (%rdx),%xmm0
  add    $0x4,%rdx
  maxss  %xmm1,%xmm0
  movaps %xmm0,%xmm1
  cmp    %rdx,%rcx
  jne    L44
  nopl   0x0(%rax)
L108:
  movss  (%rax),%xmm0
  add    $0x4,%rax
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x4(%rax)
  cmp    %rax,%rcx
  jne    L108
L47:
  add    $0x18,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L55:
  cmp    $0xffffffff,%r15d
  jne    L97
  lea    0x1(%r14),%r15d
  cmp    %r15d,%r13d
  jle    L87
L3:
  movslq %r15d,%r15
L33:
  movsbl (%rbx,%r15,1),%edi
  mov    %r15d,%r14d
  mov    %edi,%eax
  and    $0xffffffdf,%eax
  sub    $0x41,%eax
  cmp    $0x19,%al
  ja     L41
  movsbl 0x1(%rbx,%r15,1),%esi
  call   <word_terminator@plt>
  cmp    $0x1,%eax
  jne    L156
  mov    %r15d,%ebp
L38:
  movss  D38(%rip),%xmm0
  lea    0x1(%rbp),%r15d
  mov    %r14d,%esi
  mov    %rbx,%rdi
  mov    %r15d,%edx
  call   <word_to_float@plt>
  mov    %eax,%esi
  cmp    $0x3fff,%eax
  jg     L72
  mov    0x8(%rsp),%rsi
  cltq
  movss  D31(%rip),%xmm1
  add    $0x1,%r12d
  lea    (%rsi,%rax,4),%rax
  movss  (%rax),%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  cmp    %r13d,%r15d
  jl     L3
  jmp    L95
  nopl   0x0(%rax)
L41:
  add    $0x1,%r15
  cmp    %r15d,%r13d
  jg     L33
  jmp    L87
L72:
  mov    $0x4000,%edx
  lea    D24(%rip),%rdi
  mov    $0xffffffff,%r12d
  call   <printf@plt>
  jmp    L47
L97:
  mov    %r14d,%ebp
  mov    %r15d,%r14d
  jmp    L38
```

tool_calls: name: parse_data
arguments: data_label: D31
datatype: f32
name: parse_data
arguments: data_label: D38
datatype: byte[4]
name: parse_data
arguments: data_label: D24
datatype: string

tool: D31: 1

tool: {"D38": [0x10,0x73,0x1a,0x44]}

tool: D24: Dictionary size exceeded %d/%d


assistant: ```c
int create_dictionary(char *text, float dictionary[]) {
  int i, state = 1, prev_pos = -1, index, total_words = 0;
  int length = strlen(text) - 1;
  float max = 1, mult = (128 * 128) / (26.0f * 1.02f);
  memset((void *)dictionary, '\0', (128 * 128) * sizeof(float));
  for (i = 0; i < length; i++) {
    if (state == 0) {
      if (((text[i] >= 'a') && (text[i] <= 'z')) || ((text[i] >= 'A') && (text[i] <= 'Z'))) {
        state = 1;
        prev_pos = i;
      }
    }
    if (state == 1) {
      if (word_terminator(text[i], text[i + 1]) == 1) {
        state = 0;
        if (prev_pos > -1) {
          index = (int)word_to_float(text, prev_pos, i + 1, mult);
          if (index >= (128 * 128)) {
            printf("Dictionary size exceeded %d/%d\n", index, (128 * 128));
            return -1;
          } else {
            dictionary[index]++;
            total_words++;
          }
        }
      }
    }
  }
  for (i = 0; i < (128 * 128); i++) {
    if (dictionary[i] > max)
      max = dictionary[i];
  }
  for (i = 0; i < (128 * 128); i++) {
    dictionary[i] /= max;
  }
  return total_words;
}
```