//
// cms_content_bio from 0x109dc38 to 0x109dc8c (84 bytes)
//
// 2 xrefs:
// > CMS_dataInit @ 0x109dd7c
// > ??> @ 0xa8a00
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:17:30 +0000
//
__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;
}