user: Please show me the C implementation that matches the assembly code listed below:

```asm
<step10>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %rcx,-0x40(%rbp)
  mov    %r8,-0x48(%rbp)
  mov    %r9,-0x50(%rbp)
  movl   $0x40,-0xc(%rbp)
  movl   $0x0,-0x14(%rbp)
  jmp    L32
L12:
  nop
  movl   $0x0,-0x10(%rbp)
  jmp    L27
L41:
  mov    -0x14(%rbp),%eax
  lea    0x0(,%rax,8),%edx
  mov    -0x10(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    -0x10(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x50(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x10(%rbp)
L27:
  cmpl   $0x7,-0x10(%rbp)
  jle    L41
  mov    -0x14(%rbp),%eax
  sar    $0x3,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x14(%rbp),%eax
  and    $0x7,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x8(%rbp),%edx
  mov    %edx,%eax
  shl    $0x3,%eax
  add    %edx,%eax
  shl    $0x3,%eax
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x50(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x8(%rbp),%edx
  mov    %edx,%eax
  shl    $0x3,%eax
  add    %edx,%eax
  shl    $0x3,%eax
  lea    0x8(%rax),%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  mov    -0x50(%rbp),%rdx
  add    $0x4,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x8(%rbp),%edx
  mov    %edx,%eax
  shl    $0x3,%eax
  add    %edx,%eax
  shl    $0x3,%eax
  lea    0x10(%rax),%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  mov    -0x50(%rbp),%rdx
  add    $0x8,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x8(%rbp),%edx
  mov    %edx,%eax
  shl    $0x3,%eax
  add    %edx,%eax
  shl    $0x3,%eax
  lea    0x18(%rax),%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  mov    -0x50(%rbp),%rdx
  add    $0xc,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x8(%rbp),%edx
  mov    %edx,%eax
  shl    $0x3,%eax
  add    %edx,%eax
  shl    $0x3,%eax
  lea    0x20(%rax),%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  mov    -0x50(%rbp),%rdx
  add    $0x10,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x8(%rbp),%edx
  mov    %edx,%eax
  shl    $0x3,%eax
  add    %edx,%eax
  shl    $0x3,%eax
  lea    0x28(%rax),%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  mov    -0x50(%rbp),%rdx
  add    $0x14,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x8(%rbp),%edx
  mov    %edx,%eax
  shl    $0x3,%eax
  add    %edx,%eax
  shl    $0x3,%eax
  lea    0x30(%rax),%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  mov    -0x50(%rbp),%rdx
  add    $0x18,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x8(%rbp),%edx
  mov    %edx,%eax
  shl    $0x3,%eax
  add    %edx,%eax
  shl    $0x3,%eax
  lea    0x38(%rax),%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  mov    -0x50(%rbp),%rdx
  add    $0x1c,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  movl   $0x0,-0x10(%rbp)
  jmp    L16
L35:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    -0x14(%rbp),%edx
  lea    0x0(,%rdx,8),%ecx
  mov    -0x10(%rbp),%edx
  add    %ecx,%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x40(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x10(%rbp)
L16:
  cmpl   $0x7,-0x10(%rbp)
  jle    L35
  addl   $0x1,-0x14(%rbp)
L32:
  cmpl   $0x3f,-0x14(%rbp)
  jle    L12
  nop
  nop
  pop    %rbp
  ret
```

assistant: ```c
void step10(int work_x[], int work_y[], int DATA_x[], int DATA_y[], int data_x[], int data_y[], int smem[], int reversed[], float sin_64[448], float cos_64[448], float sin_512[448], float cos_512[448]) {
  int tid, hi, lo, i, j, stride;
  stride = 64;
outer:
  for (tid = 0; tid < 64; tid++) {
  load:
    for (i = 0; i < 8; i++) {
      data_y[i] = DATA_y[tid * 8 + i];
    }
    hi = tid >> 3;
    lo = tid & 7;
    {
      data_y[0] = smem[0 * 8 + hi * 72 + lo];
      data_y[1] = smem[1 * 8 + hi * 72 + lo];
      data_y[2] = smem[2 * 8 + hi * 72 + lo];
      data_y[3] = smem[3 * 8 + hi * 72 + lo];
      data_y[4] = smem[4 * 8 + hi * 72 + lo];
      data_y[5] = smem[5 * 8 + hi * 72 + lo];
      data_y[6] = smem[6 * 8 + hi * 72 + lo];
      data_y[7] = smem[7 * 8 + hi * 72 + lo];
    };
  store:
    for (i = 0; i < 8; i++) {
      DATA_y[tid * 8 + i] = data_y[i];
    }
  }
}
```