//
// PEM_read from 0xa37978 to 0xa37a10 (152 bytes)
//
// 1 xrefs:
// > ??> @ 0x7ee6c
//
// 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_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;
}
}