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

```asm
<shortcut_cpu>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %edi,-0x34(%rbp)
  mov    %esi,-0x38(%rbp)
  mov    %edx,-0x3c(%rbp)
  mov    %ecx,-0x40(%rbp)
  mov    %r8,-0x48(%rbp)
  mov    %r9d,-0x4c(%rbp)
  mov    -0x38(%rbp),%eax
  cltd
  idivl  -0x4c(%rbp)
  mov    %eax,-0x2c(%rbp)
  mov    -0x4c(%rbp),%eax
  cltd
  idivl  -0x38(%rbp)
  mov    %eax,-0x28(%rbp)
  mov    -0x3c(%rbp),%eax
  cltd
  idivl  0x10(%rbp)
  cmp    %eax,-0x2c(%rbp)
  sete   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  mov    0x10(%rbp),%eax
  cltd
  idivl  -0x3c(%rbp)
  cmp    %eax,-0x28(%rbp)
  sete   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  cmpl   $0x0,-0x2c(%rbp)
  jg     L99
  movl   $0x1,-0x2c(%rbp)
L99:
  cmpl   $0x0,-0x28(%rbp)
  jg     L25
  movl   $0x1,-0x28(%rbp)
L25:
  mov    -0x4c(%rbp),%edx
  mov    -0x38(%rbp),%eax
  cmp    %eax,%edx
  cmovle %edx,%eax
  mov    %eax,-0x14(%rbp)
  mov    0x10(%rbp),%edx
  mov    -0x3c(%rbp),%eax
  cmp    %eax,%edx
  cmovle %edx,%eax
  mov    %eax,-0x10(%rbp)
  mov    0x18(%rbp),%edx
  mov    -0x40(%rbp),%eax
  cmp    %eax,%edx
  cmovle %edx,%eax
  mov    %eax,-0xc(%rbp)
  movl   $0x0,-0x18(%rbp)
  jmp    L80
L35:
  movl   $0x0,-0x1c(%rbp)
  jmp    L34
L61:
  movl   $0x0,-0x20(%rbp)
  jmp    L76
L98:
  movl   $0x0,-0x24(%rbp)
  jmp    L64
L26:
  mov    -0x24(%rbp),%eax
  imul   -0x28(%rbp),%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%eax
  imul   -0x28(%rbp),%eax
  mov    %eax,%ecx
  mov    0x18(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%esi
  mov    -0x1c(%rbp),%eax
  add    %esi,%eax
  imul   0x10(%rbp),%eax
  add    %ecx,%eax
  imul   -0x4c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x24(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x40(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%esi
  mov    -0x1c(%rbp),%eax
  add    %esi,%eax
  imul   -0x3c(%rbp),%eax
  add    %ecx,%eax
  imul   -0x38(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x20(%rbp),%rax
  add    %rdx,%rax
  addss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x24(%rbp)
L64:
  mov    -0x24(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L26
  addl   $0x1,-0x20(%rbp)
L76:
  mov    -0x20(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jl     L98
  addl   $0x1,-0x1c(%rbp)
L34:
  mov    -0x1c(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jl     L61
  addl   $0x1,-0x18(%rbp)
L80:
  mov    -0x18(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L35
  nop
  nop
  leave
  ret
```

assistant: ```c
void shortcut_cpu(int batch, int w1, int h1, int c1, float *add, int w2, int h2, int c2, float *out) {
  int stride = w1 / w2;
  int sample = w2 / w1;
  assert(stride == h1 / h2);
  assert(sample == h2 / h1);
  if (stride < 1)
    stride = 1;
  if (sample < 1)
    sample = 1;
  int minw = (w1 < w2) ? w1 : w2;
  int minh = (h1 < h2) ? h1 : h2;
  int minc = (c1 < c2) ? c1 : c2;
  int i, j, k, b;
  for (b = 0; b < batch; ++b) {
    for (k = 0; k < minc; ++k) {
      for (j = 0; j < minh; ++j) {
        for (i = 0; i < minw; ++i) {
          int out_index = i * sample + w2 * (j * sample + h2 * (k + c2 * b));
          int add_index = i * stride + w1 * (j * stride + h1 * (k + c1 * b));
          out[out_index] += add[add_index];
        }
      }
    }
  }
}
```