//
// cms_content_bio from 0xe1f938 to 0xe1f98c (84 bytes)
//
// 2 xrefs:
// > CMS_dataInit @ 0xe1fa7c
// > ??> @ 0x7e828
//
// 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 cms_content_bio(__int64 *a1)
{
__int64 *result; // x0
__int64 v2; // x1
void *v3; // x0
result = (__int64 *)CMS_get0_content(a1);
if ( result )
{
v2 = *result;
if ( *result )
{
if ( *(_QWORD *)(v2 + 16) != 32 )
return (__int64 *)BIO_new_mem_buf(*(const char **)(v2 + 8), *(_DWORD *)v2);
v3 = BIO_s_mem();
}
else
{
v3 = BIO_s_null();
}
return (__int64 *)BIO_new((__int64)v3);
}
return result;
}