user: 请从给定的汇编指令推导出C源代码：

```asm
<conv_kov>:
  endbr64
  push   %r15
  mov    %ecx,%r11d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    0x40(%rsp),%r14d
  mov    0x48(%rsp),%r13d
  mov    0x38(%rsp),%r12d
  mov    0x50(%rsp),%r10d
  mov    %rsi,-0x50(%rsp)
  lea    (%r8,%r14,2),%esi
  mov    %esi,%eax
  sub    0x58(%rsp),%eax
  mov    %rdx,-0x30(%rsp)
  cltd
  mov    %rdi,-0x60(%rsp)
  lea    (%r9,%r13,2),%edi
  idivl  0x68(%rsp)
  mov    %ecx,-0x4(%rsp)
  mov    %r9d,-0x54(%rsp)
  mov    %r8d,%ecx
  imul   %r9d,%ecx
  imul   %r12d,%ecx
  lea    0x1(%rax),%r8d
  mov    %eax,-0x1c(%rsp)
  mov    %edi,%eax
  sub    0x60(%rsp),%eax
  cltd
  mov    %r8d,-0x8(%rsp)
  idivl  0x70(%rsp)
  mov    %r8d,%edx
  lea    0x1(%rax),%ebx
  mov    %eax,-0x3c(%rsp)
  mov    0x58(%rsp),%eax
  imul   0x60(%rsp),%eax
  mov    %ebx,-0x24(%rsp)
  imul   %ebx,%edx
  imul   %r12d,%eax
  imul   %r10d,%edx
  mov    %eax,-0x6c(%rsp)
  mov    0x60(%rsp),%eax
  imul   %r12d,%eax
  mov    %eax,-0x68(%rsp)
  test   %r11d,%r11d
  jle    L25
  movslq %edx,%rdx
  imul   %r10d,%ebx
  sub    %r14d,%esi
  sub    %r13d,%edi
  lea    0x0(,%rdx,8),%rax
  movl   $0x0,-0x20(%rsp)
  lea    -0x1(%r10),%r8d
  mov    %rax,-0x18(%rsp)
  movslq %ecx,%rax
  shl    $0x3,%rax
  mov    %ebx,-0x28(%rsp)
  mov    %rax,-0x10(%rsp)
  movslq %r10d,%rax
  shl    $0x3,%rax
  mov    %esi,-0x64(%rsp)
  mov    %rax,-0x48(%rsp)
  mov    %edi,-0x58(%rsp)
L23:
  mov    -0x8(%rsp),%eax
  test   %eax,%eax
  jle    L128
  movl   $0x0,-0x38(%rsp)
  xor    %ebp,%ebp
  movl   $0x0,-0x34(%rsp)
L80:
  mov    -0x24(%rsp),%edx
  test   %edx,%edx
  jle    L59
  mov    -0x30(%rsp),%rbx
  movslq -0x38(%rsp),%rax
  movl   $0x0,-0x40(%rsp)
  lea    (%rbx,%rax,8),%rdi
  xor    %ebx,%ebx
  nopw   0x0(%rax,%rax,1)
L113:
  mov    -0x6c(%rsp),%ecx
  xor    %r9d,%r9d
  xor    %esi,%esi
  test   %ecx,%ecx
  jle    L40
  nopl   0x0(%rax)
L136:
  mov    %esi,%eax
  cltd
  idivl  -0x68(%rsp)
  cltd
  idivl  0x58(%rsp)
  mov    %esi,%eax
  lea    (%rdx,%rbp,1),%ecx
  cltd
  idiv   %r12d
  mov    %edx,%r11d
  cltd
  idivl  0x60(%rsp)
  add    %ebx,%edx
  cmp    %ecx,%r14d
  setg   %r15b
  cmp    %edx,%r13d
  setg   %al
  or     %r15d,%eax
  cmp    -0x64(%rsp),%ecx
  setge  %r15b
  or     %al,%r15b
  jne    L132
  cmp    -0x58(%rsp),%edx
  jge    L132
  sub    %r14d,%ecx
  imul   -0x54(%rsp),%ecx
  sub    %r13d,%edx
  add    %edx,%ecx
  imul   %r12d,%ecx
  lea    (%rcx,%r11,1),%edx
  test   %r10d,%r10d
  jle    L68
  mov    -0x50(%rsp),%rcx
  movslq %r9d,%rax
  pxor   %xmm1,%xmm1
  lea    (%rcx,%rax,8),%r11
  xor    %eax,%eax
  cs nopw 0x0(%rax,%rax,1)
L130:
  movsd  (%r11,%rax,8),%xmm0
  mulsd  (%rdi,%rax,8),%xmm0
  mov    %rax,%rcx
  add    $0x1,%rax
  addsd  %xmm0,%xmm1
  cmp    %r8,%rcx
  jne    L130
L94:
  mov    -0x60(%rsp),%rax
  movslq %edx,%rdx
  lea    (%rax,%rdx,8),%rax
  addsd  (%rax),%xmm1
  movsd  %xmm1,(%rax)
L132:
  add    $0x1,%esi
  add    %r10d,%r9d
  cmp    %esi,-0x6c(%rsp)
  jne    L136
L40:
  mov    -0x40(%rsp),%esi
  add    0x70(%rsp),%ebx
  add    -0x48(%rsp),%rdi
  lea    0x1(%rsi),%eax
  cmp    %esi,-0x3c(%rsp)
  je     L59
  mov    %eax,-0x40(%rsp)
  jmp    L113
  xchg   %ax,%ax
L68:
  pxor   %xmm1,%xmm1
  jmp    L94
L59:
  mov    -0x34(%rsp),%ebx
  mov    -0x28(%rsp),%esi
  add    0x68(%rsp),%ebp
  add    %esi,-0x38(%rsp)
  lea    0x1(%rbx),%eax
  cmp    %ebx,-0x1c(%rsp)
  je     L128
  mov    %eax,-0x34(%rsp)
  jmp    L80
L128:
  mov    -0x18(%rsp),%rbx
  addl   $0x1,-0x20(%rsp)
  add    %rbx,-0x30(%rsp)
  mov    -0x20(%rsp),%eax
  mov    -0x10(%rsp),%rbx
  add    %rbx,-0x60(%rsp)
  cmp    %eax,-0x4(%rsp)
  jne    L23
L25:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void conv_kov(double *v, double *k, double *o, int n, int h, int w, int f, int ph, int pw, int out_f, int kh, int kw, int sh, int sw) {
  int out_h = (h + 2 * ph - kh) / sh + 1;
  int out_w = (w + 2 * pw - kw) / sw + 1;
  int colcol = kh * kw * f;
  int fkw = f * kw;
  int o_size = out_h * out_w * out_f;
  int v_size = h * w * f;
  double *o_ptr = o;
  double *v_ptr = v;
  int n_idx, ho, wo, fo, kcoli;
  int v_hi, v_wi, fi, v_idx, off_o, off_k, sho, swo;
  for (n_idx = 0; n_idx < n; ++n_idx) {
    for (ho = 0; ho < out_h; ++ho) {
      for (wo = 0; wo < out_w; ++wo) {
        off_o = out_f * (wo + out_w * ho);
        sho = ho * sh;
        swo = wo * sw;
        for (kcoli = 0; kcoli < colcol; ++kcoli) {
          v_hi = sho + kcoli / fkw % kh;
          v_wi = swo + kcoli / f % kw;
          if ((v_hi < ph) | (v_wi < pw) | (v_hi >= h + ph) | (v_wi >= w + pw)) {
            continue;
          }
          fi = kcoli % f;
          v_idx = fi + f * (v_wi - pw + w * (v_hi - ph));
          register double part = 0;
          for (fo = 0; fo < out_f; ++fo) {
            part += k[kcoli * out_f + fo] * o_ptr[fo + off_o];
          }
          v_ptr[v_idx] += part;
        }
      }
    }
    o_ptr += o_size;
    v_ptr += v_size;
  }
}
```