//
// cms_content_bio from 0xa89c50 to 0xa89ca0 (80 bytes)
//
// 2 xrefs:
// > CMS_dataInit @ 0xa89d80
// > ??> @ 0x83e6c
//
// 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:54 +0000
//
int *__fastcall cms_content_bio(int *a1)
{
int *result; // r0
int v2; // r3
void *v3; // r0
result = (int *)CMS_get0_content(a1);
if ( result )
{
v2 = *result;
if ( *result )
{
if ( *(_DWORD *)(v2 + 12) != 32 )
return BIO_new_mem_buf(*(const char **)(v2 + 8), *(_DWORD *)v2);
v3 = BIO_s_mem();
}
else
{
v3 = BIO_s_null();
}
return BIO_new((int)v3);
}
return result;
}