//
// sub_BBA910 from 0xbba910 to 0xbba990 (128 bytes)
//
// 2 xrefs:
// > sub_B83394 @ 0xb8345c
// > sub_B91E38 @ 0xb91ee4
//
// 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
//
void __fastcall sub_BBA910(__int64 a1)
{
__int64 v1; // x22
int v2; // w0
__int64 v3; // x19
int v4; // w20
int v5; // w0
v1 = a1 + 0x8000;
v2 = *(_DWORD *)(a1 + 36416);
if ( v2 )
{
v3 = 0;
v4 = 0;
if ( v2 > 0 )
{
do
{
++v4;
sub_BA4C54(*(_QWORD *)(*(_QWORD *)(v1 + 3656) + v3));
v5 = *(_DWORD *)(v1 + 3648);
*(_QWORD *)(*(_QWORD *)(v1 + 3656) + v3) = 0;
v3 += 8;
}
while ( v4 < v5 );
}
off_1231008(*(void **)(v1 + 3656));
*(_QWORD *)(v1 + 3656) = 0;
*(_DWORD *)(v1 + 3648) = 0;
}
}