//
// PEM_write from 0xdc7ef4 to 0xdc7fb4 (192 bytes)
//
// 1 xrefs:
// > ??> @ 0x2e068
//
// 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(__int64 a1, const char *a2, const char *a3, __int64 a4, __int64 a5)
{
void *v9; // x0
__int64 v10; // x0
_QWORD *v11; // x19
unsigned int v12; // w20
v9 = BIO_s_file();
v10 = BIO_new((__int64)v9);
v11 = (_QWORD *)v10;
if ( v10 )
{
BIO_ctrl(v10, 0x6Au, 0, a1);
v12 = PEM_write_bio((__int64)v11, a2, a3, a4, a5);
BIO_free(v11);
return v12;
}
else
{
ERR_put_error(9, 113, 7, (__int64)"crypto/pem/pem_lib.c", 575);
return 0;
}
}