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

```asm
<determineKeySize>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  mov    %esi,%r13d
  push   %r12
  movslq %edx,%r12
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x28,%rsp
  mov    %edx,-0x48(%rbp)
  mov    %rsp,%rcx
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    0xf(,%r12,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L9
L130:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L130
L9:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L23
L49:
  mov    -0x48(%rbp),%eax
  mov    %rsp,%r15
  test   %eax,%eax
  jle    L4
  lea    0x0(,%r12,4),%rdx
  xor    %esi,%esi
  mov    %r15,%rdi
  call   <memset@plt>
L4:
  mov    -0x48(%rbp),%ecx
  sub    %ecx,%r13d
  mov    %r13d,%eax
  shr    $0x1f,%eax
  add    %r13d,%eax
  sar    %eax
  mov    %eax,-0x44(%rbp)
  cmp    $0x1,%r13d
  jle    L73
  cmp    $0x2,%ecx
  jle    L35
  mov    %rbx,%r14
  xor    %r13d,%r13d
L94:
  mov    $0x2,%ebx
  nopl   (%rax)
L101:
  mov    %ebx,%edx
  lea    (%r14,%rbx,1),%rsi
  mov    %r14,%rdi
  call   <computeHammingDistance@plt>
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2ss %ebx,%xmm1
  cvtsi2ss %eax,%xmm0
  divss  %xmm1,%xmm0
  addss  (%r15,%rbx,4),%xmm0
  movss  %xmm0,(%r15,%rbx,4)
  add    $0x1,%rbx
  cmp    %r12,%rbx
  jne    L101
  add    $0x1,%r13d
  add    $0x1,%r14
  cmp    %r13d,-0x44(%rbp)
  jg     L94
L55:
  pxor   %xmm2,%xmm2
  mov    -0x48(%rbp),%r14d
  mov    $0x2,%eax
  mov    $0xffffffff,%edx
  cvtsi2ssl -0x44(%rbp),%xmm2
  mov    $0xffffffff,%r9d
  nopw   0x0(%rax,%rax,1)
L95:
  movss  (%r15,%rax,4),%xmm0
  mov    %eax,%ecx
  divss  %xmm2,%xmm0
  movss  %xmm0,(%r15,%rax,4)
  test   %edx,%edx
  js     L122
  pxor   %xmm1,%xmm1
  cvtsi2ss %edx,%xmm1
  comiss %xmm0,%xmm1
  jbe    L90
L122:
  cvttss2si %xmm0,%edx
  mov    %ecx,%r9d
L90:
  add    $0x1,%rax
  cmp    %rax,%r14
  jne    L95
L87:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L57
  lea    -0x28(%rbp),%rsp
  mov    %r9d,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L23:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L49
L73:
  cmpl   $0x2,-0x48(%rbp)
  jg     L55
L35:
  mov    $0xffffffff,%r9d
  jmp    L87
L57:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int determineKeySize(char *data, int numberOfBytes, int maxKeySize) {
  int result = -1;
  float hammingAverages[maxKeySize];
  for (int i = 0; i < maxKeySize; i++) {
    hammingAverages[i] = 0.0;
  }
  int numSamples = (numberOfBytes - maxKeySize) / 2;
  for (int i = 0; i < numSamples; i++) {
    for (int j = 2; j < maxKeySize; j++) {
      char *dataStart = data + i;
      int hammingDistance = computeHammingDistance(dataStart, dataStart + j, j);
      float normalized = (float)hammingDistance / (float)j;
      hammingAverages[j] += normalized;
    }
  }
  int lowestNormalized = -1;
  for (int i = 2; i < maxKeySize; i++) {
    hammingAverages[i] /= numSamples;
    if (lowestNormalized < 0 || hammingAverages[i] < lowestNormalized) {
      result = i;
      lowestNormalized = hammingAverages[i];
    }
  }
  return result;
}
```