//
// sub_B99E94 from 0xb99e94 to 0xb99ee4 (80 bytes)
//
// 7 xrefs:
// > sub_B9C364 @ 0xb9cab0
// > sub_B9C364 @ 0xb9d4a0
// > sub_B9C364 @ 0xb9d4e0
// > sub_B9C364 @ 0xb9d510
// > sub_B9C364 @ 0xb9d584
// > sub_B9C364 @ 0xb9d5b8
// > sub_B9C364 @ 0xb9d61c
//
// 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_B99E94(__int64 result, int a2)
{
__int64 (*v2)(void); // x1
if ( *(_DWORD *)(result + 24) != a2 )
{
*(_DWORD *)(result + 24) = a2;
if ( a2 == 17 )
--*(_DWORD *)(*(_QWORD *)(result + 96) + 28LL);
v2 = (__int64 (*)(void))qword_121C5E0[a2];
if ( v2 )
return v2();
}
return result;
}