//
// PEM_write from 0x1046254 to 0x1046314 (192 bytes)
//
// 1 xrefs:
// > ??> @ 0x45370
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:16:33 +0000
//
__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;
}
}