//
// PEM_write_PrivateKey from 0x82399c to 0x823a2c (144 bytes)
//
// 1 xrefs:
// > ??> @ 0x654ac
//
// 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_PrivateKey(
int a1,
int a2,
int *a3,
char *a4,
int a5,
int (__fastcall *a6)(char *, int, int, const char *),
const char *a7)
{
_DWORD *v10; // r0
_DWORD *v11; // r5
int v12; // r4
v10 = BIO_new_fp(a1, 0);
v11 = v10;
if ( v10 )
{
v12 = PEM_write_bio_PrivateKey((int)v10, a2, a3, a4, a5, a6, a7);
BIO_free(v11);
return v12;
}
else
{
ERR_put_error(9, 139, 7, (int)"crypto/pem/pem_pkey.c", 188);
return 0;
}
}