user: 请将以下的汇编代码转换成C语言代码：

```asm
<shortcut_cpu>:
  endbr64
  mov    %esi,%eax
  mov    %edx,%r10d
  push   %r15
  mov    %ecx,%r15d
  cltd
  push   %r14
  idiv   %r9d
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %esi,%ebp
  sub    $0x38,%rsp
  mov    %r9d,%r12d
  mov    %r8,%r13
  mov    0x70(%rsp),%ecx
  mov    %edi,0x24(%rsp)
  mov    %r10d,0x4(%rsp)
  mov    0x80(%rsp),%r14
  mov    %eax,%esi
  mov    %r9d,%eax
  cltd
  mov    %esi,0x8(%rsp)
  idiv   %ebp
  movslq %eax,%rbx
  mov    %r10d,%eax
  cltd
  idiv   %ecx
  cmp    %esi,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    0x70(%rsp),%eax
  mov    0x4(%rsp),%r10d
  xor    %edi,%edi
  cltd
  idiv   %r10d
  cmp    %ebx,%eax
  sete   %dil
  call   <assert@plt>
  movslq 0x8(%rsp),%rsi
  mov    0x70(%rsp),%ecx
  mov    %r15d,%r11d
  mov    $0x1,%eax
  mov    0x4(%rsp),%r10d
  mov    $0x1,%edx
  mov    0x24(%rsp),%edi
  test   %esi,%esi
  cmovg  %rsi,%rax
  test   %ebx,%ebx
  mov    %r12d,%esi
  cmovg  %rbx,%rdx
  cmp    %r12d,%ebp
  mov    %ecx,%ebx
  cmovle %ebp,%esi
  cmp    %ecx,%r10d
  cmovle %r10d,%ebx
  cmp    %r15d,0x78(%rsp)
  cmovle 0x78(%rsp),%r11d
  mov    %r11d,0xc(%rsp)
  test   %edi,%edi
  jle    L14
  imul   %r10d,%r15d
  mov    0x78(%rsp),%edi
  movl   $0x0,0x20(%rsp)
  lea    0x0(,%rdx,4),%r8
  imul   %ebp,%r10d
  movl   $0x0,0x1c(%rsp)
  imul   %ecx,%edi
  movl   $0x0,0x18(%rsp)
  imul   %ebp,%r15d
  imul   %r12d,%ecx
  mov    %r10d,0x14(%rsp)
  imul   %r12d,%edi
  mov    %r15d,0x2c(%rsp)
  imul   %edx,%r12d
  mov    %ecx,0x10(%rsp)
  imul   %eax,%ebp
  mov    %edi,0x28(%rsp)
  lea    0x0(,%rax,4),%rdi
L35:
  mov    0x1c(%rsp),%eax
  movl   $0x0,0x4(%rsp)
  mov    0x20(%rsp),%r15d
  mov    %eax,0x8(%rsp)
  mov    0xc(%rsp),%eax
  test   %eax,%eax
  jle    L40
  nopw   0x0(%rax,%rax,1)
L47:
  mov    0x8(%rsp),%r10d
  mov    %r15d,%r11d
  xor    %r9d,%r9d
  test   %ebx,%ebx
  jle    L76
  nop
L6:
  test   %esi,%esi
  jle    L17
  movslq %r11d,%rdx
  movslq %r10d,%rax
  lea    0x0(%r13,%rdx,4),%rcx
  lea    (%r14,%rax,4),%rax
  xor    %edx,%edx
  nopl   (%rax)
L66:
  movss  (%rax),%xmm0
  addss  (%rcx),%xmm0
  add    $0x1,%edx
  add    %rdi,%rcx
  movss  %xmm0,(%rax)
  add    %r8,%rax
  cmp    %edx,%esi
  jne    L66
L17:
  add    $0x1,%r9d
  add    %r12d,%r10d
  add    %ebp,%r11d
  cmp    %r9d,%ebx
  jne    L6
L76:
  addl   $0x1,0x4(%rsp)
  mov    0x10(%rsp),%edx
  mov    0x4(%rsp),%eax
  add    %edx,0x8(%rsp)
  add    0x14(%rsp),%r15d
  cmp    %eax,0xc(%rsp)
  jne    L47
L40:
  mov    0x28(%rsp),%edx
  addl   $0x1,0x18(%rsp)
  add    %edx,0x1c(%rsp)
  mov    0x18(%rsp),%eax
  mov    0x2c(%rsp),%edx
  add    %edx,0x20(%rsp)
  cmp    %eax,0x24(%rsp)
  jne    L35
L14:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  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];
        }
      }
    }
  }
}
```