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

```asm
<pool_backwards_cpu>:
  endbr64
  push   %r15
  mov    %ecx,%eax
  push   %r14
  imul   %r8d,%eax
  mov    %r8d,%r14d
  push   %r13
  mov    %edx,%r13d
  push   %r12
  mov    %r9d,%r12d
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %ecx,%ebx
  sub    $0x68,%rsp
  mov    %eax,0x48(%rsp)
  imul   %edx,%eax
  mov    0xb8(%rsp),%rdi
  mov    %edx,0x54(%rsp)
  mov    0xa0(%rsp),%r15d
  mov    %rsi,(%rsp)
  xor    %esi,%esi
  mov    %eax,%edx
  shl    $0x3,%edx
  call   <memset@plt>
  test   %r13d,%r13d
  jle    L67
  mov    %r14d,%eax
  sub    %r15d,%eax
  sub    %r12d,%ebx
  mov    %eax,0x14(%rsp)
  mov    %ebx,0x4c(%rsp)
  js     L67
  mov    %r15d,%eax
  movl   $0x0,0x3c(%rsp)
  neg    %eax
  movl   $0x0,0x34(%rsp)
  mov    %eax,0x44(%rsp)
  mov    0xa8(%rsp),%eax
  imul   %r14d,%eax
  mov    %eax,0x50(%rsp)
  movslq 0xb0(%rsp),%rax
  mov    %rax,0x20(%rsp)
  shl    $0x3,%rax
  mov    %rax,0x18(%rsp)
  lea    -0x2(%r15),%eax
  lea    0x2(%rax),%r13
  lea    (%r14,%r15,1),%eax
  mov    %eax,0x58(%rsp)
  mov    %r13,%rax
  mov    %rbp,%r13
  mov    %rax,%rbp
L8:
  movslq 0x3c(%rsp),%rbx
  movl   $0x0,0x40(%rsp)
  movl   $0x0,0x38(%rsp)
  mov    %rbx,%rax
  mov    %rbx,0x28(%rsp)
  mov    0x58(%rsp),%ebx
  add    %eax,%ebx
  mov    %ebx,0x5c(%rsp)
L22:
  mov    0x14(%rsp),%eax
  test   %eax,%eax
  js     L71
  movslq 0x40(%rsp),%rax
  mov    0x5c(%rsp),%edi
  movq   $0x0,0x8(%rsp)
  mov    0x44(%rsp),%r10d
  mov    %rax,%rbx
  add    0x28(%rsp),%rax
  lea    0x0(%r13,%rax,8),%r9
  mov    %ebx,%eax
  add    0x3c(%rsp),%ebx
  add    %eax,%edi
  mov    %ebx,%r8d
  xor    %ebx,%ebx
  mov    %edi,0x30(%rsp)
L103:
  movsd  (%r9),%xmm0
  mov    %r8d,%ecx
  cmp    $0x1,%r15d
  jle    L79
  mov    $0x1,%eax
  nopl   0x0(%rax,%rax,1)
L84:
  movsd  (%r9,%rax,8),%xmm1
  lea    (%r8,%rax,1),%edx
  comisd %xmm0,%xmm1
  maxsd  %xmm0,%xmm1
  cmova  %edx,%ecx
  add    $0x1,%rax
  movapd %xmm1,%xmm0
  cmp    %rax,%rbp
  jne    L84
L79:
  cmp    $0x1,%r12d
  jle    L65
  mov    0x30(%rsp),%eax
  mov    0x28(%rsp),%r11
  mov    $0x1,%edi
  add    0x8(%rsp),%r11
  lea    (%rax,%rbx,1),%esi
  cs nopw 0x0(%rax,%rax,1)
L13:
  test   %r15d,%r15d
  jle    L76
  lea    (%rsi,%r10,1),%eax
  cltq
  add    %r11,%rax
  lea    0x0(%r13,%rax,8),%rdx
  mov    %esi,%eax
  sub    %r15d,%eax
  nopl   0x0(%rax,%rax,1)
L5:
  movsd  (%rdx),%xmm1
  comisd %xmm0,%xmm1
  maxsd  %xmm0,%xmm1
  cmova  %eax,%ecx
  add    $0x1,%eax
  movapd %xmm1,%xmm0
  add    $0x8,%rdx
  cmp    %esi,%eax
  jne    L5
L76:
  add    $0x1,%edi
  add    %r14d,%esi
  cmp    %edi,%r12d
  jne    L13
L65:
  mov    0xb8(%rsp),%rax
  addq   $0x8,(%rsp)
  movslq %ecx,%rcx
  mov    (%rsp),%rdi
  add    0xb0(%rsp),%ebx
  lea    (%rax,%rcx,8),%rax
  add    0x18(%rsp),%r9
  add    0xb0(%rsp),%r8d
  movsd  (%rax),%xmm0
  addsd  -0x8(%rdi),%xmm0
  sub    0xb0(%rsp),%r10d
  mov    0x20(%rsp),%rdi
  add    %rdi,0x8(%rsp)
  movsd  %xmm0,(%rax)
  cmp    0x14(%rsp),%ebx
  jle    L103
L71:
  mov    0xa8(%rsp),%ebx
  mov    0x50(%rsp),%edi
  add    %ebx,0x38(%rsp)
  mov    0x38(%rsp),%eax
  add    %edi,0x40(%rsp)
  cmp    0x4c(%rsp),%eax
  jle    L22
  mov    0x48(%rsp),%edi
  addl   $0x1,0x34(%rsp)
  sub    %edi,0x44(%rsp)
  mov    0x34(%rsp),%eax
  add    %edi,0x3c(%rsp)
  cmp    %eax,0x54(%rsp)
  jne    L8
L67:
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void pool_backwards_cpu(const double *data_im, const double *data_pooled, const int channels, const int height, const int width, const int kernel_h, const int kernel_w, const int stride_h, const int stride_w, double *data_backgrad) {
  memset(data_backgrad, 0, height * width * channels * sizeof(double));
  const int channel_size = height * width;
  for (int channel = 0; channel < channels; channel++) {
    for (int fitting_height = 0; fitting_height <= (height - kernel_h); fitting_height += stride_h) {
      for (int fitting_width = 0; fitting_width <= (width - kernel_w); fitting_width += stride_w) {
        int max_index = fitting_height * width + fitting_width + channel_size * channel;
        double max_value = data_im[max_index];
        for (int kernel_col = 1; kernel_col < kernel_w; kernel_col++) {
          int input_row = fitting_height;
          int input_col = fitting_width + kernel_col;
          int data_index = input_row * width + input_col + channel_size * channel;
          double data_value = data_im[data_index];
          if (data_value > max_value) {
            max_index = data_index;
            max_value = data_value;
          }
        }
        for (int kernel_row = 1; kernel_row < kernel_h; kernel_row++) {
          for (int kernel_col = 0; kernel_col < kernel_w; kernel_col++) {
            int input_row = fitting_height + kernel_row;
            int input_col = fitting_width + kernel_col;
            int data_index = input_row * width + input_col + channel_size * channel;
            double data_value = data_im[data_index];
            if (data_value > max_value) {
              max_index = data_index;
              max_value = data_value;
            }
          }
        }
        data_backgrad[max_index] += *(data_pooled++);
      }
    }
  }
}
```