user: What would the C source look like for the assembly code provided here:

```asm
<reorg_cpu>:
  endbr64
  push   %r15
  mov    %rdi,%r10
  mov    %r8d,%edi
  push   %r14
  push   %r13
  mov    %r9d,%r13d
  push   %r12
  push   %rbp
  mov    %esi,%ebp
  mov    %ecx,%esi
  push   %rbx
  mov    %edx,%ebx
  mov    %r13d,%edx
  mov    %esi,%eax
  imul   %r13d,%edx
  mov    0x40(%rsp),%r9
  mov    %r8d,-0x4(%rsp)
  mov    0x38(%rsp),%r8d
  mov    %edx,%ecx
  cltd
  mov    %esi,-0x18(%rsp)
  idiv   %ecx
  test   %edi,%edi
  jle    L77
  mov    %ebp,%edx
  mov    %eax,%r14d
  mov    %esi,%eax
  movl   $0x0,-0x34(%rsp)
  imul   %r13d,%edx
  movl   $0x0,-0xc(%rsp)
  movslq %r13d,%rdi
  movl   $0x0,-0x10(%rsp)
  shl    $0x2,%rdi
  mov    %r14d,-0x30(%rsp)
  mov    %edx,-0x2c(%rsp)
  mov    %ebx,%edx
  imul   %r13d,%ebx
  mov    %edx,%r14d
  mov    %ebx,-0x20(%rsp)
  mov    %edx,%ebx
  imul   %ebp,%ebx
  imul   %ebx,%eax
  mov    %ebx,-0x14(%rsp)
  mov    %eax,-0x8(%rsp)
  lea    -0x1(%rbp),%eax
  add    $0x1,%rax
  mov    %rax,-0x28(%rsp)
L63:
  mov    -0x18(%rsp),%eax
  test   %eax,%eax
  jle    L46
  mov    -0xc(%rsp),%eax
  movl   $0x0,-0x38(%rsp)
  mov    %eax,-0x1c(%rsp)
  xchg   %ax,%ax
L61:
  mov    -0x1c(%rsp),%r12d
  xor    %ebx,%ebx
  xor    %r11d,%r11d
  test   %r14d,%r14d
  jle    L84
  nopl   0x0(%rax,%rax,1)
L93:
  test   %ebp,%ebp
  jle    L104
  mov    -0x38(%rsp),%eax
  movslq %r12d,%r15
  lea    0x0(,%r15,4),%rsi
  add    -0x28(%rsp),%r15
  cltd
  shl    $0x2,%r15
  idivl  -0x30(%rsp)
  mov    %edx,%ecx
  cltd
  add    -0x34(%rsp),%ecx
  idiv   %r13d
  imul   -0x20(%rsp),%ecx
  add    %ebx,%eax
  movslq %edx,%rdx
  add    %eax,%ecx
  imul   -0x2c(%rsp),%ecx
  movslq %ecx,%rcx
  add    %rdx,%rcx
  shl    $0x2,%rcx
  jmp    L43
L47:
  movss  (%r10,%rsi,1),%xmm0
  add    $0x4,%rsi
  movss  %xmm0,(%r9,%rcx,1)
  add    %rdi,%rcx
  cmp    %r15,%rsi
  je     L104
L43:
  test   %r8d,%r8d
  jne    L47
  movss  (%r10,%rcx,1),%xmm0
  add    %rdi,%rcx
  movss  %xmm0,(%r9,%rsi,1)
  add    $0x4,%rsi
  cmp    %r15,%rsi
  jne    L43
L104:
  add    $0x1,%r11d
  add    %ebp,%r12d
  add    %r13d,%ebx
  cmp    %r11d,%r14d
  jne    L93
L84:
  addl   $0x1,-0x38(%rsp)
  mov    -0x14(%rsp),%ebx
  mov    -0x38(%rsp),%eax
  add    %ebx,-0x1c(%rsp)
  cmp    %eax,-0x18(%rsp)
  jne    L61
L46:
  mov    -0x8(%rsp),%ebx
  addl   $0x1,-0x10(%rsp)
  add    %ebx,-0xc(%rsp)
  mov    -0x10(%rsp),%eax
  mov    -0x30(%rsp),%ebx
  add    %ebx,-0x34(%rsp)
  cmp    %eax,-0x4(%rsp)
  jne    L63
L77:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void reorg_cpu(float *x, int w, int h, int c, int batch, int stride, int forward, float *out) {
  int b, i, j, k;
  int out_c = c / (stride * stride);
  for (b = 0; b < batch; ++b) {
    for (k = 0; k < c; ++k) {
      for (j = 0; j < h; ++j) {
        for (i = 0; i < w; ++i) {
          int in_index = i + w * (j + h * (k + c * b));
          int c2 = k % out_c;
          int offset = k / out_c;
          int w2 = i * stride + offset % stride;
          int h2 = j * stride + offset / stride;
          int out_index = w2 + w * stride * (h2 + h * stride * (c2 + out_c * b));
          if (forward)
            out[out_index] = x[in_index];
          else
            out[in_index] = x[out_index];
        }
      }
    }
  }
}
```