//
// sub_99122 from 0x99122 to 0x99150 (46 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_99122(int *a1, int a2, float a3)
{
int v3; // r0
float v4; // s0
v3 = *a1;
if ( a2 == 1 )
{
v4 = a3;
*(float *)(v3 + 408) = a3;
}
else
{
v4 = *(float *)(v3 + 408);
}
*(float *)(v3 + 412) = v4 / (float)*(int *)(*(_DWORD *)(v3 + 128) + 1184);
return 0;
}