//
// PEM_read_bio_RSAPrivateKey from 0x1044460 to 0x10444d8 (120 bytes)
//
// 3 xrefs:
// > SSL_use_RSAPrivateKey_file @ 0xfc2a70
// > SSL_CTX_use_RSAPrivateKey_file @ 0xfc3360
// > ??> @ 0x988a8
//
// 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:32 +0000
//
__int64 __fastcall PEM_read_bio_RSAPrivateKey(__int64 a1, __int64 *a2, __int64 a3, __int64 a4)
{
__int64 bio_PrivateKey; // x0
__int64 v6; // x21
__int64 v7; // x19
bio_PrivateKey = PEM_read_bio_PrivateKey(a1, 0, a3, a4);
v6 = bio_PrivateKey;
if ( !bio_PrivateKey )
return 0;
v7 = EVP_PKEY_get1_RSA(bio_PrivateKey);
EVP_PKEY_free(v6);
if ( !v7 )
return 0;
if ( !a2 )
return v7;
RSA_free(*a2);
*a2 = v7;
return v7;
}