//
// sub_BB798 from 0xbb798 to 0xbb7a0 (8 bytes)
//
// 1 xrefs:
// > ??> @ 0x119e38
//
// 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_BB798(__int64 *a1, int a2, float a3)
{
__int64 v4; // x0
v4 = *a1;
switch ( a2 )
{
case 2:
*(float *)(v4 + 1104) = a3;
break;
case 1:
*(float *)(v4 + 1100) = a3;
break;
case 0:
*(float *)(v4 + 1096) = fminf((float)((float)*(int *)(*(_QWORD *)(v4 + 168) + 1744LL) * 0.5) + -100.0, a3);
break;
}
return 0;
}