user: Translate the below assembly code into C programming language:

```asm
<neoscrypt_blkmix>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %edx,-0x24(%rbp)
  mov    %ecx,-0x28(%rbp)
  mov    -0x28(%rbp),%eax
  shr    $0x8,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x28(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,-0x4(%rbp)
  cmpl   $0x1,-0x24(%rbp)
  jne    L155
  cmpl   $0x0,-0x8(%rbp)
  je     L130
  mov    -0x18(%rbp),%rax
  lea    0x40(%rax),%rcx
  mov    -0x18(%rbp),%rax
  mov    $0x40,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <neoscrypt_blkxor@plt>
  mov    -0x4(%rbp),%edx
  mov    -0x18(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <neoscrypt_chacha@plt>
  mov    -0x18(%rbp),%rax
  lea    0x40(%rax),%rcx
  mov    -0x18(%rbp),%rax
  mov    $0x40,%edx
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <neoscrypt_blkxor@plt>
  mov    -0x18(%rbp),%rax
  lea    0x40(%rax),%rdx
  mov    -0x4(%rbp),%eax
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <neoscrypt_chacha@plt>
  jmp    L70
L130:
  mov    -0x18(%rbp),%rax
  lea    0x40(%rax),%rcx
  mov    -0x18(%rbp),%rax
  mov    $0x40,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <neoscrypt_blkxor@plt>
  mov    -0x4(%rbp),%edx
  mov    -0x18(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <neoscrypt_salsa@plt>
  mov    -0x18(%rbp),%rax
  lea    0x40(%rax),%rcx
  mov    -0x18(%rbp),%rax
  mov    $0x40,%edx
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <neoscrypt_blkxor@plt>
  mov    -0x18(%rbp),%rax
  lea    0x40(%rax),%rdx
  mov    -0x4(%rbp),%eax
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <neoscrypt_salsa@plt>
  jmp    L70
L155:
  cmpl   $0x2,-0x24(%rbp)
  jne    L137
  cmpl   $0x0,-0x8(%rbp)
  je     L113
  mov    -0x18(%rbp),%rax
  lea    0xc0(%rax),%rcx
  mov    -0x18(%rbp),%rax
  mov    $0x40,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <neoscrypt_blkxor@plt>
  mov    -0x4(%rbp),%edx
  mov    -0x18(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <neoscrypt_chacha@plt>
  mov    -0x18(%rbp),%rax
  lea    0x40(%rax),%rcx
  mov    -0x18(%rbp),%rax
  mov    $0x40,%edx
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <neoscrypt_blkxor@plt>
  mov    -0x18(%rbp),%rax
  lea    0x40(%rax),%rdx
  mov    -0x4(%rbp),%eax
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <neoscrypt_chacha@plt>
  mov    -0x18(%rbp),%rax
  lea    0x40(%rax),%rcx
  mov    -0x18(%rbp),%rax
  sub    $0xffffffffffffff80,%rax
  mov    $0x40,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <neoscrypt_blkxor@plt>
  mov    -0x18(%rbp),%rax
  lea    0x80(%rax),%rdx
  mov    -0x4(%rbp),%eax
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <neoscrypt_chacha@plt>
  mov    -0x18(%rbp),%rax
  lea    0x80(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    $0xc0,%rax
  mov    $0x40,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <neoscrypt_blkxor@plt>
  mov    -0x18(%rbp),%rax
  lea    0xc0(%rax),%rdx
  mov    -0x4(%rbp),%eax
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <neoscrypt_chacha@plt>
  mov    -0x18(%rbp),%rax
  lea    0x80(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    $0x40,%rax
  mov    $0x40,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <neoscrypt_blkswp@plt>
  jmp    L70
L113:
  mov    -0x18(%rbp),%rax
  lea    0xc0(%rax),%rcx
  mov    -0x18(%rbp),%rax
  mov    $0x40,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <neoscrypt_blkxor@plt>
  mov    -0x4(%rbp),%edx
  mov    -0x18(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <neoscrypt_salsa@plt>
  mov    -0x18(%rbp),%rax
  lea    0x40(%rax),%rcx
  mov    -0x18(%rbp),%rax
  mov    $0x40,%edx
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <neoscrypt_blkxor@plt>
  mov    -0x18(%rbp),%rax
  lea    0x40(%rax),%rdx
  mov    -0x4(%rbp),%eax
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <neoscrypt_salsa@plt>
  mov    -0x18(%rbp),%rax
  lea    0x40(%rax),%rcx
  mov    -0x18(%rbp),%rax
  sub    $0xffffffffffffff80,%rax
  mov    $0x40,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <neoscrypt_blkxor@plt>
  mov    -0x18(%rbp),%rax
  lea    0x80(%rax),%rdx
  mov    -0x4(%rbp),%eax
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <neoscrypt_salsa@plt>
  mov    -0x18(%rbp),%rax
  lea    0x80(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    $0xc0,%rax
  mov    $0x40,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <neoscrypt_blkxor@plt>
  mov    -0x18(%rbp),%rax
  lea    0xc0(%rax),%rdx
  mov    -0x4(%rbp),%eax
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <neoscrypt_salsa@plt>
  mov    -0x18(%rbp),%rax
  lea    0x80(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    $0x40,%rax
  mov    $0x40,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <neoscrypt_blkswp@plt>
  jmp    L70
L137:
  movl   $0x0,-0xc(%rbp)
  jmp    L99
L110:
  cmpl   $0x0,-0xc(%rbp)
  je     L15
  mov    -0xc(%rbp),%eax
  sub    $0x1,%eax
  shl    $0x4,%eax
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0xc(%rbp),%eax
  shl    $0x4,%eax
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    $0x40,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <neoscrypt_blkxor@plt>
  jmp    L67
L15:
  mov    -0x24(%rbp),%eax
  shl    $0x5,%eax
  sub    $0x10,%eax
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x18(%rbp),%rax
  mov    $0x40,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <neoscrypt_blkxor@plt>
L67:
  cmpl   $0x0,-0x8(%rbp)
  je     L30
  mov    -0xc(%rbp),%eax
  shl    $0x4,%eax
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4(%rbp),%eax
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <neoscrypt_chacha@plt>
  jmp    L14
L30:
  mov    -0xc(%rbp),%eax
  shl    $0x4,%eax
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4(%rbp),%eax
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <neoscrypt_salsa@plt>
L14:
  mov    -0xc(%rbp),%eax
  shl    $0x4,%eax
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0xc(%rbp),%eax
  shl    $0x4,%eax
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    $0x40,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <neoscrypt_blkcpy@plt>
  addl   $0x1,-0xc(%rbp)
L99:
  mov    -0x24(%rbp),%eax
  add    %eax,%eax
  cmp    %eax,-0xc(%rbp)
  jb     L110
  movl   $0x0,-0xc(%rbp)
  jmp    L143
L127:
  mov    -0xc(%rbp),%eax
  shl    $0x5,%eax
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0xc(%rbp),%eax
  shl    $0x4,%eax
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    $0x40,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <neoscrypt_blkcpy@plt>
  addl   $0x1,-0xc(%rbp)
L143:
  mov    -0xc(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jb     L127
  movl   $0x0,-0xc(%rbp)
  jmp    L71
L20:
  mov    -0xc(%rbp),%eax
  shl    $0x5,%eax
  add    $0x10,%eax
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0xc(%rbp),%edx
  mov    -0x24(%rbp),%eax
  add    %edx,%eax
  shl    $0x4,%eax
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    $0x40,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <neoscrypt_blkcpy@plt>
  addl   $0x1,-0xc(%rbp)
L71:
  mov    -0xc(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jb     L20
L70:
  leave
  ret
```

