user: What is the c source code of the assembly code below?

```asm
<morus_tag_generation>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %rdx,-0x48(%rbp)
  mov    %rcx,-0x50(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x50(%rbp),%rax
  lea    0x30(%rax),%rcx
  lea    -0x20(%rbp),%rax
  mov    $0x10,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  lea    -0x20(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x40(%rbp),%rax
  lea    0x0(,%rax,8),%rcx
  lea    -0x20(%rbp),%rax
  xor    %rcx,%rdx
  mov    %rdx,(%rax)
  lea    -0x20(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rdx
  mov    -0x38(%rbp),%rax
  lea    0x0(,%rax,8),%rcx
  lea    -0x20(%rbp),%rax
  add    $0x8,%rax
  xor    %rcx,%rdx
  mov    %rdx,(%rax)
  mov    -0x50(%rbp),%rax
  add    $0x40,%rax
  mov    (%rax),%ecx
  mov    -0x50(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x50(%rbp),%rax
  add    $0x40,%rax
  xor    %ecx,%edx
  mov    %edx,(%rax)
  mov    -0x50(%rbp),%rax
  add    $0x40,%rax
  mov    0x4(%rax),%ecx
  mov    -0x50(%rbp),%rax
  mov    0x4(%rax),%edx
  mov    -0x50(%rbp),%rax
  add    $0x40,%rax
  xor    %ecx,%edx
  mov    %edx,0x4(%rax)
  mov    -0x50(%rbp),%rax
  add    $0x40,%rax
  mov    0x8(%rax),%ecx
  mov    -0x50(%rbp),%rax
  mov    0x8(%rax),%edx
  mov    -0x50(%rbp),%rax
  add    $0x40,%rax
  xor    %ecx,%edx
  mov    %edx,0x8(%rax)
  mov    -0x50(%rbp),%rax
  add    $0x40,%rax
  mov    0xc(%rax),%ecx
  mov    -0x50(%rbp),%rax
  mov    0xc(%rax),%edx
  mov    -0x50(%rbp),%rax
  add    $0x40,%rax
  xor    %ecx,%edx
  mov    %edx,0xc(%rax)
  movl   $0x0,-0x28(%rbp)
  jmp    L59
L56:
  mov    -0x50(%rbp),%rdx
  lea    -0x20(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <morus_stateupdate@plt>
  addl   $0x1,-0x28(%rbp)
L59:
  cmpl   $0x7,-0x28(%rbp)
  jle    L56
  movl   $0x2,-0x28(%rbp)
  jmp    L2
L18:
  movl   $0x0,-0x24(%rbp)
  jmp    L39
L69:
  mov    -0x50(%rbp),%rax
  lea    0x10(%rax),%rdx
  mov    -0x24(%rbp),%eax
  cltq
  mov    (%rdx,%rax,4),%esi
  mov    -0x28(%rbp),%eax
  cltq
  shl    $0x4,%rax
  mov    %rax,%rdx
  mov    -0x50(%rbp),%rax
  add    %rax,%rdx
  mov    -0x24(%rbp),%eax
  cltq
  mov    (%rdx,%rax,4),%ecx
  mov    -0x50(%rbp),%rax
  lea    0x10(%rax),%rdx
  xor    %esi,%ecx
  mov    -0x24(%rbp),%eax
  cltq
  mov    %ecx,(%rdx,%rax,4)
  addl   $0x1,-0x24(%rbp)
L39:
  cmpl   $0x3,-0x24(%rbp)
  jle    L69
  addl   $0x1,-0x28(%rbp)
L2:
  cmpl   $0x4,-0x28(%rbp)
  jle    L18
  mov    -0x50(%rbp),%rax
  lea    0x10(%rax),%rcx
  mov    -0x48(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    $0x10,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L31
  call   <__stack_chk_fail@plt>
L31:
  leave
  ret
```

assistant: ```c
void morus_tag_generation(unsigned long long msglen, unsigned long long adlen, unsigned char *c, unsigned int state[][4]) {
  int i, j;
  unsigned char t[16];
  memcpy(t, state[3], 16);
  ((unsigned long long *)t)[0] ^= (adlen << 3);
  ((unsigned long long *)t)[1] ^= (msglen << 3);
  state[4][0] ^= state[0][0];
  state[4][1] ^= state[0][1];
  state[4][2] ^= state[0][2];
  state[4][3] ^= state[0][3];
  for (i = 0; i < 8; i++)
    morus_stateupdate((unsigned int *)t, state);
  for (i = 2; i < 5; i++) {
    for (j = 0; j < 4; j++) {
      state[1][j] ^= state[i][j];
    }
  }
  memcpy(c + msglen, state[1], 16);
}
```