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

```asm
<normalizeC>:
  endbr64
  test   %edi,%edi
  jle    L147
  push   %r15
  movslq %edi,%rax
  mov    %edi,%r10d
  mov    %edi,%r15d
  push   %r14
  and    $0xfffffffc,%r10d
  xor    %r11d,%r11d
  xor    %r14d,%r14d
  push   %r13
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x38,%rsp
  mov    %rax,(%rsp)
  shl    $0x2,%rax
  mov    %rax,0x28(%rsp)
  lea    -0x1(%rdi),%eax
  mov    %eax,0x14(%rsp)
  lea    0x4(%rdx,%rax,4),%rax
  mov    %rax,0x8(%rsp)
  mov    %edi,%eax
  shr    $0x2,%eax
  movl   $0x0,0x18(%rsp)
  lea    -0x1(%rax),%r13d
  add    $0x1,%r13
  shl    $0x4,%r13
  nopl   (%rax)
L73:
  mov    %r12,%r8
  xor    %esi,%esi
  pxor   %xmm1,%xmm1
  xor    %ecx,%ecx
  nopl   0x0(%rax,%rax,1)
L89:
  cmpl   $0x2,0x14(%rsp)
  movss  (%r8),%xmm3
  jbe    L103
  movaps %xmm3,%xmm4
  lea    (%rbx,%rsi,4),%rdx
  xor    %eax,%eax
  shufps $0x0,%xmm4,%xmm4
  nopl   (%rax)
L121:
  movups (%r12,%rax,1),%xmm0
  movups (%rdx,%rax,1),%xmm5
  add    $0x10,%rax
  mulps  %xmm4,%xmm0
  mulps  %xmm5,%xmm0
  addss  %xmm0,%xmm1
  movaps %xmm0,%xmm2
  shufps $0x55,%xmm0,%xmm2
  addss  %xmm2,%xmm1
  movaps %xmm0,%xmm2
  unpckhps %xmm0,%xmm2
  shufps $0xff,%xmm0,%xmm0
  addss  %xmm2,%xmm1
  addss  %xmm0,%xmm1
  cmp    %rax,%r13
  jne    L121
  cmp    %r10d,%r15d
  je     L83
  mov    %r10d,%edx
  mov    %r10d,%eax
L13:
  mov    %r15d,%edi
  sub    %edx,%edi
  cmp    $0x1,%edi
  je     L27
  lea    (%r11,%rdx,1),%r9
  movaps %xmm3,%xmm0
  add    %rsi,%rdx
  movq   0x0(%rbp,%r9,4),%xmm2
  shufps $0xe0,%xmm0,%xmm0
  mulps  %xmm0,%xmm2
  movq   (%rbx,%rdx,4),%xmm0
  mov    %edi,%edx
  and    $0xfffffffe,%edx
  add    %edx,%eax
  mulps  %xmm0,%xmm2
  addss  %xmm2,%xmm1
  shufps $0xe5,%xmm2,%xmm2
  addss  %xmm2,%xmm1
  cmp    %edx,%edi
  je     L83
L27:
  lea    (%r14,%rax,1),%edx
  add    %ecx,%eax
  movslq %edx,%rdx
  cltq
  mulss  0x0(%rbp,%rdx,4),%xmm3
  movaps %xmm3,%xmm0
  mulss  (%rbx,%rax,4),%xmm0
  addss  %xmm0,%xmm1
L83:
  add    $0x4,%r8
  add    %r15d,%ecx
  add    (%rsp),%rsi
  cmp    %r8,0x8(%rsp)
  jne    L89
  movaps %xmm1,%xmm0
  mov    %r11,0x20(%rsp)
  mov    %r10d,0x1c(%rsp)
  call   <sqrt@plt>
  cmpl   $0x2,0x14(%rsp)
  mov    0x1c(%rsp),%r10d
  movapd %xmm0,%xmm1
  movsd  D0(%rip),%xmm0
  mov    0x20(%rsp),%r11
  divsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsd2ss %xmm0,%xmm1
  jbe    L115
  movaps %xmm1,%xmm2
  lea    (%r12,%r13,1),%rdx
  mov    %r12,%rax
  shufps $0x0,%xmm2,%xmm2
  nopl   (%rax)
L77:
  movups (%rax),%xmm0
  add    $0x10,%rax
  mulps  %xmm2,%xmm0
  movups %xmm0,-0x10(%rax)
  cmp    %rdx,%rax
  jne    L77
  cmp    %r10d,%r15d
  je     L109
  mov    %r10d,%edx
  mov    %r10d,%eax
L15:
  mov    %r15d,%ecx
  sub    %edx,%ecx
  cmp    $0x1,%ecx
  je     L61
  add    %r11,%rdx
  movaps %xmm1,%xmm2
  lea    0x0(%rbp,%rdx,4),%rdx
  shufps $0xe0,%xmm2,%xmm2
  movq   (%rdx),%xmm0
  mulps  %xmm2,%xmm0
  movlps %xmm0,(%rdx)
  mov    %ecx,%edx
  and    $0xfffffffe,%edx
  add    %edx,%eax
  cmp    %ecx,%edx
  je     L109
L61:
  add    %r14d,%eax
  cltq
  lea    0x0(%rbp,%rax,4),%rax
  mulss  (%rax),%xmm1
  movss  %xmm1,(%rax)
L109:
  mov    0x28(%rsp),%rsi
  addl   $0x1,0x18(%rsp)
  add    %r15d,%r14d
  mov    0x18(%rsp),%eax
  add    %rsi,0x8(%rsp)
  add    %rsi,%r12
  add    (%rsp),%r11
  cmp    %eax,%r15d
  jne    L73
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L103:
  xor    %edx,%edx
  xor    %eax,%eax
  jmp    L13
L115:
  xor    %edx,%edx
  xor    %eax,%eax
  jmp    L15
L147:
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D0
type_infered: f64

tool: D0: 1

assistant: ```c
void normalizeC(int nBasis, float *S, float *C) {
  float sum;
  int i, j, k;
  for (k = 0; k < nBasis; k++) {
    sum = 0.0;
    for (i = 0; i < nBasis; i++)
      for (j = 0; j < nBasis; j++)
        sum += C[k * nBasis + i] * C[k * nBasis + j] * S[i * nBasis + j];
    sum = 1.0 / sqrt(sum);
    for (i = 0; i < nBasis; i++)
      C[k * nBasis + i] = sum * C[k * nBasis + i];
  }
  return;
}
```