assistant: ```c
void neoscrypt_blkmix(unsigned int *X, unsigned int *Y, unsigned int r, unsigned int mixmode) {
  unsigned int i, mixer, rounds;
  mixer = mixmode >> 8;
  rounds = mixmode & 0xFF;
  if (r == 1) {
    if (mixer) {
      neoscrypt_blkxor(&X[0], &X[16], 64);
      neoscrypt_chacha(&X[0], rounds);
      neoscrypt_blkxor(&X[16], &X[0], 64);
      neoscrypt_chacha(&X[16], rounds);
    } else {
      neoscrypt_blkxor(&X[0], &X[16], 64);
      neoscrypt_salsa(&X[0], rounds);
      neoscrypt_blkxor(&X[16], &X[0], 64);
      neoscrypt_salsa(&X[16], rounds);
    }
    return;
  }
  if (r == 2) {
    if (mixer) {
      neoscrypt_blkxor(&X[0], &X[48], 64);
      neoscrypt_chacha(&X[0], rounds);
      neoscrypt_blkxor(&X[16], &X[0], 64);
      neoscrypt_chacha(&X[16], rounds);
      neoscrypt_blkxor(&X[32], &X[16], 64);
      neoscrypt_chacha(&X[32], rounds);
      neoscrypt_blkxor(&X[48], &X[32], 64);
      neoscrypt_chacha(&X[48], rounds);
      neoscrypt_blkswp(&X[16], &X[32], 64);
    } else {
      neoscrypt_blkxor(&X[0], &X[48], 64);
      neoscrypt_salsa(&X[0], rounds);
      neoscrypt_blkxor(&X[16], &X[0], 64);
      neoscrypt_salsa(&X[16], rounds);
      neoscrypt_blkxor(&X[32], &X[16], 64);
      neoscrypt_salsa(&X[32], rounds);
      neoscrypt_blkxor(&X[48], &X[32], 64);
      neoscrypt_salsa(&X[48], rounds);
      neoscrypt_blkswp(&X[16], &X[32], 64);
    }
    return;
  }
  for (i = 0; i < 2 * r; i++) {
    if (i)
      neoscrypt_blkxor(&X[16 * i], &X[16 * (i - 1)], 64);
    else
      neoscrypt_blkxor(&X[0], &X[16 * (2 * r - 1)], 64);
    if (mixer)
      neoscrypt_chacha(&X[16 * i], rounds);
    else
      neoscrypt_salsa(&X[16 * i], rounds);
    neoscrypt_blkcpy(&Y[16 * i], &X[16 * i], 64);
  }
  for (i = 0; i < r; i++)
    neoscrypt_blkcpy(&X[16 * i], &Y[16 * 2 * i], 64);
  for (i = 0; i < r; i++)
    neoscrypt_blkcpy(&X[16 * (i + r)], &Y[16 * (2 * i + 1)], 64);
}
```