user: Converte this assembly snippet into its equivalent C code:

```asm
<MD4_Final>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  mov    0x30(%rax),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x80,(%rax)
  addq   $0x1,-0x18(%rbp)
  mov    D40(%rip),%rax
  mov    (%rax),%eax
  sub    $0x8,%eax
  cltq
  cmp    %rax,-0x18(%rbp)
  jbe    L8
  mov    D40(%rip),%rax
  mov    (%rax),%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  movq   $0x0,-0x18(%rbp)
  mov    -0x10(%rbp),%rcx
  mov    -0x30(%rbp),%rax
  mov    $0x1,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <md4_block_data_order@plt>
L8:
  mov    D40(%rip),%rax
  mov    (%rax),%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  sub    $0x8,%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    D40(%rip),%rax
  mov    (%rax),%eax
  cltq
  sub    $0x8,%rax
  add    %rax,-0x10(%rbp)
  mov    -0x30(%rbp),%rax
  mov    0x8(%rax),%ecx
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x30(%rbp),%rax
  mov    0x8(%rax),%eax
  sar    $0x8,%eax
  mov    %eax,%ecx
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x30(%rbp),%rax
  mov    0x8(%rax),%eax
  sar    $0x10,%eax
  mov    %eax,%ecx
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x30(%rbp),%rax
  mov    0x8(%rax),%eax
  sar    $0x18,%eax
  mov    %eax,%ecx
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x30(%rbp),%rax
  mov    0xc(%rax),%ecx
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x30(%rbp),%rax
  mov    0xc(%rax),%eax
  sar    $0x8,%eax
  mov    %eax,%ecx
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x30(%rbp),%rax
  mov    0xc(%rax),%eax
  sar    $0x10,%eax
  mov    %eax,%ecx
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x30(%rbp),%rax
  mov    0xc(%rax),%eax
  sar    $0x18,%eax
  mov    %eax,%ecx
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    D40(%rip),%rax
  mov    (%rax),%eax
  cltq
  neg    %rax
  add    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rcx
  mov    -0x30(%rbp),%rax
  mov    $0x1,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <md4_block_data_order@plt>
  mov    -0x30(%rbp),%rax
  movq   $0x0,(%rax)
  mov    D40(%rip),%rax
  mov    (%rax),%edx
  mov    -0x10(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <OPENSSL_cleanse@plt>
  mov    -0x30(%rbp),%rax
  mov    0x10(%rax),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  mov    -0x8(%rbp),%rdx
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  shr    $0x8,%rax
  mov    %rax,%rcx
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  shr    $0x10,%rax
  mov    %rax,%rcx
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  shr    $0x18,%rax
  mov    %rax,%rcx
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x30(%rbp),%rax
  mov    0x18(%rax),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  mov    -0x8(%rbp),%rdx
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  shr    $0x8,%rax
  mov    %rax,%rcx
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  shr    $0x10,%rax
  mov    %rax,%rcx
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  shr    $0x18,%rax
  mov    %rax,%rcx
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x30(%rbp),%rax
  mov    0x20(%rax),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  mov    -0x8(%rbp),%rdx
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  shr    $0x8,%rax
  mov    %rax,%rcx
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  shr    $0x10,%rax
  mov    %rax,%rcx
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  shr    $0x18,%rax
  mov    %rax,%rcx
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x30(%rbp),%rax
  mov    0x28(%rax),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  mov    -0x8(%rbp),%rdx
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  shr    $0x8,%rax
  mov    %rax,%rcx
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  shr    $0x10,%rax
  mov    %rax,%rcx
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  shr    $0x18,%rax
  mov    %rax,%rcx
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    $0x1,%eax
  leave
  ret
```

assistant: ```c
int MD4_Final(unsigned char *md, MD4_CTX *c) {
  unsigned char *p = (unsigned char *)c->data;
  size_t n = c->num;
  p[n] = 0x80;
  n++;
  if (n > (MD4_CBLOCK - 8)) {
    memset(p + n, 0, MD4_CBLOCK - n);
    n = 0;
    md4_block_data_order(c, p, 1);
  }
  memset(p + n, 0, MD4_CBLOCK - 8 - n);
  p += MD4_CBLOCK - 8;
  (void)(*((p)++) = (unsigned char)(((c->Nl)) & 0xff), *((p)++) = (unsigned char)(((c->Nl) >> 8) & 0xff), *((p)++) = (unsigned char)(((c->Nl) >> 16) & 0xff), *((p)++) = (unsigned char)(((c->Nl) >> 24) & 0xff), c->Nl);
  (void)(*((p)++) = (unsigned char)(((c->Nh)) & 0xff), *((p)++) = (unsigned char)(((c->Nh) >> 8) & 0xff), *((p)++) = (unsigned char)(((c->Nh) >> 16) & 0xff), *((p)++) = (unsigned char)(((c->Nh) >> 24) & 0xff), c->Nh);
  p -= MD4_CBLOCK;
  md4_block_data_order(c, p, 1);
  c->num = 0;
  OPENSSL_cleanse(p, MD4_CBLOCK);
  do {
    unsigned long ll;
    ll = (c)->A;
    (void)(*(((md))++) = (unsigned char)(((ll)) & 0xff), *(((md))++) = (unsigned char)(((ll) >> 8) & 0xff), *(((md))++) = (unsigned char)(((ll) >> 16) & 0xff), *(((md))++) = (unsigned char)(((ll) >> 24) & 0xff), ll);
    ll = (c)->B;
    (void)(*(((md))++) = (unsigned char)(((ll)) & 0xff), *(((md))++) = (unsigned char)(((ll) >> 8) & 0xff), *(((md))++) = (unsigned char)(((ll) >> 16) & 0xff), *(((md))++) = (unsigned char)(((ll) >> 24) & 0xff), ll);
    ll = (c)->C;
    (void)(*(((md))++) = (unsigned char)(((ll)) & 0xff), *(((md))++) = (unsigned char)(((ll) >> 8) & 0xff), *(((md))++) = (unsigned char)(((ll) >> 16) & 0xff), *(((md))++) = (unsigned char)(((ll) >> 24) & 0xff), ll);
    ll = (c)->D;
    (void)(*(((md))++) = (unsigned char)(((ll)) & 0xff), *(((md))++) = (unsigned char)(((ll) >> 8) & 0xff), *(((md))++) = (unsigned char)(((ll) >> 16) & 0xff), *(((md))++) = (unsigned char)(((ll) >> 24) & 0xff), ll);
  } while (0);
  return 1;
}
```