//
// PEM_read_PrivateKey from 0xdc9228 to 0xdc92c8 (160 bytes)
//
// 4 xrefs:
// > PEM_read_RSAPrivateKey @ 0xdc6190
// > PEM_read_DSAPrivateKey @ 0xdc66d0
// > PEM_read_ECPrivateKey @ 0xdc6b50
// > ??> @ 0x9a200
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall PEM_read_PrivateKey(
__int64 a1,
__int64 *a2,
unsigned int (__fastcall *a3)(char *, __int64, _QWORD, char *),
char *a4)
{
void *v8; // x0
__int64 v9; // x0
_QWORD *v10; // x19
__int64 bio_PrivateKey; // x20
v8 = BIO_s_file();
v9 = BIO_new((__int64)v8);
v10 = (_QWORD *)v9;
if ( v9 )
{
BIO_ctrl(v9, 0x6Au, 0, a1);
bio_PrivateKey = PEM_read_bio_PrivateKey((__int64)v10, a2, a3, a4);
BIO_free(v10);
return bio_PrivateKey;
}
else
{
ERR_put_error(9, 124, 7, (__int64)"crypto/pem/pem_pkey.c", 171);
return 0;
}
}