//
// i2d_PKCS8PrivateKeyInfo_fp from 0x848a24 to 0x848a64 (64 bytes)
//
// 1 xrefs:
// > ??> @ 0x680dc
//
// 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
//
int __fastcall i2d_PKCS8PrivateKeyInfo_fp(int a1, int a2)
{
int v3; // r0
int v4; // r5
int v5; // r4
v3 = EVP_PKEY2PKCS8(a2);
v4 = v3;
if ( !v3 )
return 0;
v5 = i2d_PKCS8_PRIV_KEY_INFO_fp(a1, v3);
PKCS8_PRIV_KEY_INFO_free(v4);
return v5;
}