//
// PEM_write_PKCS8PrivateKey from 0xacfe78 to 0xacff10 (152 bytes)
//
// 1 xrefs:
// > ??> @ 0x84dcc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:09:23 +0000
//
int __fastcall PEM_write_PKCS8PrivateKey(
int a1,
int a2,
int a3,
int 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 = sub_ACFB28((int)v10, a2, 0, -1, a3, a4, a5, a6, a7);
BIO_free(v11);
return v12;
}
else
{
ERR_put_error(9, 125, 7, (int)"crypto/pem/pem_pk8.c", 184);
return 0;
}
}