//
// sub_BB798 from 0xbb798 to 0xbb7a0 (8 bytes)
//
// 1 xrefs:
// > ??> @ 0x119e38
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:14:41 +0000
//
__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;
}