//
// sub_9BB9C from 0x9bb9c to 0x9bba2 (6 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall sub_9BB9C(int *a1, int a2, float a3)
{
float v3; // s0
float v4; // s2
int v6; // r0
v6 = *a1;
v3 = a3;
switch ( a2 )
{
case 2:
*(float *)(v6 + 936) = a3;
break;
case 1:
*(float *)(v6 + 932) = a3;
break;
case 0:
v4 = (float)*(int *)(*(_DWORD *)(v6 + 128) + 1184);
if ( (float)((float)(v4 * 0.5) + -100.0) <= a3 )
v3 = (float)(v4 * 0.5) + -100.0;
*(float *)(v6 + 928) = v3;
break;
}
return 0;
}