user: Demonstrate the C code that generates the assembly output below:

```asm
<reorg_cpu>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%r10
  mov    %edx,%r13d
  mov    %r8d,-0x8(%rsp)
  mov    %r9d,%r15d
  mov    0x38(%rsp),%r9d
  mov    0x40(%rsp),%r11
  mov    %r15d,%ebx
  imul   %r15d,%ebx
  mov    %ecx,-0x20(%rsp)
  mov    %ecx,%eax
  cltd
  idiv   %ebx
  mov    %eax,-0x4(%rsp)
  mov    %eax,-0x28(%rsp)
  test   %r8d,%r8d
  jle    L76
  mov    %esi,%r14d
  mov    %esi,%ebx
  imul   %r15d,%ebx
  mov    %ebx,-0x3c(%rsp)
  mov    %r15d,%ebx
  imul   %r13d,%ebx
  mov    %ebx,-0x38(%rsp)
  mov    %esi,%ebx
  imul   %r13d,%ebx
  mov    %ebx,-0x1c(%rsp)
  mov    %ecx,%eax
  imul   %ebx,%eax
  mov    %eax,-0xc(%rsp)
  movslq %r15d,%r8
  shl    $0x2,%r8
  movl   $0x0,-0x10(%rsp)
  movl   $0x0,-0x14(%rsp)
  movl   $0x0,-0x18(%rsp)
  mov    %esi,%eax
  mov    %rax,-0x30(%rsp)
  jmp    L72
L51:
  movss  (%r10,%rax,1),%xmm0
  movss  %xmm0,(%r11,%rsi,1)
L100:
  add    $0x4,%rsi
  add    %r8,%rax
  cmp    %rdi,%rsi
  je     L48
L139:
  test   %r9d,%r9d
  je     L51
  movss  (%r10,%rsi,1),%xmm0
  movss  %xmm0,(%r11,%rax,1)
  jmp    L100
L48:
  add    $0x1,%ebx
  add    %r14d,%r12d
  add    %r15d,%ebp
  cmp    %ebx,%r13d
  je     L98
L63:
  test   %r14d,%r14d
  jle    L48
  mov    -0x40(%rsp),%eax
  cltd
  idivl  -0x28(%rsp)
  movslq %r12d,%rdi
  lea    0x0(,%rdi,4),%rsi
  mov    -0x34(%rsp),%ecx
  add    %edx,%ecx
  imul   -0x38(%rsp),%ecx
  cltd
  idiv   %r15d
  add    %ebp,%eax
  add    %ecx,%eax
  imul   -0x3c(%rsp),%eax
  cltq
  movslq %edx,%rdx
  add    %rdx,%rax
  shl    $0x2,%rax
  add    -0x30(%rsp),%rdi
  shl    $0x2,%rdi
  jmp    L139
L98:
  addl   $0x1,-0x40(%rsp)
  mov    -0x40(%rsp),%eax
  mov    -0x1c(%rsp),%edx
  add    %edx,-0x24(%rsp)
  cmp    %eax,-0x20(%rsp)
  je     L101
L53:
  mov    -0x24(%rsp),%r12d
  mov    $0x0,%ebp
  mov    $0x0,%ebx
  test   %r13d,%r13d
  jg     L63
  jmp    L98
L101:
  addl   $0x1,-0x18(%rsp)
  mov    -0x18(%rsp),%eax
  mov    -0xc(%rsp),%edx
  add    %edx,-0x14(%rsp)
  mov    -0x4(%rsp),%edx
  add    %edx,-0x10(%rsp)
  cmp    %eax,-0x8(%rsp)
  je     L76
L72:
  cmpl   $0x0,-0x20(%rsp)
  jle    L101
  mov    -0x10(%rsp),%eax
  mov    %eax,-0x34(%rsp)
  mov    -0x14(%rsp),%eax
  mov    %eax,-0x24(%rsp)
  movl   $0x0,-0x40(%rsp)
  jmp    L53
L76:
  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];
        }
      }
    }
  }
}
```