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

```asm
<lm_deshash>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x20,%rsp
  mov    %rdi,%rbp
  mov    %rsi,%rbx
  mov    %rdx,%r14
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  mov    %rdx,%rdi
  call   <strlen@plt>
  mov    %rax,%r12
  mov    $0x8,%eax
  cmp    %rax,%r12
  cmovbe %r12,%rax
  mov    %rax,%r13
  lea    0x10(%rsp),%rdi
  mov    %rax,%rdx
  mov    %r14,%rsi
  call   <memcpy@plt>
  cmp    $0x7,%r12
  jbe    L5
L12:
  movzbl 0x10(%rsp),%eax
  mov    0x8(%rsp),%rdx
  mov    %al,(%rdx)
  movzbl 0x11(%rsp),%edx
  shr    %dl
  shl    $0x7,%eax
  or     %edx,%eax
  mov    0x8(%rsp),%rdx
  mov    %al,0x1(%rdx)
  movzbl 0x12(%rsp),%eax
  shr    $0x2,%al
  movzbl 0x11(%rsp),%edx
  shl    $0x6,%edx
  or     %edx,%eax
  mov    0x8(%rsp),%rdx
  mov    %al,0x2(%rdx)
  movzbl 0x13(%rsp),%eax
  shr    $0x3,%al
  movzbl 0x12(%rsp),%edx
  shl    $0x5,%edx
  or     %edx,%eax
  mov    0x8(%rsp),%rdx
  mov    %al,0x3(%rdx)
  movzbl 0x14(%rsp),%eax
  shr    $0x4,%al
  movzbl 0x13(%rsp),%edx
  shl    $0x4,%edx
  or     %edx,%eax
  mov    0x8(%rsp),%rdx
  mov    %al,0x4(%rdx)
  movzbl 0x15(%rsp),%eax
  shr    $0x5,%al
  movzbl 0x14(%rsp),%edx
  shl    $0x3,%edx
  or     %edx,%eax
  mov    0x8(%rsp),%rdx
  mov    %al,0x5(%rdx)
  movzbl 0x16(%rsp),%eax
  shr    $0x6,%al
  movzbl 0x15(%rsp),%edx
  shl    $0x2,%edx
  or     %edx,%eax
  mov    0x8(%rsp),%rdx
  mov    %al,0x6(%rdx)
  movzbl 0x16(%rsp),%eax
  add    %eax,%eax
  mov    0x8(%rsp),%rdx
  mov    %al,0x7(%rdx)
  lea    0x8(%rsp),%r13
  mov    %r13,%rdi
  call   <DES_set_odd_parity@plt>
  lea    0x7(%rsp),%r12
  mov    %r12,%rsi
  mov    %r13,%rdi
  call   <DES_set_key@plt>
  mov    D2(%rip),%rax
  mov    (%rax),%ecx
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <DES_ecb_encrypt@plt>
  mov    $0x8,%edx
  mov    $0x0,%esi
  mov    0x8(%rsp),%rdi
  call   <memset@plt>
  mov    $0x1,%edx
  mov    $0x0,%esi
  mov    %r12,%rdi
  call   <memset@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L11
  add    $0x20,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L5:
  mov    $0x8,%edx
  sub    %r13d,%edx
  lea    0x10(%rsp,%r13,1),%rdi
  mov    $0x0,%esi
  call   <memset@plt>
  jmp    L12
L11:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void lm_deshash(void *result, const_DES_cblock *iv, const void *secret) {
  DES_cblock key;
  DES_key_schedule ks;
  unsigned char key_56[8];
  size_t len;
  len = strlen(secret);
  if (len > sizeof key_56)
    len = sizeof key_56;
  memcpy(key_56, secret, len);
  if (sizeof key_56 - len > 0)
    memset(key_56 + len, 0, sizeof key_56 - len);
  key[0] = key_56[0];
  key[1] = (key_56[0] << 7) | (key_56[1] >> 1);
  key[2] = (key_56[1] << 6) | (key_56[2] >> 2);
  key[3] = (key_56[2] << 5) | (key_56[3] >> 3);
  key[4] = (key_56[3] << 4) | (key_56[4] >> 4);
  key[5] = (key_56[4] << 3) | (key_56[5] >> 5);
  key[6] = (key_56[5] << 2) | (key_56[6] >> 6);
  key[7] = (key_56[6] << 1);
  DES_set_odd_parity(&key);
  DES_set_key(&key, &ks);
  DES_ecb_encrypt(iv, result, &ks, DES_ENCRYPT);
  memset(key, 0, sizeof key);
  memset(&ks, 0, sizeof ks);
}
```