//
// sub_100493C8C from 0x100493c8c to 0x100493cfc (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x100851e38
//
// 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_100493C8C(__int64 *a1, int a2, float a3)
{
__int64 v3; // x8
float *v4; // x9
float v5; // s0
float v6; // s0
v3 = *a1;
if ( a2 == 2 )
{
v4 = (float *)(v3 + 556);
}
else if ( a2 == 1 )
{
v4 = (float *)(v3 + 552);
}
else
{
if ( a2 )
goto LABEL_8;
v4 = (float *)(v3 + 548);
}
*v4 = a3;
LABEL_8:
v5 = *(float *)(v3 + 548);
if ( v5 == 0.0 )
v6 = 1.0;
else
v6 = 1.0 / (float)((float)(v5 * (float)*(int *)(v3 + 544)) / 1000.0);
*(float *)(v3 + 560) = v6;
return 0;
}