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

```asm
<RSA_padding_check_SSLv23>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %ecx,-0x30(%rbp)
  mov    %r8d,-0x3c(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  cmpl   $0x9,-0x30(%rbp)
  jg     L186
  mov    D14(%rip),%rax
  mov    (%rax),%edx
  mov    D51(%rip),%rax
  mov    (%rax),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <RSAerr@plt>
  mov    $0xffffffff,%eax
  jmp    L145
L186:
  mov    -0x30(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0x3c(%rbp)
  jne    L42
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  movzbl (%rax),%eax
  cmp    $0x2,%al
  je     L156
L42:
  mov    D22(%rip),%rax
  mov    (%rax),%edx
  mov    D51(%rip),%rax
  mov    (%rax),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <RSAerr@plt>
  mov    $0xffffffff,%eax
  jmp    L145
L156:
  mov    -0x30(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0xc(%rbp)
  movl   $0x0,-0x14(%rbp)
  jmp    L166
L173:
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  movzbl (%rax),%eax
  test   %al,%al
  je     L26
  addl   $0x1,-0x14(%rbp)
L166:
  mov    -0x14(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jl     L173
  jmp    L34
L26:
  nop
L34:
  mov    -0x14(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  je     L189
  cmpl   $0x7,-0x14(%rbp)
  jg     L143
L189:
  mov    D48(%rip),%rax
  mov    (%rax),%edx
  mov    D51(%rip),%rax
  mov    (%rax),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <RSAerr@plt>
  mov    $0xffffffff,%eax
  jmp    L145
L143:
  movl   $0xfffffff7,-0x10(%rbp)
  jmp    L63
L135:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x3,%al
  jne    L72
  addl   $0x1,-0x10(%rbp)
L63:
  cmpl   $0xffffffff,-0x10(%rbp)
  jl     L135
  jmp    L9
L72:
  nop
L9:
  cmpl   $0xffffffff,-0x10(%rbp)
  jne    L15
  mov    D43(%rip),%rax
  mov    (%rax),%edx
  mov    D51(%rip),%rax
  mov    (%rax),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <RSAerr@plt>
  mov    $0xffffffff,%eax
  jmp    L145
L15:
  addl   $0x1,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  sub    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jle    L3
  mov    D72(%rip),%rax
  mov    (%rax),%edx
  mov    D51(%rip),%rax
  mov    (%rax),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <RSAerr@plt>
  mov    $0xffffffff,%eax
  jmp    L145
L3:
  mov    -0xc(%rbp),%edx
  mov    -0x8(%rbp),%rcx
  mov    -0x28(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0xc(%rbp),%eax
L145:
  leave
  ret
```

assistant: ```c
int RSA_padding_check_SSLv23(unsigned char *to, int tlen, const unsigned char *from, int flen, int num) {
  int i, j, k;
  const unsigned char *p;
  p = from;
  if (flen < 10) {
    RSAerr(RSA_F_RSA_PADDING_CHECK_SSLV23, RSA_R_DATA_TOO_SMALL);
    return -1;
  }
  if (num != flen + 1 || *(p++) != 02) {
    RSAerr(RSA_F_RSA_PADDING_CHECK_SSLV23, RSA_R_BLOCK_TYPE_IS_NOT_02);
    return -1;
  }
  j = flen - 1;
  for (i = 0; i < j; i++)
    if (*(p++) == 0)
      break;
  if (i == j || i < 8) {
    RSAerr(RSA_F_RSA_PADDING_CHECK_SSLV23, RSA_R_NULL_BEFORE_BLOCK_MISSING);
    return -1;
  }
  for (k = -9; k < -1; k++) {
    if (p[k] != 0x03)
      break;
  }
  if (k == -1) {
    RSAerr(RSA_F_RSA_PADDING_CHECK_SSLV23, RSA_R_SSLV3_ROLLBACK_ATTACK);
    return -1;
  }
  i++;
  j -= i;
  if (j > tlen) {
    RSAerr(RSA_F_RSA_PADDING_CHECK_SSLV23, RSA_R_DATA_TOO_LARGE);
    return -1;
  }
  memcpy(to, p, j);
  return j;
}
```