//
// PEM_write_bio_PrivateKey from 0x8236d8 to 0x823748 (112 bytes)
//
// 2 xrefs:
// > PEM_write_PrivateKey @ 0x8239e4
// > ??> @ 0x6546c
//
// 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 PEM_write_bio_PrivateKey(
int a1,
int a2,
int *a3,
char *a4,
int a5,
int (__fastcall *a6)(char *, int, int, const char *),
const char *a7)
{
int v7; // r12
v7 = *(_DWORD *)(a2 + 12);
if ( v7 && !*(_DWORD *)(v7 + 40) )
return PEM_write_bio_PrivateKey_traditional(a1, a2, a3, a4, a5, a6, a7);
else
return PEM_write_bio_PKCS8PrivateKey(a1, a2, a3, a4);
}