user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<step8>:
  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    L2
L47:
  nop
  movl   $0x0,-0x10(%rbp)
  jmp    L23
L53:
  mov    -0x14(%rbp),%eax
  lea    0x0(,%rax,8),%edx
  mov    -0x10(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    -0x10(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x48(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x10(%rbp)
L23:
  cmpl   $0x7,-0x10(%rbp)
  jle    L53
  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    -0x48(%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    -0x48(%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    -0x48(%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    -0x48(%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    -0x48(%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    -0x48(%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    -0x48(%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    -0x48(%rbp),%rdx
  add    $0x1c,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  movl   $0x0,-0x10(%rbp)
  jmp    L15
L21:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%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    -0x38(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x10(%rbp)
L15:
  cmpl   $0x7,-0x10(%rbp)
  jle    L21
  addl   $0x1,-0x14(%rbp)
L2:
  cmpl   $0x3f,-0x14(%rbp)
  jle    L47
  nop
  nop
  pop    %rbp
  ret
```

assistant: ```c
void step8(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_x[i] = DATA_x[tid * 8 + i];
    }
    hi = tid >> 3;
    lo = tid & 7;
    {
      data_x[0] = smem[0 * 8 + hi * 72 + lo];
      data_x[1] = smem[1 * 8 + hi * 72 + lo];
      data_x[2] = smem[2 * 8 + hi * 72 + lo];
      data_x[3] = smem[3 * 8 + hi * 72 + lo];
      data_x[4] = smem[4 * 8 + hi * 72 + lo];
      data_x[5] = smem[5 * 8 + hi * 72 + lo];
      data_x[6] = smem[6 * 8 + hi * 72 + lo];
      data_x[7] = smem[7 * 8 + hi * 72 + lo];
    };
  store:
    for (i = 0; i < 8; i++) {
      DATA_x[tid * 8 + i] = data_x[i];
    }
  }
}
```