//
// sub_10024A3BC from 0x10024a3bc to 0x10024a420 (100 bytes)
//
// 2 xrefs:
// > LevelTools::sortSpeedObjects @ 0x1001a9a80
// > CurrencyRewardLayer::createObjectsFull @ 0x100320c28
//
// 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_10024A3BC(__int64 a1)
{
float v2; // s0
if ( !**(_DWORD **)(a1 + 56) )
return 0;
v2 = vcvts_n_f32_s32(rand(), 0x1Fu);
if ( v2 == 1.0 )
v2 = 0.0;
return *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 56) + 16LL)
+ 8LL * (int)(float)(v2 * (float)**(unsigned int **)(a1 + 56)));
}