//
// PEM_read from 0x822d78 to 0x822e10 (152 bytes)
//
// 1 xrefs:
// > ??> @ 0x653ec
//
// 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_read(int a1, _DWORD *a2, _DWORD *a3, _DWORD *a4, _DWORD *a5)
{
void *v9; // r0
_DWORD *v10; // r0
_DWORD *v11; // r5
int bio; // r4
v9 = BIO_s_file();
v10 = BIO_new((int)v9);
v11 = v10;
if ( v10 )
{
BIO_ctrl(v10, 106, 0, a1);
bio = PEM_read_bio(v11, a2, a3, a4, a5);
BIO_free(v11);
return bio;
}
else
{
ERR_put_error(9, 108, 7, (int)"crypto/pem/pem_lib.c", 654);
return 0;
}
}