user: 这段汇编代码用C语言表示是什么样的:

```asm
<matched_filter>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x98,%rsp
  mov    %rdi,-0x78(%rbp)
  mov    %rsi,-0x80(%rbp)
  mov    %rdx,-0x88(%rbp)
  mov    %rcx,-0x90(%rbp)
  mov    %r8,-0x98(%rbp)
  mov    %r9d,-0x9c(%rbp)
  movq   $0x0,-0x38(%rbp)
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  mov    0x18(%rbp),%eax
  add    $0x1,%eax
  imul   0x28(%rbp),%eax
  imul   0x30(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x18(%rbp)
  mov    0x18(%rbp),%eax
  add    $0x1,%eax
  imul   0x28(%rbp),%eax
  imul   0x30(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    -0x18(%rbp),%r8
  mov    0x30(%rbp),%edi
  mov    0x28(%rbp),%ecx
  mov    -0x98(%rbp),%rdx
  mov    0x18(%rbp),%esi
  mov    -0x90(%rbp),%rax
  mov    %r8,%r9
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <cumsum_square_data@plt>
  movl   $0x0,-0x64(%rbp)
  jmp    L50
L37:
  mov    -0x64(%rbp),%eax
  imul   0x28(%rbp),%eax
  mov    0x30(%rbp),%edx
  imul   %edx,%eax
  mov    %eax,-0x50(%rbp)
  mov    -0x64(%rbp),%eax
  imul   0x28(%rbp),%eax
  mov    %eax,-0x4c(%rbp)
  mov    -0x64(%rbp),%eax
  imul   0x38(%rbp),%eax
  mov    %eax,-0x48(%rbp)
  movl   $0x0,-0x58(%rbp)
  movl   $0x0,-0x54(%rbp)
  movl   $0x0,-0x60(%rbp)
  jmp    L21
L54:
  mov    -0x50(%rbp),%edx
  mov    -0x60(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x58(%rbp)
  jle    L62
  mov    -0x50(%rbp),%edx
  mov    -0x60(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x58(%rbp)
L62:
  mov    -0x50(%rbp),%edx
  mov    -0x60(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x54(%rbp)
  jge    L15
  mov    -0x50(%rbp),%edx
  mov    -0x60(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x54(%rbp)
L15:
  addl   $0x1,-0x60(%rbp)
L21:
  mov    0x28(%rbp),%eax
  imul   0x30(%rbp),%eax
  cmp    %eax,-0x60(%rbp)
  jl     L54
  mov    -0x50(%rbp),%eax
  imul   0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x50(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x38(%rbp)
  mov    -0x50(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x50(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x58(%rbp),%eax
  mov    %eax,%edi
  call   <abs@plt>
  movd   %xmm0,%eax
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x9c(%rbp),%xmm0
  movd   %eax,%xmm1
  divss  %xmm0,%xmm1
  movd   %xmm1,%eax
  movd   %eax,%xmm0
  call   <ceilf@plt>
  mov    %eax,%edx
  mov    -0x9c(%rbp),%eax
  imul   %edx,%eax
  mov    %eax,-0x44(%rbp)
  mov    0x18(%rbp),%eax
  sub    0x10(%rbp),%eax
  sub    -0x54(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x40(%rbp)
  mov    -0x44(%rbp),%eax
  mov    %eax,-0x5c(%rbp)
  jmp    L13
L6:
  mov    -0x5c(%rbp),%eax
  cltd
  idivl  -0x9c(%rbp)
  mov    %eax,-0x3c(%rbp)
  mov    -0x5c(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%r10
  mov    -0x5c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x90(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x48(%rbp),%edx
  mov    -0x3c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x40(%rbp),%rax
  lea    (%rdx,%rax,1),%rbx
  mov    -0x20(%rbp),%r8
  mov    -0x38(%rbp),%rdx
  mov    -0x28(%rbp),%rsi
  mov    -0x30(%rbp),%rax
  mov    0x30(%rbp),%edi
  push   %rdi
  mov    0x28(%rbp),%edi
  push   %rdi
  mov    0x18(%rbp),%edi
  push   %rdi
  mov    0x10(%rbp),%edi
  push   %rdi
  mov    %r8,%r9
  mov    %r10,%r8
  mov    %rax,%rdi
  call   <network_corr@plt>
  add    $0x20,%rsp
  movd   %xmm0,%eax
  mov    %eax,(%rbx)
  mov    -0x9c(%rbp),%eax
  add    %eax,-0x5c(%rbp)
L13:
  mov    -0x5c(%rbp),%eax
  cmp    -0x40(%rbp),%eax
  jl     L6
  addl   $0x1,-0x64(%rbp)
L50:
  mov    -0x64(%rbp),%eax
  cmp    0x20(%rbp),%eax
  jl     L37
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  nop
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void matched_filter(float *templates, float *sum_square_templates, int *moveouts, float *data, float *weights, int step, int n_samples_template, int n_samples_data, int n_templates, int n_stations, int n_components, int n_corr, float *cc_sum) {
  int t, ch, i;
  int start_i, stop_i, cc_i;
  int min_moveout, max_moveout;
  int network_offset, station_offset, cc_sum_offset;
  int *moveouts_t = NULL;
  float *templates_t = NULL, *sum_square_templates_t = NULL, *weights_t = NULL;
  double *csum_square_data = NULL;
  csum_square_data = malloc(((n_samples_data + 1) * n_stations * n_components) * sizeof(double));
  memset(csum_square_data, 0., ((n_samples_data + 1) * n_stations * n_components) * sizeof(double));
  cumsum_square_data(data, n_samples_data, weights, n_stations, n_components, csum_square_data);
  for (t = 0; t < n_templates; t++) {
    network_offset = t * n_stations * n_components;
    station_offset = t * n_stations;
    cc_sum_offset = t * n_corr;
    min_moveout = 0;
    max_moveout = 0;
    for (ch = 0; ch < (n_stations * n_components); ch++) {
      if (moveouts[network_offset + ch] < min_moveout)
        min_moveout = moveouts[network_offset + ch];
      if (moveouts[network_offset + ch] > max_moveout)
        max_moveout = moveouts[network_offset + ch];
    }
    templates_t = templates + network_offset * n_samples_template;
    moveouts_t = moveouts + network_offset;
    weights_t = weights + network_offset;
    sum_square_templates_t = sum_square_templates + network_offset;
    start_i = (int)(ceilf(abs(min_moveout) / (float)step)) * step;
    stop_i = 1 + (n_samples_data - n_samples_template - max_moveout);
#pragma omp parallel for private(i, cc_i)
    for (i = start_i; i < stop_i; i += step) {
      cc_i = i / step;
      cc_sum[cc_sum_offset + cc_i] = network_corr(templates_t, sum_square_templates_t, moveouts_t, data + i, csum_square_data + i + 1, weights_t, n_samples_template, n_samples_data, n_stations, n_components);
    }
  }
  free(csum_square_data);
}
```