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

```asm
<pbkdf2_sha1>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdx,%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %rcx,0x8(%rsp)
  mov    %r9,0x28(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  mov    0xc0(%rsp),%rax
  lea    -0x1(%rax),%rdx
  mov    $0xfffffffe,%eax
  cmp    %rax,%rdx
  ja     L68
  mov    %r8d,%ebx
  test   %r8d,%r8d
  jne    L15
L68:
  xor    %eax,%eax
L16:
  mov    0x78(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L25
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L15:
  lea    0x4(%rcx),%r13
  mov    %rdi,%rbp
  mov    %rsi,%r12
  mov    %r13,%rdi
  call   <malloc@plt>
  mov    %rax,%r15
  test   %rax,%rax
  je     L68
  mov    0xc0(%rsp),%rsi
  mov    $0xcccccccd,%edx
  mov    %r15,%rdi
  lea    -0x1(%rsi),%eax
  imul   %rdx,%rax
  mov    0x8(%rsp),%edx
  shr    $0x24,%rax
  lea    0x1(%rax),%esi
  mov    %eax,0x3c(%rsp)
  mov    %esi,0x38(%rsp)
  mov    %r14,%rsi
  lea    0x40(%rsp),%r14
  call   <memcpy@plt>
  mov    0x3c(%rsp),%eax
  mov    %r13d,0x30(%rsp)
  movl   $0x1,0x10(%rsp)
  add    $0x2,%eax
  mov    %eax,0x34(%rsp)
  lea    0x60(%rsp),%rax
  mov    %rax,0x20(%rsp)
L7:
  mov    0x20(%rsp),%rdi
  xor    %esi,%esi
  mov    $0x14,%edx
  mov    $0x1,%r13d
  call   <memset@plt>
  mov    0x10(%rsp),%esi
  mov    %esi,%eax
  shr    $0x18,%eax
  mov    %eax,0x14(%rsp)
  mov    %esi,%eax
  shr    $0x10,%eax
  mov    %al,0x1b(%rsp)
  mov    %esi,%eax
  movzbl %ah,%eax
  mov    %eax,0x1c(%rsp)
  mov    %ebx,%eax
  mov    %r12,%rbx
  mov    %rbp,%r12
  mov    %eax,%ebp
  nopl   0x0(%rax)
L73:
  cmp    $0x1,%r13d
  je     L96
  mov    %r14,%r8
  mov    $0x14,%ecx
  mov    %r14,%rdx
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <hmac_sha1@plt>
L21:
  movzbl 0x70(%rsp),%edx
  xor    %eax,%eax
  xor    0x50(%rsp),%dl
  add    $0x1,%r13d
  mov    %dl,%al
  movzbl 0x71(%rsp),%edx
  xor    0x51(%rsp),%dl
  mov    %dl,%ah
  movzbl 0x72(%rsp),%edx
  xor    0x52(%rsp),%dl
  movzbl %dl,%edx
  movzbl 0x53(%rsp),%ecx
  movzwl %ax,%eax
  xor    0x73(%rsp),%cl
  shl    $0x10,%edx
  movdqa 0x60(%rsp),%xmm0
  shl    $0x18,%ecx
  pxor   0x40(%rsp),%xmm0
  or     %edx,%eax
  or     %ecx,%eax
  movaps %xmm0,0x60(%rsp)
  mov    %eax,0x70(%rsp)
  cmp    %r13d,%ebp
  jae    L73
  mov    0x10(%rsp),%r13d
  mov    %ebp,%eax
  mov    %r12,%rbp
  mov    %rbx,%r12
  mov    %eax,%ebx
  lea    0x0(%r13,%r13,4),%eax
  lea    -0x14(,%rax,4),%edi
  add    0x28(%rsp),%rdi
  cmp    %r13d,0x38(%rsp)
  je     L86
  mov    0x20(%rsp),%rsi
  mov    $0x14,%edx
  call   <memcpy@plt>
  mov    %r13d,%esi
  add    $0x1,%esi
  mov    %esi,0x10(%rsp)
  cmp    %esi,0x34(%rsp)
  jne    L7
  mov    %r15,%rdi
  call   <free@plt>
  mov    $0x1,%eax
  jmp    L16
  nopl   0x0(%rax)
L96:
  mov    0x8(%rsp),%rax
  movzbl 0x14(%rsp),%edi
  mov    %r14,%r8
  mov    %r15,%rdx
  mov    0x30(%rsp),%ecx
  mov    %rbx,%rsi
  mov    %dil,(%r15,%rax,1)
  movzbl 0x1b(%rsp),%edi
  mov    %dil,0x1(%r15,%rax,1)
  movzbl 0x1c(%rsp),%edi
  mov    %dil,0x2(%r15,%rax,1)
  movzbl 0x10(%rsp),%edi
  mov    %dil,0x3(%r15,%rax,1)
  mov    %r12,%rdi
  call   <hmac_sha1@plt>
  jmp    L21
L86:
  mov    0x3c(%rsp),%eax
  mov    0xc0(%rsp),%edx
  mov    0x20(%rsp),%rsi
  lea    (%rax,%rax,4),%eax
  shl    $0x2,%eax
  sub    %eax,%edx
  call   <memcpy@plt>
  mov    %r15,%rdi
  call   <free@plt>
  mov    $0x1,%eax
  jmp    L16
L25:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int pbkdf2_sha1(const char *password, size_t Plen, const char *salt, size_t Slen, unsigned int c, char *derivedKey, size_t dkLen) {
  unsigned int hLen = 20;
  char U[20], T[20];
  unsigned int u, l, r, i, k;
  char *tmp;
  size_t tmplen = Slen + 4;
  if (!c || !dkLen || dkLen > 4294967295U)
    return 0;
  l = (((int)dkLen - 1) / hLen) + 1;
  r = (int)dkLen - (l - 1) * hLen;
  if (!(tmp = (char *)malloc(tmplen)))
    return 0;
  memcpy(tmp, salt, Slen);
  for (i = 1; i <= l; i++) {
    memset(T, 0, hLen);
    for (u = 1; u <= c; u++) {
      if (u == 1) {
        tmp[Slen + 0] = (i & 0xff000000) >> 24;
        tmp[Slen + 1] = (i & 0x00ff0000) >> 16;
        tmp[Slen + 2] = (i & 0x0000ff00) >> 8;
        tmp[Slen + 3] = (i & 0x000000ff) >> 0;
        hmac_sha1(password, Plen, tmp, tmplen, U);
      } else
        hmac_sha1(password, Plen, U, hLen, U);
      for (k = 0; k < hLen; k++)
        T[k] ^= U[k];
    }
    memcpy(derivedKey + (i - 1) * hLen, T, i == l ? r : hLen);
  }
  free(tmp);
  return 1;
}
```