//
// PEM_write from 0xa37128 to 0xa371c0 (152 bytes)
//
// 1 xrefs:
// > ??> @ 0x7ee2c
//
// 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:08:08 +0000
//
int __fastcall PEM_write(int a1, const char *a2, const char *a3, int a4, int a5)
{
void *v9; // r0
_DWORD *v10; // r0
_DWORD *v11; // r5
int v12; // r4
v9 = BIO_s_file();
v10 = BIO_new((int)v9);
v11 = v10;
if ( v10 )
{
BIO_ctrl(v10, 106, 0, a1);
v12 = PEM_write_bio((int)v11, a2, a3, a4, a5);
BIO_free(v11);
return v12;
}
else
{
ERR_put_error(9, 113, 7, (int)"crypto/pem/pem_lib.c", 575);
return 0;
}
}