//
// GJEffectManager::timeForItem from 0x100016304 to 0x10001634c (72 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::getItemValue @ 0x1001fba38
// > GJBaseGameLayer::updateTimerLabels @ 0x1001fc4cc
//
// 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
//
double __fastcall GJEffectManager::timeForItem(GJEffectManager *a1, int a2)
{
int v2; // w8
__int64 v3; // x0
int v5; // [xsp+Ch] [xbp-4h] BYREF
v2 = a2 & ~(a2 >> 31);
if ( v2 >= 9999 )
v2 = 9999;
v5 = v2;
v3 = sub_100018814(&a1->m_timerItemMap, &v5);
if ( v3 )
return *(double *)(v3 + 32);
else
return 0.0;
}