//
// PEM_write_bio_PrivateKey from 0xdc8fd8 to 0xdc9028 (80 bytes)
//
// 2 xrefs:
// > PEM_write_PrivateKey @ 0xdc9314
// > ??> @ 0x73e90
//
// 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_bio_PrivateKey(
__int64 a1,
__int64 a2,
unsigned int *a3,
char *a4,
int a5,
__int64 (__fastcall *a6)(char *, __int64, __int64, char *, _QWORD),
char *a7)
{
__int64 v7; // x7
v7 = *(_QWORD *)(a2 + 16);
if ( v7 && !*(_QWORD *)(v7 + 72) )
return PEM_write_bio_PrivateKey_traditional(a1, a2, a3, a4, a5, a6, a7);
else
return PEM_write_bio_PKCS8PrivateKey(a1, a2, (int)a3, (int)a4, a5, (int)a6, a7);
}