user: What is the c source code of the assembly code below?

```asm
<network_corr>:
  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    %r9,-0x60(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x1c(%rbp)
  movl   $0x0,-0x24(%rbp)
  jmp    L8
L69:
  mov    -0x24(%rbp),%eax
  imul   0x28(%rbp),%eax
  mov    %eax,-0x18(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x14(%rbp)
  movl   $0x0,-0x20(%rbp)
  jmp    L38
L15:
  mov    -0x18(%rbp),%edx
  mov    -0x20(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  pxor   %xmm1,%xmm1
  ucomiss %xmm1,%xmm0
  jp     L2
  pxor   %xmm1,%xmm1
  ucomiss %xmm1,%xmm0
  je     L13
L2:
  mov    -0x10(%rbp),%eax
  imul   0x10(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  imul   0x18(%rbp),%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x48(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %edx,%eax
  mov    %eax,-0x8(%rbp)
  mov    0x18(%rbp),%eax
  add    $0x1,%eax
  imul   -0x10(%rbp),%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x48(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %edx,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rax,%rdx
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x50(%rbp),%rax
  lea    (%rcx,%rax,1),%rsi
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x40(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  mov    -0xc(%rbp),%ecx
  movslq %ecx,%rcx
  lea    0x0(,%rcx,4),%rdi
  mov    -0x38(%rbp),%rcx
  add    %rcx,%rdi
  mov    0x10(%rbp),%ecx
  movd   %eax,%xmm0
  call   <corrc@plt>
  movd   %xmm0,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mulss  -0x14(%rbp),%xmm0
  movss  -0x1c(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x1c(%rbp)
  jmp    L20
L13:
  nop
L20:
  addl   $0x1,-0x20(%rbp)
L38:
  mov    -0x20(%rbp),%eax
  cmp    0x28(%rbp),%eax
  jl     L15
  addl   $0x1,-0x24(%rbp)
L8:
  mov    -0x24(%rbp),%eax
  cmp    0x20(%rbp),%eax
  jl     L69
  movss  -0x1c(%rbp),%xmm0
  leave
  ret
```

assistant: ```c
float network_corr(float *templates, float *sum_square_template, int *moveouts, float *data, double *csum_square_data, float *weights, int n_samples_template, int n_samples_data, int n_stations, int n_components) {
  int s, c, d, dd, t;
  int station_offset, component_offset;
  float cc, cc_sum = 0;
  for (s = 0; s < n_stations; s++) {
    station_offset = s * n_components;
    cc = 0;
    for (c = 0; c < n_components; c++) {
      component_offset = station_offset + c;
      if (weights[component_offset] == 0)
        continue;
      t = component_offset * n_samples_template;
      d = component_offset * n_samples_data + moveouts[component_offset];
      dd = component_offset * (n_samples_data + 1) + moveouts[component_offset];
      cc = corrc(templates + t, sum_square_template[component_offset], data + d, csum_square_data + dd, n_samples_template);
      cc_sum += cc * weights[component_offset];
    }
  }
  return cc_sum;
}
```