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

```asm
<trasp_8_N>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %edx,-0x44(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x40(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x30(%rbp)
  jmp    L85
L104:
  movl   $0x0,-0x2c(%rbp)
  jmp    L25
L45:
  movl   $0x0,-0x28(%rbp)
  jmp    L19
L11:
  mov    -0x30(%rbp),%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,8),%edx
  mov    -0x28(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x30(%rbp),%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  add    $0x1,%eax
  lea    0x0(,%rax,8),%edx
  mov    -0x28(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x18(%rbp),%eax
  and    $0xff00ff,%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  shl    $0x8,%eax
  and    $0xff00ff00,%eax
  or     %eax,%edx
  mov    -0x30(%rbp),%ecx
  mov    -0x2c(%rbp),%eax
  add    %ecx,%eax
  lea    0x0(,%rax,8),%ecx
  mov    -0x28(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x10(%rbp),%rax
  add    %rcx,%rax
  mov    %edx,(%rax)
  mov    -0x18(%rbp),%eax
  shr    $0x8,%eax
  and    $0xff00ff,%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  and    $0xff00ff00,%eax
  or     %eax,%edx
  mov    -0x30(%rbp),%ecx
  mov    -0x2c(%rbp),%eax
  add    %ecx,%eax
  add    $0x1,%eax
  lea    0x0(,%rax,8),%ecx
  mov    -0x28(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x10(%rbp),%rax
  add    %rcx,%rax
  mov    %edx,(%rax)
  addl   $0x1,-0x28(%rbp)
L19:
  cmpl   $0x7,-0x28(%rbp)
  jle    L11
  addl   $0x1,-0x2c(%rbp)
L25:
  cmpl   $0x0,-0x2c(%rbp)
  jle    L45
  addl   $0x2,-0x30(%rbp)
L85:
  cmpl   $0x7,-0x30(%rbp)
  jle    L104
  movl   $0x0,-0x30(%rbp)
  jmp    L69
L133:
  movl   $0x0,-0x2c(%rbp)
  jmp    L62
L139:
  movl   $0x0,-0x28(%rbp)
  jmp    L115
L107:
  mov    -0x30(%rbp),%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,8),%edx
  mov    -0x28(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x30(%rbp),%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  add    $0x2,%eax
  lea    0x0(,%rax,8),%edx
  mov    -0x28(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x20(%rbp),%eax
  movzwl %ax,%edx
  mov    -0x1c(%rbp),%eax
  shl    $0x10,%eax
  or     %eax,%edx
  mov    -0x30(%rbp),%ecx
  mov    -0x2c(%rbp),%eax
  add    %ecx,%eax
  lea    0x0(,%rax,8),%ecx
  mov    -0x28(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x10(%rbp),%rax
  add    %rcx,%rax
  mov    %edx,(%rax)
  mov    -0x20(%rbp),%eax
  shr    $0x10,%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  mov    $0x0,%ax
  or     %eax,%edx
  mov    -0x30(%rbp),%ecx
  mov    -0x2c(%rbp),%eax
  add    %ecx,%eax
  add    $0x2,%eax
  lea    0x0(,%rax,8),%ecx
  mov    -0x28(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x10(%rbp),%rax
  add    %rcx,%rax
  mov    %edx,(%rax)
  addl   $0x1,-0x28(%rbp)
L115:
  cmpl   $0x7,-0x28(%rbp)
  jle    L107
  addl   $0x1,-0x2c(%rbp)
L62:
  cmpl   $0x1,-0x2c(%rbp)
  jle    L139
  addl   $0x4,-0x30(%rbp)
L69:
  cmpl   $0x7,-0x30(%rbp)
  jle    L133
  movl   $0x0,-0x24(%rbp)
  jmp    L108
L92:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    -0x24(%rbp),%edx
  add    %edx,%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x24(%rbp),%eax
  add    $0x20,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    -0x24(%rbp),%edx
  add    %edx,%edx
  movslq %edx,%rdx
  add    $0x1,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x24(%rbp)
L108:
  mov    -0x24(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L92
  nop
  nop
  pop    %rbp
  ret
```

assistant: ```c
__attribute__((always_)) void trasp_8_N(unsigned char *in, unsigned char *out, int count) {
  int *ri = (int *)in;
  int *bdi = (int *)out;
  int j, i, k, g;
  for (j = 0; j < 8; j += 2) {
    for (i = 0; i < 1; i++) {
      for (k = 0; k < (32 / 8 * 2); k++) {
        unsigned int t, b;
        t = ri[(32 / 8 * 2) * (j + i) + k];
        b = ri[(32 / 8 * 2) * (j + i + 1) + k];
        ri[(32 / 8 * 2) * (j + i) + k] = (t & 0x00ff00ff) | ((b & 0x00ff00ff) << 8);
        ri[(32 / 8 * 2) * (j + i + 1) + k] = ((t & 0xff00ff00) >> 8) | (b & 0xff00ff00);
      }
    }
  }
  for (j = 0; j < 8; j += 4) {
    for (i = 0; i < 2; i++) {
      for (k = 0; k < (32 / 8 * 2); k++) {
        unsigned int t, b;
        t = ri[(32 / 8 * 2) * (j + i) + k];
        b = ri[(32 / 8 * 2) * (j + i + 2) + k];
        ri[(32 / 8 * 2) * (j + i) + k] = (t & 0x0000ffff) | ((b) << 16);
        ri[(32 / 8 * 2) * (j + i + 2) + k] = ((t) >> 16) | (b & 0xffff0000);
      }
    }
  }
  for (g = 0; g < count; g++) {
    bdi[2 * g] = ri[g];
    bdi[2 * g + 1] = ri[32 + g];
  }
}
```