//
// PEM_read_RSAPrivateKey from 0xdc6178 to 0xdc61f0 (120 bytes)
//
// 1 xrefs:
// > ??> @ 0x8a828
//
// 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_RSAPrivateKey(__int64 a1, __int64 *a2)
{
__int64 PrivateKey; // x0
__int64 v4; // x21
__int64 v5; // x19
PrivateKey = PEM_read_PrivateKey(a1, 0);
v4 = PrivateKey;
if ( !PrivateKey )
return 0;
v5 = EVP_PKEY_get1_RSA(PrivateKey);
EVP_PKEY_free(v4);
if ( !v5 )
return 0;
if ( !a2 )
return v5;
RSA_free(*a2);
*a2 = v5;
return v5;
}