//
// PEM_read_PrivateKey from 0x1047588 to 0x1047628 (160 bytes)
//
// 4 xrefs:
// > PEM_read_RSAPrivateKey @ 0x10444f0
// > PEM_read_DSAPrivateKey @ 0x1044a30
// > PEM_read_ECPrivateKey @ 0x1044eb0
// > ??> @ 0xcb488
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:16:33 +0000
//
__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;
}
}