//
// sub_BBB878 from 0xbbb878 to 0xbbb900 (136 bytes)
//
// 0 xrefs:
//
// 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 sub_BBB878(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x0
if ( result )
{
v1 = result;
v2 = *(_QWORD *)(result + 8);
if ( v2 && *(_QWORD *)(v2 + 16) && *(_QWORD *)(v1 + 144) && (*(_BYTE *)(v1 + 76) & 2) == 0 )
((void (*)(void))sub_BBF88C)();
sub_BBF88C(*(_QWORD *)(v1 + 96), 0);
*(_QWORD *)(v1 + 96) = 0;
sub_BBF88C(*(_QWORD *)(v1 + 120), 0);
*(_QWORD *)(v1 + 120) = 0;
sub_BBDE38(v1);
return sub_BBF88C(v1, 0);
}
return result;
}