//
// cms_content_bio from 0x875050 to 0x8750a0 (80 bytes)
//
// 2 xrefs:
// > CMS_dataInit @ 0x875180
// > ??> @ 0x6a3ec
//
// 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
//
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;
}