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

```asm
<PKCS5_pbe_set0_algor>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r12
  push   %rbx
  sub    $0x40,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %esi,-0x3c(%rbp)
  mov    %edx,-0x40(%rbp)
  mov    %rcx,-0x48(%rbp)
  mov    %r8d,-0x4c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x30(%rbp)
  mov    $0x0,%eax
  call   <PBEPARAM_new@plt>
  mov    %rax,-0x28(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  jne    L124
  mov    D46(%rip),%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <ASN1error@plt>
  jmp    L4
L124:
  cmpl   $0x0,-0x40(%rbp)
  jg     L158
  mov    D47(%rip),%rax
  mov    (%rax),%eax
  mov    %eax,-0x40(%rbp)
L158:
  mov    -0x28(%rbp),%rax
  mov    0x4(%rax),%eax
  mov    -0x40(%rbp),%edx
  mov    %edx,%esi
  mov    %eax,%edi
  call   <ASN1_INTEGER_set@plt>
  test   %eax,%eax
  jne    L74
  mov    D46(%rip),%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <ASN1error@plt>
  jmp    L4
L74:
  cmpl   $0x0,-0x4c(%rbp)
  jne    L58
  mov    D72(%rip),%rax
  mov    (%rax),%eax
  mov    %eax,-0x4c(%rbp)
L58:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  mov    -0x4c(%rbp),%edx
  mov    $0x0,%esi
  mov    %eax,%edi
  call   <ASN1_STRING_set@plt>
  test   %eax,%eax
  jne    L42
  mov    D46(%rip),%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <ASN1error@plt>
  jmp    L4
L42:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <ASN1_STRING_data@plt>
  mov    %rax,-0x20(%rbp)
  cmpq   $0x0,-0x48(%rbp)
  je     L79
  mov    -0x4c(%rbp),%edx
  mov    -0x48(%rbp),%rcx
  mov    -0x20(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  jmp    L73
L79:
  mov    -0x4c(%rbp),%edx
  mov    -0x20(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <arc4random_buf@plt>
L73:
  lea    -0x30(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    D61(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <ASN1_item_pack@plt>
  test   %eax,%eax
  jne    L1
  mov    D46(%rip),%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <ASN1error@plt>
  jmp    L4
L1:
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <PBEPARAM_free@plt>
  movq   $0x0,-0x28(%rbp)
  mov    -0x30(%rbp),%r12
  mov    D40(%rip),%rax
  mov    (%rax),%ebx
  mov    -0x3c(%rbp),%eax
  mov    %eax,%edi
  call   <OBJ_nid2obj@plt>
  mov    %eax,%esi
  mov    -0x38(%rbp),%rax
  mov    %r12,%rcx
  mov    %ebx,%edx
  mov    %rax,%rdi
  call   <X509_ALGOR_set0@plt>
  test   %rax,%rax
  je     L128
  mov    $0x1,%eax
  jmp    L62
L128:
  nop
L4:
  cmpq   $0x0,-0x28(%rbp)
  je     L65
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <PBEPARAM_free@plt>
L65:
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <ASN1_STRING_free@plt>
  mov    $0x0,%eax
L62:
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L24
  call   <__stack_chk_fail@plt>
L24:
  add    $0x40,%rsp
  pop    %rbx
  pop    %r12
  pop    %rbp
  ret
```

assistant: ```c
int PKCS5_pbe_set0_algor(X509_ALGOR *algor, int alg, int iter, const unsigned char *salt, int saltlen) {
  PBEPARAM *pbe = NULL;
  ASN1_STRING *pbe_str = NULL;
  unsigned char *sstr;
  pbe = PBEPARAM_new();
  if (!pbe) {
    ASN1error(ERR_R_MALLOC_FAILURE);
    goto err;
  }
  if (iter <= 0)
    iter = PKCS5_DEFAULT_ITER;
  if (!ASN1_INTEGER_set(pbe->iter, iter)) {
    ASN1error(ERR_R_MALLOC_FAILURE);
    goto err;
  }
  if (!saltlen)
    saltlen = PKCS5_SALT_LEN;
  if (!ASN1_STRING_set(pbe->salt, NULL, saltlen)) {
    ASN1error(ERR_R_MALLOC_FAILURE);
    goto err;
  }
  sstr = ASN1_STRING_data(pbe->salt);
  if (salt)
    memcpy(sstr, salt, saltlen);
  else
    arc4random_buf(sstr, saltlen);
  if (!ASN1_item_pack(pbe, &PBEPARAM_it, &pbe_str)) {
    ASN1error(ERR_R_MALLOC_FAILURE);
    goto err;
  }
  PBEPARAM_free(pbe);
  pbe = NULL;
  if (X509_ALGOR_set0(algor, OBJ_nid2obj(alg), V_ASN1_SEQUENCE, pbe_str))
    return 1;
err:
  if (pbe != NULL)
    PBEPARAM_free(pbe);
  ASN1_STRING_free(pbe_str);
  return 0;
}
```