//
// PKCS8_decrypt from 0x1049778 to 0x10497c8 (80 bytes)
//
// 4 xrefs:
// > PEM_read_bio_PrivateKey @ 0x1047120
// > d2i_PKCS8PrivateKey_bio @ 0x10e2c34
// > PKCS12_decrypt_skey @ 0x10e39f4
// > ??> @ 0xc5aa0
//
// 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:35 +0000
//
__int64 __fastcall PKCS8_decrypt(__int64 a1, __int64 a2, unsigned int a3)
{
__int64 v5; // [xsp+28h] [xbp+28h]
__int64 v6; // [xsp+30h] [xbp+30h]
__int64 v7; // [xsp+38h] [xbp+38h]
v5 = a3;
X509_SIG_get0(a1);
return PKCS12_item_decrypt_d2i(v6, &PKCS8_PRIV_KEY_INFO_it, a2, v5, v7, 1);
}