//
// PEM_write_PKCS8PrivateKey from 0xe652dc to 0xe653b4 (216 bytes)
//
// 1 xrefs:
// > ??> @ 0x77358
//
// 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_write_PKCS8PrivateKey(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 a4,
unsigned int a5,
__int64 (__fastcall *a6)(char *, __int64, __int64, char *),
char *a7)
{
__int64 v13; // x0
_QWORD *v14; // x20
unsigned int v15; // w19
v13 = BIO_new_fp(a1, 0);
v14 = (_QWORD *)v13;
if ( v13 )
{
v15 = sub_E64EF8(v13, a2, 0, 0xFFFFFFFF, a3, a4, a5, a6, a7);
BIO_free(v14);
return v15;
}
else
{
ERR_put_error(9, 125, 7, (__int64)"crypto/pem/pem_pk8.c", 184);
return 0;
}
}