//
// sub_1005B9B24 from 0x1005b9b24 to 0x1005b9b90 (108 bytes)
//
// 0 xrefs:
//
// 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 11:09:15 +0000
//
__int64 __fastcall sub_1005B9B24(__int64 a1, int a2, float a3)
{
float *v3; // x8
float v4; // s0
float v5; // s0
if ( a2 == 2 )
{
v3 = (float *)(a1 + 556);
}
else if ( a2 == 1 )
{
v3 = (float *)(a1 + 552);
}
else
{
if ( a2 )
goto LABEL_8;
v3 = (float *)(a1 + 548);
}
*v3 = a3;
LABEL_8:
v4 = *(float *)(a1 + 548);
if ( v4 == 0.0 )
v5 = 1.0;
else
v5 = 1.0 / (float)((float)(v4 * (float)*(int *)(a1 + 544)) / 1000.0);
*(float *)(a1 + 560) = v5;
return 0;
}