//
// sub_BBA818 from 0xbba818 to 0xbba884 (108 bytes)
//
// 1 xrefs:
// > sub_B7F490 @ 0xb7fc54
//
// 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_BBA818(__int64 *a1, int a2)
{
__int64 v2; // x19
int v4; // w1
__int64 result; // x0
__int64 v6; // x2
__int64 *v7; // x19
__int64 *v8; // x2
v2 = a2;
v4 = sub_BB904C(a1, a2);
result = 80;
if ( !v4 )
{
v6 = 5 * v2;
v7 = &a1[v2];
v8 = &a1[v6];
*((_BYTE *)v8 + 664) = 0;
*((_DWORD *)v8 + 167) = 0;
v7[79] = (__int64)sub_B7BDB8;
v7[81] = (__int64)sub_B7BB54;
return 0;
}
return result;
}