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

```asm
<crypto_scrypt_smix_sse2>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %edx,-0x54(%rbp)
  mov    %rcx,-0x60(%rbp)
  mov    %r8,-0x68(%rbp)
  mov    -0x68(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x50(%rbp),%rax
  shl    $0x7,%rax
  mov    %rax,%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x50(%rbp),%rax
  shl    $0x8,%rax
  mov    %rax,%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  movq   $0x0,-0x38(%rbp)
  jmp    L62
L70:
  movl   $0x0,-0x40(%rbp)
  jmp    L93
L107:
  mov    -0x38(%rbp),%rax
  shl    $0x4,%rax
  mov    %rax,%rcx
  mov    -0x40(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  cltd
  shr    $0x1c,%edx
  add    %edx,%eax
  and    $0xf,%eax
  sub    %edx,%eax
  cltq
  add    %rcx,%rax
  shl    $0x4,%rax
  mov    %rax,%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    -0x38(%rbp),%rdx
  mov    %rdx,%rcx
  shl    $0x4,%rcx
  mov    -0x40(%rbp),%edx
  movslq %edx,%rdx
  add    %rcx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x18(%rbp),%rdx
  lea    (%rcx,%rdx,1),%rbx
  mov    %rax,%rdi
  call   <le32dec@plt>
  mov    %eax,(%rbx)
  addl   $0x1,-0x40(%rbp)
L93:
  cmpl   $0xf,-0x40(%rbp)
  jle    L107
  addq   $0x1,-0x38(%rbp)
L62:
  mov    -0x50(%rbp),%rax
  add    %rax,%rax
  cmp    %rax,-0x38(%rbp)
  jb     L70
  movl   $0x0,-0x40(%rbp)
  jmp    L115
L28:
  mov    -0x50(%rbp),%rax
  shl    $0x7,%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%eax
  shl    $0x7,%eax
  cltq
  imul   -0x50(%rbp),%rax
  mov    %rax,%rcx
  mov    -0x60(%rbp),%rax
  add    %rax,%rcx
  mov    -0x30(%rbp),%rax
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <sse2_blkcpy@plt>
  mov    -0x50(%rbp),%rcx
  mov    -0x20(%rbp),%rdx
  mov    -0x28(%rbp),%rsi
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <sse2_blockmix_salsa8@plt>
  mov    -0x50(%rbp),%rax
  shl    $0x7,%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%eax
  add    $0x1,%eax
  shl    $0x7,%eax
  cltq
  imul   -0x50(%rbp),%rax
  mov    %rax,%rcx
  mov    -0x60(%rbp),%rax
  add    %rax,%rcx
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <sse2_blkcpy@plt>
  mov    -0x50(%rbp),%rcx
  mov    -0x20(%rbp),%rdx
  mov    -0x30(%rbp),%rsi
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <sse2_blockmix_salsa8@plt>
  addl   $0x2,-0x40(%rbp)
L115:
  mov    -0x40(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jl     L28
  movl   $0x0,-0x40(%rbp)
  jmp    L80
L77:
  mov    -0x50(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <sse2_integerify@plt>
  mov    %eax,%edx
  mov    -0x54(%rbp),%eax
  sub    $0x1,%eax
  and    %edx,%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0x50(%rbp),%rax
  shl    $0x7,%eax
  mov    %eax,%edx
  mov    -0x3c(%rbp),%eax
  shl    $0x7,%eax
  cltq
  imul   -0x50(%rbp),%rax
  mov    %rax,%rcx
  mov    -0x60(%rbp),%rax
  add    %rax,%rcx
  mov    -0x30(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sse2_blkxor@plt>
  mov    -0x50(%rbp),%rcx
  mov    -0x20(%rbp),%rdx
  mov    -0x28(%rbp),%rsi
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <sse2_blockmix_salsa8@plt>
  mov    -0x50(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <sse2_integerify@plt>
  mov    %eax,%edx
  mov    -0x54(%rbp),%eax
  sub    $0x1,%eax
  and    %edx,%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0x50(%rbp),%rax
  shl    $0x7,%eax
  mov    %eax,%edx
  mov    -0x3c(%rbp),%eax
  shl    $0x7,%eax
  cltq
  imul   -0x50(%rbp),%rax
  mov    %rax,%rcx
  mov    -0x60(%rbp),%rax
  add    %rax,%rcx
  mov    -0x28(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sse2_blkxor@plt>
  mov    -0x50(%rbp),%rcx
  mov    -0x20(%rbp),%rdx
  mov    -0x30(%rbp),%rsi
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <sse2_blockmix_salsa8@plt>
  addl   $0x2,-0x40(%rbp)
L80:
  mov    -0x40(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jl     L77
  movq   $0x0,-0x38(%rbp)
  jmp    L112
L76:
  movl   $0x0,-0x40(%rbp)
  jmp    L91
L65:
  mov    -0x38(%rbp),%rax
  shl    $0x4,%rax
  mov    %rax,%rdx
  mov    -0x40(%rbp),%eax
  cltq
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x38(%rbp),%rax
  shl    $0x4,%rax
  mov    %rax,%rsi
  mov    -0x40(%rbp),%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  shr    $0x1c,%ecx
  add    %ecx,%eax
  and    $0xf,%eax
  sub    %ecx,%eax
  cltq
  add    %rsi,%rax
  shl    $0x4,%rax
  mov    %rax,%rcx
  mov    -0x48(%rbp),%rax
  add    %rcx,%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <le32enc@plt>
  addl   $0x1,-0x40(%rbp)
L91:
  cmpl   $0xf,-0x40(%rbp)
  jle    L65
  addq   $0x1,-0x38(%rbp)
L112:
  mov    -0x50(%rbp),%rax
  add    %rax,%rax
  cmp    %rax,-0x38(%rbp)
  jb     L76
  nop
  nop
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void crypto_scrypt_smix_sse2(uint8_t *B, size_t r, uint64_t N, void *V, void *XY) {
  __m128i *X = XY;
  __m128i *Y = (void *)((uintptr_t)(XY) + 128 * r);
  __m128i *Z = (void *)((uintptr_t)(XY) + 256 * r);
  uint32_t *X32 = (void *)X;
  uint64_t i, j;
  size_t k;
  for (k = 0; k < 2 * r; k++) {
    for (i = 0; i < 16; i++) {
      X32[k * 16 + i] = le32dec(&B[(k * 16 + (i * 5 % 16)) * 4]);
    }
  }
  for (i = 0; i < N; i += 2) {
    sse2_blkcpy(((unsigned char *)V) + i * 128 * r, X, 128 * r);
    sse2_blockmix_salsa8(X, Y, Z, r);
    sse2_blkcpy(((unsigned char *)V) + (i + 1) * 128 * r, Y, 128 * r);
    sse2_blockmix_salsa8(Y, X, Z, r);
  }
  for (i = 0; i < N; i += 2) {
    j = sse2_integerify(X, r) & (N - 1);
    sse2_blkxor(X, ((unsigned char *)V) + j * 128 * r, 128 * r);
    sse2_blockmix_salsa8(X, Y, Z, r);
    j = sse2_integerify(Y, r) & (N - 1);
    sse2_blkxor(Y, ((unsigned char *)V) + j * 128 * r, 128 * r);
    sse2_blockmix_salsa8(Y, X, Z, r);
  }
  for (k = 0; k < 2 * r; k++) {
    for (i = 0; i < 16; i++) {
      le32enc(&B[(k * 16 + (i * 5 % 16)) * 4], X32[k * 16 + i]);
    }
  }
}
```