//
// PEM_read from 0xdc866c to 0xdc872c (192 bytes)
//
// 1 xrefs:
// > ??> @ 0x9c3f0
//
// 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_read(__int64 a1, _QWORD *a2, _QWORD *a3, _QWORD *a4, _QWORD *a5)
{
void *v9; // x0
__int64 v10; // x0
_QWORD *v11; // x19
unsigned int bio; // w20
v9 = BIO_s_file();
v10 = BIO_new((__int64)v9);
v11 = (_QWORD *)v10;
if ( v10 )
{
BIO_ctrl(v10, 0x6Au, 0, a1);
bio = PEM_read_bio((__int64)v11, a2, a3, a4, a5);
BIO_free(v11);
return bio;
}
else
{
ERR_put_error(9, 108, 7, (__int64)"crypto/pem/pem_lib.c", 654);
return 0;
}
}