//
// sub_99122 from 0x99122 to 0x99150 (46 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:41:29 +0000
//
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;
}