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

```asm
<xpool2_ov>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %rdi,-0x68(%rbp)
  mov    %rsi,-0x70(%rbp)
  mov    %rdx,-0x78(%rbp)
  mov    %ecx,-0x7c(%rbp)
  mov    %r8d,-0x80(%rbp)
  mov    %r9d,-0x84(%rbp)
  mov    -0x80(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0x44(%rbp)
  mov    -0x84(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0x40(%rbp)
  mov    -0x68(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x78(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x70(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x80(%rbp),%eax
  imul   -0x84(%rbp),%eax
  mov    0x10(%rbp),%edx
  imul   %edx,%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0x44(%rbp),%eax
  imul   -0x40(%rbp),%eax
  mov    0x10(%rbp),%edx
  imul   %edx,%eax
  mov    %eax,-0x38(%rbp)
  mov    0x10(%rbp),%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x84(%rbp),%eax
  imul   0x10(%rbp),%eax
  mov    %eax,-0x30(%rbp)
  mov    -0x84(%rbp),%eax
  imul   0x10(%rbp),%eax
  mov    %eax,%edx
  mov    0x10(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x2c(%rbp)
  movl   $0x0,-0x54(%rbp)
  jmp    L11
L65:
  movl   $0x0,-0x50(%rbp)
  jmp    L28
L9:
  movl   $0x0,-0x4c(%rbp)
  jmp    L24
L66:
  mov    -0x40(%rbp),%eax
  imul   -0x50(%rbp),%eax
  mov    %eax,%edx
  mov    -0x4c(%rbp),%eax
  add    %eax,%edx
  mov    0x10(%rbp),%eax
  imul   %edx,%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x84(%rbp),%eax
  imul   -0x50(%rbp),%eax
  mov    %eax,%edx
  mov    -0x4c(%rbp),%eax
  add    %edx,%eax
  imul   0x10(%rbp),%eax
  add    %eax,%eax
  mov    %eax,-0x24(%rbp)
  movl   $0x0,-0x48(%rbp)
  jmp    L39
L72:
  mov    -0x24(%rbp),%edx
  mov    -0x48(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x28(%rbp),%edx
  mov    -0x48(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x10(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x8(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%ecx
  mov    -0x20(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x48(%rbp)
L39:
  mov    -0x48(%rbp),%eax
  cmp    0x10(%rbp),%eax
  jl     L72
  addl   $0x1,-0x4c(%rbp)
L24:
  mov    -0x4c(%rbp),%eax
  cmp    -0x40(%rbp),%eax
  jl     L66
  addl   $0x1,-0x50(%rbp)
L28:
  mov    -0x50(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L9
  mov    -0x38(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rax,-0x10(%rbp)
  mov    -0x38(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rax,-0x8(%rbp)
  mov    -0x3c(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rax,-0x18(%rbp)
  addl   $0x1,-0x54(%rbp)
L11:
  mov    -0x54(%rbp),%eax
  cmp    -0x7c(%rbp),%eax
  jl     L65
  nop
  nop
  leave
  ret
```

assistant: ```c
void xpool2_ov(double *v, int *m, double *o, int n, int h, int w, int f) {
  int out_h = h / 2;
  int out_w = w / 2;
  double *v_ptr = v;
  double *o_ptr = o;
  int *m_ptr = m;
  int v_size = h * w * f;
  int o_size = out_h * out_w * f;
  int step1 = f;
  int step2 = w * f;
  int step3 = w * f + f;
  int ni, hi, wi, fi;
  for (ni = 0; ni < n; ++ni) {
    for (hi = 0; hi < out_h; ++hi) {
      for (wi = 0; wi < out_w; ++wi) {
        int off_o = f * (wi + out_w * hi);
        int off_v = f * (2 * wi + w * 2 * hi);
        for (fi = 0; fi < f; ++fi) {
          int idx_v = off_v + fi;
          int idx_o = off_o + fi;
          v_ptr[idx_v + m_ptr[idx_o]] = o_ptr[idx_o];
        }
      }
    }
    o_ptr += o_size;
    m_ptr += o_size;
    v_ptr += v_size;
  }
}
```